DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2694
Version: 2.0-current


My application caused the following seg fault:
Program received signal SIGSEGV, Segmentation fault.
0xb7c47414 in ?? () from /lib/libc.so.6
(gdb) bt
#0  0xb7c47414 in ?? () from /lib/libc.so.6
#1  0xb7c4a97d in free () from /lib/libc.so.6
#2  0xb7f940f1 in operator delete(void*) () from /usr/lib/libfltk2.so
#3  0xb7f9411d in operator delete[](void*) () from /usr/lib/libfltk2.so
#4  0xb7f597c9 in fltk::Preferences::Node::~Node (this=0x811afc0,
__in_chrg=<optimized out>) at Preferences.cxx:865
#5  0xb7f59164 in fltk::Preferences::RootNode::~RootNode (this=0x811aff8,
__in_chrg=<optimized out>) at Preferences.cxx:764
#6  0xb7f57d01 in fltk::Preferences::~Preferences (this=0xb7fc11c0,
__in_chrg=<optimized out>) at Preferences.cxx:167
#7  0xb7c0900b in __cxa_finalize () from /lib/libc.so.6
#8  0xb7f06214 in __do_global_dtors_aux () from /usr/lib/libfltk2.so
#9  0xb7f9ba60 in _fini () from /usr/lib/libfltk2.so
#10 0xb7fedddd in _dl_fini () from /lib/ld-linux.so.2
#11 0xb7c08c61 in ?? () from /lib/libc.so.6
#12 0xb7c08ced in exit () from /lib/libc.so.6
#13 0xb7bf123b in __libc_start_main () from /lib/libc.so.6
#14 0x08065041 in _start ()

Upon investigation, I found a global variable in FileChooser2.cxx:
Preferences     FileChooser::prefs_(Preferences::USER, "fltk.org",
"filechooser");

Which can not be freed with Preferences destructor since "fltk.org" &
"filechooser" points to constant string. Thus caused the crash.


Link: http://www.fltk.org/str.php?L2694
Version: 2.0-current

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

Reply via email to