Roundup Robot added the comment:
New changeset cd54b48946ca by Stefan Krah in branch '3.3':
Issue #11870: Skip test_3_join_in_forked_from_thread() on HP-UX.
http://hg.python.org/cpython/rev/cd54b48946ca
--
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
Victor, could you try the patch attached?
--
Added file: http://bugs.python.org/file24030/threading_reinit_lock.diff
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 775319cebaa3 by Charles-François Natali in branch '2.7':
Issue #11870: threading: Properly reinitialize threads internal locks and
http://hg.python.org/cpython/rev/775319cebaa3
New changeset de962ec0faaa by
Charles-François Natali neolo...@free.fr added the comment:
Should be fixed now.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
Charles-François Natali neolo...@free.fr added the comment:
Here's a patch to help nail this down.
--
Added file: http://bugs.python.org/file23896/debug_stuck.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
STINNER Victor victor.stin...@haypocalc.com added the comment:
I got the debug output of test_3_join_in_forked_from_thread() using some hacks
(threading._VERBOSE=True and don't hide subprocess output):
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0,
STINNER Victor victor.stin...@haypocalc.com added the comment:
Hum, it's better with the process identifiers. Oh, by the way: the output is
not truncated, Python test hangs during the second run :-) Without the debug
output, it needs more than 1,000 runs to reproduce the
bug (hang).
Testing
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
Removed message: http://bugs.python.org/msg148991
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
Removed message: http://bugs.python.org/msg148992
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
I removed my two previous message (msg148991 and msg148992), there were
unrelated to this issue: the test hangs in debug mode in the IO module because
of a deadleak in IO related to the fork...
--
Charles-François Natali neolo...@free.fr added the comment:
To debug this, we should probably make use of faulthandler (but not
dump_tracebacks_later, since it creates a new thread). The way to go
could be to make the parent process send a fatal signal to the child
process if the latter takes
STINNER Victor victor.stin...@haypocalc.com added the comment:
Gregory's patches to sanitize threading's lock should have fixed this
The subprocess hang still occurs something, it just happened:
Roundup Robot devnull@devnull added the comment:
New changeset 0ed5e6ff10f8 by Victor Stinner in branch '3.2':
Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
http://hg.python.org/cpython/rev/0ed5e6ff10f8
New changeset f43dee86fffd by Victor Stinner in branch
Roundup Robot devnull@devnull added the comment:
New changeset ff36b8cadfd6 by Victor Stinner in branch '2.7':
Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
http://hg.python.org/cpython/rev/ff36b8cadfd6
--
___
Python
STINNER Victor victor.stin...@haypocalc.com added the comment:
The initial problem was test_3_join_in_forked_from_thread() and the hangs does
still happen:
[324/356] test_threading
Timeout (1:00:00)!
Thread 0x404248c0:
File /srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/subprocess.py,
Charles-François Natali neolo...@free.fr added the comment:
The initial problem was test_3_join_in_forked_from_thread() and the hangs
does still happen:
Yes, the patch was there to fix test_2_join_in_forked_from_thread.
[324/356] test_threading
Timeout (1:00:00)!
Thread 0x404248c0:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Your patch is linux3 compliant, go ahead!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
___
Charles-François Natali neolo...@free.fr added the comment:
Patch attached.
--
Added file: http://bugs.python.org/file22489/test_threading_fork.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
Changes by Charles-François Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file22468/test_threading_fork.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
___
Charles-François Natali neolo...@free.fr added the comment:
test_2_join_in_forked_process fails on FreeBSD 6.4 buildbot.
http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 6.4
3.x/builds/1606/steps/test/logs/stdio
==
STINNER Victor victor.stin...@haypocalc.com added the comment:
Victor: to debug this kind of problem, it would be great
if faulthandler could also dump tracebacks of children processes.
Do you mind if I create a new issue?
Please open a new issue.
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
+@unittest.skipIf(sys.platform in ('freebsd4', 'freebsd5', 'freebsd6',
+ 'netbsd5', 'os2emx'), due to known OS bug)
This skip gives very few information, and it is duplicated for each function. I
would
Charles-François Natali neolo...@free.fr added the comment:
This skip gives very few information, and it is duplicated for each
function. I would prefer a constant of the broken OSes with your
following comment attached to the constant:
Ok, I'll try to write something along those lines.
New submission from STINNER Victor victor.stin...@haypocalc.com:
test_3_join_in_forked_from_thread() of test_threading failed on x86 Ubuntu
Shared 3.x buildbot:
---
[201/354] test_threading
[41179 refs]
[40407 refs]
[40407 refs]
[40407 refs]
Timeout (1:00:00)!
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gps
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
___
___
Python-bugs-list mailing list
25 matches
Mail list logo