Re: Cannot initialize JOGL on Mesa swrast after upgrade
Posted by Dolda2000 on Feb 06, 2014; 10:56am
URL: https://forum.jogamp.org/Cannot-initialize-JOGL-on-Mesa-swrast-after-upgrade-tp4031458p4031471.html
I tried to run the GLWindow test in gdb, like this:
$ gdb java
(gdb) b glXGetFBConfigAttrib
Function "glXGetFBConfigAttrib" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (glXGetFBConfigAttrib) pending.
(gdb) handle SIGSEGV pass nostop noprint
Signal Stop Print Pass to program Description
SIGSEGV No Yes Yes Segmentation fault
(gdb) run -cp jogl.jar:gluegen-rt.jar com.jogamp.newt.opengl.GLWindow
[snip output]
Breakpoint 1, 0x00007fffe6d804e0 in glXGetFBConfigAttrib () from /usr/lib/x86_64-linux-gnu/libGL.so.1
(gdb) info frame
Stack level 0, frame at 0x7fffe6a822f0:
rip = 0x7fffe6d804e0 in glXGetFBConfigAttrib; saved rip 0x7fffe6b12a6e
called by frame at 0x7fffe6a82350
Arglist at 0x7fffe6a822e0, args:
Locals at 0x7fffe6a822e0, Previous frame's sp is 0x7fffe6a822f0
Saved registers:
rip at 0x7fffe6a822e8
(gdb) p $rdi
$2 = 9983664
(gdb) p/x $rdi
$3 = 0x9856b0
(gdb) p/x $rsi
$4 = 0x0
(gdb) p/x $rdx
$5 = 0x8010
(gdb) p/x $rcx
$6 = 0x9a9000
Correct me if I'm wrong, but doesn't that mean that JOGL is calling glXGetFBConfigAttrib with a NULL GLXFBConfig pointer?