Closed
Bug 586333
Opened 16 years ago
Closed 15 years ago
assertion in GC::WhitePointerScan() MMgc/GC.cpp:3548 with incrementalValidation* enabled
Categories
(Tamarin Graveyard :: Garbage Collection (mmGC), defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Q4 11 - Anza
People
(Reporter: brbaker, Assigned: treilly)
Details
(Whiteboard: code-coverage)
Attachments
(1 file)
|
1.93 KB,
patch
|
lhansen
:
review+
|
Details | Diff | Splinter Review |
Assertion being hit in GC::WhitePointerScan() when incrementalValidation and incrementalValidationPedantic are enabled. The assertion is not triggered if only one of the modes are enabled.
brbaker-MacBookPro:bugs brbaker$ ./avmshell test.abc
Object 0x1063580 allocated here:
Didn't mark pointer at 0x10635a8, object 0x10a25b0 allocated here:
Assertion failed: "((false))" ("/Users/brbaker/hg/clean/MMgc/GC.cpp":3548)
Trace/BPT trap
This happens with any abc file. I was using a simple hello world, but every acceptance test produces the same assert.
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
| Reporter | ||
Comment 1•16 years ago
|
||
I am unable to reproduce on windows32
| Reporter | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> I am unable to reproduce on windows32
The issue does NOT reproduce on mac32
| Assignee | ||
Comment 3•16 years ago
|
||
dug into this, findings:
incrementalValidation needs love:
its printing out 64 bit pointers with %x
its only checking the mark bit for markedness and ignoring the queued bit meaning freelist items are treated as marked
because 64bit turns off MEMORY_INFO we don't poison free items so combined with the last problem we fire missing write barriers on freed/unpoisoned data
| Assignee | ||
Comment 4•16 years ago
|
||
| Reporter | ||
Updated•16 years ago
|
Whiteboard: code-coverage
Comment 5•16 years ago
|
||
Comment on attachment 464905 [details] [diff] [review]
fixes issue by not scanning kFreelist items
You're printing 'val' as %p, that requires val to be cast to void* in the argument list.
R+ provisional on that fix. No re-review necessary.
Attachment #464905 -
Flags: review?(lhansen) → review+
| Assignee | ||
Comment 6•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Reporter | ||
Updated•16 years ago
|
Flags: flashplayer-qrb?
| Reporter | ||
Comment 7•16 years ago
|
||
After discussing with Tom on IM I am reopening this issue.
There are 2 different asserts happening when incrementalValidation and incrementalValidationPedantic are enabled.
mac 32bit builds:
>$ ../configure.py --enable-shell --mac-sdk=104u --enable-debug --enable-debugger --enable-memory-profiler
>$ MMGC_PROFILE=1 ./shell/avmshell ../test/acceptance/as3/AbcDecoder/simple.abc
Assertion failed: "((GetGC(realptr)->IsPointerToGCObject(realptr)))" ("/Users/brbaker/hg/tamarin-redux/MMgc/GC-inlines.h":309)
Trace/BPT trap
mac 64bit builds:
>$ ./configure.py --enable-shell --target=x86_64-darwin --mac-sdk=105 --enable-debug --enable-debugger --enable-memory-profiler
>$ MMGC_PROFILE=1 ./shell/avmshell ../test/acceptance/as3/AbcDecoder/simple.abc
Object 0x101020100 allocated here:
MMgc::GCHeap::AllocHook(void const*, unsigned long, unsigned long) (in avmshell) (GCHeap.cpp:2098)
MMgc::GCAlloc::AllocFromQuickList(unsigned long, int) (in avmshell) (GCAlloc.cpp:521)
MMgc::GCAlloc::Alloc(unsigned long, int) (in avmshell) (GCAlloc.cpp:476)
MMgc::GC::Alloc(unsigned long, int) (in avmshell) (GC.cpp:635)
MMgc::GC::AllocPtrZeroFinalized(unsigned long) (in avmshell) (GC-inlines.h:160)
MMgc::GCFinalizedObject::operator new(unsigned long, MMgc::GC*) (in avmshell) (GCObject.h:144)
avmplus::AvmCore::initBuiltinPool(int) (in avmshell) (AvmCore.cpp:499)
avmshell::ShellCore::setup(avmshell::ShellCoreSettings&) (in avmshell) (ShellCore.cpp:440)
avmshell::Shell::singleWorkerHelper(avmshell::ShellCore*, avmshell::ShellSettings&) (in avmshell) (avmshell.cpp:178)
avmshell::Shell::singleWorker(avmshell::ShellSettings&) (in avmshell) (avmshell.cpp:170)
avmshell::Shell::run(int, char**) (in avmshell) (avmshell.cpp:137)
main (in avmshell) (avmshellMac.cpp:114)
start (in avmshell) + 52
Didn't mark pointer at 0x101020120, object 0x101020130 allocated here:
MMgc::GCHeap::AllocHook(void const*, unsigned long, unsigned long) (in avmshell) (GCHeap.cpp:2098)
MMgc::GCAlloc::AllocFromQuickList(unsigned long, int) (in avmshell) (GCAlloc.cpp:521)
MMgc::GCAlloc::Alloc(unsigned long, int) (in avmshell) (GCAlloc.cpp:476)
MMgc::GC::Alloc(unsigned long, int) (in avmshell) (GC.cpp:635)
MMgc::GC::Calloc(unsigned long, unsigned long, int) (in avmshell) (GC-inlines.h:133)
avmplus::GCListHelper::calloc(MMgc::GC*, unsigned long, unsigned long) (in avmshell) (avmplusList-inlines.h:123)
avmplus::ListImpl<MMgc::GCObject*, avmplus::GCListHelper>::allocData(MMgc::GC*, unsigned int) (in avmshell) (avmplusList-inlines.h:520)
avmplus::ListImpl<MMgc::GCObject*, avmplus::GCListHelper>::ListImpl(MMgc::GC*, unsigned int, MMgc::GCObject* const*) (in avmshell) (avmplusList-impl.h:53)
avmplus::GCList<avmplus::MethodInfo>::GCList(MMgc::GC*, unsigned int, avmplus::MethodInfo* const*) (in avmshell) (avmplusList-inlines.h:546)
avmplus::BaseExecMgr::BaseExecMgr(avmplus::AvmCore*) (in avmshell) (exec.cpp:70)
avmplus::AvmCore::initBuiltinPool(int) (in avmshell) (AvmCore.cpp:499)
avmshell::ShellCore::setup(avmshell::ShellCoreSettings&) (in avmshell) (ShellCore.cpp:440)
avmshell::Shell::singleWorkerHelper(avmshell::ShellCore*, avmshell::ShellSettings&) (in avmshell) (avmshell.cpp:178)
avmshell::Shell::singleWorker(avmshell::ShellSettings&) (in avmshell) (avmshell.cpp:170)
avmshell::Shell::run(int, char**) (in avmshell) (avmshell.cpp:137)
Assertion failed: "((false))" ("/Users/brbaker/hg/tamarin-redux/MMgc/GC.cpp":2775)
Trace/BPT trap
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•15 years ago
|
Priority: -- → P3
Target Milestone: --- → flash10.x-Serrano
Updated•15 years ago
|
Flags: flashplayer-bug+
Updated•15 years ago
|
Priority: P3 → P4
Updated•15 years ago
|
Priority: P4 → P2
Target Milestone: Q3 11 - Serrano → Q4 11 - Anza
| Assignee | ||
Comment 8•15 years ago
|
||
fix this this posted on bug 602489
Comment 9•15 years ago
|
||
changeset: 6354:60b09e75b375
user: Tommy Reilly <treilly@adobe.com>
summary: Bug 586333 - Incremental validation needs some fixing (r=lhansen)
http://hg.mozilla.org/tamarin-redux/rev/60b09e75b375
| Assignee | ||
Updated•15 years ago
|
Status: REOPENED → RESOLVED
Closed: 16 years ago → 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•