Closed Bug 303336 Opened 19 years ago Closed 19 years ago

[FIXr]stack overflow crash when I try to open an attachment with forwarded message

Categories

(MailNews Core :: Attachments, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.8beta4

People

(Reporter: dooshan, Assigned: bzbarsky)

References

Details

(Keywords: crash, fixed1.8, regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050725 MultiZilla/1.8.0.1h SeaMonkey/1.0a
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050726 MultiZilla/1.8.0.1h SeaMonkey/1.0a

When I try to open an attached message that was forwarded to me as an
attachment, the SeaMonkey application stops responding and eventually crashes.
If there were more attached messages the application crashes quicker. The
problem started to appear in SeaMonkey 2005-07-26 and appears till current
nightly (2005-08-03-06-trunk). The problem is not in SeaMonkey 2005-07-25 and
prior versions. I am on Windows 2000 and I am getting my email through IMAP on
Microsoft Exchange.

Reproducible: Always

Steps to Reproduce:
1. Forward a message as an attachment to myself or let somebody send it to you.
2. Try to open that attached message.
3. SeaMonkey crashes.

Actual Results:  
Crash

Expected Results:  
Open the attached message.

No talkback appeared, no errors, nothing, the SeaMonkey application just
disappeared.
Version: unspecified → Trunk
Keywords: regression
Stacktrace:
nsXPCWrappedJS::CallMethod(nsXPCWrappedJS * const 0x08992360, unsigned short 5,
const nsXPTMethodInfo * 0x02aad230, nsXPTCMiniVariant * 0x00033920) line 462
PrepareAndDispatch(nsXPTCStubBase * 0x00000000, unsigned int 5, unsigned int *
0x000339d8, unsigned int * 0x000339c8) line 117 + 18 bytes
SharedStub() line 147
nsDocumentOpenInfo::TryContentListener(nsDocumentOpenInfo * const 0x00008000,
nsIURIContentListener * 0x08992360, nsIChannel * 0x09382014) line 724
nsDocumentOpenInfo::DispatchContent(nsDocumentOpenInfo * const 0x00008000,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 515 + 13 bytes
nsDocumentOpenInfo::OnStartRequest(nsDocumentOpenInfo * const 0x0bdd0108,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 345 + 13 bytes
nsStreamConverter::OnStartRequest(nsStreamConverter * const 0x23f416a0,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 961 + 10 bytes
nsDocumentOpenInfo::OnStartRequest(nsDocumentOpenInfo * const 0x0bdcb5c8,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 356 + 12 bytes
nsStreamConverter::OnStartRequest(nsStreamConverter * const 0x23f3cb70,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 961 + 10 bytes
nsDocumentOpenInfo::OnStartRequest(nsDocumentOpenInfo * const 0x0bdcaa78,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 356 + 12 bytes
nsStreamConverter::OnStartRequest(nsStreamConverter * const 0x23f3c020,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 961 + 10 bytes
nsDocumentOpenInfo::OnStartRequest(nsDocumentOpenInfo * const 0x0bdcfdc0,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 356 + 12 bytes
nsStreamConverter::OnStartRequest(nsStreamConverter * const 0x23f3b4d0,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 961 + 10 bytes
nsDocumentOpenInfo::OnStartRequest(nsDocumentOpenInfo * const 0x0bdcf270,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 356 + 12 bytes
nsStreamConverter::OnStartRequest(nsStreamConverter * const 0x23f40948,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 961 + 10 bytes
nsDocumentOpenInfo::OnStartRequest(nsDocumentOpenInfo * const 0x0bdc7890,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 356 + 12 bytes
nsStreamConverter::OnStartRequest(nsStreamConverter * const 0x23f39e20,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 961 + 10 bytes
nsDocumentOpenInfo::OnStartRequest(nsDocumentOpenInfo * const 0x0bdc6d40,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 356 + 12 bytes
nsStreamConverter::OnStartRequest(nsStreamConverter * const 0x23f392d0,
nsIRequest * 0x09382014, nsISupports * 0x058c2548) line 961 + 10 bytes
[loop continues]
Maybe fallout from Bug 244964?
Assignee: mail → darin
Blocks: 303601
Status: UNCONFIRMED → NEW
Component: MailNews: Main Mail Window → Networking
Ever confirmed: true
Product: Mozilla Application Suite → Core
QA Contact: benc
Flags: blocking1.8b4?
Crap, the stacktrace misses the first part, insert this at the beginning:
NTDLL! 77882a6b()
NTDLL! 778cc1d0()
MSVCRT! 78001532()
MSVCRT! 780014cf()
JS_vsmprintf(const char * 0x0114a5ec `string', char * 0x0003339c) line 1104 + 34
bytes
Sprint(Sprinter * 0x000333d4, const char * 0x0114a5ec `string') line 356 + 15 bytes
QuoteString(Sprinter * 0x000333d4, JSString * 0x08e2bfa0, unsigned short 34)
line 391 + 35 bytes
js_QuoteString(JSContext * 0x01cbf790, JSString * 0x08e2bfa0, unsigned short 34)
line 454 + 44 bytes
js_ValueToSource(JSContext * 0x01cbf748, long 149077924) line 2757 + 13 bytes
InitExceptionObject(JSContext * 0x01cbf748, JSObject * 0x08e2bfb0, JSString *
0x00000001, JSString * 0x23f3e1e8, unsigned int 1) line 447 + 7 bytes
js_ErrorToException(JSContext * 0x08e2bfb8, const char * 0x23f3e3b0,
JSErrorReport * 0x03824450) line 1024 + 14 bytes
ReportError(JSContext * 0x01cbf748, const char * 0x23f3e3b0, JSErrorReport *
0x00033510) line 687 + 13 bytes
js_ReportErrorNumberVA(JSContext * 0x00000000, unsigned int 603186096, const
JSErrorFormatString * (void *, const char *, const unsigned int)* 0x010d1eab
_js_GetErrorMessage, void * 0x00000000, const unsigned int 26, int 1, char *
0x00033574) line 983 + 13 bytes
JS_ReportErrorNumber(JSContext * 0x01cbf748, const JSErrorFormatString * (void
*, const char *, const unsigned int)* 0x010d1eab _js_GetErrorMessage, void *
0x00000000, const unsigned int 26) line 4191 + 25 bytes
js_Interpret(JSContext * 0x01cbf748, unsigned char * 0x01bfdb28, long *
0x00033778) line 1802 + 15 bytes
js_Invoke(JSContext * 0x00000001, unsigned int 2, unsigned int 2) line 1193 + 12
bytes
nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJSClass * const 0x02afb8d0,
nsXPCWrappedJS * 0x02992360, unsigned short 5, const nsXPTMethodInfo *
0x02aad230, nsXPTCMiniVariant * 0x00033920) line 1339 + 16 bytes
No longer blocks: 303601
*** Bug 303601 has been marked as a duplicate of this bug. ***
Keywords: crash
Summary: crash when I try to open an attachment with forwarded message → stack overflow crash when I try to open an attachment with forwarded message
Blocks: 244964
Flags: blocking1.8b4? → blocking1.8b4+
Assignee: darin → nobody
Component: Networking → MailNews: Attachments
QA Contact: benc
With things as they are, the imap mock channel never ends up with a nonempty
MIME type...
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #192770 - Flags: superreview?(darin)
Attachment #192770 - Flags: review?(bienvenu)
OS: Windows 2000 → All
Priority: -- → P1
Hardware: PC → All
Summary: stack overflow crash when I try to open an attachment with forwarded message → [FIx]stack overflow crash when I try to open an attachment with forwarded message
Target Milestone: --- → mozilla1.8beta4
Summary: [FIx]stack overflow crash when I try to open an attachment with forwarded message → [FIX]stack overflow crash when I try to open an attachment with forwarded message
Comment on attachment 192770 [details] [diff] [review]
Patch -- use a valid content type

Darin's on vacation - so I'm taking the liberty of switching the sr request to
mscott - hope that's ok!
Attachment #192770 - Flags: superreview?(mscott)
Attachment #192770 - Flags: superreview?(darin)
Attachment #192770 - Flags: review?(bienvenu)
Attachment #192770 - Flags: review+
Attachment #192770 - Flags: superreview?(mscott) → superreview+
Comment on attachment 192770 [details] [diff] [review]
Patch -- use a valid content type

regressed before branching
Attachment #192770 - Flags: approval1.8b4?
Summary: [FIX]stack overflow crash when I try to open an attachment with forwarded message → [FIXr]stack overflow crash when I try to open an attachment with forwarded message
Attachment #192770 - Flags: approval1.8b4? → approval1.8b4+
Fixed on trunk and 1.8 branch.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Verified FIXED using build 2005-08-16-12 trunk SeaMonkey on Windows XP.

(Please replace fixed1.8 keyword with verified1.8 when branch verification happens.)
Status: RESOLVED → VERIFIED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: