Discussion:
[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler
Chris Hogan
2015-11-09 18:30:53 UTC
Permalink
New submission from Chris Hogan:

I successfully built Python on OS X 10.10 with the Intel compiler v15. However, running the regression tests gives me a "segmentation fault: 11" on test_ascii_formated. I think this has to do with libffi, because when I build with the --use-system-ffi flag (using a libffi that I built) all the regression tests pass, but I get a seg fault when I try to import ctypes. Using python's libffi I can import ctypes, but I get seg faults in the tests. Looking at libffi's homepage, it looks like x86-64 Mac OS X isn't on the list of officially supported platforms. I tried contacting the libffi-discuss mailing list about this but have received no response in a month. Please let me know what other information I can provide.

----------
components: Macintosh, Tests
messages: 254398
nosy: christopher.hogan, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: test_ascii_formatd fails on Mac when built with Intel compiler
type: crash
versions: Python 2.7, Python 3.5

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
Zachary Ware
2015-11-09 20:15:20 UTC
Permalink
Zachary Ware added the comment:

This doesn't seem to be a problem on the ICC buildbot; David, did you do anything special for libffi/ctypes?

----------
nosy: +r.david.murray, zach.ware

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
Zachary Ware
2015-11-09 20:15:45 UTC
Permalink
Zachary Ware added the comment:

Also, I haven't had an issue with this on my own machine.

----------

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
Ned Deily
2015-11-09 20:56:42 UTC
Permalink
Ned Deily added the comment:

Chris, how exactly are you running this test that fails and where does the test come from? I may be overlooking something but I do not see any spelling of a test_ascii_formatted in the Python 3.5 source including its embedded ctypes. The ctypes shipped with Python certainly is supported on 64-bit OS X.

----------

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
Chris Hogan
2015-11-09 21:04:45 UTC
Permalink
Chris Hogan added the comment:

Ned, the test is in Lib/test/test_ascii_formatd.py. Sorry, I spelled it wrong originally. Also, I guess it's only in 2.7. My mistake.

----------
versions: -Python 3.5

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
STINNER Victor
2015-11-09 21:12:15 UTC
Permalink
STINNER Victor added the comment:

See also issue #24999 about ICC compiler.

----------
nosy: +haypo

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
Ned Deily
2015-11-10 00:50:27 UTC
Permalink
Ned Deily added the comment:

Thanks for the updates. Since it's not at all clear what the issue is or that it is Mac-specific, I'm going to bow out of this and remove the Mac tag for now.

----------
components: -Macintosh, Tests
nosy: -ronaldoussoren

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
Ned Deily
2015-11-10 00:50:45 UTC
Permalink
Changes by Ned Deily <***@acm.org>:


----------
nosy: -ned.deily

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
Chris Hogan
2015-11-10 14:50:20 UTC
Permalink
Chris Hogan added the comment:

I guess since no one can reproduce the error, it must be a problem with how I'm building it. We build our own dependencies (zlib, bzip, sqlite3, openssl, etc.) with the Intel compiler, so it could be any number of things causing the issue. Closing as not a bug.

----------
resolution: -> not a bug
status: open -> closed

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________
R. David Murray
2015-11-10 16:01:35 UTC
Permalink
R. David Murray added the comment:

Someone can correct me if I'm wrong, but my expectation would be that since we use ICC for the main compile on the ICC buildbots, we also compile the bundled ctypes using it. It is hard to see how any of the other modules would affect this.

----------

_______________________________________
Python tracker <***@bugs.python.org>
<http://bugs.python.org/issue25589>
_______________________________________

Loading...