Announcement

Collapse
No announcement yet.

Mesa-GL segfault upon library load

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mesa-GL segfault upon library load

    Maybe somebody can help me with this problem that started to appear with Feisty and Gutsy (but not Dapper). Since version 7.04 I can no longer use GL in some of my programs. Consider a program that does not call any GL libraries (any GL calls commented out). I link it with

    gcc -g -O2 -Wall -o executable stuff.o more.o main.o -rdynamic -L/usr/lib -lgtk -lgdk -lgmodule -lglib -ldl -lm -lfftw3 -ltiff -lgdk_imlib -lGL

    ...segfaults before the first instruction. This means that I can not even use gdb to debug it.

    - If I omit the -lGL, the program runs OK.
    - If I omit the -rdynamic, the program runs OK, but I can no longer load DSOs.
    - Different graphics cards (Nvidia, ATI, hardware or software driver) have the same effect.
    - Different C compilers have the same effect.

    Here is the gdb stack dump. Doesn't help me a whole lot:

    [Thread debugging using libthread_db enabled]
    [New Thread -1224812832 (LWP 4613)]

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread -1224812832 (LWP 4613)]
    0xb7c3b2d5 in ?? () from /usr/lib/libGL.so.1
    (gdb) where
    #0 0xb7c3b2d5 in ?? () from /usr/lib/libGL.so.1
    #1 0xb7fddff4 in ?? () from /lib/ld-linux.so.2
    #2 0xb7cb72a8 in ?? ()
    #3 0xb7c91cc8 in ?? () from /usr/lib/libGL.so.1
    #4 0xbf9648b8 in ?? ()
    #5 0xb7c6e900 in ?? () from /usr/lib/libGL.so.1
    #6 0x57e58955 in ?? ()
    #7 0xb7c4504a in _init () from /usr/lib/libGL.so.1
    #8 0xb7fddff4 in ?? () from /lib/ld-linux.so.2
    #9 0xb7cb72a8 in ?? ()
    #10 0xb7c91cc8 in ?? () from /usr/lib/libGL.so.1
    #11 0xbf9648b8 in ?? ()
    #12 0xbf9648b8 in ?? ()
    #13 0xb7fd1373 in ?? () from /lib/ld-linux.so.2
    #14 0x00000001 in ?? ()
    #15 0xbf964914 in ?? ()
    #16 0xbf96491c in ?? ()
    #17 0xb7fc5dcb in ?? () from /lib/ld-linux.so.2
    #18 0xbf964914 in ?? ()
    #19 0x00000001 in ?? ()
    #20 0x00000001 in ?? ()
    #21 0xb7fddff4 in ?? () from /lib/ld-linux.so.2
    #22 0x00000014 in ?? ()
    #23 0x00000011 in ?? ()
    #24 0xbf9648f8 in ?? ()
    #25 0xb7fd1483 in ?? () from /lib/ld-linux.so.2
    #26 0xbf96491c in ?? ()
    #27 0xb7fddff4 in ?? () from /lib/ld-linux.so.2
    #28 0xb7fd7570 in ?? () from /lib/ld-linux.so.2
    #29 0xb7fc4000 in ?? ()
    #30 0xbf964908 in ?? ()
    #31 0xbf964914 in ?? ()
    #32 0x00000001 in ?? ()
    #33 0xb7fde6e0 in _r_debug ()
    #34 0x00000000 in ?? ()
    (gdb)

    Any help would be appreciated. Thanks!
Working...
X