Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-11-05, 09:02 PM   #1
dafl00
Registered User
 
Join Date: Dec 2005
Posts: 4
Default programs linked with libGL crash

I installed the drivers from the site and got everything working except that programms linked to libGL keep sementation faulting without an explanation

so i removed the drivers with the uninstall option in the package and installed the ubuntu package.. but these programs still crash

I went as far as to remove the whole kernel, nvidia kernel module, nvidia glx, etc, delete /usr/lib/nvidia and what seemed like all traces then reinstalled them all over again..

still the same problem persist.. just a segmentation fault but nothing else to clue me in on why it crashes

i'm lost... if anyone has any ideas please let me know

Code:
$ uname -a
Linux 2.6.12-10-686-smp #1 SMP Fri Nov 18 12:27:41 UTC 2005 i686 GNU/Linux

$ nm libGL.so
nm: libGL.so: no symbols
thanks
dafl00 is offline   Reply With Quote
Old 12-11-05, 09:08 PM   #2
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: programs linked with libGL crash

I'll need additional information:
0) generate and post a bug report immediately after you experience a seg fault:
1) the output from glxinfo
2) specifically which applications are segfaulting. If glxgears isn't one of them, please test it as well.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 12-11-05, 09:15 PM   #3
dafl00
Registered User
 
Join Date: Dec 2005
Posts: 4
Default Re: programs linked with libGL crash

Thanks for that quick reply!!!

Here's a backtrace from an application (doesn't reach main)
Code:
(gdb) backtrace
#0  0xb7be335c in malloc () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7da0e02 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#2  0x0000002c in ?? ()
#3  0xb76877c2 in _nv000070gl () from /usr/lib/libGLcore.so.1
#4  0x00000003 in ?? ()
#5  0xb7da2a30 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#6  0x0000029a in ?? ()
#7  0x00002500 in ?? ()
#8  0xbfa00348 in ?? ()
#9  0x00000001 in ?? ()
#10 0x00000002 in ?? ()
#11 0x00000002 in ?? ()
#12 0x00000003 in ?? ()
#13 0x00000005 in ?? ()
#14 0xb7da2d5b in _init () from /usr/lib/libGL.so.1
#15 0x0000029a in ?? ()
#16 0x00002500 in ?? ()
#17 0xb7da2d37 in _init () from /usr/lib/libGL.so.1
#18 0x0000029a in ?? ()
#19 0x00002500 in ?? ()
#20 0x00000001 in ?? ()
#21 0xb7dc7560 in ?? () from /usr/lib/libGL.so.1
#22 0xb7f03ff4 in ?? () from /lib/ld-linux.so.2
Code:
$ glxinfo
Segmentation fault
Code:
$ glxgears
Segmentation fault
see basically every gl program crashes
where do i file the bug report?
dafl00 is offline   Reply With Quote
Old 12-11-05, 09:31 PM   #4
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: programs linked with libGL crash

Please post the bug report here.

Also, confirm that you've removed any 3rd party nvidia driver packages, and have installed only the official 1.0-8174 package that NVIDIA provides.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 12-11-05, 10:42 PM   #5
dafl00
Registered User
 
Join Date: Dec 2005
Posts: 4
Default Re: programs linked with libGL crash

I'm about 95% sure that the other nvidia package is gone.. unless i'm missing something.. but according appendix C of the README i see none of the other files present, just the right ones...

no “GLX” -or- “NV-GLX” extensions show up in the follow output
Code:
$ xdpyinfo
name of display:    :0.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    60802000
X.Org version: 6.8.2
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x300001b, revert to Parent
number of extensions:    28
    BIG-REQUESTS
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    Extended-Visual-Information
    LBX
    MIT-SCREEN-SAVER
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
    RANDR
    RECORD
    RENDER
    SECURITY
    SHAPE
    SYNC
    TOG-CUP
    X-Resource
    XC-APPGROUP
    XC-MISC
    XFIXES
    XFree86-Bigfont
    XFree86-DGA
    XFree86-Misc
    XFree86-VidModeExtension
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1280x1024 pixels (322x241 millimeters)
  resolution:    101x108 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x58
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store NO, save-unders NO
  largest cursor:    64x64
  current input event mask:    0xfa2033
    KeyPressMask             KeyReleaseMask           EnterWindowMask
    LeaveWindowMask          ButtonMotionMask         StructureNotifyMask
    SubstructureNotifyMask   SubstructureRedirectMask FocusChangeMask
    PropertyChangeMask       ColormapChangeMask
  number of visuals:    2
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x22
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
but I have them defined in xorg.conf
Code:
Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "type1"
        Load    "v4l"
        Load    "vbe"
