Menu

#18 SEGV on GLUI_Listbox::mouse_over

open
nobody
5
2014-02-05
2006-02-07
Anonymous
No

Config:
Linux Fedora Core 4
IBM ThinkCentre
512M
Crappy stock motherboard gfx

Program:

example5 provided with GLUI 2.2

How to make it bomb:

Run example5
Pull down the Text pulldown menu and select "Foo"
Release and let it repaint.
Then move the mouse over the menu again and it
immediately SEGfaults.

Traceback:

(I had to attach to the PID, since gdb kept having
problems when just running from scratch):

rpseguin@helios glui_v2_2]$ gdb example5 11489
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as
"i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".

Attaching to program:
/home/rpseguin/public_html/downloads/glui_v2_2/example5,
process 11489
Reading symbols from /usr/lib/libglut.so.3...done.
Loaded symbols for /usr/lib/libglut.so.3
Reading symbols from /usr/X11R6/lib/libGL.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGL.so.1
Reading symbols from /usr/X11R6/lib/libGLU.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGLU.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXxf86vm.so.1
Reading symbols from /lib/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1208571136 (LWP 11489)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from
/usr/X11R6/lib/modules/dri/i915_dri.so...done.
Loaded symbols for /usr/X11R6/lib/modules/dri/i915_dri.so
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from
/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for
/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
0x00ccf402 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208571136 (LWP 11489)]
0x009b9a68 in __driGarbageCollectDrawables ()
from /usr/X11R6/lib/modules/dri/i915_dri.so
(gdb) where

0 0x009b9a68 in __driGarbageCollectDrawables ()

from /usr/X11R6/lib/modules/dri/i915_dri.so

1 0x009ba5c8 in driCreateNewContext ()

from /usr/X11R6/lib/modules/dri/i915_dri.so

2 0x00835b76 in glXChooseFBConfigSGIX () from

/usr/X11R6/lib/libGL.so.1

3 0x0083606d in glXCreateContext () from

/usr/X11R6/lib/libGL.so.1

4 0x0040eba5 in fgOpenWindow () from

/usr/lib/libglut.so.3

5 0x0040d6b7 in fgCreateWindow () from

/usr/lib/libglut.so.3

6 0x0040d790 in fgCreateMenu () from

/usr/lib/libglut.so.3

7 0x0040c3ed in glutCreateMenu () from

/usr/lib/libglut.so.3

8 0x0805cabd in GLUI_Listbox::mouse_over

(this=0x8d79030, state=1, x=81,
y=161) at glui_listbox.cpp:334

9 0x0804df3a in GLUI_Main::passive_motion

(this=0x8b9d528, x=81, y=161)
at glui.cpp:772

10 0x0804df7f in glui_passive_motion_func (x=81,

y=161) at glui.cpp:325

11 0x0040b254 in glutMainLoopEvent () from

/usr/lib/libglut.so.3

12 0x0040b504 in glutMainLoop () from

/usr/lib/libglut.so.3

13 0x0804b3fb in main (argc=1, argv=0xbfe8d8b4) at

example5.cpp:481
(gdb)

Discussion

MongoDB Logo MongoDB