Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1121 segfault compiling embedded union for clisp

closed-fixed
clisp (2)
5
2011-02-04
2010-12-30
Michael Kappert
No

Hi,

swig 2.0.1 and current SVN segfault on embedded unions in base.c:589. The error only occurs for -clisp; -cffi is OK.
This is on linux/x86_64.

Best Regards,
Michael

$ cat union.h
struct union_test { int m_1; union { int m_2; } u; };
$
...
(gdb) run
Starting program: /usr/bin/swig -clisp -module test union.h

Program received signal SIGSEGV, Segmentation fault.
0x000000000041cbbb in DohInsertitem (obj=0x0, index=-2, value=0x7ffff7f67890)
at DOH/base.c:589
589 DohObjInfo *objinfo = b->type;
(gdb)

$ swig -version

SWIG Version 2.0.2

Compiled with g++ [x86_64-unknown-linux-gnu]

Configured options: +pcre

Please see http://www.swig.org for reporting bugs and further information
$

Discussion

  • William Fulton
    William Fulton
    2011-02-04

    Fixed for swig-2.0.2.

     
  • William Fulton
    William Fulton
    2011-02-04

    • assigned_to: efuzzyone --> wsfulton
    • status: open --> closed-fixed