[Gmsh] Compiling gmsh with off-screen rendering enabled results in seg fault

LUK ShunTim lukshuntim at gmail.com
Wed Jul 22 16:21:42 CEST 2009


Hi,

I tried compiling the 20090722 nightly source tar ball with the
configure option --enable-osmesa. I got a seg fault when gmsh is run.
Here's the backtrace when run under gdb.
<bt>
#0  0xb5f4b6b0 in _mesa_SelectBuffer () from /usr/lib/dri/r300_dri.so
#1  0x0805ef52 in openglWindow::processSelectionBuffer (this=0x0, type=0,
    multipleSelection=false, meshSelection=true, x=504, y=419, w=5, h=5,
    vertices=..., edges=..., faces=..., regions=..., elements=...)
    at openglWindow.cpp:516
#2  0x080607d1 in openglWindow::handle (this=0x856f740, event=11)
    at openglWindow.cpp:432
#3  0xb7f41cec in ?? () from /usr/lib/libfltk.so.1.1
#4  0xb7f72b9a in Fl_Tile::handle(int) () from /usr/lib/libfltk.so.1.1
#5  0xb7f41d7c in ?? () from /usr/lib/libfltk.so.1.1
#6  0xb7f2978d in Fl_Window::handle(int) () from /usr/lib/libfltk.so.1.1
#7  0xb7f29b06 in fl_fix_focus() () from /usr/lib/libfltk.so.1.1
#8  0xb7f29bdf in Fl::handle(int, Fl_Window*) () from
/usr/lib/libfltk.so.1.1
#9  0xb7f7a9fc in fl_handle(_XEvent const&) () from /usr/lib/libfltk.so.1.1
#10 0xb7f7bcfe in ?? () from /usr/lib/libfltk.so.1.1
#11 0xb7f7bf4e in fl_wait(double) () from /usr/lib/libfltk.so.1.1
#12 0xb7f2aa98 in Fl::wait(double) () from /usr/lib/libfltk.so.1.1
#13 0xb7f2aaec in Fl::check() () from /usr/lib/libfltk.so.1.1
#14 0x080c9377 in GUI::check (fmt=0x8464050 '-' <repeats 55 times>)
    at ../Fltk/GUI.h:77
#15 Msg::Info (fmt=0x8464050 '-' <repeats 55 times>) at GmshMessage.cpp:222
#16 0x08054f0a in main (argc=1, argv=0xbffff1d4) at Main.cpp:60
</bt>

This is on a ibm thinkpad t43 debian/sid with the opensource radeon
driver, and the latest libgl1-mesa-dri (7.5-2). When compiling without
off-screening, gmsh runs fine. Has anybody run into this same problem?

Regards,
ST
--