Apache OpenOffice (AOO) Bugzilla – Issue 9829
Crash on send mail ..
Last modified: 2013-08-07 14:43:23 UTC
Trivial to repeat; type 'foo' in a new document; File -> Page Preview, File -> Send -> Document as E-mail. Bang ... seg fault in OOO_STABLE_1, seg fault in StarOffice 6.0 I tracked the problem down to: * sw/source/ui/app/docsh2.cxx (SID_MAIL_PREPAREEXPORT): calls StartAllCation / EndAllAction on NULL pWrtShell. My fix was: --- sw/source/core/edit/edws.cxx 25 Oct 2000 12:01:56 -0000 1.2 +++ sw/source/core/edit/edws.cxx 4 Dec 2002 14:24:50 -0000 @@ -184,6 +184,8 @@ { ViewShell *pSh = this; do { + if (!pSh) + break; if( pSh->IsA( TYPE( SwEditShell ) ) ) ((SwEditShell*)pSh)->StartAction(); else @@ -200,6 +202,8 @@ { ViewShell *pSh = this; do { + if (!pSh) + break; if( pSh->IsA( TYPE( SwEditShell ) ) ) ((SwEditShell*)pSh)->EndAction(); else HTH.
Here is the stack: SW644MI! SwEditShell::StartAllAction(void) + 7 bytes SW644MI! SwDocShell::Execute(class SfxRequest &) + 1450 bytes SW644MI! SfxStubSwDocShellExecute(class SfxShell *,class SfxRequest &) + 14 bytes SFX644MI! SfxDispatcher::Call_Impl(class SfxShell &,class SfxSlot const &,class SfxRequest &,unsigned char) + 1269 bytes SFX644MI! SfxDispatcher::_Execute(class SfxShell &,class SfxSlot const &,class SfxRequest &,unsigned short) + 832 bytes SFX644MI! SfxDispatcher::Execute(unsigned short,unsigned short,class SfxPoolItem const * *,unsigned short,class SfxPoolItem const * *) + 1169 bytes SFX644MI! SfxMailModel_Impl::SaveDocument(class String &,class String &) + 360 bytes SFX644MI! SfxMailModel_Impl::Send(enum SfxMailModel_Impl::MailDocType) + 99 bytes SFX644MI! SfxViewShell::ExecMisc_Impl(class SfxRequest &) + 868 bytes SFX644MI! SfxStubSfxViewShellExecMisc_Impl(class SfxShell *,class SfxRequest &) + 15 bytes SFX644MI! SfxDispatcher::Call_Impl(class SfxShell &,class SfxSlot const &,class SfxRequest &,unsigned char) + 1269 bytes SFX644MI! SfxDispatcher::PostMsgHandler(class SfxRequest *) + 378 bytes SFX644MI! SfxDispatcher::LinkStubPostMsgHandler(void *,void *) + 15 bytes SFX644MI! SfxHintPoster::Event(class SfxHint *) + 70 bytes SFX644MI! SfxHintPoster::LinkStubDoEvent_Impl(void *,void *) + 31 bytes VCL644MI! ImplWindowFrameProc(void *,class SalFrame *,unsigned short,void const *) + 7316 bytes VCL644MI! ImplWindowFrameProc(void *,class SalFrame *,unsigned short,void const *) + 1262 bytes VCL644MI! SalFrameWndProc(struct HWND__ *,unsigned int,unsigned int,long,int &) + 8703 bytes VCL644MI! SalFrameWndProc(struct HWND__ *,unsigned int,unsigned int,long,int &) + 1523 bytes VCL644MI! SalFrameWndProcW(struct HWND__ *,unsigned int,unsigned int,long) + 38 bytes USER32! 77d43a5f() USER32! 77d43b2e() USER32! 77d43d6a() USER32! 77d43dd0() VCL644MI! ImplSalYield(unsigned char) + 191 bytes VCL644MI! ImplSalYield(unsigned char) + 79 bytes VCL644MI! SalInstance::Yield(unsigned char) + 169 bytes VCL644MI! Application::Yield(void) + 95 bytes VCL644MI! Application::Execute(void) + 47 bytes SOFFICE! desktop::Desktop::Main(void) + 7791 bytes VCL644MI! SVMain(void) + 251 bytes SOFFICE! 0112d338() SOFFICE! WinMainCRTStartup + 308 bytes KERNEL32! 77e7eb69()
Crahses are P1!
AMA->OS: I'm not sure that we've to check the pSh=this if it's exist. I think you find a better place to fix this bug, don't you?
The same crash occurs on File/Send/Document as PDF attachment. Fixed in cws os4
cws os4 is available on so-cwsserv02 for wntmsci9 and unxsols3.pro
Unnamed doc will attached as noname_(Nr).sxw, the other will be attached with the file name like test_0.sxw. If the the same doc will be send again, then the attach will be named as test_1.sxw...
HI: Verified with CWS-OS4 644J_8497.
Verified with integrated 644u_8514 = ok