EndSection
dafl00 is offline   Reply With Quote
Old 12-13-05, 02:10 PM   #6
spoonix
Registered User
 
Join Date: Dec 2005
Posts: 3
Default Re: programs linked with libGL crash

I'm seeing the same problem on a Debian 3.1 system running 2.4.27. Extremely wierd:

1) glxgears works
2) quake3 from loki/id works
3) quake3 from icculus, Doom3, and Quake4 all crash when attempting to init GL

Console output from icculus quake3:

Code:
...loading libGL.so.1:
Calling SDL_Init(SDL_INIT_VIDEO)...
SDL_Init(SDL_INIT_VIDEO) passed.
QGL_Init: Can't load libGL.so.1 from /etc/ld.so.conf or current dir: Could not load OpenGL library
failed
The "Could not load OpenGL library" is what's being passed back by dlerror()
spoonix is offline   Reply With Quote
Old 12-13-05, 02:25 PM   #7
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: programs linked with libGL crash

Please post a bug report, along with the output from 'glxinfo'. Also, do you have a libGL.so.1 on your system?

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 12-13-05, 04:13 PM   #8
dafl00
Registered User
 
Join Date: Dec 2005
Posts: 4
Default Re: programs linked with libGL crash

sudo apt-get install nvidia-glx nvidia-glx-dev replaces those files

i'm pretty sure it's a conflict between the way debian packages the drivers and the way NVIDIA installer installs them..

maybe if i had a look at the libGL source i could trace it down.............
dafl00 is offline   Reply With Quote

Old 12-13-05, 08:25 PM   #9
spoonix
Registered User
 
Join Date: Dec 2005
Posts: 3
Default Re: programs linked with libGL crash

In my case, I've purged the debian nvidia-* packages from my system and just re-installed with the 8174 .run installer.

As for the libGL question, yah, got 'em:
Code:
kspoon@naga:~$ locate libGL.so | grep so | xargs ls -l
lrwxrwxrwx  1 root root     10 Dec 13 12:46 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx  1 root root     17 Dec 13 12:46 /usr/lib/libGL.so.1 -> libGL.so.1.0.8174
-rwxr-xr-x  1 root root 535264 Dec 13 12:46 /usr/lib/libGL.so.1.0.8174
nvidia-bug-report.log
glxinfo output
xdpyinfo output

I've run ldd on all the executables that are crashing and verified that all libs are there... just looks like dlopen() or something is choking on libGL.so.1.

I've also run through the README for "Installing Components" and double checked to make sure everything is present (it is) and that any other libs that might cause a conflict are out of the way.

It's also worth pointing out that the stuff that's crashing is also the stuff that's going through SDL (doom3, quake4, and icculus quake3 use SDL... I don't believe glxgears uses SDL, and I'm pretty sure the original id/Loki quake3 likes to use mesa/libGL.so directly). Going to check that out in a second here.
spoonix is offline   Reply With Quote
Old 12-13-05, 10:42 PM   #10
spoonix
Registered User
 
Join Date: Dec 2005
Posts: 3
Default Re: programs linked with libGL crash

Ok, super bizarre.

From checking out an strace, it looks like the lib is being found just fine, but somehow SDL is just ignoring that the dlopen() call succeeded.

The good news is... I've found a work around on another site:

http://www.linuxquestions.org/questi...hreadid=376825

LD_PRELOAD=/usr/lib/libGL.so.1 quake4 worked like a champ for all the games that weren't working before. \o/
spoonix is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
gf 6150se crash! oddhornedant NVIDIA Linux 2 05-05-12 06:30 AM
xvideo crash elanthis NVIDIA Linux 5 10-29-02 08:12 PM
Forum not linked on main page SnakeEyes Feedback Forum 2 07-29-02 11:18 AM

All times are GMT -5. The time now is 12:10 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.