On Fri, 2009-05-15 at 18:38 +0800, 明覺 wrote: > On Fri, May 15, 2009 at 2:35 PM, Braden McDaniel <[email protected]> wrote: > > On Fri, 2009-05-15 at 11:58 +0800, 明覺 wrote: > >> On Wed, May 13, 2009 at 11:14 PM, Braden McDaniel <[email protected]> > >> wrote: > >> > On Wed, 2009-05-13 at 15:09 +0800, 明覺 wrote: > >> >> I compiled the example gtkglextmm program gears.cc(attached) > >> > > >> > There's no reason to attach source code that is part of the GtkGLExt > >> > distribtion to mailing list messages. We know where to find it. :-) > >> > > >> >> to > >> >> a.out, it can start and display successfully, but if i resize the > >> >> window, a segmentation fault error will occur, here is the error info > >> >> from valgrind. any advice to solve it? thanks > >> > > >> > The actual failure is happening inside of Mesa (presumably) code. > >> > glXWaitX isn't reasonably close to line 659 in trunk Mesa; so you'll > >> > need to track this down in the source to whatever version you're using. > >> > > >> > You should probably try turning up the verbosity in valgrind to see if > >> > it will tell you *what* value was uninitialized; though looking at the > >> > right line 659 might make that apparent. > >> > >> thank you for the information, here is the ouput of valgrind, how > >> could i solve it? and someone said that it's caused by video driver > >> error, is that possible? > > > > As I suggest above, inspect the source for whatever version of Mesa > > you're using. Find the variable that valgrind is claiming is > > uninitialized. > > I'm using the mesa from its git, that the latest code,(I also used > 7.4, 7.5 and 7.6 of mesa, all the similar error), the variable not > uninitialized should be psc->driScreen->waitX > in line 659 of glxcmds.c if (psc->driScreen->waitX != NULL) > any advice? thanks
That sounds like it's almost certainly the bug that Jean pointed out. I suggest applying the patch attached to that bug report. -- Braden McDaniel <[email protected]> _______________________________________________ gtkglext-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkglext-list
