WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151892
CRASH: CodeBlock::setOptimizationThresholdBasedOnCompilationResult + 567
https://bugs.webkit.org/show_bug.cgi?id=151892
Summary
CRASH: CodeBlock::setOptimizationThresholdBasedOnCompilationResult + 567
Michael Saboff
Reported
2015-12-04 16:20:57 PST
Backtrace like: 1 com.apple.JavaScriptCore 0x113ea02ce WTFCrash + 0x3e (Assertions.cpp:321)
> 2 com.apple.JavaScriptCore 0x1138acbb7 JSC::CodeBlock::setOptimizationThresholdBasedOnCompilationResult(JSC::CompilationResult) + 0x237 (DataLog.h:45)
3 com.apple.JavaScriptCore 0x113c16e4c JSC::JITToDFGDeferredCompilationCallback::compilationDidComplete(JSC::CodeBlock*, JSC::CompilationResult) + 0x8c (JITToDFGDeferredCompilationCallback.cpp:69) 4 com.apple.JavaScriptCore 0x113aac7d4 JSC::DFG::Worklist::completeAllReadyPlansForVM(JSC::VM&, JSC::DFG::CompilationKey) + 0x104 (DFGCompilationKey.h:74) 5 com.apple.JavaScriptCore 0x113aaca0e JSC::DFG::Worklist::completeAllPlansForVM(JSC::VM&) + 0x3e (HeapInlines.h:308) 6 com.apple.JavaScriptCore 0x113aadde8 JSC::DFG::completeAllPlansForVM(JSC::VM&) + 0x38 (DFGWorklist.cpp:453) 7 com.apple.JavaScriptCore 0x1138ea488 JSC::Debugger::exception(JSC::ExecState*, JSC::JSValue, bool) + 0x68 (JSCInlines.h:66) 8 com.apple.JavaScriptCore 0x113bc0cb5 JSC::Interpreter::unwind(void*&, JSC::ExecState*&, JSC::Exception*) + 0x155 (Interpreter.cpp:691) 9 com.apple.JavaScriptCore 0x113bde07a JSC::genericUnwind(JSC::VM*, JSC::ExecState*) + 0x5a (JITExceptions.cpp:57) 10 0x00004e6b5a801060 0 + 86222986809440 11 com.apple.JavaScriptCore 0x113d1ef10 llint_entry + 0x58c7 12 com.apple.JavaScriptCore 0x113d1ef10 llint_entry + 0x58c7 13 com.apple.JavaScriptCore 0x113d19439 vmEntryToJavaScript + 0x146 14 com.apple.JavaScriptCore 0x113bdc7d9 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 0xa9 (JITCode.cpp:82) 15 com.apple.JavaScriptCore 0x113bc397a JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 0x1ba (Interpreter.cpp:946) 16 com.apple.JavaScriptCore 0x1138947a7 JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 0x47 (MarkedBlock.h:250) 17 com.apple.WebCore 0x114a31dda WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) + 0x3ea (JSMainThreadExecState.h:56) 18 com.apple.WebCore 0x11467607b WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener, 1ul, WTF::CrashOnOverflow, 16ul>&) + 0x27b (InspectorInstrumentation.h:283) 19 com.apple.WebCore 0x114675d40 WebCore::EventTarget::fireEventListeners(WebCore::Event*) + 0xe0 (EventTarget.cpp:208) 20 com.apple.WebCore 0x114675c3d WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 0x5d (PassRefPtr.h:68) ...
Attachments
Patch
(1.92 KB, patch)
2015-12-04 16:28 PST
,
Michael Saboff
mark.lam
: review+
Details
Formatted Diff
Diff
Patch for Landing
(5.90 KB, patch)
2015-12-04 16:50 PST
,
Michael Saboff
joepeck
: review+
Details
Formatted Diff
Diff
Updated patch for landing
(5.25 KB, patch)
2015-12-07 15:40 PST
,
Michael Saboff
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Michael Saboff
Comment 1
2015-12-04 16:28:46 PST
Created
attachment 266679
[details]
Patch
Mark Lam
Comment 2
2015-12-04 16:37:00 PST
Comment on
attachment 266679
[details]
Patch r=me
Michael Saboff
Comment 3
2015-12-04 16:50:00 PST
Created
attachment 266682
[details]
Patch for Landing Changed the order of the "if" predicates to make it a little more defensive. That is don't check the replacement CodeBlock until first checking that the compilation was successful.
Michael Saboff
Comment 4
2015-12-04 16:53:36 PST
I'll land without the change for
https://bugs.webkit.org/show_bug.cgi?id=151893
that was inadvertently added in the last patch.
Joseph Pecoraro
Comment 5
2015-12-04 17:01:39 PST
Comment on
attachment 266682
[details]
Patch for Landing Err back to r?. I am fine with the inspector test. A JSC reviewer should review the CodeBlock changes!
Joseph Pecoraro
Comment 6
2015-12-04 17:02:32 PST
Oh, I think I accidentally stomped Mark Lam's r+ on this!
Joseph Pecoraro
Comment 7
2015-12-04 17:02:50 PST
Comment on
attachment 266682
[details]
Patch for Landing Restoring Mark Lam's r+
Michael Saboff
Comment 8
2015-12-04 17:04:33 PST
Committed
r193491
: <
http://trac.webkit.org/changeset/193491
>
Geoffrey Garen
Comment 9
2015-12-06 13:12:20 PST
I don't love this fix. A lot of things can go wrong if we throw away code while compiling. I think it would be better to wait for all compilation to terminate. I thought that's how things already worked.
Michael Saboff
Comment 10
2015-12-07 10:09:19 PST
(In reply to
comment #9
)
> I don't love this fix. A lot of things can go wrong if we throw away code > while compiling. I think it would be better to wait for all compilation to > terminate. I thought that's how things already worked.
I don't understand your concern. We are in the process of waiting for all compilations to complete as per the backtrace frame 6. In this case, we aren't throwing away any code, just not updating the optimization threshold.
Michael Saboff
Comment 11
2015-12-07 14:47:18 PST
After discussing with Geoff, going to take a less confusion approach to fixing this problem.
Michael Saboff
Comment 12
2015-12-07 15:40:08 PST
Created
attachment 266821
[details]
Updated patch for landing
Michael Saboff
Comment 13
2015-12-07 16:32:06 PST
Committed
r193674
: <
http://trac.webkit.org/changeset/193674
>
Michael Saboff
Comment 14
2015-12-07 16:35:40 PST
***
Bug 131771
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug