summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_faulthandler.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix indentation.Ezio Melotti2013-03-051-1/+1
|
* #11732: add a new suppress_crash_popup() context manager to test.support.Ezio Melotti2013-03-051-2/+4
|
* Closes #15969: rename new API to have consistent names in the faulthandler ↵Georg Brandl2012-09-221-19/+19
| | | | module.
* Issue #15463: Write a test for faulthandler truncating the name of functionsVictor Stinner2012-08-011-0/+24
| | | | to 500 characters.
* Fix initialization of the faulthandler moduleVictor Stinner2012-07-311-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 Sajip2012-05-061-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 Natali2011-09-011-0/+3
| | | | sigaltstack(2) doesn't work when linked with pthread.
* Issue #12700: fix test_faulthandler for Mac OS X LionVictor Stinner2011-08-081-4/+5
| | | | Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion.
* Issue #12550: Add chain optional argument to faulthandler.register()Victor Stinner2011-07-131-3/+28
| | | | Call the previous signal handler if chain is True.
* Issue #12400: test_faulthandler now uses sys.__stderr__Victor Stinner2011-06-291-5/+1
| | | | instead of open(os.devnull, 'w')
* Issue #12400: fix test_faulthandler if regrtest captures sys.stderrVictor Stinner2011-06-291-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) inVictor Stinner2011-06-011-6/+7
| | | | _check_dump_tracebacks_later() to avoid failures if the system is slow.
* 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