[issue42697] 3.8.7rc1 regression: 'free(): invalid pointer' after running backports-zoneinfo test suite

Michał Górny report at bugs.python.org
Sun Dec 20 17:23:40 EST 2020


Michał Górny <mgorny at gentoo.org> added the comment:

A more complete backtrace:

#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007fa633b20536 in __GI_abort () at abort.c:79
#2  0x00007fa633b79bf7 in __libc_message (action=action at entry=do_abort, fmt=fmt at entry=0x7fa633c8c3b5 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007fa633b81a7a in malloc_printerr (str=str at entry=0x7fa633c8a593 "free(): invalid pointer") at malloc.c:5389
#4  0x00007fa633b82e5c in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:4201
#5  0x000055ea845c6170 in _PyMem_RawFree (ctx=0x0, ptr=0x55ea848c1a60 <small_ints+192>) at Objects/obmalloc.c:127
#6  0x000055ea845c6f46 in PyMem_RawFree (ptr=0x55ea848c1a60 <small_ints+192>) at Objects/obmalloc.c:595
#7  0x000055ea845c7fa0 in _PyObject_Free (ctx=0x0, p=0x55ea848c1a60 <small_ints+192>) at Objects/obmalloc.c:1898
#8  0x000055ea845c726e in PyObject_Free (ptr=0x55ea848c1a60 <small_ints+192>) at Objects/obmalloc.c:709
#9  0x000055ea845dda33 in object_dealloc (self=0x55ea848c1a60 <small_ints+192>) at Objects/typeobject.c:3784
#10 0x000055ea845c60a5 in _Py_Dealloc (op=0x55ea848c1a60 <small_ints+192>) at Objects/object.c:2215
#11 0x000055ea845d3b55 in _Py_DECREF (filename=0x55ea847a8de0 "./Include/object.h", lineno=541, op=0x55ea848c1a60 <small_ints+192>)
    at ./Include/object.h:478
#12 0x000055ea845d3b83 in _Py_XDECREF (op=0x55ea848c1a60 <small_ints+192>) at ./Include/object.h:541
#13 0x000055ea845d4627 in tupledealloc (op=0x7fa63195d6c0) at Objects/tupleobject.c:247
#14 0x000055ea845c60a5 in _Py_Dealloc (op=0x7fa63195d6c0) at Objects/object.c:2215
#15 0x000055ea84743afb in _Py_DECREF (filename=0x55ea8482b9a0 "./Include/object.h", lineno=541, op=0x7fa63195d6c0) at ./Include/object.h:478
#16 0x000055ea84743b29 in _Py_XDECREF (op=0x7fa63195d6c0) at ./Include/object.h:541
#17 0x000055ea84745b5a in code_dealloc (co=0x7fa631b68450) at Objects/codeobject.c:552
#18 0x000055ea845c60a5 in _Py_Dealloc (op=0x7fa631b68450) at Objects/object.c:2215
#19 0x000055ea847525d2 in _Py_DECREF (filename=0x55ea8482e47c "Objects/funcobject.c", lineno=576, op=0x7fa631b68450) at ./Include/object.h:478
#20 0x000055ea84753b6a in func_clear (op=0x7fa631b768b0) at Objects/funcobject.c:576
#21 0x000055ea84753de0 in func_dealloc (op=0x7fa631b768b0) at Objects/funcobject.c:597
#22 0x000055ea845c60a5 in _Py_Dealloc (op=0x7fa631b768b0) at Objects/object.c:2215
#23 0x000055ea845addff in _Py_DECREF (filename=0x55ea847a3320 "./Include/object.h", lineno=541, op=0x7fa631b768b0) at ./Include/object.h:478
#24 0x000055ea845ade4f in _Py_XDECREF (op=0x7fa631b768b0) at ./Include/object.h:541
#25 0x000055ea845aeed8 in free_keys_object (keys=0x55ea84e72580) at Objects/dictobject.c:584
#26 0x000055ea845ae524 in dictkeys_decref (dk=0x55ea84e72580) at Objects/dictobject.c:324
#27 0x000055ea845b1c9c in PyDict_Clear (op=0x7fa63198b740) at Objects/dictobject.c:1729
#28 0x000055ea845dd683 in type_clear (type=0x55ea84e12ba0) at Objects/typeobject.c:3594
#29 0x000055ea845d8720 in subtype_clear (self=0x55ea84e12ba0) at Objects/typeobject.c:1147
#30 0x000055ea846ac4aa in delete_garbage (state=0x55ea848dd6f8 <_PyRuntime+344>, collectable=0x7fff13eb2e10, old=0x55ea848dd740 <_PyRuntime+416>)
    at Modules/gcmodule.c:948
#31 0x000055ea846aca23 in collect (state=0x55ea848dd6f8 <_PyRuntime+344>, generation=2, n_collected=0x0, n_uncollectable=0x0, nofail=1)
    at Modules/gcmodule.c:1123
#32 0x000055ea846ae0da in _PyGC_CollectNoFail () at Modules/gcmodule.c:1866
#33 0x000055ea846616da in PyImport_Cleanup () at Python/import.c:599
#34 0x000055ea8467df93 in Py_FinalizeEx () at Python/pylifecycle.c:1233
#35 0x000055ea84577e8a in Py_RunMain () at Modules/main.c:691
#36 0x000055ea84577f22 in pymain_main (args=0x7fff13eb2ff0) at Modules/main.c:719
#37 0x000055ea84577fe2 in Py_BytesMain (argc=6, argv=0x7fff13eb3138) at Modules/main.c:743
#38 0x000055ea84576785 in main (argc=6, argv=0x7fff13eb3138) at ./Programs/python.c:16

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42697>
_______________________________________


More information about the Python-bugs-list mailing list