After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 614417 - valac crash on recursive struct usage
valac crash on recursive struct usage
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Structs
0.7.x
Other All
: Normal critical
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-30 23:38 UTC by Thomas Kristensen
Modified: 2010-04-09 07:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Kristensen 2010-03-30 23:38:06 UTC
It seems valac crashes on recursive struct usage, due to stack
overflow when trying to compile the following code:

namespace test {
  public struct Test {
      Test? test;
  }

  public struct Test2 {
      Test test;
      int i;
  }

  static void main () {
      var l = new List<Test2?> ();
      stdout.printf ("%d", (int)l.length ());
  }
}
Comment 1 Jürg Billeter 2010-04-09 07:53:16 UTC
commit 4bc6c433a7e3041ef3bd502c802652a8809e29b0
Author: Jürg Billeter <j@bitron.ch>
Date:   Fri Apr 9 09:52:17 2010 +0200

    Fix crash on valid recursive struct usage
    
    Fixes bug 614417.