GNOME Bugzilla – Bug 587947
SIGSEGV when compiling public static const with object constructor calls
Last modified: 2009-09-17 15:40:25 UTC
Please describe the problem: I have a file that defines public static const variables which are instances of objects, so they look like: public static const IpAddress ipv4_broadcast = new IpAddress.from_string("255.255.255.255"); My guess is that they're not supported that way, but the compiler catches a SIGSEGV when compiling the code. If I remove all of the assignments that are similar to that, the compiler no longer crashes. The source for the file itself is available at: http://bazaar.launchpad.net/~mtrausch/%2Bjunk/libfastcgi-vala/annotate/head%3A/src/utils/IpAd$ Short URL to the same resource, in case the link breaks: http://is.gd/1pGkR I had to run vala in a debugger to produce the SIGSEGV. Not entirely sure about why the problem happened that way, though. Steps to reproduce: Fetch the project sources: bzr branch lp:~mtrausch/+junk/fastcgi-vala Configure (autogen.sh) and try to build the sources. Actual results: SIGSEGV Expected results: Error and graceful exit Does this happen every time? yes Other information: Will attach the vala binary and a core file from that binary from my x86-64 system so more post-mortem can be done. Problem is 100% reproducible with vala git master, so if core/executable in different format is needed, simply replicate the conditions as per above.
Created attachment 137952 [details] valac binary
Core dump is at http://mike.trausch.us/core.xz - the size (1.4M) was rejected by Bugzilla.
commit 3b3ffa129f449b5d238c0d32476ea8eef41a6e8d Author: Jürg Billeter <j@bitron.ch> Date: Fri Jul 10 12:39:17 2009 +0100 Check type of constants Fixes bug 587947.
*** Bug 575628 has been marked as a duplicate of this bug. ***