#19 Infinite recursion then segmentation fault

None
closed
nobody
None
5
2014-05-19
2010-12-14
Anonymous
No

If a class (i'll name it Foo for the example) in the diagram has a method returning a object of the same type (Foo there), then Dia2Code will crash (segfault) when generating C++ (and only C++) source code.

It seems to come from decls.c at line 138:
push (tmpnode, b); // called more than thousand times before crash

attach file is the diagram i used to find the source of the crash

Hope this helps

Discussion

  • Oliver Kellogg
    Oliver Kellogg
    2014-05-19

    Thanks for the reproducer.
    Tim Rodger fixed this on 2008-12-07, and I verified that your foo.dia file is loaded correctly using current git master.

     
  • Oliver Kellogg
    Oliver Kellogg
    2014-05-19

    • status: open --> closed
    • Group: -->