I just installed OpenSuse 11.1. I have an Intel 950 GMA card that has been working flawlessly with linux.
I have small programs as samples for learning OpenGL, which have been sucessfully compiled and run under the other linux distros so far.
But when I tried running it under OpenSuse 11.1, it exited with a “segmentation fault”. Recompiling the program was sucessful, but running it again resulted in the same “segmentation fault” thing.
I have tried reinstalling mesa, mesa-dev, freeglut, and freeglut-dev but that had no effect.
Trying debugging the program with gdb, I got this:
Program received signal SIGSEGV, Segmentation fault.
0xb7f59172 in ?? () from /usr/lib/libGL.so.1
Has any of you experienced the same problem? How do I fix that?
A segmentation fault is a very generic error. It usually happens because of array overflows or improper pointer usage. Run a backtrace in gdb to discover which line is causing the error. There’s a possibility this is caused by the library, but I would bet on the example program.
As I said, the program has been sucessfully compiled and run on other linux distros.
The program was compiled with -g, and when run with gdb, it did not display any line belonging to the program when that program crashed. The above result is the only thing I received.
It is kind of hard to post the source code here, because they have more than a few headers file shared between them. But here is the link for downloading: OpenGL SDK. It is at the bottom of the page, the last one (source code for linux, 48MB). There are many examples, but i encounter the same problem with just any one of them.
The program compiles without any errors but running the program gives segmentation fault
Here’s the backtrace
#0 0xb7cca172 in ?? () from /usr/lib/libGL.so.1
#1 0xb7ca86cc in glXMakeCurrentReadSGI () from /usr/lib/libGL.so.1
#2 0xb7fa8386 in fgOpenWindow () from /usr/lib/libglut.so.3
#3 0xb7fa65ef in fgCreateWindow () from /usr/lib/libglut.so.3
#4 0xb7fa7ae5 in glutCreateWindow () from /usr/lib/libglut.so.3
#5 0x080487ec in main (argc=-1214448051, argv=0x1) at try.cpp:25
FWIW it builds without errors or warnings and runs OK with the nVIDIA driver on a 6600 GPU and freeglut under openSUSE 11.1 for x86_64. A nice blue window appears.
I had exactly the same problem and solved by installing Ati’s drivers. That install does replace libGL and libGLU with new ones.
But for Intel I don’t know if there are drivers available from manufacturer, I think that Intel’s graphic drivers have been open source for some time now and should be built-in in Suse (or Mesa).
Can you run glxgears? (start console and type glxgears). Does it open window with few colored gears turning in it? That is, does OpenGL work in your systems at all?