Closed Bug 1305236 Opened 8 years ago Closed 8 years ago

Crash in mozilla::dom::exceptions::JSStackFrame::GetNativeSavedFrame

Categories

(Core :: DOM: Core & HTML, defect)

50 Branch
x86
Windows
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox49 --- affected
firefox50 --- fixed
firefox51 --- fixed
firefox52 --- fixed

People

(Reporter: philipp, Assigned: jonco)

References

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-a7483e91-d869-40e2-bb08-74c5c2160923.
=============================================================
Crashing Thread (0)
Frame 	Module 	Signature 	Source
0 	xul.dll 	mozilla::dom::exceptions::JSStackFrame::GetNativeSavedFrame(JS::MutableHandle<JS::Value>) 	dom/bindings/Exceptions.cpp:642
1 	xul.dll 	nsXPCComponents_Utils::CallFunctionWithAsyncStack(JS::Handle<JS::Value>, nsIStackFrame*, nsAString_internal const&, JSContext*, JS::MutableHandle<JS::Value>) 	js/xpconnect/src/XPCComponents.cpp:2702
2 	xul.dll 	NS_InvokeByIndex 	xpcom/reflect/xptcall/md/win32/xptcinvoke_asm_x86_msvc.asm:54
3 	xul.dll 	XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) 	js/xpconnect/src/XPCWrappedNative.cpp:1361
4 	xul.dll 	XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) 	js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1128
5 	xul.dll 	js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct) 	js/src/vm/Interpreter.cpp:453
6 	xul.dll 	InternalCall 	js/src/vm/Interpreter.cpp:498
7 	xul.dll 	FinalizeArenas 	js/src/jsgc.cpp:542
8 	xul.dll 	JS::CallbackTracer::onObjectEdge(JSObject**) 	obj-firefox/dist/include/js/TracingAPI.h:141
9 	xul.dll 	DoCallback<JSObject*>(JS::CallbackTracer*, JSObject**, char const*) 	js/src/gc/Tracer.cpp:51
10 	xul.dll 	js::TraceManuallyBarrieredEdge<JSObject*>(JSTracer*, JSObject**, char const*) 	js/src/gc/Marking.cpp:443
11 	xul.dll 	JSFunction::trace(JSTracer*) 	js/src/jsfun.cpp:773
12 	xul.dll 	fun_trace 	js/src/jsfun.cpp:780
13 	xul.dll 	JSObject::traceChildren(JSTracer*) 	js/src/jsobj.cpp:3883
14 	xul.dll 	JS::DispatchTraceKindTyped<TraceChildrenFunctor, JSTracer*&, void*&>(TraceChildrenFunctor, JS::TraceKind, JSTracer*&, void*&) 	obj-firefox/dist/include/js/TraceKind.h:182
15 	xul.dll 	js::TraceChildren(JSTracer*, void*, JS::TraceKind) 	js/src/gc/Tracer.cpp:126
16 	xul.dll 	UnmarkGrayTracer::onChild(JS::GCCellPtr const&) 	js/src/gc/Marking.cpp:2748
17 	xul.dll 	js::DispatchTyped<DoCallbackFunctor<JS::Value>, JS::CallbackTracer*&, char const*&>(DoCallbackFunctor<JS::Value>, JS::Value const&, JS::CallbackTracer*&, char const*&) 	obj-firefox/dist/include/js/Value.h:1914
18 	xul.dll 	DispatchToTracer<JS::Value>(JSTracer*, JS::Value*, char const*) 	js/src/gc/Marking.cpp:655

this crash seems to be regressing in numbers since firefox 50 builds and is occurring in a codepath added in bug 1291928.
in early crash data from 50.0b1 this is making up 0.35% of all browser crashes.
(In reply to [:philipp] from comment #0)
> 
> this crash seems to be regressing in numbers since firefox 50 builds and is
> occurring in a codepath added in bug 1291928.
> in early crash data from 50.0b1 this is making up 0.35% of all browser
> crashes.

This seems a regression from bug 1291928, could you please take a look? Thanks!
Flags: needinfo?(terrence.d.cole)
Flags: needinfo?(jcoppeard)
It seems like we're just missing a null check.
Assignee: nobody → jcoppeard
Flags: needinfo?(jcoppeard)
Attachment #8795289 - Flags: review?(bugs)
Attachment #8795289 - Flags: review?(bugs) → review+
We need this on Aurora too?
I think Beta as well: we've uplifted since we put bug 1291928 on Aurora.
Flags: needinfo?(terrence.d.cole)
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/955340c5cf9e
Don't call ExposeObjectToActiveJS on null pointer r=smaug
https://hg.mozilla.org/mozilla-central/rev/955340c5cf9e
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Comment on attachment 8795289 [details] [diff] [review]
bug1305236-expose-crash

Approval Request Comment
[Feature/regressing bug #]: Bug 1291928.
[User impact if declined]: Possible crashes.
[Describe test coverage new/current, TreeHerder]: On m-c since 30th September.
[Risks and why]: Low
[String/UUID change made/needed]: None
Attachment #8795289 - Flags: approval-mozilla-beta?
Attachment #8795289 - Flags: approval-mozilla-aurora?
Comment on attachment 8795289 [details] [diff] [review]
bug1305236-expose-crash

Fixes a top crash on Beta50, Nightly52 doesn't show this crash report since the fix landed so that's good, Aurora51+, Beta50+
Attachment #8795289 - Flags: approval-mozilla-beta?
Attachment #8795289 - Flags: approval-mozilla-beta+
Attachment #8795289 - Flags: approval-mozilla-aurora?
Attachment #8795289 - Flags: approval-mozilla-aurora+
Crash volume for signature 'mozilla::dom::exceptions::JSStackFrame::GetNativeSavedFrame':
 - nightly (version 52): 1 crash from 2016-09-19.
 - aurora  (version 51): 9 crashes from 2016-09-19.
 - beta    (version 50): 1116 crashes from 2016-09-20.
 - release (version 49): 1 crash from 2016-09-05.
 - esr     (version 45): 0 crashes from 2016-07-25.

Crash volume on the last weeks (Week N is from 10-17 to 10-23):
            W. N-1  W. N-2  W. N-3  W. N-4
 - nightly       0       0       0       1
 - aurora        0       4       2       2
 - beta         44     495     490      78
 - release       0       1       0       0
 - esr           0       0       0       0

Affected platform: Windows

Crash rank on the last 7 days:
           Browser     Content   Plugin
 - nightly
 - aurora  #1688
 - beta    #446
 - release
 - esr
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: