[Python-bugs-list] Coredump in moduleobjectc.c:134 (PR#79)
ajung@sz-sb.de
ajung@sz-sb.de
Mon, 13 Sep 1999 07:29:10 -0400 (EDT)
Full_Name: Andreas Jung
Version: 1.5.2
OS: Solaris 2.6/Sparc
Submission from: saarland.sz-sb.de (212.88.192.10)
(ojs@bonnie:~/PROD/lib/site-python/ojs) 73 : !gdb
gdb python core
GDB is free software and you are welcome to 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.
GDB 4.16 (sparc-sun-solaris2.4), Copyright 1996 Free Software Foundation,
Inc...
Core was generated by `python -v prod_descr.py'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from
/usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1...done.
Reading symbols from
/ojs/home/ojs/PROD/lib/python1.5/site-packages/DateTime/mxDateTime/mxDateTime.so...done.
#0 0x49220 in _PyModule_Clear (m=0xc76e4) at moduleobject.c:134
134 if (value != Py_None && PyString_Check(key)) {
(gdb) bt
#0 0x49220 in _PyModule_Clear (m=0xc76e4) at moduleobject.c:134
#1 0x29fe4 in PyImport_Cleanup () at import.c:308
#2 0x30d18 in Py_Finalize () at pythonrun.c:206
#3 0x21c8c in Py_Main (argc=3, argv=0xeffff964) at main.c:298
#4 0x216e4 in main (argc=3, argv=0xeffff964) at python.c:12
I get the traceback above from a small module that
contains just 2 import statements. One module contains just
the declaration of 2 classes and the second module contains some
dicts,lists...nothing special. When I change the order of both import
statements in the main script no core dump occurs.
Any idea ?
Andreas