Issue 9829 - Crash on send mail ..
Summary: Crash on send mail ..
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC All
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: h.ilter
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-04 14:43 UTC by mmeeks
Modified: 2013-08-07 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mmeeks 2002-12-04 14:43:42 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.
Comment 1 h.ilter 2002-12-06 10:50:57 UTC
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()
Comment 2 thorsten.ziehm 2003-01-16 15:03:11 UTC
Crahses are P1!
Comment 3 andreas.martens 2003-01-20 11:42:49 UTC
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?
Comment 4 Oliver Specht 2003-01-22 10:00:34 UTC
The same crash occurs on File/Send/Document as PDF attachment.
Fixed in cws os4
Comment 5 Oliver Specht 2003-01-24 15:24:23 UTC
cws os4 is available on so-cwsserv02 for wntmsci9 and unxsols3.pro
Comment 6 h.ilter 2003-01-28 12:07:56 UTC
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...
Comment 7 h.ilter 2003-01-28 12:08:50 UTC
HI: Verified with CWS-OS4 644J_8497.
Comment 8 h.ilter 2003-02-13 13:47:36 UTC
Verified with integrated 644u_8514 = ok