Closed
Bug 401429
Opened 19 years ago
Closed 17 years ago
Sorting message folder lists crashes on 10.5 [@ nsAutoLockBase::Hide] | [@ nsAutoLockBase::nsAutoLockBase]
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 422720
People
(Reporter: nick.kreeger, Unassigned)
Details
(Keywords: crash)
Crash Data
Not exactly sure whats going on here... but I keep crashing on 10.5 when I click on the table view header to sort by column. Here is a stack trace
Note:
OS X 10.5
GCC 4
Pretty sure this is built against 10.4.sdk... (I'll double check).
#0 ??
#1 0x0046c13c in ReleaseObject at nsThreadManager.cpp:53
#2 0x00637ef0 in PR_SetThreadPrivate at prtpd.c:212
#3 0x003be6ac in nsAutoLockBase::nsAutoLockBase at nsAutoLock.cpp:325
#4 0x0041a540 in nsAutoMonitor::nsAutoMonitor at nsAutoLock.h:300
#5 0x0041a5f4 in nsAutoMonitor::nsAutoMonitor at nsAutoLock.h:307
#6 0x00465b78 in nsEventQueue::PutEvent at nsEventQueue.cpp:112
#7 0x00467e78 in nsThread::nsChainedEventQueue::PutEvent at nsThread.cpp:612
#8 0x00468c50 in nsThread::PutEvent at nsThread.cpp:340
#9 0x00469474 in nsThread::Dispatch at nsThread.cpp:381
#10 0x003b749c in NS_DispatchToCurrentThread_P at nsThreadUtils.cpp:145
#11 0x0bedb774 in nsPLDOMEvent::PostDOMEvent at nsPLDOMEvent.cpp:74
#12 0x0c285e60 in nsTreeSelection::SetCurrentIndex at nsTreeSelection.cpp:650
#13 0x012443f8 in nsMsgDBView::RestoreSelection at nsMsgDBView.cpp:820
#14 0x01266724 in nsMsgThreadedDBView::Sort at nsMsgThreadedDBView.cpp:388
#15 0x004905b8 in _NS_InvokeByIndex_P
#16 0x0048fb84 in NS_InvokeByIndex_P at xptcinvoke_ppc_rhapsody.cpp:144
#17 0x01b0b354 in XPCWrappedNative::CallMethod at xpcwrappednative.cpp:2326
#18 0x01b19d18 in XPC_WN_CallMethod at xpcwrappednativejsops.cpp:1467
#19 0x00293a74 in js_Invoke at jsinterp.c:1386
#20 0x002a64f0 in js_Interpret at jsinterp.c:4146
#21 0x00293b0c in js_Invoke at jsinterp.c:1406
#22 0x01b02fd0 in nsXPCWrappedJSClass::CallMethod at xpcwrappedjsclass.cpp:1441
#23 0x01af7cd8 in nsXPCWrappedJS::CallMethod at xpcwrappedjs.cpp:565
#24 0x00490180 in PrepareAndDispatch at xptcstubs_ppc_rhapsody.cpp:182
#25 0x00490df8 in SharedStub
#26 0x0be9f198 in nsEventListenerManager::HandleEventSubType at nsEventListenerManager.cpp:1097
#27 0x0bea38f8 in nsEventListenerManager::HandleEvent at nsEventListenerManager.cpp:1211
#28 0x0bedc9ec in nsEventTargetChainItem::HandleEvent at nsEventDispatcher.cpp:206
#29 0x0bedcb38 in nsEventTargetChainItem::HandleEventTargetChain at nsEventDispatcher.cpp:237
#30 0x0bedd720 in nsEventDispatcher::Dispatch at nsEventDispatcher.cpp:479
#31 0x0ba91618 in PresShell::HandleEventInternal at nsPresShell.cpp:5776
#32 0x0ba91908 in PresShell::HandleEventWithTarget at nsPresShell.cpp:5682
#33 0x0beae9f4 in nsEventStateManager::CheckForAndDispatchClick at nsEventStateManager.cpp:3243
#34 0x0beb329c in nsEventStateManager::PostHandleEvent at nsEventStateManager.cpp:2330
#35 0x0ba91870 in PresShell::HandleEventInternal at nsPresShell.cpp:5797
#36 0x0ba91bc8 in PresShell::HandlePositionedEvent at nsPresShell.cpp:5665
#37 0x0ba94368 in PresShell::HandleEvent at nsPresShell.cpp:5508
#38 0x0c11adc0 in nsViewManager::HandleEvent at nsViewManager.cpp:1296
#39 0x0c11bf10 in nsViewManager::DispatchEvent at nsViewManager.cpp:1252
#40 0x0c10daac in HandleEvent at nsView.cpp:168
#41 0x025bce9c in nsChildView::DispatchEvent at nsChildView.mm:1339
#42 0x025b56ec in nsChildView::DispatchWindowEvent at nsChildView.mm:1352
#43 0x025b5770 in nsChildView::DispatchMouseEvent at nsChildView.mm:1364
#44 0x025bd88c in -[ChildView mouseUp:] at nsChildView.mm:2562
#45 0x9425f4ec in -[NSWindow sendEvent:]
#46 0x942328f4 in -[NSApplication sendEvent:]
#47 0x9419fed8 in -[NSApplication run]
#48 0x025a84e8 in nsAppShell::Run at nsAppShell.mm:546
#49 0x0324b884 in nsAppStartup::Run at nsAppStartup.cpp:170
#50 0x001200b8 in XRE_main at nsAppRunner.cpp:3142
#51 0x00003094 in main at nsMailApp.cpp:87
| Reporter | ||
Comment 1•19 years ago
|
||
Also: This is trunk only. 2.0.0.x doesn't display this behavior... _Might_ (shot it the dark here) be something with cocoa-widgets
| Reporter | ||
Comment 2•19 years ago
|
||
I'm having some trouble re-creating this today... I'll see if another event causes some issues.
| Reporter | ||
Comment 3•19 years ago
|
||
Ok... After firing up a fresh profile and build of seamonkey and opening the mail-news window, the message pane is sorted by date-descending by default. If I click on the date table-view-header to re-sort ascending, I get a stack just like the one above. However, if I fire up the app again and try sorting a different column, like the subject header, I don't crash - and if I go back to resort the date column I also don't crash.
I can make this action reproduce on Tbird Trunk as well....
I do see this dumped out in the console:
10/28/07 1:44:54 PM [0x0-0x74074].org.mozilla.thunderbird ###!!! ASSERTION: invalid array index: 'i < Length()', file ../../../dist/include/xpcom/nsTArray.h, line 317
That might be our culprit... I'll keep investigating..
Comment 4•19 years ago
|
||
Nick: Does this happen on Tiger as well (not sure if you can test it)? I will try to repro on Leopard the next time I am running Tbird.
| Reporter | ||
Comment 5•19 years ago
|
||
(In reply to comment #4)
> Nick: Does this happen on Tiger as well (not sure if you can test it)? I will
> try to repro on Leopard the next time I am running Tbird.
>
I never encountered this problem on Tiger, but unfortunately - I don't have a 10.4 box laying around anymore...
| Reporter | ||
Comment 6•19 years ago
|
||
I'm also seeing this on trunk-debug builds in my Ubuntu laptop... gcc-4 as well... I'll keep investigating.
Comment 7•19 years ago
|
||
Nick: I tried this on the latest trunk nightly (MBP) and was not able to repro the crash.
Comment 8•19 years ago
|
||
Sorting by date crashes my latest debug build on Tiger. I get following stack trace:
#0 0x0131271e in nsAutoLockBase::Hide (this=0xb011ee4c) at nsAutoLock.cpp:358
#1 0x013d24c1 in nsAutoLock::unlock (this=0xb011ee4c) at /Users/henrik/Projects/mozilla/source/mozilla/xpcom/threads/TimerThread.cpp:249
#2 0x0136dd38 in TimerThread::Run (this=0x69245f0) at /Users/henrik/Projects/mozilla/source/mozilla/xpcom/threads/TimerThread.cpp:263
#3 0x01368e05 in nsThread::ProcessNextEvent (this=0x695aac0, mayWait=1, result=0xb011ef3c) at /Users/henrik/Projects/mozilla/source/mozilla/xpcom/threads/nsThread.cpp:490
#4 0x0130e2a5 in NS_ProcessNextEvent_P (thread=0x695aac0, mayWait=1) at nsThreadUtils.cpp:227
#5 0x01369012 in nsThread::ThreadFunc (arg=0x695aac0) at /Users/henrik/Projects/mozilla/source/mozilla/xpcom/threads/nsThread.cpp:254
#6 0x00660cdb in _pt_root (arg=0x695bbd0) at /Users/henrik/Projects/mozilla/source/mozilla/nsprpub/pr/src/pthreads/ptthread.c:221
#7 0x01eea75f in _pthread_body (self=0x6086c00) at /SourceCache/Libc_debug-391.5.16/Libc-391.5.16/pthreads/pthread.c:642
Current language: auto; currently c++
It stops at:
while (curr != this) {
prev = curr;
=> curr = prev->mDown;
}
Both pointers are 0x0 and accessing mDown crashes Thunderbird. Should be moved somewhere into Core.
Keywords: crash
Hardware: Macintosh → All
Updated•19 years ago
|
Hardware: Macintosh → All
Can't reproduce this under Leopard on Intel.
Both indicate some issue with nsAutoLock (or at least that nsAutoLock is fragile enough to be the point where some earlier problem is caught).
Nick, you said you can also reproduce this on Ubuntu -- any chance that you can run valgrind (a memory leak and corruption detector) and capture anything that it reports here as an attachment? If this is some kind of memory corruption, valgrind should scream something useful.
Comment 10•18 years ago
|
||
I don't recall crashing whilst testing Shredder Alpha 1 builds either. I'm sure I pretty much followed your STR and the crash didn't occur for me.
Henrik, your stack trace looks different from Nick's. Can either of you try and reproduce on the latest cvs checkout?
Comment 11•17 years ago
|
||
Nick, so you only see this when sorting on Date?
Comment 12•17 years ago
|
||
Nick, Henrik, can you still reproduce?
related to bug 422720? (fixed 2008-04-18)
Summary: Sorting message folder lists crashes on 10.5 → Sorting message folder lists crashes on 10.5 [@ nsAutoLockBase::Hide] | [@ nsAutoLockBase::nsAutoLockBase]
Comment 13•17 years ago
|
||
Haven't had this crash for a long time. Sorry, can't help out right now.
Comment 14•17 years ago
|
||
someone is free to reopen if they can reproduce
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Updated•15 years ago
|
Crash Signature: [@ nsAutoLockBase::Hide]
[@ nsAutoLockBase::nsAutoLockBase]
You need to log in
before you can comment on or make changes to this bug.
Description
•