GNOME Bugzilla – Bug 571037
valac segv/stackoverflow in vala_code_context_find_cycle_head (testcase attached)
Last modified: 2009-03-30 22:36:15 UTC
Steps to reproduce: 1. download testcase and extract both .vala files 2. install vala 0.5.6 (also works on trunk as of today) 3. run "valac -C *.vala" Stack trace: Other information:
Created attachment 128284 [details] testcase (run "vala -C *.vala" to trigger SEGV)
(note: putting the code into a single .vala file makes the bug go away) The backtrace is a near endless list of frames like these:
+ Trace 212377
While running it in nemiver, basically vala_code_context_find_cycle_head calls itself on line 380 once the inner while loop reaches its second iteration. FWIW, if the alternating file=BLAH pointer is dereferenced (and also its "priv" field) inside it then what I see is that the filename field is set to the same thing in the 0x1673290 object and the 0x1673360 object.
still repros on vala git HEAD as of today
commit 2d4a4a264677b42710914907f63e1624e25e560f Author: Jürg Billeter <j@bitron.ch> Date: Tue Mar 31 00:31:07 2009 +0200 Rework header file generation Generate single C header file for public API, do not use header files for internal API. Fixes bug 471244, bug 571037, bug 572536, and bug 575629.