[Bug 831629] New: python3-base test test_faulthandler fails on ppc64
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c0 Summary: python3-base test test_faulthandler fails on ppc64 Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 3 Platform: PowerPC-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dvaleev@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- [ 456s] test_unregister (test.test_faulthandler.FaultHandlerTests) ... test test_faulthandler failed [ 456s] ok [ 456s] [ 456s] ====================================================================== [ 456s] FAIL: test_register_chain (test.test_faulthandler.FaultHandlerTests) [ 456s] ---------------------------------------------------------------------- [ 456s] Traceback (most recent call last): [ 456s] File "/home/abuild/rpmbuild/BUILD/Python-3.3.2/Lib/test/test_faulthandler.py", line 588, in test_register_chain [ 456s] self.check_register(chain=True) [ 456s] File "/home/abuild/rpmbuild/BUILD/Python-3.3.2/Lib/test/test_faulthandler.py", line 572, in check_register [ 456s] self.assertEqual(exitcode, 0) [ 456s] AssertionError: -11 != 0 [ 456s] [ 456s] ---------------------------------------------------------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |jmatejek@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c1 Dinar Valeev <dvaleev@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Development |Kernel AssignedTo|jmatejek@suse.com |kernel-maintainers@forge.pr | |ovo.novell.com --- Comment #1 from Dinar Valeev <dvaleev@suse.com> 2013-08-02 22:20:12 UTC --- it turned out, that kernel 3.9.5 doesn't have this problem. So this should be a regressing introduced between 3.9 and 3.10 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c2 --- Comment #2 from Dinar Valeev <dvaleev@suse.com> 2013-08-06 08:43:20 UTC --- Created an attachment (id=551340) --> (http://bugzilla.novell.com/attachment.cgi?id=551340) reproducer This reproducer segfaults on 3.10 defconfig -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c3 --- Comment #3 from Dinar Valeev <dvaleev@suse.com> 2013-08-06 13:02:10 UTC --- It seems the test fails only if CONFIG_HAVE_CONTEXT_TRACKING is to to y -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c4 --- Comment #4 from Dinar Valeev <dvaleev@suse.com> 2013-08-07 08:42:43 UTC --- bad guess. with Fedora's 3.10.5 test passes. 3.11rc4 fails too with opensuse's config -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c5 Dinar Valeev <dvaleev@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #551340|0 |1 is obsolete| | --- Comment #5 from Dinar Valeev <dvaleev@suse.com> 2013-08-07 10:14:42 UTC --- Created an attachment (id=551558) --> (http://bugzilla.novell.com/attachment.cgi?id=551558) fixed reproducer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c6 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffm@suse.com --- Comment #6 from Jeff Mahoney <jeffm@suse.com> 2013-08-07 13:06:17 EDT --- Can you reproduce it with CONFIG_RCU_USER_QS=n? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c7 --- Comment #7 from Dinar Valeev <dvaleev@suse.com> 2013-08-07 22:01:20 UTC --- yes, with "#CONFIG_RCU_USER_QS is not set" it is still reproducible -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c8 --- Comment #8 from Jeff Mahoney <jeffm@suse.com> 2013-08-08 15:26:41 EDT --- Hrm, then I suspect CONFIG_HAVE_CONTEXT_TRACKING is unrelated to the issue. RCU_USER_QS depends on it, and is now disabled. VIRT_CPU_ACCOUNTING_GEN depends on it, and was already disabled. NO_HZ_FULL depends on it and was already disabled. But now I realize that's probably what you meant in comment #4. :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c9 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |dvaleev@suse.com AssignedTo|kernel-maintainers@forge.pr |jeffm@suse.com |ovo.novell.com | --- Comment #9 from Jeff Mahoney <jeffm@suse.com> 2013-08-08 16:52:16 EDT --- Your reproducer is corrupted. I get parse errors when I try to run it. What machine are you running this on? I don't have a ppc64 machine with openSUSE on it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c11 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |dvaleev@suse.com --- Comment #11 from Jeff Mahoney <jeffm@suse.com> 2013-08-09 01:24:24 EDT --- It looks like python itself is crashing: python[25204]: unhandled signal 11 at e92100a0e9010140 nip 00001fffffdf2838 lr 00001fffffdbd2d0 code 30001 and since it's a case for which we're testing signal handling, it's seeing it as a failed signal 11 test, which is SIGSEGV. The test is using SIGUSR1. I'd like to see the cause of the python crash before further diagnosing this as a kernel bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-08-09 17:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (831629) was mentioned in https://build.opensuse.org/request/show/186599 Factory / python3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c13 --- Comment #13 from Dinar Valeev <dvaleev@suse.com> 2013-08-15 18:59:29 UTC --- I just hit another, similar issue like this. ghc enters a loop. I suspect the root of the issue is the same. http://ghc.haskell.org/trac/ghc/ticket/8134 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c14 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jeffm@suse.com |jmatejek@suse.com Severity|Normal |Major --- Comment #14 from Jeff Mahoney <jeffm@suse.com> 2013-09-23 18:09:18 EDT --- Jan, please see comment #11 for why I'm bouncing this to you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c15 --- Comment #15 from Jan Matejek <jmatejek@suse.com> 2013-10-03 18:01:31 UTC --- python's memory gets corrupted somehow in this test. So far I was unable to track down what exactly happens, but valgrind reports that python starts to step over unitialized memory in its finalizer, and that crashes it in the end. (btw, Don't Try This At Home, you need to have a special build of python to get meaningful results from valgrind [1]) The problematic sequence is this: 1. install a signal handler for SIGUSR1 2. install a different signal handler for SIGUSR1, storing the original one for later use 3. when you get SIGUSR1, restore the original signal handler with `sigaction` and call it with `raise` (that is pretty much the only thing that the override handler needs to do to trigger the problem - i commented out everything but this restore and it still segfaulted.) The original signal handler is executed correctly, AFAICT, and so far I did not find any difference between its behavior in the crashing and non-crashing case. (if you have any good tips on doing "core diffs", i could use some) But something obviously ends up different ;) if you guys have any idea what could be different between this kernel and the previous one regarding these operations, i'd love to hear it. [1] http://svn.python.org/projects/python/trunk/Misc/README.valgrind -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c16 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #551558|0 |1 is obsolete| | --- Comment #16 from Jan Matejek <jmatejek@suse.com> 2013-10-03 18:08:15 UTC --- Created an attachment (id=561371) --> (http://bugzilla.novell.com/attachment.cgi?id=561371) reproducer script Attaching a minimal reproducer script. expected output: Traceback (most recent call first): File "bnc831629-reproducer.py", line 12 in <module> exit status 0 faulty output: same, followed by "Segmentation fault" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831629 https://bugzilla.novell.com/show_bug.cgi?id=831629#c Ihno Krumreich <ihno@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=831629 Michal Marek <mmarek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dvaleev@suse.com) | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=831629 http://bugzilla.novell.com/show_bug.cgi?id=831629#c17 Jan Matejek <jmatejek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #17 from Jan Matejek <jmatejek@suse.com> --- no reaction for several years and IIRC python testsuite now passes just fine on ppc64, so closing. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com