Summary: | QT segfaults when __GL_SINGLE_THREADED=1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Richard Kilgore <rkilgore> |
Component: | [OLD] Library | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | azarah, cretin |
Priority: | High | ||
Version: | 1.4_rc2 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Richard Kilgore
2002-12-31 00:01:40 UTC
looks more like a glibc issue to me than a qt issue, adding glibc devs to cc. Tried to cut CFLAGS to "-march=athlon -O2 -pipe" (as well as CXXFLAGS), and remerge ? Also, what versions of glibc, gcc, and binutils do you have installed (with gentoolkit installed, do): # epm -q binutils gcc glibc I should have followed up here. I did try cutting the CFLAGS all the way down to simply -O2 to no avail. I don't know what the problem is, but I was able to make it stop happening by removing the following from my .xinitrc file: export __GL_SINGLE_THREADED=1 I noticed by accident that if I ran uic from the console, it did not seg fault, and in fact it worked. Then finding the culprit in .xinitrc was not hard. I would guess that is a bug that needs to be sent upstream to the qt folks - if you can reproduce it by setting __GL_SINGLE_THREADED=1. Confirmed: I just set __GL_SINGLE_THREADED=1 and uic segfaults on an empty tun (ie when simply running "uic"). More than that, any qt/kde app will segfault if run from such an environment! Needs to be polished up and sent upstream (and we need to check if it's fixed in qt 3.1.1.). First more info would be nice though, such as any known issues with that variable (maybe this is related to the nvidia drivers? I use them, do you?) Well, leaving this for slightly later. Nope, its not fixed in qt-3.1.1. Richard, what opengl do you use? xfree's or nvidia ? I use the NVidia libGL: /usr/lib/opengl/nvidia/lib/libGL.so.1.0.3123 Read the nvidia glx README. It's a known issue. They say it's fixed in their alternative TLS-enabled libraries. I'm told the reason we don't enable TLS support in glibc is that it makes things much slower. NPTL should fix that :-) Anyway since the bug is in nvidia's drivers, there's very little we can do :-( (It shouldn't even be specific to qt, you could probably find something else that had it if you looked hard enough) Please confirm analysis - do we who ahve this bug all use nvidia drivers? yes, the same here too (using nvidia drivers) Yes, I am using the nvidia driver as well. - richard is an nvidia driver bug, we can't fix it (easy workaround, don't export __GL_SINGLE_THREADED=1) re-resolving |