The useful hints will be in lstk() (does the stack look sane), as well as in the disassembly of the code (asm(Readdir), casm())
It seems unlikely that 'f' is out of bounds, given the bounds check above, which makes me suspect a corrupted binary. On Sun, 7 Jul 2024 17:36:35 +0200 Marco Feichtinger <ma...@germteig.com> wrote: > Error during compiling: > rc 718: suicide: sys: trap: fault read addr=0x965708 pc=0x0000b5d9 > mk: 8c -FTVw mtrr.c : exit status=rc 718: sys: trap: fault read > addr=0x965708 pc=0x0000b5d9 > > acid: > term% acid 718 > /proc/718/text:386 plan 9 executable > /sys/lib/acid/port > /sys/lib/acid/386 > acid: src(0x0000b5d9) > /sys/src/cmd/rc/plan9.c:476 > 471 int n; > 472 > 473 if(f<0 || f>=NFD) > 474 return 0; > 475 Again: > >476 if(dir[f].i==dir[f].n){ /* read */ > 477 free(dir[f].dbuf); > 478 dir[f].dbuf = 0; > 479 n = dirread(f, &dir[f].dbuf); > 480 if(n>0){ > 481 if(onlydirs){ > acid: regs() > PC 0x0000b5d9 Readdir+0x2d /sys/src/cmd/rc/plan9.c:476 > SP 0xdfffeea3 ECODE 0x00000004 EFLAG 0x00010286 > CS 0x00000023 DS 0x0000001b SS 0x0000001b > GS 0x0000001b FS 0x0000001b ES 0x0000001b > TRAP 0x0000000e page fault > AX 0xdfffef00 BX 0x00965700 CX 0x00000214 DX 0x00040b20 > DI 0x00016ca7 SI 0x00155720 BP 0x000176c8 > acid: > > I didn't get any wiser. > > -marco > -- Ori Bernstein <o...@eigenstate.org> ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T68f44cf88ca61ff3-Md46471297fafa3051bd167f4 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription