Closed Bug 239843 Opened 20 years ago Closed 20 years ago

url logging crash when nsImapProtocol not yet created

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dveditz, Assigned: dveditz)

Details

(Keywords: regression)

Attachments

(1 file)

Some 3rd party extensions can use nsImapIncomingServer before nsImapProtocol is
contructed. The fix for bug 221023 added a static nsImapProtocol::LogImapUrl
which can be called before the IMAP PR_LogModuleInfo is created by the
nsImapProtocol contructor.
I'll look into it. What 3rd party extension would this be? You can tell me
privately if you want...
Status: NEW → ASSIGNED
Attached patch simple fixSplinter Review
This patch solves the problem
Attachment #145577 - Flags: superreview?(mscott)
Attachment #145577 - Flags: review?(mscott)
Attachment #145577 - Flags: approval1.7?
Attachment #145577 - Flags: review?(mscott) → review?(bienvenu)
Comment on attachment 145577 [details] [diff] [review]
simple fix

It's interesting that this method can get called before the constructor for
nsImapProtocol which initializes the IMAP log modules:

http://lxr.mozilla.org/mozilla/source/mailnews/imap/src/nsImapProtocol.cpp#447

What other mozilla stuff is on the stack trace Dan?

Oh I see your comment in the beginning of the bug. It's a static method.
Attachment #145577 - Flags: review?(bienvenu) → review?(mscott)
Comment on attachment 145577 [details] [diff] [review]
simple fix

yes, that's fine.
Attachment #145577 - Flags: review?(mscott) → review+
Attachment #145577 - Flags: superreview?(mscott) → superreview+
It's still odd that it gets called before any nsImapProtocol object is created
so I am curious about the stack trace.
Comment on attachment 145577 [details] [diff] [review]
simple fix

a=chofmann for 1.7
Attachment #145577 - Flags: approval1.7? → approval1.7+
Assignee: bienvenu → dveditz+bmo
Status: ASSIGNED → NEW
Checking in nsImapProtocol.cpp;
/cvsroot/mozilla/mailnews/imap/src/nsImapProtocol.cpp,v  <--  nsImapProtocol.cpp
new revision: 1.550; previous revision: 1.549
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
QA Contact: grylchan → benc
Product: MailNews → Core
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: