| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
|
|
|
|
| |
On Windows 8, 8.1 and 10 at least, the exit code is the exception
code (no bit is cleared).
|
|
|
|
|
|
|
|
|
|
| |
on Windows (#1924)
* bpo-30557: faulthandler now correctly filters and displays exception codes on Windows
* Adds test for non-fatal exceptions.
* Adds bpo number to comment.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-30125: Cleanup faulthandler.c
* Use size_t type for iterators
* Add { ... }
* bpo-30125: Fix faulthandler.disable() on Windows
On Windows, faulthandler.disable() now removes the exception handler
installed by faulthandler.enable().
|
| |
|
|
|
|
|
| |
with a cosmetic change to add a commit message with the issue number,
missing from the previous two commits.
|
| |
|
|
|
|
| |
but not in the expressions. Also, require expressions to begin and end with literal curly braces.
|
|
|
|
|
|
|
| |
And most of the tools.
Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
|
|
|
|
| |
before beta 2. I also need to look in to why test_tools/test_unparse fails with the files that are now being skipped.
|
|\
| |
| |
| | |
messages.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Issue #23848, #26622:
* faulthandler now only logs fatal Windows exceptions.
* write error code as decimal, not as hexadecimal
* replace "Windows exception" with "Windows fatal exception"
|
| |
| |
| |
| |
| |
| | |
Issue #23848: On Windows, faulthandler.enable() now also installs an exception
handler to dump the traceback of all Python threads on any Windows exception,
not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
|
|/
|
|
|
|
|
|
|
|
|
| |
Issue #26563:
* Add _PyGILState_GetInterpreterStateUnsafe() function: the single
PyInterpreterState used by this process' GILState implementation.
* Enhance _Py_DumpTracebackThreads() to retrieve the interpreter state from
autoInterpreterState in last resort. The function now accepts NULL for interp
and current_tstate parameters.
* test_faulthandler: fix a ResourceWarning when test is interrupted by CTRL+c
|
|
|
|
| |
Issue #26558.
|
|
|
|
| |
Patch by Christie Wilson.
|
|
|
|
| |
subprocess doesn't support pass_fds on Windows.
|
|
|
|
| |
functions of faulthandler now accept file descriptors. Patch by Wei Wu.
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
mode. Explicitly remove the PYTHONFAULTHANDLER environment variable before
launching a child interpreter when its presence would impact the test (the
reason -E was being used in the first place).
This enables running the test in an environment where other Python environment variables must be set in order for things to run (such as using PYTHONHOME to
tell an embedded interpreter where it should think it lives).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
mode. Explicitly remove the PYTHONFAULTHANDLER environment variable before
launching a child interpreter when its presence would impact the test (the
reason -E was being used in the first place).
This enables running the test in an environment where other Python environment
variables must be set in order for things to run (such as using PYTHONHOME to
tell an embedded interpreter where it should think it lives).
|
|\ \
| |/
| |
| |
| |
| |
| | |
_read_null(), because _read_null() cannot be used on AIX. On AIX, reading from
NULL is allowed: the first page of memory is a mapped read-only on AIX.
_read_null() and _sigabrt() don't accept parameters.
|
| |
| |
| |
| |
| | |
because _read_null() cannot be used on AIX. On AIX, reading from NULL is
allowed: the first page of memory is a mapped read-only on AIX.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| | |
Patch written by Xavier de Gaye.
|
| |
| |
| |
| | |
Patch written by Xavier de Gaye.
|
|/
|
|
|
|
|
|
| |
- Use _testcapi.raise_signal() in test_signal
- close also os.pipe() file descriptors in some test_signal tests where they
were not closed properly
- Remove faulthandler._sigill() and faulthandler._sigbus(): reuse
_testcapi.raise_signal() in test_faulthandler
|
|
|
|
|
| |
None: RuntimeError("sys.stderr is None") instead of AttributeError("'NoneType'
object has no attribute 'fileno'").
|
|
|
|
| |
upside down.
|
|
|
|
|
|
| |
suppression, and use it in more tests.
Patch by Valerie Lambert and Zachary Ware.
|
|
|
|
|
| |
faulthandler module if the variable is non-empty. Same behaviour than other
variables like PYTHONDONTWRITEBYTECODE.
|
|\
| |
| |
| |
| |
| |
| | |
AIX maps the first page of memory at address zero as valid, read-only. Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.
|
| |
| |
| |
| |
| |
| |
| | |
AIX maps the first page of memory at address zero as valid, read-only. Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.
|
| |
| |
| |
| |
| | |
(test.regrtest and test.script_helper enable faulthandler module in
subprocesses).
|
|\ \
| |/
| |
| | |
faulthandler._read_null() is not reliable: it does not crash on AIX.
|
| |
| |
| |
| | |
faulthandler._read_null() is not reliable: it does not crash on AIX.
|
|/
|
|
| |
instead of manually listing tests for test.support.run_unittest().
|
| |
|
| |
|
|
|
|
| |
module.
|
|
|
|
| |
to 500 characters.
|
|
|
|
|
|
|
| |
faulthandler requires the importlib if "-X faulthandler" option is present on
the command line, so initialize faulthandler after importlib.
Add also an unit test.
|
|
|
|
| |
condition slightly to allow for a Windows-specific error message.
|
|
|
|
| |
sigaltstack(2) doesn't work when linked with pthread.
|
|
|
|
| |
Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion.
|
|
|
|
| |
Call the previous signal handler if chain is True.
|
|
|
|
| |
instead of open(os.devnull, 'w')
|
|
|
|
| |
faulthandler.enable() requires that sys.stderr has a fileno() method.
|
|
|
|
| |
_check_dump_tracebacks_later() to avoid failures if the system is slow.
|