[LLVMbugs] [Bug 7841] New: Boost.Python miscompilation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 7 19:37:14 PDT 2010


           Summary: Boost.Python miscompilation
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: luc_j_bourhis at mac.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=5348)
 --> (http://llvm.org/bugs/attachment.cgi?id=5348)
self-contained source code body to reproduce the problem (except for Boost

I did my best to provide a self-contained reproducible test but since the error
manifests itself when executing a Python script loading a compiled Boost.Python
extension, it's a bit tricky. So stay with me! 

I use a brain dead build script because we use SCons to build the libraries
where I encountered the problem and I did not want to introduce that dependency
to my test. The assert that fails has reliably passed every night for years
when using gcc ranging from 3.2 to 4.5, Visual Studio C++ 2008 and 2010, ICC 9
and 11, and more I forget about. So there is definitively something wrong with
the clang build. 

LLVM svn revision is 110511 (trunk).

~> tar xfj clang-boost-python-bug.tbz2
~> cd clang-boost-python-bug
~> ln -s your-path-to-the-root-of-the-boost-library boost
~> ls boost
INSTALL         boost           bootstrap.bat   doc             more
Jamroot         boost-build.jam bootstrap.sh    index.htm       rst.css
LICENSE_1_0.txt boost.css       build           index.html      status
bin.v2          boost.png       dist            libs            tools

~> ./build.sh

~> python   
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D

~> python test.py 
Traceback (most recent call last):
  File "test.py", line 10, in <module>
    assert err.__class__.__name__ == 'ArgumentError'

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list