Author Timothy Lusk
Recipients Timothy Lusk
Date 2019-06-27.18:30:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561660257.77.0.368654180349.issue37434@roundup.psfhosted.org>
In-reply-to
Content
I'm working on porting an application from Python 3.6.8 to 3.7.3 and am running into this segfault.
I'm not able to pin point exactly what Python code is causing this as it's a very large enterprise application
and I can't seem to pinpoint exactly where this is coming from.

The application consistently crashes on start every time with this stack trace.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7922ae5 in type_dealloc (type=0x7fffed185480) at /usr/src/debug/Python-3.7.3/Objects/typeobject.c:3283
3283	    _PyObject_GC_UNTRACK(type);
(gdb) bt
#0  0x00007ffff7922ae5 in type_dealloc (type=0x7fffed185480) at /usr/src/debug/Python-3.7.3/Objects/typeobject.c:3283
#1  0x00007ffff78ee721 in free_keys_object (keys=0x7fffee258bc0) at /usr/src/debug/Python-3.7.3/Objects/dictobject.c:559
#2  0x00007ffff78f20af in dict_dealloc (mp=0x7fffee209c60) at /usr/src/debug/Python-3.7.3/Objects/dictobject.c:1913
#3  0x00007ffff7904d15 in module_clear (m=0x7fffee211048) at /usr/src/debug/Python-3.7.3/Objects/moduleobject.c:749
#4  0x00007ffff7a3aeda in delete_garbage (collectable=0x7fffffff7420, old=0x7ffff7dd75f0 <_PyRuntime+400>) at /usr/src/debug/Python-3.7.3/Modules/gcmodule.c:769
#5  0x00007ffff7a3b41d in collect (generation=2, n_collected=0x7fffffff7488, n_uncollectable=0x7fffffff7490, nofail=0)
    at /usr/src/debug/Python-3.7.3/Modules/gcmodule.c:924
#6  0x00007ffff7a3b845 in collect_with_callback (generation=2) at /usr/src/debug/Python-3.7.3/Modules/gcmodule.c:1036
#7  0x00007ffff7a3bcef in gc_collect_impl (module=0x7ffff615d9f8, generation=2) at /usr/src/debug/Python-3.7.3/Modules/gcmodule.c:1138
#8  0x00007ffff7a3ba13 in gc_collect (module=0x7ffff615d9f8, args=0xcc6cd0, nargs=0, kwnames=0x0) at /usr/src/debug/Python-3.7.3/Modules/clinic/gcmodule.c.h:100
#9  0x00007ffff78b48e5 in _PyMethodDef_RawFastCallKeywords (method=0x7ffff7d8b800 <GcMethods+256>, self=0x7ffff615d9f8, args=0xcc6cd0, nargs=0, kwnames=0x0)
    at /usr/src/debug/Python-3.7.3/Objects/call.c:656
#10 0x00007ffff78b4bab in _PyCFunction_FastCallKeywords (func=0x7ffff615ecf0, args=0xcc6cd0, nargs=0, kwnames=0x0)
    at /usr/src/debug/Python-3.7.3/Objects/call.c:730
#11 0x00007ffff79cbf2c in call_function (pp_stack=0x7fffffff78b8, oparg=0, kwnames=0x0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:4568
#12 0x00007ffff79c6344 in _PyEval_EvalFrameDefault (f=0xcc6b08, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:3093
#13 0x00007ffff79b8067 in PyEval_EvalFrameEx (f=0xcc6b08, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:547
#14 0x00007ffff78b3b1a in function_code_fastcall (co=0x7ffff620bc00, args=0x7ffff64fef90, nargs=1, globals=0x7ffff64e6120)
    at /usr/src/debug/Python-3.7.3/Objects/call.c:283
#15 0x00007ffff78b4096 in _PyFunction_FastCallKeywords (func=0x7fffedb63488, stack=0x7ffff64fef88, nargs=1, kwnames=0x0)
    at /usr/src/debug/Python-3.7.3/Objects/call.c:408
#16 0x00007ffff79cc357 in call_function (pp_stack=0x7fffffff9140, oparg=1, kwnames=0x0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:4616
#17 0x00007ffff79c64c9 in _PyEval_EvalFrameDefault (f=0x7ffff64fee08, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:3124
#18 0x00007ffff79b8067 in PyEval_EvalFrameEx (f=0x7ffff64fee08, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:547
#19 0x00007ffff79ca14f in _PyEval_EvalCodeWithName (_co=0x7ffff620bc90, globals=0x7ffff64e6120, locals=0x7ffff64e6120, args=0x0, argcount=0, kwnames=0x0, 
    kwargs=0x0, kwcount=0, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:3930
#20 0x00007ffff79ca347 in PyEval_EvalCodeEx (_co=0x7ffff620bc90, globals=0x7ffff64e6120, locals=0x7ffff64e6120, args=0x0, argcount=0, kws=0x0, kwcount=0, 
    defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:3959
