NVidia driver (all vers), glxgears works as root, segmentation fault as user - SOLVED
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
NVidia driver (all vers), glxgears works as root, segmentation fault as user - SOLVED
Hi All,
I recently had big trouble after updating my xorg. All fonts were "invisible". I found out that this is a known problem with old nvidia drivers, so I updated to current ones. (trying everything between 8776 and 100.14.19, the most recent by today)
After the update, the fonts were ok, but when I tried to start any GLX app like a GL screensaver or glxgears, a segmentation fault (segfault, Speicherzugriffsverletzung, memory allocation failure) occured.
BUT, when running glxgears as root, it runs without any trouble.
A search found tons of reports, but no general solution.
Here it is!
run ldd `which glxgears`
to list all used libraries for glxgears.
Then open a root console and check all the listed paths of the ldd output if any user has read access to the libaries. If not, set them.
(for directories: chmod a+rx <dir>, for files: chmod a+r <file>)
Now try running glxgears as ordinary user and be happy...
hope to help you, now going back to staring at rotation gears...
Florian
Last edited by doc.nice; 10-03-2007 at 11:33 AM.
Reason: typo
I had the same problem and this solution worked for me
Just one thing. In order to find the library which was causing the problems I had to run the ldd `which glxgears` command as root. Running it as a normal user took me to libraries with the correct read permissions.
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173
Rep:
I'm quite the noob here, so I just wanted to ask:
1) Does the "=>" markup indicate a symbolic or dynamic link? If so, where's the file at?
2) Are the numbers in parenteses permissions? E.g. (0xb7f4a000) and (0xb6fb8000).
Just trying to figure out what files' permissions I need to alter. I'm adding this to the Zenwalk WIKI with your permission (with kudos).
Typing all that seemed like a hassle, if I could make a bash script
The arrow just indicates that the file lefthand is found at the righthand position. The righthand path may be the file itself, but may also be a (chain of) symlinks...
The hex numbers in brackets look like memory addresses to me, but I don't know either.
If you wrote a script, you just had to use all the "path-looking texts":
regexp "/(.+/)*.+\.so.*":
Code:
one /
any number of {at least one characters followed by one /}
at least one character
the string ".so"
any number of characters
this will match /libA.so, /a/path/to/libB.so, /libC.so.1.2.3, /anotherPath/libC.so.1.2.3 etc.
I think you can savely do a chmod a+r on all files, there should not be any harm or security hole when anyone can read shared libs (isn't that the use of shared libs? )
Maybe you have to write a script that will loop over {"file $fname" to check if it is a symlink and follow it} until you reach the real file...
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173
Rep:
Thanks for the quick reply!
I'll try it and get back to you..
On another side note, wouldn't changing the permissions of a symlink ultimately change the permissions of the file linked to as well/instead?
(Given, of course, permission to change permissions on the target, that I assume for root.)
Of course you are right, at least on my linux system. There may be others, where symlinks can have their own permissions, I somewhen heared of that, but infact never have seen it in use...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.