> Hello all! > Can anyone, please,suggest me what to do with this kind of error: > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb7a286d0 (LWP 25230)] > 0xb7b95c13 in _int_malloc () from /lib/libc.so.6 > > (gdb) thread apply all bt > > Thread 2 (Thread 0xb7a27b90 (LWP 25232)): > #0 0xb7e8f3f1 in write () from /lib/libpthread.so.0 > #1 0x080acd05 in Fl::awake () > #2 0x0804d056 in cnc_gui::setRemainingTime (this=0x80e30a0, > RemainedTime=0) at cnc_gui.cxx:3106 > #3 0x0807f059 in func4CmdMngrThread > (pCmdMngrThread=0x80e30a0) at cmd_mngr.cpp:1552 > #4 0xb7e88383 in start_thread () from /lib/libpthread.so.0 > #5 0xb7c0005e in clone () from /lib/libc.so.6 > > Thread 1 (Thread 0xb7a286d0 (LWP 25230)): > #0 0xb7b95c13 in _int_malloc () from /lib/libc.so.6 > #1 0xb7b97b2d in malloc () from /lib/libc.so.6 > #2 0xb7dbeccb in ?? () from /usr/lib/libX11.so.6 > #3 0x00000010 in ?? () > #4 0x081133d0 in ?? () > #5 0xbfb165e8 in ?? () > #6 0xb7dbf473 in XUnionRectWithRegion () from /usr/lib/libX11.so.6 > #7 0xb7dbf51e in XIntersectRegion () from /usr/lib/libX11.so.6 > #8 0x080b5991 in fl_push_clip () > #9 0x080a614e in Fl_Input_::drawtext () > #10 0x080a4658 in Fl_Input::draw () > #11 0x080a2deb in Fl_Group::update_child () > #12 0x080a2ecf in Fl_Group::draw_children () > #13 0x080ab257 in Fl_Window::draw () > #14 0x080a1397 in Fl_Double_Window::flush () > #15 0x080a1426 in Fl_Double_Window::flush () > #16 0x0809d1ae in Fl::flush () > #17 0x0809d40d in Fl::wait () > #18 0x0809d497 in Fl::run () > #19 0x08089f52 in main (argc=-1078823452, argv=0x0) at main.cpp:1120 > > > I have two threads in my program. This is backtrace from GDB. > I had problems with threads some time ago. I used FL::flush > in not appropriate place in thread #2. I've changed it to > FL::awake. For some time there were no problems, but now I > have above-mentioned error. I use FLTK 1.1.9.
At first glance, I'd say the crash was in thread 1, which I assume is the "main" thread, rather than in thread 2, but it might be the case that thread-2 has (via Fl::awake) triggered some action that has caused the main thread to fail. It does look very much as if: > #5 0xbfb165e8 in ?? () > #6 0xb7dbf473 in XUnionRectWithRegion () from /usr/lib/libX11.so.6 > #7 0xb7dbf51e in XIntersectRegion () from /usr/lib/libX11.so.6 Have been passed something invalid and have choked... Are you attempting to create a new window (e.g. create a pop-up dialog or etc) from thread-2? If so, that might be the problem. Otherwise... I don't know... Are all your windows created and valid before this crash happens? SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

