[issue12423] signal handler doesn't handle SIGABRT from os.abort

Howard A. Landman report at bugs.python.org
Wed Jul 22 20:56:59 EDT 2020


Howard A. Landman <howard at riverrock.org> added the comment:

I don't think changing the documentation makes this not be a bug. My situation: I have a Python 3.7.3 program that reliably dies (after about 13 hours, having called its measure() method between 118.6M and 118.7M times) with free(): invalid pointer, which calls abort(). I believe that this is a bug in Python; and it's NOT a memory leak, since the size of the program doesn't change at all over time and is under 14 MB (real). I would like to debug it. This basically says "you're screwed". I can't catch the abort, and I can't use python3-dbg because it won't bind with the RPi.GPIO or spidev libraries. So all I can get from a core dump is that free() is being called by list_ass_item() at ../Objects/listobject.c line 739. Assuming that I'm right and that this is a bug in Python, how do you expect anyone to ever debug it? At a bare minimum, there needs to be an easy way to get a full stack trace through both Python and C.

----------
nosy: +Howard_Landman

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


More information about the Python-bugs-list mailing list