Closed Bug 1767894 Opened 3 years ago Closed 3 years ago

Intermittent comm/mail/components/addrbook/test/browser/browser_mailing_lists.js | application crashed [@ XPCConvert::NativeData2JS(JSContext*, JS::MutableHandle<JS::Value>, void const*, nsXPTType const&, nsID const*, unsigned int, nsresult*)]

Categories

(Thunderbird :: Address Book, defect)

defect

Tracking

(thunderbird_esr91 unaffected)

RESOLVED FIXED
102 Branch
Tracking Status
thunderbird_esr91 --- unaffected

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Regression)

Details

(Keywords: crash, intermittent-failure, regression, Whiteboard: [fixed by bug 1754004])

Crash Data

Also appears on TreeHerder as mail/components/addrbook/test/browser/new/browser_search.js.

I can reproduce this by starting with browser_edit_card.js and it will crash at browser_search.js but if I remove any of the tests in between (except browser_edit_photo.js) it stops happening.

Nika, it seems these 16 patches from bug 1754004 are the cause. I can't see why they would, but I've narrowed the regression range to include only them so far.

Flags: needinfo?(nika)
Keywords: regression
Regressed by: 1754004

The relevant portion of the crash stack is:

  • libxul.so!XPCConvert::NativeData2JS(JSContext*, JS::MutableHandle<JS::Value>, void const*, nsXPTType const&, nsID const*, unsigned int, nsresult*) [XPCConvert.cpp:7fafa8a52cb0c24a35e224f9929ffe4561c06a03 : 352 + 0x1e]
  • libxul.so!nsXPCWrappedJS::CallMethod(unsigned short, nsXPTMethodInfo const*, nsXPTCMiniVariant*) [XPCWrappedJSClass.cpp:7fafa8a52cb0c24a35e224f9929ffe4561c06a03 : 933 + 0x28]
  • libxul.so!PrepareAndDispatch [xptcstubs_x86_64_linux.cpp:7fafa8a52cb0c24a35e224f9929ffe4561c06a03 : 115 + 0x16]
  • libxul.so!SharedStub + 0x5a
  • libxul.so!nsInputStreamReadyEvent::Run() [nsStreamUtils.cpp:7fafa8a52cb0c24a35e224f9929ffe4561c06a03 : 96 + 0x5]

The test is: https://searchfox.org/comm-central/source/mail/components/addrbook/test/browser/browser_mailing_lists.js

There's a few onInputStreamReady handlers in mail/mailnews.

(In reply to Geoff Lankow (:darktrojan) from comment #1)

Also appears on TreeHerder as mail/components/addrbook/test/browser/new/browser_search.js.

I can reproduce this by starting with browser_edit_card.js and it will crash at browser_search.js but if I remove any of the tests in between (except browser_edit_photo.js) it stops happening.

Given that this might involve multiple tests and they're addressbook based, maybe it could be something like https://searchfox.org/comm-central/source/mail/components/addrbook/test/browser/new/browser_ldap_search.js using LDAP which involves the LDAP server's onInputStreamReady.

I suspect it's browser_ldap_search.js + some time, maybe garbage collection or something is involved?

Yes, if I add Cu.forceGC() to the end of browser_ldap_search.js, it crashes.

I tried this with the latest version of bug 1754004 and it's fixed.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(nika)
Resolution: --- → FIXED
Whiteboard: [fixed by bug 1754004]
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.