> Are you using threads? If yes, then your show() operations on windows
> _must_ be in the primary thread to be portable, otherwise you may see
> something not working or even crashes like this one.

well , I think the funtion is not runing in threads , may be the last gdb 
output is too short , this one will be bigger :

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208866592 (LWP 2843)]
0x08272e6f in fl_xid (w=0x9bd32ec) at ../FL/x.H:129
129                                                     return Fl_X::i(w)->xid;}
(gdb) bt
#0  0x08272e6f in fl_xid (w=0x9bd32ec) at ../FL/x.H:129
#1  0x08280e92 in Fl_X::make_xid (w=0x9bd4a3c, visual=0x9b7b878, colormap=32) 
at Fl_x.cxx:982
#2  0x08275ac7 in Fl_Double_Window::show (this=0x9bd4a3c) at 
Fl_Double_Window.cxx:65
#3  0x0827964d in Fl_Overlay_Window::show (this=0x9bd4a3c) at 
Fl_Overlay_Window.cxx:37
#4  0x08271c79 in Fl_Window::handle (this=0x9bd4a3c, event=16) at Fl.cxx:774
#5  0x080f97f7 in COWin::handle (this=0x9bd4a18, iEvent=16) at 
/root/workdir/ut6000f/src/rk_dtk_owin.cpp:352
#6  0x08277720 in Fl_Group::handle (this=0x9bd4650, event=16) at 
Fl_Group.cxx:235
#7  0x080eafeb in CGroup::handle (this=0x9bd4630, iEvent=16) at 
/root/workdir/ut6000f/src/rk_dtk_group.cpp:136
#8  0x0827bfc3 in Fl_Widget::show (this=0x9bd4650) at Fl_Widget.cxx:223
#9  0x0805c950 in CBigParamWin::SetParemAreaXY (this=0x9bd32c8) at 
/root/workdir/ut6000f/src/at_bigparamwin.cpp:998
#10 0x0805d344 in CBigParamWin::Sort_Td (this=0x9bd32c8, pState=0x9bb8b04, 
uTdNum=9)
    at /root/workdir/ut6000f/src/at_bigparamwin.cpp:267
#11 0x0814008f in CBed::Sort_Td (this=0x9bb7df8, pState=0xbf95cb04, uTdNum=9, 
bInitWave=true, uShowPosition=0)
    at /root/workdir/ut6000f/src/wr_bed.cpp:531
#12 0x0817cf1b in CDataMgr::Sort_Td (this=0x86b9ea0, iBed=0, bDrawWave=true) at 
/root/workdir/ut6000f/src/wr_datamgr.cpp:618
#13 0x0817d684 in CDataMgr::SortChannelCmd (this=0x86b9ea0, bedid=0) at 
/root/workdir/ut6000f/src/wr_datamgr.cpp:5463
#14 0x08188a6c in CDataMgr::DoCmd (this=0x86b9ea0, bedid=0, cmd=8779) at 
/root/workdir/ut6000f/src/wr_datamgr.cpp:10980
#15 0x081898a8 in CDataMgr::AnalyseCmd (this=0x86b9ea0, bedid=0, cmd=8779) at 
/root/workdir/ut6000f/src/wr_datamgr.cpp:8837
#16 0x081ff0e5 in CState::SetStateData (this=0x8e3cfa0, pData=0x9c03100, 
uCount=1, bSendCmd=true, bCheckSync=true, bWriteToHal=true)
    at /root/workdir/ut6000f/src/wr_state.cpp:1882
#17 0x0815cb87 in CUT5000ChannelSetupDlg::MsgProc (this=0x9c02f58, dwMsg=300, 
wp=12, lp=163672448)
    at /root/workdir/ut6000f/src/wr_channelsetup.cpp:521
#18 0x080f8969 in CDtkObject::PreMsgProc (this=0x9c02f58, dwMsg=300, wp=12, 
lp=163672448)
    at /root/workdir/ut6000f/src/rk_dtkobject.cpp:134
#19 0x080e2691 in CDtkObject::DefMsgProc (pthis=0x9c02f58, dwMsg=300, wp=12, 
lp=163672448)
    at /root/workdir/ut6000f/src/rk_dtkobject.h:353
#20 0x0808a464 in CDtkObject::SendMsg (this=0x9c17180, pObj=0x9c02f58, 
dwMsg=300, wp=12, lp=163672448)
    at /root/workdir/ut6000f/src/rk_dtkobject.h:327
#21 0x0809db48 in CDtkObject::SendCmdMsg (this=0x9c17180, dwMsg=300, wp=12, 
lp=163672448)
    at /root/workdir/ut6000f/src/rk_dtkobject.h:336
#22 0x080e2c83 in CButton::OnKey_Enter (this=0x9c17180, bDown=true) at 
/root/workdir/ut6000f/src/rk_dtk_button.cpp:134
#23 0x080e2d91 in CButton::Button_Handle (this=0x9c17180, iEvent=8) at 
/root/workdir/ut6000f/src/rk_dtk_button.cpp:150
#24 0x080e2e4d in CButton::MsgProc (this=0x9c17180, dwMsg=2, wp=8, lp=0) at 
/root/workdir/ut6000f/src/rk_dtk_button.cpp:118
#25 0x080f8969 in CDtkObject::PreMsgProc (this=0x9c17180, dwMsg=2, wp=8, lp=0) 
at /root/workdir/ut6000f/src/rk_dtkobject.cpp:134
#26 0x080e2691 in CDtkObject::DefMsgProc (pthis=0x9c17180, dwMsg=2, wp=8, lp=0) 
at /root/workdir/ut6000f/src/rk_dtkobject.h:353
#27 0x0808a464 in CDtkObject::SendMsg (this=0x9c17180, pObj=0x9c17180, dwMsg=2, 
wp=8, lp=0)
    at /root/workdir/ut6000f/src/rk_dtkobject.h:327
#28 0x080f97b4 in COWin::handle (this=0x9c17180, iEvent=8) at 
/root/workdir/ut6000f/src/rk_dtk_owin.cpp:346
#29 0x08271836 in send (event=8, to=0x9c171a4, window=0x9c02f7c) at Fl.cxx:524
#30 0x0827228a in Fl::handle (event=8, window=0x9c02f7c) at Fl.cxx:612
#31 0x0827f910 in fl_handle (xeve...@0xbf95d4a8) at Fl_x.cxx:880
#32 0x0827fb37 in do_queued_events () at Fl_x.cxx:172
#33 0x0827fbaf in fd_callback () at Fl_x.cxx:289
#34 0x08280023 in fl_wait (time_to_wait=0.049229000000001896) at Fl_x.cxx:238
#35 0x08272d1f in Fl::wait (time_to_wait=0.049229000000001896) at Fl.cxx:272
#36 0x08272d8e in Fl::run () at Fl.cxx:279
#37 0x081e83ff in main (argc=1, argv=0xbf95d834) at 
/root/workdir/ut6000f/src/wr_main.cpp:425
(gdb)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to