CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS:    src/wp/ap/xp/ap_LeftRuler.cpp
CVS: ----------------------------------------------------------------------
Fix incremental loader segfault reported by Robert Wilhelm


Thanks Robert!

Martin

On Wed, 13 Mar 2002, Robert Wilhelm wrote:

> > > When e.g. loading the Dokument from #2393 (TIPython.doc) and moving
> > > the mouse a bit during load, I get following crash under Linux:
> > >
> 
> Hi Martin,
> 
> here is another crasher at nearly the same position:
>  
> (gdb) r TIPython.doc  &>/dev/null 
> Starting program: /usr/local/AbiSuite/bin/AbiWord_d TIPython.doc  &>/dev/null
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x080f7d4e in AP_LeftRuler::mouseMotion (this=0x85aaca0, ems=0, x=18, y=3)
>     at ap_LeftRuler.cpp:396
> 396           pView->getLeftRulerInfo(&m_infoCache);
> (gdb) p pView
> $1 = (class FV_View *) 0x0
> (gdb) bt
> #0  0x080f7d4e in AP_LeftRuler::mouseMotion (this=0x85aaca0, ems=0, x=18, y=3)
>     at ap_LeftRuler.cpp:396
> #1  0x080dd8f4 in AP_UnixLeftRuler::_fe::motion_notify_event (w=0x85aad30, 
>     e=0x8c16db0) at ap_UnixLeftRuler.cpp:335
> #2  0x400edaec in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
> #3  0x40121436 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
> #4  0x4012076d in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> #5  0x4011e525 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> #6  0x40158b89 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
> #7  0x400eda45 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
> #8  0x400eca6f in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
> #9  0x4019dd7f in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
> #10 0x401d1773 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
> #11 0x401d1d39 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
> #12 0x401d1e1e in g_main_iteration () from /usr/lib/libglib-1.2.so.0
> #13 0x400ec594 in gtk_main_iteration () from /usr/lib/libgtk-1.2.so.0
> #14 0x0826be11 in XAP_UnixFrame::nullUpdate (this=0x852a7e0)
>     at xap_UnixFrame.cpp:736
> #15 0x0824a6ae in PD_Document::appendStrux (this=0x85b4e30, pts=PTX_Block, 
>     attributes=0xbfffd360) at pd_Document.cpp:473
> #16 0x0816c002 in IE_Imp_MsWord_97::_beginPara (this=0x405a3008, 
>     ps=0xbfffe530, tag=4, prop=0xbfffda00, dirty=0)
>     at ie_imp_MsWord_97.cpp:1914
> ---Type <return> to continue, or q <return> to quit---
> #17 0x08169ffb in IE_Imp_MsWord_97::_eleProc (this=0x405a3008, ps=0xbfffe530, 
>     tag=4, props=0xbfffda00, dirty=0) at ie_imp_MsWord_97.cpp:1136
> #18 0x0816db9d in eleProc (ps=0xbfffe530, tag=PARABEGIN, props=0xbfffda00, 
>     dirty=0) at ie_imp_MsWord_97.cpp:2569
> #19 0x081a9205 in wvHandleElement (ps=0xbfffe530, tag=PARABEGIN, 
>     props=0xbfffda00, dirty=0) at text.c:1026
> #20 0x081df5a2 in wvDecodeSimple (ps=0xbfffe530, whichdoc=Dmain)
>     at decode_simple.c:375
> #21 0x081adebd in wvText (ps=0xbfffe530) at wvTextEngine.c:14
> #22 0x08168d98 in IE_Imp_MsWord_97::importFile (this=0x405a3008, 
>     szFilename=0xbffffaf6 "TIPython.doc") at ie_imp_MsWord_97.cpp:617
> #23 0x08249d11 in PD_Document::readFromFile (this=0x85b4e30, 
>     szFilename=0xbffffaf6 "TIPython.doc", ieft=0) at pd_Document.cpp:202
> #24 0x080dabd9 in AP_UnixFrame::_loadDocument (this=0x852a7e0, 
>     szFilename=0xbffffaf6 "TIPython.doc", ieft=0, createNew=true)
>     at ap_UnixFrame.cpp:502
> #25 0x080db0fc in AP_UnixFrame::loadDocument (this=0x852a7e0, 
>     szFilename=0xbffffaf6 "TIPython.doc", ieft=0, createNew=true)
>     at ap_UnixFrame.cpp:633
> #26 0x080d921b in AP_UnixApp::parseCommandLine (this=0x84c9b58)
>     at ap_UnixApp.cpp:1537
> #27 0x080d8933 in AP_UnixApp::main (szAppName=0x835749b "AbiWord", argc=2, 
>     argv=0xbffff9b4) at ap_UnixApp.cpp:1337
> ---Type <return> to continue, or q <return> to quit---
> #28 0x080d580e in main (argc=2, argv=0xbffff9b4) at UnixMain.cpp:32
> #29 0x4038e306 in __libc_start_main (main=0x80d57b0 <main>, argc=2, 
>     ubp_av=0xbffff9b4, init=0x80d315c <_init>, fini=0x8357460 <_fini>, 
>     rtld_fini=0x4000d2dc <_dl_fini>, stack_end=0xbffff9ac)
>     at ../sysdeps/generic/libc-start.c:129
> (gdb) 
> 

Reply via email to