From: <sz...@t-...> - 2001-12-04 21:42:40
|
I downloaded today the latest sources of fltk and ruby-fltk. I am using Suse Linux 7.3 (Kernel 2.4.10), ruby-fltk-0.4, fltk-1.1.0b6 and configured the ruby fltk with the option --disable-gl (otherwise there were unresolved symbols in the fltk so). I tried some of your examples, and if I click around a while in the file browser, then it crashes with the following trace: (gdb) r file_chooser.rb Starting program: /usr/local/bin/ruby file_chooser.rb Program received signal SIGSEGV, Segmentation fault. 0x080a1adb in rb_str_new2 (ptr=0x0) at string.c:57 57 return rb_str_new(ptr, strlen(ptr)); (gdb) where #0 0x080a1adb in rb_str_new2 (ptr=0x0) at string.c:57 #1 0x080a1b52 in rb_tainted_str_new2 (ptr=0x0) at string.c:75 #2 0x40216ca8 in rb_fltk_file_chooser_callback_internal (str=0x0) at fltk.cc:699 #3 0x40240eba in callback () at flmenu.cc:169 #4 0x40247f24 in Fl_File_Chooser::fileListCB () at flmenu.cc:169 #5 0x40246aa7 in Fl_File_Chooser::cb_fileList () at flmenu.cc:169 #6 0x4022684a in Fl_Browser_::handle () at flmenu.cc:169 #7 0x4022c2b5 in send () at flmenu.cc:169 #8 0x4022c68b in Fl_Group::handle () at flmenu.cc:169 #9 0x40222b61 in Fl_Window::handle () at flmenu.cc:169 #10 0x40222614 in send () at flmenu.cc:169 #11 0x40222770 in Fl::handle () at flmenu.cc:169 #12 0x4023c2a7 in fl_handle () at flmenu.cc:169 #13 0x4023b798 in do_queued_events () at flmenu.cc:169 #14 0x4023bacb in fd_callback () at flmenu.cc:169 #15 0x4023b9d1 in fl_wait () at flmenu.cc:169 #16 0x40221f69 in Fl::wait () at flmenu.cc:169 #17 0x40221fea in Fl::wait () at flmenu.cc:169 #18 0x40240fb9 in fl_file_chooser () at flmenu.cc:169 #19 0x40216e65 in rb_fltk_file_chooser (argc=1, argv=0xbfffe924, self=1075620236) at fltk.cc:745 #20 0x08059c18 in call_cfunc (func=0x40216d30 <rb_fltk_file_chooser(int, unsigned long *, unsigned long)>, recv=1075620236, len=-1, argc=1, argv=0xbfffe924) at eval.c:4214 #21 0x0805a1c2 in rb_call0 (klass=1075600936, recv=1075620236, id=8977, argc=1, argv=0xbfffe924, body=0x401c4ce4, nosuper=1) at eval.c:4353 #22 0x0805a9aa in rb_call (klass=1075600936, recv=1075620236, mid=8977, argc=1, argv=0xbfffe924, scope=0) at eval.c:4569 #23 0x080558fc in rb_eval (self=1075674256, n=0x401caa04) at eval.c:2524 #24 0x08055730 in rb_eval (self=1075674256, n=0x401caa90) at eval.c:2516 #25 0x08051edc in eval_node (self=1075674256, node=0x401caa90) at eval.c:1058 #26 0x0805228f in ruby_run () at eval.c:1188 #27 0x08050a52 in main (argc=2, argv=0xbffff484, envp=0xbffff490) at main.c:50 #28 0x4009f7ee in __libc_start_main () from /lib/libc.so.6 |