[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-05 Thread STINNER Victor
STINNER Victor added the comment: I close this issue because test_signal pass on FreeBSD 6 buildbots (3.2 and 3.x). I will reopen it if test_faulthandler fails or if test_signal fails again, or maybe open new issues. -- resolution: -> fixed status: open -> closed ___

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-05 Thread STINNER Victor
STINNER Victor added the comment: > > When signals are unblocked, pending signal ared delivered in the reverse > > order > > of their number (also on Linux, not only on FreeBSD 6). > > I don't like this. > POSIX doesn't make any guarantee about signal delivery order, except > for real-time sig

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-05 Thread Charles-François Natali
Charles-François Natali added the comment: > When signals are unblocked, pending signal ared delivered in the reverse order > of their number (also on Linux, not only on FreeBSD 6). I don't like this. POSIX doesn't make any guarantee about signal delivery order, except for real-time signals. It

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset f12b8548b4aa by Victor Stinner in branch 'default': Issue #12469: fix signal order check of test_signal http://hg.python.org/cpython/rev/f12b8548b4aa -- ___ Python tracker

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset aad86a719fc6 by Victor Stinner in branch 'default': Issue #12469: test_signal checks wakeup signals order, except on freebsd6 http://hg.python.org/cpython/rev/aad86a719fc6 -- ___ Python tracker

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor added the comment: > run test_main() ... in a subprocesses I created a new issue for this task: issue #12495. I think that the testcase has to be rewritten. -- ___ Python tracker _

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34061f0d35ba by Victor Stinner in branch 'default': Issue #12469: partial revert of 024827a9db64, freebsd6 thread initialization http://hg.python.org/cpython/rev/34061f0d35ba -- ___ Python tracker

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor added the comment: > TODO: run test_main(), test_itimer_virtual() and test_itimer_prof() > in subprocesses Another TODO: check if test_sigtimedwait_poll() still fails after reverting 024827a9db64 (thread initialization). -- ___ Pytho

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor added the comment: TODO: - check_signum() of WakeupSignalsTests.check_wakeup(): remove set() to check the order of the received signals (revert 29e08a98281d) - run test_main(), test_itimer_virtual() and test_itimer_prof() in subprocesses - fix/skip test_faulthandler on FreeBSD

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7eef821ab20d by Victor Stinner in branch 'default': Issue #12469: replace assertions by explicit if+raise http://hg.python.org/cpython/rev/7eef821ab20d -- ___ Python tracker

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread STINNER Victor
STINNER Victor added the comment: Commits e07b331bf489 and b9de5e55f798 run wakeup and pending signal tests in a subprocess to avoid border effects with threads. It should make these tests more reliable, not only on FreeBSD 6. PendingSignalsTests now use os.kill() instead of signal.pthread_ki

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset e07b331bf489 by Victor Stinner in branch '3.2': Issue #12469: Run "wakeup" signal tests in subprocess to run the test in a http://hg.python.org/cpython/rev/e07b331bf489 New changeset b9de5e55f798 by Victor Stinner in branch 'default': (merge 3.2) I

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-02 Thread Charles-François Natali
Charles-François Natali added the comment: > Revert the patch doesn't change anything for the test suite. I know, but at least it doesn't change the default - be it broken - behaviour on FreeBSD 6. > I just fear that it is a little bit overkill just to support an "old" (?) OS. Yes. I mean, w

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-02 Thread STINNER Victor
STINNER Victor added the comment: > I'm also in favor of reverting this commit. Hum, the problem is that the Python test suite creates a lot of threads. Revert the patch doesn't change anything for the test suite. I mean that all tests relying on signal delivery should (must) be running in a

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-02 Thread Charles-François Natali
Charles-François Natali added the comment: >> On FreeBSD 6, os.kill(os.getpid(), signum) calls immediatly >> the signal handler before the creation of the first thread (...), >> whereas the signal handler is called "later" (when exactly?) after >> the creation of the first thread (default after

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-01 Thread STINNER Victor
STINNER Victor added the comment: > What happens if you create the thread after having registered > the SIGBUS handler? I reverted my commit and created the thread after the call to faulthandler.register(). It changes nothing, the signal handler is still called "later" sometimes. > On FreeBS

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-01 Thread STINNER Victor
STINNER Victor added the comment: On FreeBSD 6, os.kill(os.getpid(), signum) calls immediatly the signal handler before the creation of the first thread (which was the case by default before my commit 024827a9db64), whereas the signal handler is called "later" (when exactly?) after the creati

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-01 Thread Charles-François Natali
Charles-François Natali added the comment: What happens if you create the thread after having registered the SIGBUS handler? -- ___ Python tracker ___ _

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-01 Thread STINNER Victor
STINNER Victor added the comment: By the way, the failures: Re-running test 'test_faulthandler' in verbose mode test_disable (test.test_faulthandler.FaultHandlerTests) ... ok test_dump_traceback (test.test_faulthandler.FaultHandlerTests) ... ok test_dump_traceback_file (test.test_faulthandler.F

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-01 Thread STINNER Victor
STINNER Victor added the comment: Debug session with gdb: --- [vstinner@buildbot-freebsd ~/cpython]$ gdb -args ./python x.py GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12469] test_faulthandler failures on FreeBSD 6

2011-07-01 Thread STINNER Victor
New submission from STINNER Victor : test_faulthandler fails on the FreeBSD 6 buildbot since my commit 024827a9db64990865d29f9d525694f51197e770: Issue #12392: fix thread initialization on FreeBSD 6 On FreeBSD6, pthread_kill() doesn't work on the main thread before the creation of the first thr