summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_faulthandler.py
Commit message (Collapse)AuthorAgeFilesLines
* faulthandler: dump all threads by defaultVictor Stinner2011-05-071-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 timeoutVictor Stinner2011-04-081-1/+3
|
* faulthandler: one more time, fix usage of locks in the watchdog threadVictor Stinner2011-04-081-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 threadsVictor Stinner2011-04-071-0/+7
|
* Issue #11765: don't test time.sleep() in test_faulthandlerVictor Stinner2011-04-041-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 Stinner2011-04-031-18/+15
|
* test_faulthandler: fix regex on the check_dump_traceback_threads() tracebackVictor Stinner2011-04-031-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==NULLVictor Stinner2011-04-011-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 testVictor Stinner2011-04-011-8/+24
|
* Issue #11393: The fault handler handles also SIGABRTVictor Stinner2011-04-011-0/+9
|
* Issue #11393: test_faulthandler is more tolerant on inaccurate timeVictor Stinner2011-03-311-7/+10
|
* Issue #11393: get more information on assertion error (test_faulthandler)Victor Stinner2011-03-311-2/+2
|
* Issue #11393: check that stdout is empty if we use a fileVictor Stinner2011-03-311-3/+8
|
* Issue #11393: test_faulthandler checks the exitcode after the outputVictor Stinner2011-03-311-15/+15
|
* Issue #11393: limit stack overflow test to 100 MBVictor Stinner2011-03-311-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_faulthandlerVictor Stinner2011-03-311-0/+1
|
* Issue #11393: Add the new faulthandler moduleVictor Stinner2011-03-301-0/+469