On Tue Nov 5 13:06:06 EST 2013, [email protected] wrote: > how is this possible? execing a zero byte file should fail > header parsing, which is portable code in sysexec(). can > you reproduce the panic? > > i get this on a pc: > > term% ./xxx > ./xxx: exec header invalid
this is not what happened. what happened was /sys/src/cmd/vl/v.out was a valid mips executable. unfortuntely, vl creates/truncates (i haven't looked yet) v.out but when the name of vl is actually v.out, the process nukes its own text. so the next page fault in text/data should be unfixable. this should terminate the running process, not panic the kernel. - erik
