#1249 swig 2.0.7 segfaults generating pyhton code for lcms-1.19


Hi, I haven't found how to reopen ID: 3530055, So I open a new one.

swig-2.0.7 segfault at :

Starting program: /usr/bin/swig -Wall -I../include -python -shadow -c++ -o lcms_wrap.cxx lcms.i

Program received signal SIGSEGV, Segmentation fault.
0xb7d92cd7 in __strstr_ia32 () from /lib/libc.so.6
(gdb) bt
#0 0xb7d92cd7 in __strstr_ia32 () from /lib/libc.so.6
#1 0x08155de5 in Swig_scopename_last (s=0x0) at Swig/misc.c:872
#2 0x0815a04e in Swig_name_str (n=0x8615a00) at Swig/naming.c:1667
#3 0x0815a19a in Swig_name_decl (n=0x8615a00) at Swig/naming.c:1714

The issue appear when generating python code for lcms-1.19 https://sourceforge.net/projects/lcms/files/lcms/1.19/

System uname: Linux-3.2.12-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.1
app-shells/bash: 4.2_p20
dev-lang/python: 2.7.3-r1, 3.2.3
dev-util/pkgconfig: 0.26
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3

dev-lang/swig-2.0.7 was built with the following:
USE="pcre -ccache -doc"
CFLAGS="-O2 -march=i686 -pipe -g -ggdb"


  • William Fulton

    William Fulton - 2012-05-28
    • assigned_to: nobody --> wsfulton
    • status: open --> closed-fixed
  • William Fulton

    William Fulton - 2012-05-28

    This is a bug displaying the following kind of warning:

    file.i:24: Warning 521: Illegal destructor name CStruct::~NOT_CStruct(). Ignored.

    You can avoid it easily by declaring the destructor correctly or if you forgot the return type in the declaration of a method, add it in. Deleting the appropriate line will also work - note that it is currently being ignored!

    This seg fault is fixed in trunk for swig-2.0.8, rev 13128.


Log in to post a comment.