Date: Sun, 8 Oct 2000 13:28:08 -0400 (EDT) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Doug Rabson <dfr@nlsystems.com> Cc: Andrew Gallatin <gallatin@cs.duke.edu>, freebsd-alpha@FreeBSD.ORG Subject: Re: size problems with INVARIANTS/DIAGNOSTIC -current kernels Message-ID: <14816.44265.344287.683700@grasshopper.cs.duke.edu> In-Reply-To: <Pine.BSF.4.21.0010081106260.94692-100000@salmon.nlsystems.com> References: <14815.26475.95721.701188@grasshopper.cs.duke.edu> <Pine.BSF.4.21.0010081106260.94692-100000@salmon.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Doug Rabson writes: > Hmm. I think I need to see a disassembly of the region which contains the > fault pc. I can't quite see what is happening yet. OK. As you recall, I've altered kmeminit so that I touch kmemusage immediately, rather than waiting for malloc to do it..: Index: /home/home1/gallatin/ithreads/sys/kern/kern_malloc.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_malloc.c,v retrieving revision 1.73 diff -u -r1.73 kern_malloc.c --- /home/home1/gallatin/ithreads/sys/kern/kern_malloc.c 2000/09/23 00:01:35 1.73 +++ /home/home1/gallatin/ithreads/sys/kern/kern_malloc.c 2000/10/06 20:53:00 @@ -481,6 +481,9 @@ kmemusage = (struct kmemusage *) kmem_alloc(kernel_map, (vm_size_t)(npg * sizeof(struct kmemusage))); +printf("kmem_init: kmemusage = %p\n", kmemusage); +*(int *)kmemusage = 0x0; +printf("kmem_init: touched kmemusage\n"); kmem_map = kmem_suballoc(kernel_map, (vm_offset_t *)&kmembase, (vm_offset_t *)&kmemlimit, (vm_size_t)(npg * PAGE_SIZE)); kmem_map->system_map = 1; fffffc00003f2ec0 <kmeminit>: fffffc00003f2ec0: 2e 00 bb 27 ldah gp,46(t12) fffffc00003f2ec4: 48 61 bd 23 lda gp,24904(gp) fffffc00003f2ec8: e0 ff de 23 lda sp,-32(sp) fffffc00003f2ecc: 00 00 5e b7 stq ra,0(sp) fffffc00003f2ed0: 08 00 3e b5 stq s0,8(sp) fffffc00003f2ed4: 10 00 5e b5 stq s1,16(sp) fffffc00003f2ed8: 18 00 7e b5 stq s2,24(sp) fffffc00003f2edc: 90 b2 1d a6 ldq a0,-19824(gp) fffffc00003f2ee0: e8 0e 3d a6 ldq a1,3816(gp) fffffc00003f2ee4: 01 00 5f 22 lda a2,1(zero) fffffc00003f2ee8: 78 95 7d a7 ldq t12,-27272(gp) fffffc00003f2eec: 7c 43 5b 6b jsr ra,(t12),fffffc00003f3ce0 <modstat+0x100> fffffc00003f2ef0: 2e 00 ba 27 ldah gp,46(ra) fffffc00003f2ef4: 18 61 bd 23 lda gp,24856(gp) fffffc00003f2ef8: c0 00 3f 25 ldah s0,192(zero) fffffc00003f2efc: f0 92 3d a4 ldq t0,-27920(gp) fffffc00003f2f00: 68 00 21 a0 ldl t0,104(t0) fffffc00003f2f04: 21 b7 21 48 sll t0,0xd,t0 fffffc00003f2f08: 21 f6 21 48 zapnot t0,0xf,t0 fffffc00003f2f0c: 81 56 20 48 srl t0,0x2,t0 fffffc00003f2f10: a2 03 21 41 cmpult s0,t0,t1 fffffc00003f2f14: c9 04 41 44 cmovne t1,t0,s0 fffffc00003f2f18: e0 0e 1d a6 ldq a0,3808(gp) fffffc00003f2f1c: c8 c2 3d a6 ldq a1,-15672(gp) fffffc00003f2f20: 78 ac 7d a7 ldq t12,-21384(gp) fffffc00003f2f24: 4e 4c 5b 6b jsr ra,(t12),fffffc00003f6060 <sysctl_kern_proc_args+0x20> fffffc00003f2f28: 2e 00 ba 27 ldah gp,46(ra) fffffc00003f2f2c: e0 60 bd 23 lda gp,24800(gp) fffffc00003f2f30: 02 00 00 f4 bne v0,fffffc00003f2f3c <kmeminit+0x7c> fffffc00003f2f34: c8 c2 3d a4 ldq t0,-15672(gp) fffffc00003f2f38: 00 00 21 b1 stl s0,0(t0) fffffc00003f2f3c: c8 c2 9d a4 ldq t3,-15672(gp) fffffc00003f2f40: 00 00 24 a0 ldl t0,0(t3) fffffc00003f2f44: 21 f6 21 48 zapnot t0,0xf,t0 fffffc00003f2f48: f0 92 5d a4 ldq t1,-27920(gp) fffffc00003f2f4c: 68 00 62 a0 ldl t2,104(t1) fffffc00003f2f50: 22 b7 61 48 sll t2,0xd,t1 fffffc00003f2f54: 81 36 20 48 srl t0,0x1,t0 fffffc00003f2f58: 22 f6 41 48 zapnot t1,0xf,t1 fffffc00003f2f5c: a1 07 22 40 cmpule t0,t1,t0 fffffc00003f2f60: 02 00 20 f4 bne t0,fffffc00003f2f6c <kmeminit+0xac> fffffc00003f2f64: 21 d7 61 48 sll t2,0xe,t0 fffffc00003f2f68: 00 00 24 b0 stl t0,0(t3) fffffc00003f2f6c: e8 ba 3d a4 ldq t0,-17688(gp) fffffc00003f2f70: 00 00 21 a1 ldl s0,0(t0) fffffc00003f2f74: 29 17 21 49 sll s0,0x8,s0 fffffc00003f2f78: c0 ae 3d a4 ldq t0,-20800(gp) fffffc00003f2f7c: 00 00 21 a0 ldl t0,0(t0) fffffc00003f2f80: 21 77 21 48 sll t0,0xb,t0 fffffc00003f2f84: 09 04 21 41 addq s0,t0,s0 fffffc00003f2f88: c8 c2 3d a4 ldq t0,-15672(gp) fffffc00003f2f8c: 00 00 21 a0 ldl t0,0(t0) fffffc00003f2f90: 09 00 21 41 addl s0,t0,s0 fffffc00003f2f94: 29 f6 21 49 zapnot s0,0xf,s0 fffffc00003f2f98: 89 b6 21 49 srl s0,0xd,s0 fffffc00003f2f9c: 98 0e 5d a5 ldq s1,3736(gp) fffffc00003f2fa0: 38 98 7d a5 ldq s2,-26568(gp) fffffc00003f2fa4: 00 00 0b a6 ldq a0,0(s2) fffffc00003f2fa8: 51 14 20 41 s4addq s0,0,a1 fffffc00003f2fac: b0 83 7d a7 ldq t12,-31824(gp) fffffc00003f2fb0: 83 4e 5b 6b jsr ra,(t12),fffffc00003f69c0 <setgid+0x80> fffffc00003f2fb4: 2e 00 ba 27 ldah gp,46(ra) fffffc00003f2fb8: 54 60 bd 23 lda gp,24660(gp) fffffc00003f2fbc: 00 00 0a b4 stq v0,0(s1) fffffc00003f2fc0: d8 0e 1d a6 ldq a0,3800(gp) fffffc00003f2fc4: 11 04 e0 47 mov v0,a1 fffffc00003f2fc8: c8 83 7d a7 ldq t12,-31800(gp) fffffc00003f2fcc: ec 4f 5b 6b jsr ra,(t12),fffffc00003f6f80 <setregid+0x100> fffffc00003f2fd0: 2e 00 ba 27 ldah gp,46(ra) fffffc00003f2fd4: 38 60 bd 23 lda gp,24632(gp) fffffc00003f2fd8: 00 00 2a a4 ldq t0,0(s1) fffffc00003f2fdc: 00 00 e1 b3 stl zero,0(t0) fffffc00003f2fe0: d0 0e 1d a6 ldq a0,3792(gp) fffffc00003f2fe4: c8 83 7d a7 ldq t12,-31800(gp) fffffc00003f2fe8: e5 4f 5b 6b jsr ra,(t12),fffffc00003f6f80 <setregid+0x100> fffffc00003f2fec: 2e 00 ba 27 ldah gp,46(ra) fffffc00003f2ff0: 1c 60 bd 23 lda gp,24604(gp) fffffc00003f2ff4: 00 00 0b a6 ldq a0,0(s2) fffffc00003f2ff8: 90 0e 3d a6 ldq a1,3728(gp) fffffc00003f2ffc: 88 0e 5d a6 ldq a2,3720(gp) fffffc00003f3000: 33 b7 21 49 sll s0,0xd,a3 fffffc00003f3004: 98 ca 7d a7 ldq t12,-13672(gp) fffffc00003f3008: 2d 4f 5b 6b jsr ra,(t12),fffffc00003f6cc0 <setreuid+0x40> fffffc00003f300c: 2e 00 ba 27 ldah gp,46(ra) fffffc00003f3010: fc 5f bd 23 lda gp,24572(gp) fffffc00003f3014: b8 bc 3d a4 ldq t0,-17224(gp) fffffc00003f3018: 00 00 01 b4 stq v0,0(t0) fffffc00003f301c: 01 00 3f 20 lda t0,1(zero) fffffc00003f3020: 88 00 40 2c ldq_u t1,136(v0) fffffc00003f3024: 03 14 11 40 addq v0,0x88,t2 fffffc00003f3028: 42 00 43 48 mskbl t1,t2,t1 fffffc00003f302c: 61 01 23 48 insbl t0,t2,t0 fffffc00003f3030: 01 04 22 44 or t0,t1,t0 fffffc00003f3034: 88 00 20 3c stq_u t0,136(v0) fffffc00003f3038: 03 04 ff 47 clr t2 fffffc00003f303c: 01 00 bf 20 lda t4,1(zero) fffffc00003f3040: ff 1f ff 20 lda t6,8191(zero) fffffc00003f3044: 80 0e 9d a4 ldq t3,3712(gp) fffffc00003f3048: 78 0e dd a4 ldq t5,3704(gp) fffffc00003f304c: 00 00 e0 2f unop fffffc00003f3050: 21 07 a3 48 sll t4,t2,t0 fffffc00003f3054: 01 00 3f 40 addl t0,zero,t0 fffffc00003f3058: a1 0d 27 40 cmple t0,t6,t0 fffffc00003f305c: 04 00 20 f4 bne t0,fffffc00003f3070 <kmeminit+0x1b0> fffffc00003f3060: 21 d7 60 48 sll t2,0x6,t0 fffffc00003f3064: 01 04 24 40 addq t0,t3,t0 fffffc00003f3068: 00 00 a1 b4 stq t4,0(t0) fffffc00003f306c: 0a 00 e0 c3 br fffffc00003f3098 <kmeminit+0x1d8> fffffc00003f3070: 21 d7 60 48 sll t2,0x6,t0 fffffc00003f3074: 01 04 24 40 addq t0,t3,t0 fffffc00003f3078: 39 07 a3 48 sll t4,t2,t11 fffffc00003f307c: 00 20 1f 23 lda t10,8192(zero) fffffc00003f3080: 19 00 3f 43 addl t11,zero,t11 fffffc00003f3084: 80 a3 7d a7 ldq t12,-23680(gp) fffffc00003f3088: 2b 50 fb 6a jsr t9,(t12),fffffc00003f7138 <setresuid+0xd8> fffffc00003f308c: 2e 00 b7 27 ldah gp,46(t9) fffffc00003f3090: 7c 5f bd 23 lda gp,24444(gp) fffffc00003f3094: 00 00 61 b7 stq t12,0(t0) fffffc00003f3098: 21 d7 60 48 sll t2,0x6,t0 fffffc00003f309c: 02 04 26 40 addq t0,t5,t1 fffffc00003f30a0: 01 04 24 40 addq t0,t3,t0 fffffc00003f30a4: 00 00 21 a4 ldq t0,0(t0) fffffc00003f30a8: 41 04 21 40 s4addq t0,t0,t0 fffffc00003f30ac: 00 00 22 b4 stq t0,0(t1) fffffc00003f30b0: 03 34 60 40 addq t2,0x1,t2 fffffc00003f30b4: a1 9d 62 40 cmple t2,0x14,t0 fffffc00003f30b8: e5 ff 3f f4 bne t0,fffffc00003f3050 <kmeminit+0x190> fffffc00003f30bc: 00 00 5e a7 ldq ra,0(sp) fffffc00003f30c0: 08 00 3e a5 ldq s0,8(sp) fffffc00003f30c4: 10 00 5e a5 ldq s1,16(sp) fffffc00003f30c8: 18 00 7e a5 ldq s2,24(sp) fffffc00003f30cc: 20 00 de 23 lda sp,32(sp) fffffc00003f30d0: 01 80 fa 6b ret zero,(ra),0x1 fffffc00003f30d4: 00 00 e0 2f unop fffffc00003f30d8: 1f 04 ff 47 nop fffffc00003f30dc: 00 00 e0 2f unop fffffc00003f30e0 <malloc_init>: <...> The faulting address is 0xfffffc00003f2fdc Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14816.44265.344287.683700>