From owner-freebsd-net Sun Sep 17 17:32: 8 2000 Delivered-To: freebsd-net@freebsd.org Received: from gluttony.henshaw.net (gluttony.henshaw.net [63.70.222.4]) by hub.freebsd.org (Postfix) with SMTP id 4456337B424 for ; Sun, 17 Sep 2000 17:32:05 -0700 (PDT) Received: (qmail 63057 invoked from network); 18 Sep 2000 00:32:01 -0000 Received: from dhcp-64-58-25-247.henshaw.net (HELO Ben.henshaw.net) (64.58.25.247) by gluttony.henshaw.net with SMTP; 18 Sep 2000 00:32:01 -0000 Message-Id: <5.0.0.25.2.20000917182707.01c52a20@pop.henshaw.net> X-Sender: (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Sun, 17 Sep 2000 18:32:35 -0600 To: Julian Elischer From: Ben Schumacher Subject: Re: netgraph based MAC authentication (core dump information) Cc: freebsd-net@freebsd.org In-Reply-To: <39C326FD.41C67EA6@elischer.org> References: <5.0.0.25.2.20000913221340.00a04950@pop.henshaw.net> <5.0.0.25.2.20000915183859.026c2310@pop.henshaw.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 12:53 AM 9/16/2000 -0700, Julian Elischer wrote: >Enable kernel core-dumps >and compile your kernel with -g so that you can examine >the core-dump and see where the crash was. Alright here's what I gathered from the core dump. I don't know much about the networking code in the kernel, so I'm not certain exactly what's going on, but I hope somebody else can figure it out. (kgdb) where #0 boot (howto=260) at ../../kern/kern_shutdown.c:302 #1 0xc013e84d in panic (fmt=0xc023f854 "from debugger") at ../../kern/kern_shutdown.c:552 #2 0xc011d8f9 in db_panic (addr=-1072107089, have_addr=0, count=-1, modif=0xc93babec "") at ../../ddb/db_command.c:433 #3 0xc011d899 in db_command (last_cmdp=0xc0269758, cmd_table=0xc02695b8, aux_cmd_tablep=0xc0283f2c) at ../../ddb/db_command.c:333 #4 0xc011d95e in db_command_loop () at ../../ddb/db_command.c:455 #5 0xc011fa6b in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71 #6 0xc021dfc2 in kdb_trap (type=12, code=0, regs=0xc93bad40) at ../../i386/i386/db_interface.c:158 #7 0xc022cebc in trap_fatal (frame=0xc93bad40, eva=38) at ../../i386/i386/trap.c:922 #8 0xc022cb95 in trap_pfault (frame=0xc93bad40, usermode=0, eva=38) at ../../i386/i386/trap.c:820 #9 0xc022c723 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = -918835756, tf_esi = -1065955662, tf_ebp = -918835836, tf_isp = -918835860, tf_ebx = -16369088, tf_edx = 65534, tf_ecx = -1065955682, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1072107089, tf_cs = 8, tf_eflags = 66178, tf_esp = -1065955840, tf_ss = -918835756}) at ../../i386/i386/trap.c:426 #10 0xc018f1af in in_broadcast (in={s_addr = 4278598208}, ifp=0x0) at ../../netinet/in.c:736 #11 0xc019a446 in udp_input (m=0xc076ce00, off=20, proto=17) at ../../netinet/udp_usrreq.c:238 #12 0xc01921e9 in ip_input (m=0xc076ce00) at ../../netinet/ip_input.c:738 #13 0xc0192247 in ipintr () at ../../netinet/ip_input.c:766 #14 0xc021fd65 in swi_net_next () #15 0xc015d72d in sendit (p=0xc89c3260, s=4, mp=0xc93baf10, flags=0) at ../../kern/uipc_syscalls.c:520 #16 0xc015d821 in sendto (p=0xc89c3260, uap=0xc93baf80) at ../../kern/uipc_syscalls.c:572 #17 0xc022d195 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1078004048, tf_esi = 671511360, tf_ebp = -1078004024, tf_isp = -918835244, tf_ebx = 671511548, tf_edx = -1078003928, tf_ecx = -7, tf_eax = 133, tf_trapno = 7, tf_err = 2, tf_eip = 671741624, tf_cs = 31, tf_eflags = 647, tf_esp = -1078004116, tf_ss = 47}) at ../../i386/i386/trap.c:1126 #18 0xc021e905 in Xint0x80_syscall () #19 0x8048add in ?? () #20 0x8048651 in ?? () (kgdb) up 10 #10 0xc018f1af in in_broadcast (in={s_addr = 4278598208}, ifp=0x0) at ../../netinet/in.c:736 736 if (in.s_addr == INADDR_BROADCAST || (kgdb) list 731 struct ifnet *ifp; 732 { 733 register struct ifaddr *ifa; 734 u_long t; 735 736 if (in.s_addr == INADDR_BROADCAST || 737 in.s_addr == INADDR_ANY) 738 return 1; 739 if ((ifp->if_flags & IFF_BROADCAST) == 0) 740 return 0; (kgdb) print in $1 = {s_addr = 6422528} (kgdb) print in.s_addr $2 = 6422528 (kgdb) up #11 0xc019a446 in udp_input (m=0xc076ce00, off=20, proto=17) at ../../netinet/udp_usrreq.c:238 238 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) || (kgdb) up #12 0xc01921e9 in ip_input (m=0xc076ce00) at ../../netinet/ip_input.c:738 738 (*inetsw[ip_protox[ip->ip_p]].pr_input)(m, off, nh); (kgdb) up #13 0xc0192247 in ipintr () at ../../netinet/ip_input.c:766 766 ip_input(m); (kgdb) up #14 0xc021fd65 in swi_net_next () (kgdb) up #15 0xc015d72d in sendit (p=0xc89c3260, s=4, mp=0xc93baf10, flags=0) at ../../kern/uipc_syscalls.c:520 520 error = so->so_proto->pr_usrreqs->pru_sosend(so, to, &auio, 0, control, (kgdb) up #16 0xc015d821 in sendto (p=0xc89c3260, uap=0xc93baf80) at ../../kern/uipc_syscalls.c:572 572 return (sendit(p, uap->s, &msg, uap->flags)); (kgdb) up #17 0xc022d195 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1078004048, tf_esi = 671511360, tf_ebp = -1078004024, tf_isp = -918835244, tf_ebx = 671511548, tf_edx = -1078003928, tf_ecx = -7, tf_eax = 133, tf_trapno = 7, tf_err = 2, tf_eip = 671741624, tf_cs = 31, tf_eflags = 647, tf_esp = -1078004116, tf_ss = 47}) at ../../i386/i386/trap.c:1126 1126 error = (*callp->sy_call)(p, args); (kgdb) quit BTW- Since this is my first time doing this, I might have missed somebody. If you need me to go deep into any section (maybe print out more variables), please let me know. Thanks for your help, - Ben Schumacher To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message