[M3devel] Mika's thread test, -tests read

Dragiša Durić dragisha at m3w.org
Sat Apr 28 10:02:40 CEST 2012


(this and previous email - AMD64_DARWIN)

r -tests read,alloc @M3paranoidgc
Starting program: /Users/dragisha/m3/thread/AMD64_DARWIN/threadtest -tests read,alloc @M3paranoidgc
...
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000001ffff8
[Switching to process 4249 thread 0x1703]
0x000000010003bba1 in RTCollector__RefSanityCheck (v=Cannot access memory at address 0xffffffffffffffa7
) at ../src/runtime/common/RTCollector.m3:1702
1702	        tc := h.typecode;
(gdb) set lang c
(gdb) bt
#0  0x000000010003bba1 in RTCollector__RefSanityCheck (v=0x0, cp=0x100980958) at ../src/runtime/common/RTCollector.m3:1702
#1  0x00000001000358ca in RTHeapMap__Walk (x=0x0, pc=0x100e20028, v=0x100098a88) at ../src/runtime/common/RTHeapMap.m3:202
#2  0x0000000100034fb2 in RTHeapMap__DoWalkRef (t=0x1, a=0x100083de8, v=0x100e20028) at ../src/runtime/common/RTHeapMap.m3:62
#3  0x0000000100034f85 in RTHeapMap__DoWalkRef (t=0x100087898, a=0x100084848, v=0x100e20018) at ../src/runtime/common/RTHeapMap.m3:57
#4  0x0000000100034f85 in RTHeapMap__DoWalkRef (t=0x100e0f9f0, a=0x100084a48, v=0x100e20018) at ../src/runtime/common/RTHeapMap.m3:57
#5  0x0000000100034f21 in RTHeapMap__WalkRef (h=0x2018, v=0x100e20010) at ../src/runtime/common/RTHeapMap.m3:47
#6  0x000000010003b8dc in RTCollector__SanityCheck (self=0x100e20000) at ../src/runtime/common/RTCollector.m3:1660
#7  0x000000010003b618 in RTCollector__After (self=0x100e0fad0) at ../src/runtime/common/RTCollector.m3:1630
#8  0x0000000100035d35 in RTHeapRep__InvokeMonitors (before=0 '\0') at ../src/runtime/common/RTHeapRep.m3:59
#9  0x0000000100039305 in RTCollector__CollectSomeInStateFive () at ../src/runtime/common/RTCollector.m3:984
#10 0x000000010003856e in RTCollector__CollectSome () at ../src/runtime/common/RTCollector.m3:725
#11 0x000000010003820f in RTHeapRep__CollectEnough () at ../src/runtime/common/RTCollector.m3:654
#12 0x0000000100033d73 in RTAllocator__AllocTraced (dataSize=0, dataAlignment=8216, thread=0x8) at ../src/runtime/common/RTAllocator.m3:368
#13 0x0000000100033692 in RTAllocator__GetOpenArray (def=0x200026, s=0x100087898) at ../src/runtime/common/RTAllocator.m3:297
#14 0x00000001000329b2 in RTHooks__AllocateOpenArray (defn=0x100f2d468, s=0x100087898) at ../src/runtime/common/RTAllocator.m3:144
#15 0x0000000100002b32 in Main__AApply (cl=0x100e0fd80) at ../src/Main.m3:283
#16 0x0000000100050849 in ThreadPThread__RunThread (me=0x1703) at ../src/thread/PTHREAD/ThreadPThread.m3:450
#17 0x000000010005050e in ThreadPThread__ThreadBase (param=0x100a01b00) at ../src/thread/PTHREAD/ThreadPThread.m3:422
#18 0x00007fff84f908bf in _pthread_start ()
#19 0x00007fff84f93b75 in thread_start ()

This time - previous branch was not AllocTraced()->LongAlloc()

dd

On Apr 27, 2012, at 11:06 PM, Antony Hosking wrote:

> Similarly, I suspect rd is corrupted on line 44 of FileRd.m3.
> These all point to a collector bug.
> Need to run with @M3paranoidgc to trigger the bug at collection time rather than later on when the mutator code is running.




More information about the M3devel mailing list