GNOME Bugzilla – Bug 655726
crash when assigning an undefined reference to a constant
Last modified: 2011-08-02 14:26:38 UTC
The following code will make valac crash if one forgets to include config.vapi and this is causing anjuta to crash (bug 651151) public class Main : Object { const string UI_FILE = Config.PACKAGE_DATA_DIR; static int main (string[] args) { return 0; } } Here is the backtrace: Program received signal SIGSEGV, Segmentation fault. 0xb7d0072b in vala_data_type_compatible (self=0x0, target_type=0x9d661a0) at /home/dev/GNOME/vala/vala/valadatatype.vala:311 311 public virtual bool compatible (DataType target_type) { (gdb) bt
+ Trace 227983
commit a4d21426be1e1256b3368bb68ced00a49906dcc7 Author: Luca Bruno <lucabru@src.gnome.org> Date: Tue Aug 2 16:25:31 2011 +0200 Guard for possible errors when checking the value of constants Fixes bug 655726. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.