[issue1730372] Mesa with NPTL makes Python extensions crash with std::cerr
R. David Murray
report at bugs.python.org
Mon Mar 30 06:57:15 CEST 2009
R. David Murray <rdmurray at bitdance.com> added the comment:
I compiled the referenced test program on Gentoo, where my Mesa library
is compiled with NPTL:
rdmurray at partner:~>equery uses mesa
[ Searching for packages matching mesa... ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-libs/mesa-7.3 ]
U I
<snip>
+ + nptl
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-I/usr/include -I/usr/local/include -I./Include -I. -c spam.cc -o spam.o
gcc -pthread -shared spam.o -L/usr/lib -L/usr/local/lib -Wl,-R/usr/lib
-lGL -o build/lib.linux-i686-2.7/spam.so -lstdc++
rdmurray at partner:~/python/trunk>strings build/lib.linux-i686-2.7/spam.so
|grep -i libgl
libGL.so.1
>./python
Python 2.7a0 (unknown, Mar 29 2009, 16:10:14)
[GCC 4.1.2 (Gentoo 4.1.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import spam
>>> spam.system('ls')
this be cerrzsh: segmentation fault ./python
Without the '-lGL' it works fine.
Now, is it a bug in Python, or Mesa?
I haven't checked if it is still a problem in py3k since spam.cc
does not compile cleanly under py3k.
----------
nosy: +bitdancer
resolution: works for me ->
status: pending -> open
versions: +Python 2.7 -Python 2.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1730372>
_______________________________________
More information about the Python-bugs-list
mailing list