Closed
Bug 542700
Opened 15 years ago
Closed 15 years ago
[OOPP] Plugin process crash during mochitest-3/5 [@nsDefaultComparator] or [@ nsTArray_base::Length()]
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(status1.9.2 .4-fixed)
RESOLVED
FIXED
mozilla1.9.3a4
Tracking | Status | |
---|---|---|
status1.9.2 | --- | .4-fixed |
People
(Reporter: cjones, Assigned: benjamin)
References
Details
(Keywords: intermittent-failure, Whiteboard: [qa-noaction-192])
Attachments
(2 files)
498 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
5.68 KB,
patch
|
cjones
:
review+
christian
:
approval1.9.2.4+
|
Details | Diff | Splinter Review |
Thread 2 (crashed)
0 xul.dll!nsDefaultComparator<mozilla::plugins::ChildAsyncCall *,mozilla::plugins::ChildAsyncCall *>::Equals(mozilla::plugins::ChildAsyncCall * const &,mozilla::plugins::ChildAsyncCall * const &) [nsTArray.h:035ca5e3ea54 : 223 + 0x6]
eip = 0x61a2c55d esp = 0x0121dce4 ebp = 0x0121dce8 ebx = 0x00000001
esi = 0x003301c8 edi = 0x00000000 eax = 0x00341000 ecx = 0x0121dd48
edx = 0x00341000 efl = 0x00010293
Found by: given as instruction pointer in context
1 xul.dll!nsTArray<mozilla::plugins::ChildAsyncCall *>::IndexOf<mozilla::plugins::ChildAsyncCall *,nsDefaultComparator<mozilla::plugins::ChildAsyncCall *,mozilla::plugins::ChildAsyncCall *> >(mozilla::plugins::ChildAsyncCall * const &,unsigned int,nsDefaultComparator<mozilla::plugins::ChildAsyncCall *,mozilla::plugins::ChildAsyncCall *> const &) [nsTArray.h:035ca5e3ea54 : 393 + 0xf]
eip = 0x61a2c506 esp = 0x0121dcf0 ebp = 0x0121dd08
Found by: call frame info
2 xul.dll!nsTArray<mozilla::plugins::ChildAsyncCall *>::RemoveElement<mozilla::plugins::ChildAsyncCall *,nsDefaultComparator<mozilla::plugins::ChildAsyncCall *,mozilla::plugins::ChildAsyncCall *> >(mozilla::plugins::ChildAsyncCall * const &,nsDefaultComparator<mozilla::plugins::ChildAsyncCall *,mozilla::plugins::ChildAsyncCall *> const &) [nsTArray.h:035ca5e3ea54 : 700 + 0x11]
eip = 0x61a2c46b esp = 0x0121dd10 ebp = 0x0121dd24
Found by: call frame info
3 xul.dll!nsTArray<mozilla::plugins::ChildAsyncCall *>::RemoveElement<mozilla::plugins::ChildAsyncCall *>(mozilla::plugins::ChildAsyncCall * const &) [nsTArray.h:035ca5e3ea54 : 712 + 0x14]
eip = 0x61a2c43e esp = 0x0121dd2c ebp = 0x0121dd3c
Found by: call frame info
4 xul.dll!mozilla::plugins::ChildAsyncCall::Run() [ChildAsyncCall.cpp:035ca5e3ea54 : 68 + 0x17]
eip = 0x61a2c417 esp = 0x0121dd44 ebp = 0x0121dd4c
Found by: call frame info
5 xul.dll!nsThread::ProcessNextEvent(int,int *) [nsThread.cpp:035ca5e3ea54 : 527 + 0x18]
eip = 0x61b4e2fa esp = 0x0121dd54 ebp = 0x0121dd88
Found by: call frame info
Looks like a use-after-free of PluginInstanceChild, probably caused by NPP_Destroy() re-entering the callback.
Reporter | ||
Comment 1•15 years ago
|
||
Reporter | ||
Comment 2•15 years ago
|
||
Probable fix.
I can't figure out a (reliable) way to make NPP_Destroy() re-enter or race with an async callback in a mochitest, so guess we'll need to fly by the seat of our pants for the time being.
Attachment #423932 -
Flags: review?(benjamin)
Reporter | ||
Updated•15 years ago
|
Keywords: testcase-wanted
Assignee | ||
Updated•15 years ago
|
Attachment #423932 -
Flags: review?(benjamin) → review+
Reporter | ||
Comment 3•15 years ago
|
||
Assignee | ||
Comment 4•15 years ago
|
||
we'll call it fixed and reopen if necessary, please update https://wiki.mozilla.org/Plugins/OOPP_Branch_Tracking
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•15 years ago
|
||
Looks like it reoccurred after the fix
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1264800596.1264801559.10812.gz#err0
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Time for one of you guys to get down with record-and-replay! It's fun! Builds character!
Assignee | ||
Updated•15 years ago
|
Summary: [OOPP] Plugin process crash during mochitest-3/5 [@nsDefaultComparator] → [OOPP] Plugin process crash during mochitest-3/5 [@nsDefaultComparator] or [@ nsTArray_base::Length()]
Updated•15 years ago
|
Version: unspecified → Trunk
Comment 8•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1267725817.1267729445.3014.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/04 10:03:37
s: win32-slave06
Assignee | ||
Comment 9•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?tree=Firefox&errorparser=unittest&logfile=1268068421.1268070942.20885.gz&buildtime=1268068421&buildname=WINNT%205.2%20mozilla-central%20debug%20test%20mochitests-3%2f5&fulltext=1
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/08 09:13:41
Comment 10•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268170791.1268173834.32337.gz&fulltext=1
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/09 13:39:51
Reporter | ||
Comment 12•15 years ago
|
||
Comment 13•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268975329.1268978193.7280.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/18 22:08:49
s: win32-slave09
Comment 14•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268978253.1268981707.16107.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/18 22:57:33
s: win32-slave20
Comment 15•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1268980626.1268983394.20474.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/18 23:37:06
s: win32-slave22
Comment 16•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269099691.1269101482.25805.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/20 08:41:31
s: win32-slave39
Comment 17•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269132534.1269134293.31443.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/20 17:48:54
s: win32-slave39
Comment 18•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269138418.1269140965.12604.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/20 19:26:58
s: win32-slave20
Comment 19•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269145206.1269147581.24821.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/20 21:20:06
s: win32-slave09
Comment 20•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269172654.1269175160.28030.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/21 04:57:34
Comment 21•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269217055.1269218783.8148.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/21 17:17:35
s: win32-slave39
Comment 22•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269251710.1269253717.15869.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/22 02:55:10
s: win32-slave39
Comment 23•15 years ago
|
||
Comment 24•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?tree=Firefox&errorparser=unittest&logfile=1269290039.1269293110.11162.gz&buildtime=1269290039&buildname=WINNT%205.2%20mozilla-central%20debug%20test%20mochitests-3%2f5&fulltext=1
http://tinderbox.mozilla.org/showlog.cgi?tree=Firefox&errorparser=unittest&logfile=1269290304.1269293063.11056.gz&buildtime=1269290304&buildname=WINNT%205.2%20mozilla-central%20debug%20test%20mochitests-3%2f5&fulltext=1#err0
Comment 25•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269300561.1269303086.7190.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/22 16:29:21
Comment 26•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269311218.1269313778.3850.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/22 19:26:58
Comment 27•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269315423.1269317964.13488.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/22 20:37:03
s: win32-slave20
Comment 28•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269322675.1269325306.30071.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/22 22:37:55
s: win32-slave20
Comment 29•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269351918.1269354528.27541.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/23 06:45:18
s: win32-slave20
Comment 30•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269348755.1269351566.19135.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/23 05:52:35
s: win32-slave20
Reporter | ||
Comment 31•15 years ago
|
||
Comment 32•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269407911.1269410580.22197.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/23 22:18:31
s: win32-slave20
Comment 33•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269446174.1269449124.13756.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/24 08:56:14
s: win32-slave01
Comment 34•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269527014.1269529547.12182.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/25 07:23:34
s: win32-slave43
Assignee | ||
Comment 35•15 years ago
|
||
Boy, I feel dumb. I couldn't reproduce this in recording, but it turns out that we just never added the ChildAsyncCall to the mPendingAsyncCalls list.
Assignee: nobody → benjamin
Status: REOPENED → ASSIGNED
Attachment #434894 -
Flags: review?(jones.chris.g)
Reporter | ||
Updated•15 years ago
|
Attachment #434894 -
Flags: review?(jones.chris.g) → review+
Comment 36•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269563434.1269565850.22484.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/25 17:30:34
s: win32-slave23
Comment 37•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269636826.1269639303.11504.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/26 13:53:46
s: win32-slave23
Comment 38•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269643325.1269644983.26525.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/26 15:42:05
s: win32-slave16
Comment 39•15 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1269818957.1269820558.9674.gz
WINNT 5.2 mozilla-central debug test mochitests-3/5 on 2010/03/28 16:29:17
s: win32-slave16
Assignee | ||
Comment 40•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Attachment #423932 -
Attachment description: Prevent |ChildAsyncCallback|s from touching freed |PluginInstanceChild|s if NPP_Destroy() re-enters or races with the callback → Prevent |ChildAsyncCallback|s from touching freed |PluginInstanceChild|s if NPP_Destroy() re-enters or races with the callback
[Checkin: Comment 3]
Updated•15 years ago
|
Attachment #434894 -
Attachment description: Actually add stuff to mPendingAsyncCalls, rev. 1 → Actually add stuff to mPendingAsyncCalls, rev. 1
[Checkin: Comment 40]
Updated•15 years ago
|
Target Milestone: --- → mozilla1.9.3a4
Assignee | ||
Comment 41•15 years ago
|
||
Comment on attachment 434894 [details] [diff] [review]
Actually add stuff to mPendingAsyncCalls, rev. 1
[Checkin: Comment 40]
I need this on 1.9.2 because bug 558629 depends on it.
Attachment #434894 -
Flags: approval1.9.2.4?
Comment 42•15 years ago
|
||
Comment on attachment 434894 [details] [diff] [review]
Actually add stuff to mPendingAsyncCalls, rev. 1
[Checkin: Comment 40]
a=LegNeato for 1.9.2.4
Attachment #434894 -
Flags: approval1.9.2.4? → approval1.9.2.4+
Assignee | ||
Comment 43•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/6f803e665a65
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/c257d3d11b30
status1.9.2:
--- → .4-fixed
Updated•15 years ago
|
Whiteboard: [orange] → [orange] [qa-noaction-192]
Updated•12 years ago
|
Keywords: intermittent-failure
Updated•12 years ago
|
Whiteboard: [orange] [qa-noaction-192] → [qa-noaction-192]
Updated•9 years ago
|
Keywords: testcase-wanted
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•