[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
STINNER Victor
report at bugs.python.org
Wed Oct 20 01:48:30 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> One other concern: many OSes (e.g. Linux distributions) implement
> some kind of system-wide crash-catching utility; ...
Even if it would be possible to call the original signal handler, I think that it would be better to just disable this feature if a (better?) program also watchs for segfaults.
We should provide different ways to enable and/or disable this feature:
- command line option? (eg. see issue #10089)
- environment variable?
- add a function to the sys module (or another module) to enable or disable this feature? (eg. sys.getsegfaultenabled(), sys.setsegfaultenabled(False))
I don't think that a command line option and an environment variable is pratical for an OS distributor.
With a sys function, the OS distributor can call it in the site module.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8863>
_______________________________________
More information about the Python-bugs-list
mailing list