Hi Tyler,
Thanks for taking the time to help 
Processor, card, kernel, minimal source code example that reproduces the
problem?
Processor: P4 2.4 Ghz 533FSB
Video: Nvidia FX5200
Kernel: 2.4.24
I have tried to put a simple code example together, but it works. It doesn’t
use the SDL thread facilities like my main program does. I will have to keep
on trying.
Also, I might suggest trying gdb(the Gnu Debugger), it could tell you at
least WHERE it’s crashing precisely.
It crashes on the first OpenGL call, specifically glClearColor(). The gdb
output as you have suggested is:
#0 0x4013d87e in glClearColor () from /usr/lib/libGL.so.1
#1 0x08051e43 in vRenderContext::clear() (this=0x80d7498) at
vRenderContext.cpp:170
#2 0x0805ba84 in vView::renderScene() (this=0x80d7560) at vView.cpp:221
#3 0x0805b905 in vView::thread() (this=0x80d7560) at vView.cpp:170
#4 0x08059160 in threadEntry(void*) (object=0x80d7560) at vThread.cpp:59
#5 0x40067fab in SDL_RunThread (data=0x80da4b8) at SDL_thread.c:218
#6 0x400681bf in RunThread (data=0x0) at SDL_systhread.c:82
#7 0x4009fcd0 in pthread_start_thread () from /lib/libpthread.so.0
Which is the same ouptut I was seeing in kdbg.
The strange thing is that until recently I was using a gcc 2.95.4 based
unstable Debian with a locally compiled libSDL and it worked. Now I am
using Arch Linux with libc 2.3.2 and gcc 3.3.
gcc 3.3? Sounds very new to me, is that stable? What compiler options are
you using, if any?
The final linking line is:
g++ -Wall -g -I/usr/include/SDL -D_REENTRANT -L/usr/lib -Wl,-rpath,/usr/lib
-lSDL -lpthread -lGL -lSNL
SNL is my own NURBS library and only uses the standard c++ libs.
Nvidia’s readme file that comes with the driver says there is a known issue
with their libGL if pthread is used under certain circumstances:
o Interaction with pthreads
Single threaded applications that dlopen() NVIDIA’s libGL
library, and then dlopen() any other library that is linked
against pthreads will crash in NVIDIA’s libGL library. This does
not happen in NVIDIA’s new ELF TLS OpenGL libraries (please see
(app-c) APPENDIX C: INSTALLED COMPONENTS for a description of
the ELF TLS OpenGL libraries). Possible work arounds for this
problem are:
1) Load the library that is linked with pthreads before
loading libGL.so.
2) Link the application with pthreads.
Do you think there is something in this?
Thanks for your time,
Scott.