Closed
Bug 1280950
Opened 10 years ago
Closed 10 years ago
Assertion failure: addr % CellSize == 0, at js/src/gc/Heap.h:1149 or random crashes
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1280252
People
(Reporter: decoder, Assigned: jonco)
Details
(4 keywords, Whiteboard: [jsbugmon:])
Attachments
(1 file)
|
1.51 KB,
text/plain
|
Details |
The following testcase crashes on mozilla-central revision 3ce53bd1e25b (build with --enable-posix-nspr-emulation --enable-valgrind --enable-gczeal --disable-tests --enable-debug --enable-optimize, run with --fuzzing-safe --thread-count=2 --ion-check-range-analysis --ion-eager --ion-offthread-compile=off --nursery-size=1):
Testcase attached.
Backtrace:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000000004ef6d8 in js::gc::Cell::address (this=<optimized out>) at js/src/gc/Heap.h:1149
#1 js::gc::TenuredCell::arena (this=<optimized out>) at js/src/gc/Heap.h:1237
#2 js::gc::TenuredCell::zone (this=<optimized out>) at js/src/gc/Heap.h:1257
#3 0x0000000000d1760e in JSObject::zone (this=0x7fbaa75008e0) at js/src/jsobj.h:314
#4 js::TenuringTracer::moveToTenured (this=this@entry=0x7ffc654bca50, src=0x7fbaa75008e0) at js/src/gc/Marking.cpp:2152
#5 0x0000000000d17c04 in js::TenuringTracer::traverse<JSObject> (this=0x7ffc654bca50, objp=0x7ffc654bc690) at js/src/gc/Marking.cpp:2020
#6 0x0000000000d32f48 in js::TenuringTraversalFunctor<JS::Value>::operator()<JSObject> (this=<synthetic pointer>, trc=0x7ffc654bca50, t=0x7fbaa75008e0) at js/src/gc/Marking.cpp:2026
#7 js::DispatchTyped<js::TenuringTraversalFunctor<JS::Value>, js::TenuringTracer*>(js::TenuringTraversalFunctor<JS::Value>, JS::Value const&, js::TenuringTracer*&&) (f=..., val=...) at /srv/jenkins/jobs/mozilla-central-build-jsshell/workspace/arch/64/compiler/gcc/sanitizer/none/type/debug/dist/include/js/Value.h:1914
#8 0x0000000000d19441 in js::TenuringTracer::traverse<JS::Value> (thingp=0x7fbaa44352a0, this=0x7ffc654bca50) at js/src/gc/Marking.cpp:2035
#9 js::TenuringTracer::traceSlots (end=<optimized out>, vp=0x7fbaa44352a0, this=0x7ffc654bca50) at js/src/gc/Marking.cpp:2241
#10 js::TenuringTracer::traceObjectSlots (this=this@entry=0x7ffc654bca50, nobj=nobj@entry=0x7fbaa4d9a1c0, start=start@entry=26168, length=<optimized out>) at js/src/gc/Marking.cpp:2234
#11 0x0000000000d1962a in js::gc::StoreBuffer::SlotsEdge::trace (this=this@entry=0x7fbaa5f1a140, mover=...) at js/src/gc/Marking.cpp:2086
#12 0x0000000000d330d1 in js::gc::StoreBuffer::MonoTypeBuffer<js::gc::StoreBuffer::SlotsEdge>::trace (this=this@entry=0x7fbaa5f65680, owner=owner@entry=0x7fbaa5f655d0, mover=...) at js/src/gc/Marking.cpp:2048
#13 0x0000000000d1b401 in js::gc::StoreBuffer::traceSlots (mover=..., this=0x7fbaa5f655d0) at js/src/gc/StoreBuffer.h:442
#14 js::Nursery::collect (this=this@entry=0x7fbaa5f65488, rt=0x7fbaa5f65000, reason=reason@entry=JS::gcreason::OUT_OF_NURSERY, pretenureGroups=pretenureGroups@entry=0x7ffc654bce10) at js/src/gc/Nursery.cpp:431
#15 0x000000000093dffb in js::gc::GCRuntime::minorGCImpl (this=this@entry=0x7fbaa5f65430, reason=reason@entry=JS::gcreason::OUT_OF_NURSERY, pretenureGroups=pretenureGroups@entry=0x7ffc654bce10) at js/src/jsgc.cpp:6518
#16 0x000000000093e364 in js::gc::GCRuntime::minorGC (this=this@entry=0x7fbaa5f65430, cx=cx@entry=0x7fbaa5f1ac00, reason=reason@entry=JS::gcreason::OUT_OF_NURSERY) at js/src/jsgc.cpp:6541
#17 0x0000000000d048c2 in js::gc::GCRuntime::tryNewNurseryObject<(js::AllowGC)1> (this=this@entry=0x7fbaa5f65430, cx=cx@entry=0x7fbaa5f1ac00, thingSize=thingSize@entry=48, nDynamicSlots=nDynamicSlots@entry=0, clasp=clasp@entry=0x1ca24e0 <js::PlainObject::class_>) at js/src/gc/Allocator.cpp:85
#18 0x0000000000d06aed in js::Allocate<JSObject, (js::AllowGC)1> (cx=cx@entry=0x7fbaa5f1ac00, kind=kind@entry=js::gc::AllocKind::OBJECT2_BACKGROUND, nDynamicSlots=0, heap=heap@entry=js::gc::DefaultHeap, clasp=clasp@entry=0x1ca24e0 <js::PlainObject::class_>) at js/src/gc/Allocator.cpp:49
#19 0x0000000000989c50 in JSObject::create (cx=0x7fbaa5f1ac00, kind=js::gc::AllocKind::OBJECT2_BACKGROUND, heap=js::gc::DefaultHeap, shape=..., group=...) at js/src/jsobjinlines.h:352
#20 0x0000000000948c9f in NewObject (cx=0x7fbaa5f1ac00, group=..., kind=js::gc::AllocKind::OBJECT2_BACKGROUND, newKind=js::GenericObject, initialShapeFlags=<optimized out>) at js/src/jsobj.cpp:671
#21 0x000000000094e85f in js::NewObjectWithClassProtoCommon (cxArg=cxArg@entry=0x7fbaa5f1ac00, clasp=0x1ca24e0 <js::PlainObject::class_>, protoArg=..., protoArg@entry=..., allocKind=allocKind@entry=js::gc::AllocKind::OBJECT2_BACKGROUND, newKind=newKind@entry=js::GenericObject) at js/src/jsobj.cpp:799
#22 0x0000000000960925 in js::NewObjectWithClassProto (newKind=js::GenericObject, allocKind=js::gc::AllocKind::OBJECT2_BACKGROUND, proto=..., clasp=<optimized out>, cx=0x7fbaa5f1ac00) at js/src/jsobjinlines.h:703
#23 js::NewBuiltinClassInstance (newKind=js::GenericObject, allocKind=js::gc::AllocKind::OBJECT2_BACKGROUND, clasp=<optimized out>, cx=0x7fbaa5f1ac00) at js/src/jsobjinlines.h:740
#24 js::NewBuiltinClassInstance<js::PlainObject> (newKind=js::GenericObject, allocKind=js::gc::AllocKind::OBJECT2_BACKGROUND, cx=0x7fbaa5f1ac00) at js/src/jsobjinlines.h:762
#25 js::CopyInitializerObject (newKind=js::GenericObject, baseobj=..., cx=0x7fbaa5f1ac00) at js/src/vm/NativeObject-inl.h:306
#26 CreateThisForFunctionWithGroup (newKind=js::GenericObject, group=..., cx=0x7fbaa5f1ac00) at js/src/jsobj.cpp:911
#27 js::CreateThisForFunctionWithProto (cx=0x7fbaa5f1ac00, callee=..., newTarget=..., proto=..., newKind=js::GenericObject) at js/src/jsobj.cpp:979
#28 0x00007fbaa7615579 in ?? ()
#29 0x0000000000000000 in ?? ()
rax 0x0 0
rbx 0x7fbaa75008e0 140439647684832
rcx 0x7fbaa624ca2d 140439628073517
rdx 0x0 0
rsi 0x7fbaa651b770 140439631017840
rdi 0x7fbaa651a540 140439631013184
rbp 0x7ffc654bc5d0 140722007950800
rsp 0x7ffc654bc5c0 140722007950784
r8 0x7fbaa651b770 140439631017840
r9 0x7fbaa7604740 140439648749376
r10 0x58 88
r11 0x7fbaa61c3750 140439627511632
r12 0x7ffc654bca50 140722007951952
r13 0x7ffc654bca50 140722007951952
r14 0x7fbaa444eb50 140439596624720
r15 0x996a 39274
rip 0x4ef6d8 <js::gc::TenuredCell::zone() const+264>
=> 0x4ef6d8 <js::gc::TenuredCell::zone() const+264>: movl $0x0,0x0
0x4ef6e3 <js::gc::TenuredCell::zone() const+275>: ud2
Marking s-s because this is a known security-relevant assertion with GC involved.
| Reporter | ||
Comment 1•10 years ago
|
||
| Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(jcoppeard)
Updated•10 years ago
|
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:bisect]
Comment 2•10 years ago
|
||
JSBugMon: Cannot process bug: Unable to automatically reproduce, please track manually.
Updated•10 years ago
|
Whiteboard: [jsbugmon:bisect] → [jsbugmon:]
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jcoppeard
Flags: needinfo?(jcoppeard)
| Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updated•10 years ago
|
status-firefox50:
affected → ---
Updated•7 years ago
|
Group: javascript-core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•