C extension module causes bus error on Python exit

Discussion in 'Python' started by Anand Patil, Jan 30, 2007.

  1. Anand Patil

    Anand Patil Guest

    Hi all,

    I was referred to this list from python-help. I've written an extension
    module in C which contains several new types. The types can be
    instantiated, used, and deleted under Python 2.4.3 on OS X 10.4 without
    problems.

    However, whenever I import the module Python tries to dereference a NULL
    pointer and crashes *at exit*, whether or not I've instantiated any of
    the types. I've searched for memory leaks with gc.get_objects and Mac
    OS's MallocDebug utility, but haven't found any evidence.

    Has anyone run into a problem like this? Any help is greatly appreciated.

    Thank you,
    Anand Patil
     
    Anand Patil, Jan 30, 2007
    #1
    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. =?Utf-8?B?U2FuZHk=?=

    Code to Exit Web App and Exit Internet Explorer

    =?Utf-8?B?U2FuZHk=?=, Aug 3, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    7,954
    =?Utf-8?B?U2FuZHk=?=
    Aug 5, 2005
  2. Giuseppe

    Re: Character assignment causes bus error

    Giuseppe, Jun 24, 2003, in forum: C Programming
    Replies:
    1
    Views:
    1,539
    Giuseppe
    Jun 24, 2003
  3. Berteun Damman
    Replies:
    0
    Views:
    480
    Berteun Damman
    Dec 17, 2003
  4. Daniel Berger

    [BUG] Bus Error in kstat extension

    Daniel Berger, Sep 28, 2004, in forum: Ruby
    Replies:
    9
    Views:
    238
    Charles Mills
    Sep 30, 2004
  5. Replies:
    0
    Views:
    134
Loading...

Share This Page