[Boost-bugs] [Boost C++ Libraries] #1015: Boost.Python library that is linked to OpenGL results in segfault upon output to std::cerr

Subject: [Boost-bugs] [Boost C++ Libraries] #1015: Boost.Python library that is linked to OpenGL results in segfault upon output to std::cerr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-05-30 18:05:31


#1015: Boost.Python library that is linked to OpenGL results in segfault upon
output to std::cerr
--------------------------------+-------------------------------------------
 Reporter: alanic_at_[hidden] | Owner: dave
     Type: Bugs | Status: new
Milestone: | Component: Python
  Version: release 1.34.0 | Severity: Showstopper
 Keywords: python cerr OpenGL |
--------------------------------+-------------------------------------------
 Hello,

 When I write anything to std::cerr in my library that's written using
 Boost.Python and linked to OpenGL (-lGL), a segfault occurs. This even
 occurs when you have no OpenGL usage, but link OpenGL to your simplest
 "hello world" library. Here is the discussion on gmane.comp.python.c++
 with additional information:

 http://thread.gmane.org/gmane.comp.python.c++/11443/

 And here are two other occurrences of this exact problem in similar
 situations, which pin this problem to the Boost.Python, OpenGL and
 std::cerr combination:

 http://mail.datenhain.de/pipermail/libavg-users/2007-March/000085.html
 http://vdrift.net/Forum/viewtopic.php?t=528&postdays=0&postorder=asc&start=30

 There is no problem in fprintf(stderr, ). I would be happy to assist
 fixing this bug. I'm attaching the modified
 libs/python/example/quickstart/extending.cpp from the boost 1.34.0 source
 tree. This is how I linked it:

 "g++" -o "bin/gcc-4.1.2/debug/extending.so" -Wl,-h -Wl,extending.so
 -shared -Wl,--start-group "bin/gcc-4.1.2/debug/extending.o"
 "../../../../bin.v2/libs/python/build/gcc-4.1.2/debug/libboost_python-
 gcc41-d-1_34.so.1.34.0" -L/usr/local/lib -lGL -lutil -lpthread -ldl -Wl,
 --end-group -g

 I got this using bjam -ofile and added -lGL to it. The order of -l flags
 did not make a difference.

 -Gazi

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1015>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:55 UTC