classification
Title: test_recursion_limit in test_threading fails on Mac OS X in 3.2
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: chris.jerdonek, dk, meador.inge, ned.deily
Priority: normal Keywords:

Created on 2012-09-30 06:53 by chris.jerdonek, last changed 2012-09-30 07:20 by ned.deily. This issue is now closed.

Messages (2)
msg171613 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012-09-30 06:53
The test_threading.ThreadingExceptionTests.test_recursion_limit test fails on Mac OS X with the standard compilation command:

$ ./configure --with-pydebug && make -j2

Python 3.2.3+ (3.2:247d3e3c08ca, Sep 29 2012, 23:45:43) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)] on darwin
Mac OS X Lion 10.7.5

======================================================================
FAIL: test_recursion_limit (test.test_threading.ThreadingExceptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../cpython/Lib/test/test_threading.py", line 774, in test_recursion_limit
    self.assertEqual(p.returncode, 0, "Unexpected error: " + stderr.decode())
AssertionError: -10 != 0 : Unexpected error: 

----------------------------------------------------------------------

This seems very similar to issue 14184 (copying the nosy list).
msg171617 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2012-09-30 07:20
As far as I know, this is currently only an issue if you use the llvm-gcc-4.2 compiler on OS X to do a debug mode build.  That compiler is no longer maintained by Apple and is known to miscompile Python 3.3 builds.  There are checks in configure.ac for 3.3 to avoid using it.  With Xcode 4, use clang instead (./configure ... CC=clang); for Xcode 3, use the standard gcc-4.2 (CC=gcc-4.2).
History
Date User Action Args
2012-09-30 07:20:40ned.deilysetstatus: open -> closed
resolution: wont fix
messages: + msg171617

stage: resolved
2012-09-30 06:53:46chris.jerdonekcreate