Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

iOS: EXC_BAD_ACCESS in bool js::gc::IsAboutToBeFinalized<js::types::TypeObject> #102

@orangemocha

Description

@orangemocha

Running the iOS Test App, release build:

Test 440: test-regress-GH-4027.js
EXC_BAD_ACCESS
#0	0x00000001011b0675 in bool js::gc::IsAboutToBeFinalized<js::types::TypeObject>(js::types::TypeObject**) ()
thaliproject/jxcore#1	0x00000001012bb898 in JSCompartment::sweepNewTypeObjectTable(js::HashSet<js::types::TypeObjectWithNewScriptEntry, js::types::TypeObjectWithNewScriptEntry, js::SystemAllocPolicy>&) ()
thaliproject/jxcore#2	0x00000001012892d0 in JSCompartment::sweep(js::FreeOp*, bool) ()
thaliproject/jxcore#3	0x00000001012ac5c2 in js::gc::GCRuntime::beginSweepingZoneGroup() ()
thaliproject/jxcore#4	0x00000001012acd25 in js::gc::GCRuntime::beginSweepPhase(bool) ()
thaliproject/jxcore#5	0x00000001012adeea in js::gc::GCRuntime::incrementalCollectSlice(long long, JS::gcreason::Reason) ()
thaliproject/jxcore#6	0x00000001012ae3a6 in js::gc::GCRuntime::gcCycle(bool, long long, js::JSGCInvocationKind, JS::gcreason::Reason) ()
thaliproject/jxcore#7	0x00000001012ae6bd in js::gc::GCRuntime::collect(bool, long long, js::JSGCInvocationKind, JS::gcreason::Reason) ()
thaliproject/jxcore#8	0x000000010135bbd1 in JSRuntime::~JSRuntime() ()
thaliproject/jxcore#9	0x000000010127991d in JS_DestroyRuntime(JSRuntime*) ()
thaliproject/jxcore#10	0x00000001010d3d44 in jxcore::JXEngine::Destroy() ()
thaliproject/jxcore#11	0x00000001010d237c in JX_StopEngine ()
thaliproject/jxcore#12	0x000000010107c8ba in +[TestRunner startChildEngine] at /Users/alexis/github/jxcore/tools/ios-test/iOS-Test/TestRunner.m:353
thaliproject/jxcore#13	0x000000010107c9df in JXcoreProxy_CB at /Users/alexis/github/jxcore/tools/ios-test/iOS-Test/jxcore-callback.h:17
thaliproject/jxcore#14	0x000000010139904b in nspr::Thread::ThreadRoutine(void*) ()
thaliproject/jxcore#15	0x00000001047e999d in _pthread_body ()
thaliproject/jxcore#16	0x00000001047e991a in _pthread_start ()
thaliproject/jxcore#17	0x00000001047e7351 in thread_start ()

The crash happens at random times. I reproduced it both with iPhone 6 (10.2) and iPhone 7 Plus (10.2) simulators.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions