[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[coco8] Crash stack captures for statically bound JavascriptCore library

Procedure used to capture crash stacks

  1. Build JSC library downloaded from Darionco github adaption.
  2. Add the library to the coco8 project to be bound statically

Collected crash stacks

The coco8 app crash after a few evaluation, fileIn, browsing, etc.

1   0x18d353 JSC::CodeBlock::updateAllValueProfilePredictions(JSC::OperationInProgress)
2   0x18a5e7 JSC::CodeBlock::stronglyVisitStrongReferences(JSC::SlotVisitor&)
3   0x18a175 JSC::CodeBlock::visitAggregate(JSC::SlotVisitor&)
4   0x20af6d JSC::FunctionExecutable::visitChildren(JSC::JSCell*, JSC::SlotVisitor&)
5   0x12485b JSC::SlotVisitor::drain()
6   0x20ff6d JSC::Heap::markRoots()
7   0x21063f JSC::Heap::collect(JSC::Heap::SweepToggle)
8   0x13454f JSC::DefaultGCActivityCallback::doWork()
9   0x123a7f JSC::HeapTimer::timerDidFire(__CFRunLoopTimer*, void*)
10  0x23124177 <redacted>
11  0x23123da9 <redacted>
12  0x23121bf5 <redacted>
13  0x230701c9 CFRunLoopRunSpecific
14  0x2306ffbd CFRunLoopRunInMode
15  0x2468caf9 GSEventRunModal
16  0x277a8435 UIApplicationMain
17  0xabcf5 main
18  0x22d1c873 <redacted>


1   0x34c463 WTF::StringImpl::reallocate(WTF::PassRefPtr<WTF::StringImpl>, unsigned int, unsigned char*&)
2   0x34b881 void WTF::StringBuilder::reallocateBuffer<unsigned char>(unsigned int)
3   0x34c0b9 unsigned char* WTF::StringBuilder::appendUninitializedSlow<unsigned char>(unsigned int)
4   0x34bd8f WTF::StringBuilder::append(unsigned char const*, unsigned int)
5   0x204b87 JSC::Interpreter::stackTraceAsString(JSC::ExecState*, WTF::Vector<JSC::StackFrame, 0ul, WTF::CrashOnOverflow>)
6   0x1417e3 JSC::VM::throwException(JSC::ExecState*, JSC::JSValue)
7   0x31f8c9 llint_slow_path_throw
8   0x324e1d llint_op_throw
9   0x20606b JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
10  0x17374b JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
11  0x1fd14b JSC::functionProtoFuncApply(JSC::ExecState*)
12  0x324ec3 llint_native_call_trampoline
13  0x20606b JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
14  0x17374b JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
15  0x26b5dd JSObjectCallAsFunction
16  0xd0531 +[BurksPool callSelector:ofInstance:writeContext:withArguments:]
17  0xceda9 -[BurksPool v_id:i:]
18  0x27e33c11 <redacted>
19  0x28039e05 <redacted>
20  0x27e33bab <redacted>
21  0x27e33faf <redacted>
22  0x27b98e55 <redacted>
23  0x27b994f3 <redacted>
24  0x27a8f219 <redacted>
25  0x27a924bd <redacted>
26  0x2786dc87 <redacted>
27  0x2777ab05 <redacted>
28  0x2777a5e1 <redacted>
29  0x2777a4db <redacted>
30  0x257b305f <redacted>
31  0x5c9b93 _dispatch_client_callout


Additional resources

XCode project - coco8 application and JSC library bindingscoco8AndJSCocoaFolders.zip