#1247 swig 2.0.7 segfaults (generating ruby or python code)

closed-duplicate
nobody
5
2012-05-28
2012-05-27
Klaus Kämpf
No

Swig 2.0.7 segfaults at

#1 0x00000000004f86ee in Swig_scopename_last (s=0x0) at Swig/misc.c:872
872 if (!strstr(c, "::"))

with c being NULL

Discussion

  • Klaus Kämpf
    Klaus Kämpf
    2012-05-27

    Called from

    #2 0x00000000004fc8a8 in Swig_name_str (n=0x7f5816b39930) at Swig/naming.c:1667
    1667 String *name = Swig_scopename_last(Getattr(n, "name"));

    but gdb cannot resolve n:

    (gdb) print n
    $2 = (Node *) 0x7f5816b39930
    (gdb) print *n
    Attempt to dereference a generic pointer.

     
  • Klaus Kämpf
    Klaus Kämpf
    2012-05-27

    • status: open --> closed-invalid
     
  • Klaus Kämpf
    Klaus Kämpf
    2012-05-27

    Hmm, seems to be a gcc 4.7 issue and not related to swig.

     
  • William Fulton
    William Fulton
    2012-05-28

    • status: closed-invalid --> closed-duplicate