Crash in [@ RtlAcquireSRWLockExclusive | nsWabAddressBook::Initialize]
Categories
(Thunderbird :: Address Book, defect)
Tracking
(thunderbird_esr68 unaffected, thunderbird74 wontfix, thunderbird75 affected)
Tracking | Status | |
---|---|---|
thunderbird_esr68 | --- | unaffected |
thunderbird74 | --- | wontfix |
thunderbird75 | --- | affected |
People
(Reporter: darktrojan, Assigned: benc)
References
(Regression)
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file, 1 obsolete file)
6.09 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
This bug is for crash report bp-825dd8ad-f6db-4f29-87c2-0624d0200224.
Top 10 frames of crashing thread:
0 ntdll.dll RtlAcquireSRWLockExclusive
1 xul.dll nsWabAddressBook::Initialize comm/mailnews/addrbook/src/nsWabAddressBook.cpp:113
2 xul.dll nsWabAddressBook::nsWabAddressBook comm/mailnews/addrbook/src/nsWabAddressBook.cpp:97
3 xul.dll nsAbWinHelperGuard::nsAbWinHelperGuard comm/mailnews/addrbook/src/nsAbWinHelper.cpp:915
4 xul.dll nsAbOutlookInterface::GetFolderURIs comm/mailnews/addrbook/src/nsAbOutlookInterface.cpp:32
5 xul.dll XPTC__InvokebyIndex
6 @0xce1d9f9dd7
7 xul.dll nsXPTType::IsDependent const xpcom/reflect/xptinfo/xptinfo.h:258
8 xul.dll static XPCWrappedNative::CallMethod js/xpconnect/src/XPCWrappedNative.cpp:1145
9 xul.dll XPC_WN_CallMethod js/xpconnect/src/XPCWrappedNativeJSOps.cpp:947
Reporter | ||
Comment 1•4 years ago
|
||
This crash is at startup when the Windows address book is enabled. To reproduce it set these prefs:
- ldap_2.servers.oe.uri: moz-aboutlookdirectory://oe/
- ldap_2.servers.oe.dirType: 3
I know it's not bug 1614265, here's a report from before that landed: https://crash-stats.mozilla.com/report/index/2a99887d-71fe-4fca-9d1a-e54bf0200224
Reporter | ||
Comment 2•4 years ago
|
||
Alice, can you see if you can find this please? I believe it was working in early February but I can't be any more specific than that.
Comment 3•4 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #2)
Alice, can you see if you can find this please? I believe it was working in early February but I can't be any more specific than that.
What is "Windows address book"?
Reporter | ||
Comment 4•4 years ago
|
||
Thunderbird can import contacts from the "Contacts" folder in Windows (C:\Users\Username\Contacts). It's not enabled by default. Setting the two prefs in comment 1 is enough to trigger a crash when starting. If Thunderbird starts without crashing then I consider that not broken for this bug.
Comment 5•4 years ago
|
||
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=306ac4b77c679440f825d487a9147544591db953&tochange=a04956310d2fe4df06c9ba41cb7bb239a09341d4
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=5bfe22b4bd0d64b9d105b66b3ed0fcee10d70e93&tochange=5bfe22b4bd0d64b9d105b66b3ed0fcee10d70e93
Reporter | ||
Comment 6•4 years ago
|
||
Thank you Alice!
Reporter | ||
Comment 7•4 years ago
|
||
Oh no, my instructions were bad. You also need a value in ldap_2.servers.oe.description
– any string value will do.
Could you try again please?
Comment 8•4 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #7)
Oh no, my instructions were bad. You also need a value in
ldap_2.servers.oe.description
– any string value will do.Could you try again please?
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=91f77a3708ffa978462e80a87764ca364ad669f6&tochange=eca9d62cfb2ca1c44e6bae3d66776ef5613b9c28
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=485e623584d63bbaba3a8b8267bb1d6e55c68042&tochange=7b794b53736c781545273accf33ed5bd23d0abea
Reporter | ||
Comment 9•4 years ago
|
||
Aha! That's much more like what I was expecting. Thanks again.
Reporter | ||
Comment 10•4 years ago
|
||
Ben, would you have a look please. https://hg.mozilla.org/comm-central/rev/eca9d62cfb2ca1c44e6bae3d66776ef5613b9c28 is looking very suspicious at the moment.
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Comment 11•4 years ago
|
||
Yes, looks like my fault all right...
I think I completely misunderstood StaticAutoPtr - I thought it created the mutex and deleted it upon shutdown, but it utterly doesn't.
This patch should fix the crash, but it won't delete the mutex upon shutdown, so that'll leak (but better a little leak than a big crash).
I'll come up with a more elegant solution tomorrow.
Assignee | ||
Comment 12•4 years ago
|
||
StaticMutex seems to fit the bill nicely here - don't have to worry about setting it up or destroying it. I'd prefer if it was just a plain Mutex, but they can't be used as global or class-static variables under windows, so StaticMutex it is.
I also took the opportunity to rename mEntryCounter to sEntryCounter, because it's class-static too and the 'm' was irking me :-)
Caveat - untested (I'm on Linux and this code is only compiled in under Windows).
Try run here:
... so it does compile OK.
A couple of test fails, but I'm not certain they're due to this...
Reporter | ||
Comment 13•4 years ago
|
||
Comment on attachment 9129679 [details] [diff] [review] 1617530-use-StaticMutex-in-nsAbWinHelper-1.patch Well it's stopped crashing, that works for me.
Assignee | ||
Updated•4 years ago
|
Comment 14•4 years ago
|
||
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/a2b845d81aa7
Switch to use StaticMutex in nsAbWinHelper. r=darktrojan
Updated•4 years ago
|
Comment 15•4 years ago
|
||
No nightly crashes after buildid 20200226125814 and patch landed 20200301 - crash rate too low to verify via crash-stats that the crash is gone.
Reporter | ||
Comment 16•4 years ago
|
||
All of the existing crashes (that I know about) were me, so that's not really a surprise.
Description
•