Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix indentation. | Ezio Melotti | 2013-03-05 | 1 | -1/+1 |
| | |||||
* | #11732: add a new suppress_crash_popup() context manager to test.support. | Ezio Melotti | 2013-03-05 | 1 | -2/+4 |
| | |||||
* | Closes #15969: rename new API to have consistent names in the faulthandler ↵ | Georg Brandl | 2012-09-22 | 1 | -19/+19 |
| | | | | module. | ||||
* | Issue #15463: Write a test for faulthandler truncating the name of functions | Victor Stinner | 2012-08-01 | 1 | -0/+24 |
| | | | | to 500 characters. | ||||
* | Fix initialization of the faulthandler module | Victor Stinner | 2012-07-31 | 1 | -0/+15 |
| | | | | | | | faulthandler requires the importlib if "-X faulthandler" option is present on the command line, so initialize faulthandler after importlib. Add also an unit test. | ||||
* | Closes #14729: Allowed test to pass on Windows by adjusting the test ↵ | Vinay Sajip | 2012-05-06 | 1 | -1/+1 |
| | | | | condition slightly to allow for a Windows-specific error message. | ||||
* | Issue #12868: Skip test_faulthandler.test_stack_overflow() on OpenBSD: | Charles-François Natali | 2011-09-01 | 1 | -0/+3 |
| | | | | sigaltstack(2) doesn't work when linked with pthread. | ||||
* | Issue #12700: fix test_faulthandler for Mac OS X Lion | Victor Stinner | 2011-08-08 | 1 | -4/+5 |
| | | | | Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion. | ||||
* | Issue #12550: Add chain optional argument to faulthandler.register() | Victor Stinner | 2011-07-13 | 1 | -3/+28 |
| | | | | Call the previous signal handler if chain is True. | ||||
* | Issue #12400: test_faulthandler now uses sys.__stderr__ | Victor Stinner | 2011-06-29 | 1 | -5/+1 |
| | | | | instead of open(os.devnull, 'w') | ||||
* | Issue #12400: fix test_faulthandler if regrtest captures sys.stderr | Victor Stinner | 2011-06-29 | 1 | -8/+22 |
| | | | | faulthandler.enable() requires that sys.stderr has a fileno() method. | ||||
* | test_faulthandler: use a longer sleep (2.5 sec instead of 1.3 sec) in | Victor Stinner | 2011-06-01 | 1 | -6/+7 |
| | | | | _check_dump_tracebacks_later() to avoid failures if the system is slow. | ||||
* | faulthandler: dump all threads by default | Victor Stinner | 2011-05-07 | 1 | -6/+6 |
| | | | | | | | | | | * Set the default value of all_threads arguments to True * Py_FatalError() dumps all threads, instead of only the current thread Dump only the current thread is not reliable. In some cases, Python is unable to retrieve the state of the current thread and so is unable to dump the traceback. faulthandler keeps a reference to the interpreter and so is always able to dump the traceback of all threads. | ||||
* | faulthandler: dump_tracebacks_later() displays also the timeout | Victor Stinner | 2011-04-08 | 1 | -1/+3 |
| | |||||
* | faulthandler: one more time, fix usage of locks in the watchdog thread | Victor Stinner | 2011-04-08 | 1 | -18/+27 |
| | | | | | | | | | | | * Write a new test to ensure that dump_tracebacks_later() still works if it was already called and then cancelled before * Don't use a variable to check the status of the thread, only rely on locks * The thread only releases cancel_event if it was able to acquire it (if the timer was interrupted) * The main thread always hold this lock. It is only released when faulthandler_thread() is interrupted until this thread exits, or at Python exit. | ||||
* | faulthandler: fix compilating without threads | Victor Stinner | 2011-04-07 | 1 | -0/+7 |
| | |||||
* | Issue #11765: don't test time.sleep() in test_faulthandler | Victor Stinner | 2011-04-04 | 1 | -10/+2 |
| | | | | | | time.time() and/or time.sleep() are not accurate on Windows, don't test them in test_faulthandler. Anyway, the check was written for an old implementation of dump_tracebacks_later(), it is not more needed. | ||||
* | test_faulthandler: improve the test on dump_tracebacks_later(cancel=True) | Victor Stinner | 2011-04-03 | 1 | -18/+15 |
| | |||||
* | test_faulthandler: fix regex on the check_dump_traceback_threads() traceback | Victor Stinner | 2011-04-03 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | The traceback may contain "_is_owned": Thread 0x40962b90: File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 220 in _is_owned File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 227 in wait File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 421 in wait File "<string>", line 23 in run File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 735 in _bootstrap_inner File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 708 in _bootstrap Current thread XXX: File "<string>", line 10 in dump File "<string>", line 28 in <module> | ||||
* | Issue #11393: signal of user signal displays tracebacks even if tstate==NULL | Victor Stinner | 2011-04-01 | 1 | -3/+6 |
| | | | | | | | * faulthandler_user() displays the tracebacks of all threads even if it is unable to get the state of the current thread * test_faulthandler: only release the GIL in test_gil_released() check * create check_signum() subfunction | ||||
* | Issue #11393: Fix faulthandler.disable() and add a test | Victor Stinner | 2011-04-01 | 1 | -8/+24 |
| | |||||
* | Issue #11393: The fault handler handles also SIGABRT | Victor Stinner | 2011-04-01 | 1 | -0/+9 |
| | |||||
* | Issue #11393: test_faulthandler is more tolerant on inaccurate time | Victor Stinner | 2011-03-31 | 1 | -7/+10 |
| | |||||
* | Issue #11393: get more information on assertion error (test_faulthandler) | Victor Stinner | 2011-03-31 | 1 | -2/+2 |
| | |||||
* | Issue #11393: check that stdout is empty if we use a file | Victor Stinner | 2011-03-31 | 1 | -3/+8 |
| | |||||
* | Issue #11393: test_faulthandler checks the exitcode after the output | Victor Stinner | 2011-03-31 | 1 | -15/+15 |
| | |||||
* | Issue #11393: limit stack overflow test to 100 MB | Victor Stinner | 2011-03-31 | 1 | -3/+5 |
| | | | | Stop if the stack overflow doesn't occur after allocating 100 MB on the stack. | ||||
* | Issue #11393: Disable test_stack_overflow of test_faulthandler | Victor Stinner | 2011-03-31 | 1 | -0/+1 |
| | |||||
* | Issue #11393: Add the new faulthandler module | Victor Stinner | 2011-03-30 | 1 | -0/+469 |