On Wed Feb 25 18:40:39 PST 2015, misch...@9.offblast.org wrote: > does anyone care to take a stab at figuring out why mainmem->curalloc > underflows? here's a c program to reproduce. >
i can't replicate this on amd64/9atom ; 6.curalloc 6.curalloc 786: suicide: sys: trap: fault read addr=0x0 pc=0x202761 acid; stk() abort()+0x0 /sys/src/libc/9sys/abort.c:6 main(argv=0xfedfff80,argc=0x0)+0x54 /usr/quanstro/curalloc.c:41 _main+0x40 /sys/src/libc/amd64/main9.s:15 ; 6c -a curalloc.c>curalloc.acid ; acid -l curalloc.acid 786 /proc/786/text:amd64 plan 9 executable /sys/lib/acid/port /sys/lib/acid/amd64 acid; (Pool)mainmem name 0x00400248 maxsize 0 cursize 1072693248 curfree 16 curalloc 0 <--- minarena 0 quantum 1076101120 minblock 1852399981 freeroot 0x00000000 arenalist 0xfaf0f1fe alloc 0x00000000 merge 0x00000000 move 0xfedffef8 flags 32 nfree 0 lastcompact 2106590 lock 0x00000023 unlock 0x002024de print 0x00000025 panic 0x00201f75 logstack 0x0000002b private 0x002024de - erik