Hi,
my python project crashes in a non reproducible way. With gdb I got
the backtraces given below.
How can I possibly figure out the reason for the segfaults that occur
under Linux and Windows, using Python 2.6 in both cases.
Thanks
Dierk
Program received signal SIGSEGV, Segmentation fault.
0x080902bf in dict_dealloc (mp=0xbfbf0b4) at ../Objects/dictobject.c:
911
911 ../Objects/dictobject.c: No such file or directory.
in ../Objects/dictobject.c
(gdb) bt
#0 0x080902bf in dict_dealloc (mp=0xbfbf0b4) at ../Objects/
dictobject.c:911
#1 0x08090304 in dict_dealloc (mp=0xa805d74) at ../Objects/
dictobject.c:911
#2 0x08090304 in dict_dealloc (mp=0xbc2768c) at ../Objects/
dictobject.c:911
#3 0x08090304 in dict_dealloc (mp=0xbc27c64) at ../Objects/
dictobject.c:911
#4 0x080ab611 in subtype_dealloc (self=
to continue, or q to quit---
Frame 0x969ddb4, for file analyse.py, line 398, in analyseall
(options=,
TIMEFMT='%d.%m.%Y', TIMESPAN_DAYS=365, projects=[('ant', 2002, 2008),
('apache', 1995, 2009), ('gcc', 2003, 2009), ('gimp', 2003, 2009),
('gnucash', 2001, 2009), ('gnumeric', 2000, 2009), ('gtk', 2000,
2009), ('kde', 2003, 2009), ('maemo', 2006, 2009), ('python', 1999,
2009), ('samba', 2004, 2009), ('tomcat', 2000, 2009), ('wine', 2003,
2009)],
ra=: {'grClusterCoeff': ,
'grDensity': , 'grNumberMails': 1593,
'mailsPerDay': , 'grMedianDegree':
, 'productivity': , 'grDistKSTest': ,
'grEdges': 269, 'grBetweenCentNetw': ,
'grNumberNodes': 122, 'grBetweenCentNodeMedian': , 'gr...(truncated), throwflag=0) at ../Python/
ceval.c:1010
#8 0x080e1bb0 in fast_function (f=
Frame 0x82eda8c, for file analyse.py, line 472, in (),
throwflag=0) at ../Python/ceval.c:3836
#9 call_function (f=
Frame 0x82eda8c, for file analyse.py, line 472, in (),
throwflag=0) at ../Python/ceval.c:3771
#10 PyEval_EvalFrameEx (f=
Frame 0x82eda8c, for file analyse.py, line 472, in (),
throwflag=0) at ../Python/ceval.c:2412
Program received signal SIGSEGV, Segmentation fault.
visit_decref (op=, data=0x0) at ../Modules/
gcmodule.c:271
271 ../Modules/gcmodule.c: No such file or directory.
in ../Modules/gcmodule.c
(gdb) bt
#0 visit_decref (op=, data=0x0) at ../
Modules/gcmodule.c:271
#1 0x0809223d in dict_traverse (op=
{'_sa_adapter': , owner_state=, _strong_obj=None, callables={}, session_id=158970732,
modified=False,
class_=]), _validators={},
_inheriting_mappers=set([]), _with_polymorphic_selectable=<...>,
single=False, allow_partial_pks=True,
_dependency_processors=[,
direction=,
parent=]), _validators={}, _inheriting_mappers=set([]),
single=False, allow_partial_pks=True, _dependency_processors=[],
tables=[<...>], order_by=False,
primary_key=]),
index=None, server_onupdate=None, name='id', is_literal=False,
nullable=False, default=None, quote=None, autoincrement=True,
onupdate=None, foreign_keys=, _...(truncated), visit=0x810c460 , arg=0x0)
at ../Objects/dictobject.c:2003
#2 0x0810cebc in subtract_refs (generation=)
at ../Modules/gcmodule.c:296
#3 collect (generation=) at ../Modules/
gcmodule.c:817
#4 0x0810d8eb in collect_generations (basicsize=28) at ../Modules/
gcmodule.c:924
#5 _PyObject_GC_Malloc (basicsize=28) at ../Modules/gcmodule.c:1363
#6 0x080ab65b in PyType_GenericAlloc (type=0x8236be0, nitems=0) at ../
Objects/typeobject.c:758
#7 0x080bc9a7 in weakref___new__ (type=0x8236be0, args=
(, ), kwargs=0x0)
at ../Objects/weakrefobject.c:300
#8 0x080ad0dd in type_call (type=0x8236be0, args=
(, ), kwds=0x0)
at ../Objects/typeobject.c:726
#9 0x0806245a in PyObject_Call (func=, arg=
(, ), kw=0x0)
at ../Objects/abstract.c:2492
#10 0x080e0471 in do_call (f=
Frame 0x9aabb04, for file /usr/local/lib/python2.6/dist-packages/
SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/state.py, line 29, in
__init__
(self=]), _validators={},
_inheriting_mappers=set([]), _with_polymorphic_selectable=<...>,
single=False, allow_partial_pks=True,
_dependency_processors=[,
direction=,
parent=<...>, post_update=False, passive_updates=True,
prop=,
<...>)], _compile_finished=True, lazy=True, uselist=False,
collection_class=None, back_populates=None, table=<...>,
innerjoin=False, order_by=False, join_depth=None,
strategy=, target=<...>, parent=<...>,
use_get=True, uselist=False,
_LazyLoader__lazywhere=<_BinaryExpression(negate=, modifiers={}, right=<...>, opera...(truncated), throwflag=0)
at ../Python/ceval.c:3968
--
http://mail.python.org/mailman/listinfo/python-list