makeoptions COPTS="-Os" # Optimise for space. Implies -O2
-current fixes both problems, and -Os fixes both as well, but I couldn't test a regular (recent) netbsd-5 kernel to see if it fixed either because I kept getting "Failed to set kernel symbol _boothowto." errors in the Booter.I wonder what in the toolchain is so broken that not using -Os creates bad code... Maybe I'll have to try to make a regular kernel using gcc 4.6 or something like that.
Followup: netbsd-5 kernel with -Os still panics within a half hour or so of heavy disk use. -current works and has been compiling all night.
On the other hand, I'm using a netbsd-5 userland which appears to be broken in some way or another:
Core was generated by `tcsh'. Program terminated with signal 4, Illegal instruction. #0 0x0004eadc in environ () #1 0x000397f6 in malloc () #2 0x041267ee in _citrus_lookup_seq_open () from /usr/lib/libc.so.12 #3 0x0412697c in _citrus_lookup_simple () from /usr/lib/libc.so.12 #4 0x040ef048 in catopen () from /usr/lib/libc.so.12 #5 0x0001196a in ?? () #6 0x00043dfa in ?? () #7 0x00000000 in ?? () I'm about to move this machine completely to -current. John