Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70545 - Problems with nvidia-glx-, specifically libnvidia-tls.so
Summary: Problems with nvidia-glx-, specifically libnvidia-tls.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 64927 70795 70871 71424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-09 01:05 UTC by Patrick Harrison
Modified: 2004-12-09 08:16 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Harrison 2004-11-09 01:05:49 UTC
nvidia-glx 1.0.6629 has problems with some opengl applications.  UT2004 simply errors out with "OpenGL Error", ePSXe says that libnvidia-tls.so.1 cannot handle TLS data.  Some GL apps, like zsnes, and glxgears, work fine.

Reproducible: Always
Steps to Reproduce:
1.Update to nvidia-glx-1.0.6629 and nvidia-kernel-1.0.6629
2.Emerge ePSXe and companion drivers.
3.Try to configure the video or play a game.

Actual Results:  
ePSXe crashed, stating that libnvidia-tls.so.1 cannot handle TLS data.

Expected Results:  
Tested the video output plugin or run the game, or at least created an OpenGL
window.

I have seen this error in forums for other distributions, but for older driver
versions.  Havn't found a solution on said forums.
Comment 1 Graham Hudspith 2004-11-09 07:57:43 UTC
I think this is a duplicate of 64927.

In that bug report, some suggests changing opengl-update and replacing the line:

    /usr/lib/misc/tls_test /usr/lib/misc/tls_test_dso.so 2>/dev/null

with

    getconf GNU_LIBPTHREAD_VERSION | grep -i nptl 2>/dev/null

I've tried this and reran "opengl-update nvidia" and everything (well, openGL stuff) now seems to work!
Comment 2 Graham Hudspith 2004-11-09 08:01:08 UTC
BTW, I've downgraded from 6629 back to 6111 and the problem still occurs. As it would do, since the fix can be applied to x11-base/opengl-update-1.8.1-r1.
Comment 3 Andrew Bevitt 2004-11-09 16:12:03 UTC
The reason we used nvidia tls_test was simply because they were the only ones that had tls supported drivers, however, eventually I presume this will change. After looking at an nptl build system, it appears the suggested fix here is probably better in the long run.

Donnie: I'll change this sometime today in 1.8.1 and 2_pre
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-09 16:20:33 UTC
Andrew, just to make sure I'm not misunderstanding -- you're bumping the opengl-update releases in each series, not literally changing 1.8.1 and 2.0_pre2 or whatever it is.
Comment 5 Andrew Bevitt 2004-11-09 17:32:42 UTC
The way I understand it is that if nptl is enabled in glibc, then ONLY the tls enabled libs should be linked to with opengl-update -- if nptl is not enabled, then it doesnt matter if both are or just the non-tls libs.

Is that actually correct?
Comment 6 Andrew Bevitt 2004-11-09 17:37:58 UTC
*** Bug 64927 has been marked as a duplicate of this bug. ***
Comment 7 Sven 2004-11-09 17:45:25 UTC
A NPTL-system should have both: TLS and non-TLS libraries
A non-NPTL-system should only have the non-TLS libraries.

Once the fixed glibc-ebuilds will be stable, they install two versions of glibc, one has NPTl, one doesn't. So there also should be both version of NVidia-libraries, so that LD_ASSUME_KERNEL=2.4.1 will run non-NPTL glibc with the non-TLS NVidia libraries.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-17 22:54:02 UTC
*** Bug 70871 has been marked as a duplicate of this bug. ***
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-17 23:13:34 UTC
*** Bug 71424 has been marked as a duplicate of this bug. ***
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-24 15:22:13 UTC
*** Bug 70795 has been marked as a duplicate of this bug. ***
Comment 11 Andrew Bevitt 2004-11-29 18:10:18 UTC
Fixed in cvs see opengl-update-1.8.2 or opengl-update-2.0_pre3
Comment 12 Prakash Punnoor 2004-11-30 02:18:20 UTC
New opngl-update doesn't fix things for me (or it is another problem).

Eg openoffice-ximian 1.3.6 (compiled with gcc 3.4) doesn't start:

Inconsistency detected by ld.so: ../sysdeps/generic/dl-tls.c: 72: _dl_next_tls_modid: Assertion `result <= _rtld_local._dl_tls_max_dtv_idx' failed!


But if I do a opengl-update xorg-x11, openoffice-ximian will start...
Comment 13 Andrew Bevitt 2004-12-02 15:39:46 UTC
If you are having the above comment #12 problem, see bug #73076
Comment 14 Carsten Milkau 2004-12-09 08:16:06 UTC
*** Bug 73817 has been marked as a duplicate of this bug. ***