This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmalcolm
Recipients Arfrever, dmalcolm, pitrou, vstinner
Date 2011-03-21.15:59:13
SpamBayes Score 1.0091927e-13
Marked as misclassified No
Message-id <1300723154.96.0.0719200814247.issue11393@psf.upfronthosting.co.za>
In-reply-to
Content
Various thoughts/nitpicking:
  - is it possible to indicate with a coding convention (e.g. comments) which parts of the code are intended to be called from a signal handler?  It seems worth making this explicit.  Or perhaps put it all in one file?
  - within tests.py, check_enabled and check_disabled seem to me to be misnamed; it's not at all clear what they do.
      I'd suggest renaming "get_output" to "run_code", perhaps (adding a docstring specifying the returned value)
      "check_enabled" seems to mean "assertCodeLeadsToOutput" or somesuch.

Within backtrace.py:
  - do all platforms supported by Python have a concept of numeric filedescriptors? I was wondering if FILE* might be a better abstraction here (with flushing), then read http://bugs.python.org/issue8863#msg124385 which gives the reason: fprintf etc are not signal-safe
  - all of the calls to "write" ignore the return code, leading to warnings from GCC.  I don't think there's any good way to handle errors from these calls, though.

Might be nice to also have SIGABRT (as per a c-level assertion failure), exposed 

NB: on Fedora/RHEL we also have a whole-system crash detection system (called "abrt": https://fedorahosted.org/abrt/ ), and in theory, that means that for me, crash reports get run using the gdb pretty-print hooks.

I'm wondering to what extent this would interract with whole-system crash-detection tools: would it e.g. mask a SIGSEGV, so that the crash is not seen by that system?
History
Date User Action Args
2011-03-21 15:59:15dmalcolmsetrecipients: + dmalcolm, pitrou, vstinner, Arfrever
2011-03-21 15:59:14dmalcolmsetmessageid: <1300723154.96.0.0719200814247.issue11393@psf.upfronthosting.co.za>
2011-03-21 15:59:14dmalcolmlinkissue11393 messages
2011-03-21 15:59:13dmalcolmcreate