SIGSEGV gcmodule.c:241 closing python after module import

Discussion in 'Python' started by stuffduff, Jun 20, 2007.

  1. stuffduff

    stuffduff Guest

    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
    stuffduff, Jun 20, 2007
    #1
    1. Advertising

  2. stuffduff

    stuffduff Guest

    On Jun 20, 9:22 am, stuffduff <> 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
    stuffduff, Jun 20, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Edward K. Ream

    A new view of gcmodule.c

    Edward K. Ream, Jul 10, 2003, in forum: Python
    Replies:
    1
    Views:
    323
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Jul 10, 2003
  2. David Helgason
    Replies:
    0
    Views:
    311
    David Helgason
    Nov 13, 2003
  3. plb
    Replies:
    0
    Views:
    372
  4. A.B., Khalid

    ANN: Binary Distribution of pyMinGW-241

    A.B., Khalid, Aug 20, 2005, in forum: Python
    Replies:
    0
    Views:
    716
    A.B., Khalid
    Aug 20, 2005
  5. Ryan
    Replies:
    2
    Views:
    412
    Chris Torek
    Oct 19, 2010
Loading...

Share This Page