Closed
Bug 423825
Opened 17 years ago
Closed 16 years ago
Crash [@ random address @ nsMsgSearchOfflineMail::~nsMsgSearchOfflineMail()]
Categories
(MailNews Core :: Search, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: bc, Unassigned)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
1.03 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
Thunderbird 3.0 on CentOS5 64 bit. I didn't see this on 32bit Fedora 8 or Mac OS 10.5.
Steps to reproduce: click on a folder
Expected results : select folder
Actual results : random crashes
bp-affeb3e8-f5a4-11dc-819e-001a4bd43e5c
bp-2a87bea1-f58c-11dc-bb9f-001a4bd46e84
bp-306ec473-f572-11dc-89c0-001a4bd43ed6
bp-342ee875-f551-11dc-b93e-001a4bd43ef6
bp-06d706a6-f527-11dc-ae2d-001a4bd43ef6
bp-5e63f461-f4a7-11dc-83ea-001a4bd43ed6
bp-70c1fbab-f46b-11dc-bfd6-001a4bd46e84
bp-b53a0287-f435-11dc-92a5-001a4bd46e84
bp-90a82e3d-f41e-11dc-923a-001a4bd43e5c
bp-b5b858bd-f409-11dc-9d27-001a4bd43ef6
bp-4069b5e1-f3e8-11dc-b0c5-001a4bd43ef6
bp-55e0db0a-f3df-11dc-8fb7-001a4bd43e5c
Flags: in-testsuite-
Flags: in-litmus-
Flags: blocking-thunderbird3.0a1?
Reporter | ||
Comment 1•17 years ago
|
||
Note: I'm not offline when this crash happens.
Comment 2•17 years ago
|
||
At least a few of them include a stack which crash here:
<http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mailnews/base/search/src/nsMsgLocalSearch.cpp&rev=1.81&mark=720#720>
Comment 3•17 years ago
|
||
For instance OnStopRunningUrl also null checks m_scope so I assume it could be needed here too.
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #310533 -
Flags: superreview?(bienvenu)
Attachment #310533 -
Flags: review?(bienvenu)
Comment 4•17 years ago
|
||
Comment on attachment 310533 [details] [diff] [review]
proposed fix
sure, thx, Magnus.
Attachment #310533 -
Flags: superreview?(bienvenu)
Attachment #310533 -
Flags: superreview+
Attachment #310533 -
Flags: review?(bienvenu)
Attachment #310533 -
Flags: review+
Comment 5•17 years ago
|
||
Modifying summary, I think the other ones the same issue...
Checking in mailnews/base/search/src/nsMsgLocalSearch.cpp;
/cvsroot/mozilla/mailnews/base/search/src/nsMsgLocalSearch.cpp,v <-- nsMsgLocalSearch.cpp
new revision: 1.82; previous revision: 1.81
done
->FIXED. Try tomorrows build.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Summary: Crash [@ random address @ nsMsgSearchOfflineMail::~nsMsgSearchOfflineMail()] → Crash [@nsMsgSearchOfflineMail::CleanUpScope()]
Target Milestone: --- → Thunderbird 3
Reporter | ||
Comment 6•17 years ago
|
||
I can crash the 32bit nightlies and the 64bit builds I am doing on CentOS 5 64bit. All I have to do to reproduce is simply click on local and search folders until I crash.
#5 0x00002aaaafba020e in nsMsgSearchOfflineMail::CleanUpScope (this=0xbe39700)
at /work/mozilla/builds/1.9.0/mozilla/mailnews/base/search/src/nsMsgLocalSearch.cpp:721
#6 0x00002aaaafba202a in ~nsMsgSearchOfflineMail (this=0xbe39700)
at /work/mozilla/builds/1.9.0/mozilla/mailnews/base/search/src/nsMsgLocalSearch.cpp:270
#7 0x00002aaaafba624d in nsMsgSearchAdapter::Release (this=0xbe39700)
at /work/mozilla/builds/1.9.0/mozilla/mailnews/base/search/src/nsMsgSearchAdapter.cpp:109
#8 0x00002aaaafba2437 in nsMsgSearchOfflineMail::Release (this=0xbe39700)
at /work/mozilla/builds/1.9.0/mozilla/mailnews/base/search/src/nsMsgLocalSearch.cpp:261
#9 0x00002aaab8c0a081 in nsCOMPtr<nsIUrlListener>::assign_assuming_AddRef (
this=0xb60d838, newPtr=0xbc19ba8)
at ../../../dist/include/xpcom/nsCOMPtr.h:568
#10 0x00002aaab8c0a0bc in nsCOMPtr<nsIUrlListener>::assign_with_AddRef (
this=0xb60d838, rawPtr=0xbc19ba8)
(gdb) frame 5
#5 0x00002aaaafba020e in nsMsgSearchOfflineMail::CleanUpScope (this=0xbe39700)
at /work/mozilla/builds/1.9.0/mozilla/mailnews/base/search/src/nsMsgLocalSearch.cpp:721
721 m_scope->SetInputStream(nsnull);
(gdb) p m_scope
$1 = (class nsIMsgSearchScopeTerm *) 0xbe38c80
I only know the most basic gdb stuff, but it appears to me that m_scope is not null when m_scope->SetInputStream(nsnull) crashes.
if (m_scope)
m_scope->SetInputStream(nsnull);
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
bc:
http://www.mozilla.org/unix/debugging-faq.html
use x/wa to find the type of m_scope, something like:
x/wa m_scope
p ((nsMsgSearchScopeTerm *) m_scope)->mRefCnt
Reporter | ||
Comment 8•17 years ago
|
||
(gdb) p ((nsMsgSearchScopeTerm *) m_scope)->mRefCnt
$6 = {mValue = 452353536}
Updated•17 years ago
|
Assignee: mkmelin+mozilla → nobody
Status: REOPENED → NEW
Comment 9•17 years ago
|
||
Need more info, fresh crash ids perhaps, to make progress on this.
Flags: blocking-thunderbird3.0a1? → blocking-thunderbird3.0a1-
Target Milestone: Thunderbird 3 → ---
Reporter | ||
Comment 10•17 years ago
|
||
bp-50db7f2b-fb91-11dc-b911-001a4bd43ef6
bp-da644c63-fb81-11dc-b30d-001a4bd43ef6
bp-639efef3-fb76-11dc-bc6a-001a4bd43e5c
bp-09ee249c-fb59-11dc-9136-001a4bd43ef6
bp-a89dc7eb-fb08-11dc-989b-001a4bd43ef6
bp-614bb738-faf8-11dc-bbb7-001a4bd46e84
bp-0616268f-faef-11dc-a568-001a4bd43ed6
bp-434fc263-faa1-11dc-9b09-001a4bd43ef6
bp-cdfebc38-fa90-11dc-8e4d-001a4bd43ef6
bp-5dcdbb94-fa54-11dc-a4b5-001a4bd43ed6
bp-f0010807-fa2f-11dc-99ea-001a4bd46e84
bp-3a9b4a0f-fa24-11dc-a569-001a4bd46e84
Reporter | ||
Comment 11•17 years ago
|
||
reverting to original summary as it more accurately describes this crash.
Summary: Crash [@nsMsgSearchOfflineMail::CleanUpScope()] → Crash [@ random address @ nsMsgSearchOfflineMail::~nsMsgSearchOfflineMail()]
Comment 12•17 years ago
|
||
Almost all exactly the same. Crashing there doesn't make sense to me...
Reporter | ||
Comment 13•17 years ago
|
||
I can help debug it if you want to provide me hands on instruction on irc. Just look for bc.
Reporter | ||
Comment 14•17 years ago
|
||
PS. This is a newer Xeon with DEP if that helps.
Comment 15•17 years ago
|
||
bc: how about using refcount logging for nsMsgSearchOfflineMail ? :)
http://developer.mozilla.org/en/docs/Debugging_memory_leaks
if you're lucky, the object is known dead...
Updated•16 years ago
|
Severity: major → critical
Component: General → Search
Product: Thunderbird → MailNews Core
QA Contact: general → search
Comment 16•16 years ago
|
||
Bob, can you still reproduce this?
nsMsgSearchOfflineMail doesn't appear in any current crashes on crash-stats
Reporter | ||
Comment 17•16 years ago
|
||
No, I haven't been crashing recently at all on Shredder but I'm using Mac now. I think we can mark this wfm.
Status: NEW → RESOLVED
Closed: 17 years ago → 16 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•13 years ago
|
Crash Signature: [@ random address @ nsMsgSearchOfflineMail::~nsMsgSearchOfflineMail()]
You need to log in
before you can comment on or make changes to this bug.
Description
•