SIGSEGV gcmodule.c:241 closing python after module import

stuffduff stuffduff at cox.net
Wed Jun 20 14:39:42 EDT 2007


On Jun 20, 9:22 am, stuffduff <stuffd... at cox.net> wrote:
> Hi,
>
> I have a python extension that works fine while it is running, but
> when I exit python I get this error:
>
> GNU gdb Red Hat Linux (6.5-15.fc6rh)
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and
> you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "i386-redhat-linux-gnu"...Using host
> libthread_db library "/lib/libthread_db.so.1".
>
> (gdb) run
> Starting program: python2.4
>
> ...
>
> <ctrl-d>
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1208243504 (LWP 12884)]
> collect (generation=2) at Modules/gcmodule.c:241
> 241     Modules/gcmodule.c: No such file or directory.
>         in Modules/gcmodule.c
> (gdb) bt
> #0  collect (generation=2) at Modules/gcmodule.c:241
> #1  0x080e1ec5 in PyGC_Collect () at Modules/gcmodule.c:1196
> #2  0x080da88a in Py_Finalize () at Python/pythonrun.c:353
> #3  0x08055176 in Py_Main (argc=0, argv=0xbfb8dae4) at Modules/main.c:
> 513
> #4  0x08054962 in main (argc=-1208273400, argv=0x812ed68)
>     at Modules/python.c:23
>
> I haven't figured out what it is trying to collect.  Is there a way to
> tell?
>
> Thanks,
>
> Sean


Debug build of python2.4.4 gives:

python: Modules/gcmodule.c:240: update_refs: Assertion `gc->gc.gc_refs
== (-3)' failed.

This error also appears here:

http://www.redhat.com/archives/fedora-devel-list/2006-March/msg00009.html




More information about the Python-list mailing list