#21 0x00007ffff79b7ff1 in PyEval_EvalCode (co=0x7ffff620bc90, globals=0x7ffff64e6120, locals=0x7ffff64e6120) at /usr/src/debug/Python-3.7.3/Python/ceval.c:524
#22 0x00007ffff79b2963 in builtin_exec_impl (module=0x7ffff7e61c28, source=0x7ffff620bc90, globals=0x7ffff64e6120, locals=0x7ffff64e6120)
    at /usr/src/debug/Python-3.7.3/Python/bltinmodule.c:1079
#23 0x00007ffff79aff3b in builtin_exec (module=0x7ffff7e61c28, args=0x6c5b58, nargs=2) at /usr/src/debug/Python-3.7.3/Python/clinic/bltinmodule.c.h:283
#24 0x00007ffff78b48bd in _PyMethodDef_RawFastCallKeywords (method=0x7ffff7d7bae0 <builtin_methods+480>, self=0x7ffff7e61c28, args=0x6c5b58, nargs=2, 
    kwnames=0x0) at /usr/src/debug/Python-3.7.3/Objects/call.c:651
#25 0x00007ffff78b4bab in _PyCFunction_FastCallKeywords (func=0x7ffff6566d80, args=0x6c5b58, nargs=2, kwnames=0x0)
    at /usr/src/debug/Python-3.7.3/Objects/call.c:730
#26 0x00007ffff79cbf2c in call_function (pp_stack=0x7fffffffada0, oparg=2, kwnames=0x0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:4568
#27 0x00007ffff79c64c9 in _PyEval_EvalFrameDefault (f=0x6c5998, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:3124
#28 0x00007ffff79b8067 in PyEval_EvalFrameEx (f=0x6c5998, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:547
#29 0x00007ffff79ca14f in _PyEval_EvalCodeWithName (_co=0x7ffff648d930, globals=0x7ffff651b360, locals=0x0, args=0x67c820, argcount=5, kwnames=0x0, 
    kwargs=0x67c848, kwcount=0, kwstep=1, defs=0x7ffff6487a58, defcount=5, kwdefs=0x0, closure=0x0, name=0x7ffff61fa230, qualname=0x7ffff61fa230)
    at /usr/src/debug/Python-3.7.3/Python/ceval.c:3930
#30 0x00007ffff78b41c1 in _PyFunction_FastCallKeywords (func=0x7ffff61e89d8, stack=0x67c820, nargs=5, kwnames=0x0)
    at /usr/src/debug/Python-3.7.3/Objects/call.c:433
#31 0x00007ffff79cc357 in call_function (pp_stack=0x7fffffffc830, oparg=5, kwnames=0x0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:4616
#32 0x00007ffff79c64c9 in _PyEval_EvalFrameDefault (f=0x67c678, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:3124
#33 0x00007ffff79b8067 in PyEval_EvalFrameEx (f=0x67c678, throwflag=0) at /usr/src/debug/Python-3.7.3/Python/ceval.c:547
--Type <RET> for more, q to quit, c to continue without paging--
#34 0x00007ffff79ca14f in _PyEval_EvalCodeWithName (_co=0x7ffff6485270, globals=0x7ffff651b360, locals=0x0, args=0x7ffff6462620, argcount=2, kwnames=0x0, 
    kwargs=0x0, kwcount=0, kwstep=2, defs=0x7ffff64db4c0, defcount=1, kwdefs=0x0, closure=0x0, name=0x7ffff64a0150, qualname=0x7ffff64a0150)
    at /usr/src/debug/Python-3.7.3/Python/ceval.c:3930
#35 0x00007ffff78b3f8b in _PyFunction_FastCallDict (func=0x7ffff6218730, args=0x7ffff6462620, nargs=2, kwargs=0x0)
    at /usr/src/debug/Python-3.7.3/Objects/call.c:376
#36 0x00007ffff78b38af in PyObject_Call (callable=0x7ffff6218730, args=0x7ffff6462608, kwargs=0x0) at /usr/src/debug/Python-3.7.3/Objects/call.c:226
#37 0x00007ffff7a3195e in pymain_run_module (modname=0x603490 L"cb.enterprise.main", set_argv0=1) at /usr/src/debug/Python-3.7.3/Modules/main.c:320
#38 0x00007ffff7a399ab in pymain_run_python (pymain=0x7fffffffe1d0) at /usr/src/debug/Python-3.7.3/Modules/main.c:2874
#39 0x00007ffff7a39ee2 in pymain_main (pymain=0x7fffffffe1d0) at /usr/src/debug/Python-3.7.3/Modules/main.c:3038
#40 0x00007ffff7a39f9b in _Py_UnixMain (argc=5, argv=0x7fffffffe318) at /usr/src/debug/Python-3.7.3/Modules/main.c:3073
#41 0x00007ffff67c6d20 in __libc_start_main () from /lib64/libc.so.6
#42 0x0000000000400691 in _start ()
History
Date User Action Args
2019-06-27 18:30:57Timothy Lusksetrecipients: + Timothy Lusk
2019-06-27 18:30:57Timothy Lusksetmessageid: <1561660257.77.0.368654180349.issue37434@roundup.psfhosted.org>
2019-06-27 18:30:57Timothy Lusklinkissue37434 messages
2019-06-27 18:30:57Timothy Luskcreate