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.

classification
Title: faulthandler: failure without threads
Type: behavior Stage:
Components: Tests Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vstinner Nosy List: python-dev, skrah, vstinner
Priority: normal Keywords: patch

Created on 2011-04-11 06:26 by skrah, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
timeout.patch vstinner, 2011-04-11 12:41 review
Messages (4)
msg133500 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2011-04-11 06:26
Hi, the tests fail on Debian if the option --without-threads is used:

./configure --with-pydebug --without-threads
make
make test

./python -Wd -E -bb  ./Lib/test/regrtest.py -l 
== CPython 3.3a0 (default:9140f2363623+, Jan 30 2011, 04:52:32) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
==   Linux-2.6.23.1-i686-with-debian-4.0 little-endian
==   /home/stefan/hg/default/build/test_python_24329
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=1, verbose=0, bytes_warning=2, quiet=0)
[  1/355] test_grammar
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 1607, in <module>
    main()
  File "./Lib/test/regrtest.py", line 650, in main
    rerun_failed=verbose3, timeout=timeout)
  File "./Lib/test/regrtest.py", line 824, in runtest
    faulthandler.dump_tracebacks_later(timeout, exit=True)
AttributeError: 'module' object has no attribute 'dump_tracebacks_later'
msg133515 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-04-11 12:41
Attached patch disables regrtest.py timeout if faulthandler.dump_tracebacks_later() is missing. It prints a warning at startup, and an error if --timeout option is used.
msg133520 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2011-04-11 14:07
The patch works. Is it expected that dump_tracebacks_later is missing
when building --without-threads? If so, the warning is probably
confusing for the uninitiated.
msg133616 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-04-12 23:07
New changeset 64e8d371812c by Victor Stinner in branch 'default':
Fix #11825: disable regrtest timeout if Python doesn't support threads
http://hg.python.org/cpython/rev/64e8d371812c
History
Date User Action Args
2022-04-11 14:57:16adminsetgithub: 56034
2011-04-12 23:07:51vstinnersetstatus: open -> closed
resolution: fixed
2011-04-12 23:07:13python-devsetnosy: + python-dev
messages: + msg133616
2011-04-11 14:07:04skrahsetmessages: + msg133520
2011-04-11 12:41:21vstinnersetfiles: + timeout.patch
keywords: + patch
messages: + msg133515
2011-04-11 06:26:31skrahcreate