Author bkabrda
Recipients bkabrda
Date 2014-04-02.09:17:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
test_faulthandler.test_register_chain fails on some 64bit architectures (arm8, ppc64) with kernel >= 3.10:

FAIL: test_register_chain (__main__.FaultHandlerTests)
Traceback (most recent call last):
  File "/builddir/build/BUILD/Python-3.Lib/test/", line 588, in test_register_chain
  File "/builddir/build/BUILD/Python-3.Lib/test/", line 572, in check_register
    self.assertEqual(exitcode, 0)
AssertionError: -11 != 0

I created a minimal reproducer (reproduces the issue on 3.3, 3.4 and dev) of this segfault (attached). When run with GC assertions turned on, Python fails with:

python: /builddir/build/BUILD/Python-3.Modules/gcmodule.c:332: update_refs: Assertion `gc->gc.gc_refs == (-3)\' failed.

We experienced this issue when building Python 3.3 on Fedora's arm8 builder [1], it seems that opensuse have experienced the same failure on ppc64 [2] and ubuntu has a similar issue in their 64bit arm builds [3].

It seems that this may be caused by a change in kernel, since it's only reproducible on kernel >= 3.10. A nice explanation of what goes on and how the problem can be narrowed down is at the opensuse bug report [4], this is basically where I got stuck with this problem, too.

Date User Action Args
2014-04-02 09:17:18bkabrdasetrecipients: + bkabrda
2014-04-02 09:17:18bkabrdasetmessageid: <>
2014-04-02 09:17:18bkabrdalinkissue21131 messages
2014-04-02 09:17:17bkabrdacreate