From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Steve Simon" Date: Wed, 21 Nov 2007 13:02:02 +0000 To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] kernel memory allocator got confused? Topicbox-Message-UUID: 05ea81ee-ead3-11e9-9d60-3106f5b1d025 Ok, out of my depth here but I was developing a prog under ape, I wanted to see how it got to a given line so, being lazy I put "*(char *)0 = 0;" in my code. This worked the first time but then mk started dieing, then rc died, then I had the joy of several programs reading the console then rio went and took the remaining shells with it In fact anything that allocated memory seemed to died. I discovered that cat and con would still run so I was able to cat the contents of /dev/kprint into a file and use con to halt fossil. my kernel is fairly recent though I haven't rebuilt it for a couple of months. This machine is a do-everything box: venti/fossil/cpu (net listeners)/auth/terminal. please ignore the complaint about the filesystem 'other' - I removed the disk. Just aheads-up really. -Steve E820: 00000000 0009f400 memory E820: 0009f400 000a0000 reServed E820: 000f0000 00100000 rEserved E820: 00100000 3ffeb000 Memory E820: 3ffeb000 3ffef000 aCpi reclaim E820: 3ffef000 3ffff000 reserved E820: 3ffff000 40000000 acpi nvs E820: fec00000 fec10000 reserved E820: fee00000 fee01000 reserved E820: fff80000 100000000 reserved 126 holes free 00017000 0009f000 557056 0036b000 10000000 264851456 265408512 bytes free cpu0: 1607MHz GenuineIntel P4 (cpuid: AX 0x0F0A DX 0x3FEBFBFF) ELCR: 1A20 apm0: configured cbase 000f0000 off 00006824 #l0: i82557: 100Mbps port 0xD400 irq 5: 0002b3a256a6 sd53c8xx: SYM53C875 rev. 0x26 intr=11 command=0017 #U/usb0: uhci: port 0xB400 irq 9 #U/usb1: uhci: port 0xB000 irq 11 1024M memory: 256M kernel data, 767M user, 1392M swap root is from (tcp, local)[local!#S/sd00/fossil]: user[none]: steve sd53c8xx: bios scntl3(00) stest2(00) time... venti...2007/1120 12:36:58 venti: conf...httpd tcp!127.1!8000...init...sync...announce tcp!127.1!17034...serving. fossil(#S/sd00/fossil)...fsOpen: open /dev/fs/other: '/dev/fs/other' does not exist fsys other open -c 12800: fsOpen: open /dev/fs/other: '/dev/fs/other' does not exist version...time... init: starting /bin/rc 4 keys read secstore from (floppy, secstore, none)[secstore]: secstore password: secstore aux/cifs: 146 long share names too long for RAP (>13 chars) 23795 cda: checked 8223 page table entries 23849 mk: checked 53 page table entries 23851 mk: checked 50 page table entries 23853 mk: checked 53 page table entries 6308 rc: checked 48 page table entries mem user overflow pool sbrkmem block 435a70 hdr 0a110c09 0014b220 0000c847 0000c847 002e002e 002e002e tail 00000000 00000000 00000000 00000000 00000000 00000000 | efd88dbe 0014b220 user data 00 00 00 00 00 00 00 00 | fe d1 f0 fa 00 00 00 00 panic: pool panic 47 rio: checked 1190 page table entries rio 47: suicide: sys: trap: fault read addr=0x0 pc=0x00028fe0 init: rc exit status: rio 47: sys: trap: fault read addr=0x0 pc=0x00028fe0 23857 maild: checked 45 page table entries rc: note: sys: trap: fault write addr=0xfffffff9 pc=0x0000d6a8 maild 23857: suicide: sys: trap: fault write addr=0xfffffff9 pc=0x0000d6a8 init: starting /bin/rc larch% larch% sat: '/bin/sat' file does not exist larch% i: '/bin/i' file does not exist larch% i: '/bin/i' file does not exist assert failed: (*t)->magic == FREE_MAGIC 23868 rc: checked 48 page table entries rc: note: sys: trap: fault read addr=0x0 pc=0x0000fbcc rc 23868: suicide: sys: trap: fault read addr=0x0 pc=0x0000fbcc larch% i: '/bin/i' file does not exist assert failed: (*t)->magic == FREE_MAGIC 23870 rc: checked 48 page table entries rc: note: sys: trap: fault read addr=0x0 pc=0x0000fbcc rc 23870: suicide: sys: trap: fault read addr=0x0 pc=0x0000fbcc 23863 rc: checked 48 page table entries rc: note: sys: trap: fault read addr=0x657669 pc=0x00011301 rc 23863: suicide: sys: trap: fault read addr=0x657669 pc=0x00011301 init: rc exit status: rc 23863: sys: trap: fault read addr=0x657669 pc=0x00011301 etc.