I have a module mux.pyx where the initialization is being
called more than once (the initmux c function). Does anyone
know why this might be happening ? Is it something to do with
tricky cimport usage (python would never initialize an extension module 
twice..) ?

Here is my gdb session:

Breakpoint 1, initmux () at mux.c:6829
6829      __pyx_m = Py_InitModule4("mux", __pyx_methods, 0, 0, 
PYTHON_API_VERSION);
(gdb) bt
#0  initmux () at mux.c:6829
#1  0x080e1a34 in _PyImport_LoadDynamicModule ()
#2  0x080df6d5 in ?? ()
#3  0xbfda8807 in ?? ()
#4  0xbfda7797 in ?? ()
#5  0x081c68c8 in ?? ()
#6  0x08089c69 in PyObject_GetAttrString ()
#7  0x080df98b in ?? ()
#8  0x00000003 in ?? ()
#9  0x00000000 in ?? ()
(gdb) c
Continuing.
[New Thread -1420035184 (LWP 11098)]
[New Thread -1420563568 (LWP 11099)]
[New Thread -1421091952 (LWP 11100)]
[New Thread -1421620336 (LWP 11101)]
[New Thread -1422148720 (LWP 11102)]
[New Thread -1422677104 (LWP 11103)]
[New Thread -1424778352 (LWP 11104)]

Breakpoint 1, initmux () at mux.c:6829
6829      __pyx_m = Py_InitModule4("mux", __pyx_methods, 0, 0, 
PYTHON_API_VERSION);
(gdb) bt
#0  initmux () at mux.c:6829
#1  0x080e1a34 in _PyImport_LoadDynamicModule ()
#2  0x080df6d5 in ?? ()
#3  0xbfdabaf7 in ?? ()
#4  0xbfdaaa87 in ?? ()
#5  0x082aafa8 in ?? ()
#6  0x080872b0 in PyDict_GetItemString ()
#7  0x080df98b in ?? ()
#8  0x00000003 in ?? ()
#9  0x00000000 in ?? ()
(gdb) 

Hmm, maybe it's thread related ? yikes.

Simon.

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to