With the latest fltk2 svn build (built using mingw / msys, gcc version 
3.4.5), I'm getting a reproduce-able crash in fluid2, the chrash is in 
the Browser code (although the issue comes from the Menu code I think).

If for instance, I load fluid2 and just click on the browser area where 
no browser items are present, I get a segfault.  The segfault appears to 
be due to calling item()->selected() when there are no valid items in 
the browser.  The call to item() is returning NULL, but isn't being checked.

When I do a backtrace in gdb I get:

Program received signal SIGSEGV, Segmentation fault.
0x004c4f0c in fltk::Widget::flag (this=0x0, f=2048) at ../fltk/Widget.h:141
141       bool  flag(unsigned f) const  { return (flags_ & f) != 0; }
(gdb) bt
#0  0x004c4f0c in fltk::Widget::flag (this=0x0, f=2048) at 
../fltk/Widget.h:141
#1  0x004c5119 in fltk::Widget::selected (this=0x0) at ../fltk/Widget.h:171
#2  0x00486f2a in fltk::Browser::set_item_selected (this=0x3f70f0, 
value=true, do_callback=1) at Browser.cxx:1141



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to