Just compiled fltk-2.0.x-r8501, kubuntu 10.4 with kernel
2.6.32-29-generic (#58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011)
and gcc 4.4.3 (i486-linux-gnu) and:
./configure --enable-shared --enable-debug
subsequently running test/file_chooser crashes with segmentation fault. Here's
a gdb postmortem:
matthews@skipjack:~/dance_v4/extensions/fltk-2.0.x-r8501/test$ gdb file_chooser
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/matthews/dance_v4/extensions/fltk-2.0.x-r8501/test/file_chooser...done.
(gdb) run
Starting program:
/home/matthews/dance_v4/extensions/fltk-2.0.x-r8501/test/file_chooser
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x00196a4d in fltk::Symbol::measure (this=0x80d1830, w=@0xbfffeed8,
h=@0xbfffeed4) at ../fltk/Symbol.h:55
55 void measure(int& w, int& h) const {_measure(w,h);}
(gdb) print w
$1 = (int&) @0xbfffeed8: 22
(gdb) print h
$2 = (int&) @0xbfffeed4: 22
(gdb) bt
#0 0x00196a4d in fltk::Symbol::measure (this=0x80d1830, w=@0xbfffeed8,
h=@0xbfffeed4) at ../fltk/Symbol.h:55
#1 0x0020938a in fltk::Widget::draw_label (this=0x80d1790, ir=...,
flags=262656) at Widget_draw.cxx:149
#2 0x0018a35a in fltk::Button::draw (this=0x80d1790, glyph_width=0) at
Button.cxx:243
#3 0x0018a3c4 in fltk::Button::draw (this=0x80d1790) at Button.cxx:253
#4 0x001a8ae0 in fltk::Group::draw_child (this=0x80d1630, w=...) at
Group.cxx:757
#5 0x001a8809 in fltk::Group::draw (this=0x80d1630) at Group.cxx:689
#6 0x0020a80f in fltk::Window::draw (this=0x80d1630) at Window.cxx:82
#7 0x001dd5cd in fltk::Window::flush (this=0x80d1630) at x11/run.cxx:2609
#8 0x001deb2a in fl_window_flush (window=0x80d1630) at run.cxx:659
#9 0x001debc3 in fltk::flush () at run.cxx:693
#10 0x001de7a7 in fltk::wait (time_to_wait=1.00000002e+20) at run.cxx:488
#11 0x001de5a4 in fltk::run () at run.cxx:401
#12 0x0804b19f in main (argc=1, argv=0xbffff364) at file_chooser.cxx:349
(gdb) ^CQuit
(gdb)
_______________________________________________
Hmm, this is a tad strange. It seems to be crashing when going into
_measure(), not when actually doing anything....
In any case, I don't get the same results on my system, using a clean
svn checkout or using -r8501, so I'm not quite sure what could be
causing this.
I do remember having the filechooser be completely unusable on my system
about 5 kernel's ago (it only happened on this system, which I do my
best to keep up-to-date with kernel releases, and was fixed at the next
release, so something might've been a little screwy there).
For the record, I'm running 2.6.35.26.
Do you have perhaps another system you can test this on?
Regards,
Ben
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs