From owner-freebsd-current@FreeBSD.ORG Mon Nov 3 08:47:10 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 358FA16A4D0 for ; Mon, 3 Nov 2003 08:47:10 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82C5D43FE9 for ; Mon, 3 Nov 2003 08:47:08 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: from ussenterprise.ufp.org (bicknell@localhost [127.0.0.1]) by ussenterprise.ufp.org (8.12.9/8.12.9) with ESMTP id hA3Gl88i020958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 3 Nov 2003 11:47:08 -0500 (EST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.12.9/8.12.9/Submit) id hA3Gl8I0020957 for freebsd-current@freebsd.org; Mon, 3 Nov 2003 11:47:08 -0500 (EST) Date: Mon, 3 Nov 2003 11:47:07 -0500 From: Leo Bicknell To: freebsd-current@freebsd.org Message-ID: <20031103164707.GA20431@ussenterprise.ufp.org> Mail-Followup-To: freebsd-current@freebsd.org References: <20031103160831.GA18563@ussenterprise.ufp.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <20031103160831.GA18563@ussenterprise.ufp.org> Organization: United Federation of Planets X-PGP-Key: http://www.ufp.org/~bicknell/ Subject: Re: current + netatalk == crash X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 16:47:10 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable A kind soul told reminded me how to make it dump core and get a back trace. To wit, I made it crash again and did just that. Perhaps this will help: (crashed with trap 12, did a 't', then 'panic' in ddb, immediate= ly got trap 3, did a 't', then 'panic', dumped core. Here's the dump from the reboot) # gdb -k /usr/obj/usr/src/sys/FIREWALL/kernel.debug vmcore.0 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-undermydesk-freebsd"... panic: from debugger panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x20 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc0534ac3 stack pointer =3D 0x10:0xddc9baf0 frame pointer =3D 0x10:0xddc9bb14 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 609 (atalkd) panic: from debugger Fatal trap 3: breakpoint instruction fault while in kernel mode instruction pointer =3D 0x8:0xc06d3684 stack pointer =3D 0x10:0xddc9b8a4 frame pointer =3D 0x10:0xddc9b8b0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D IOPL =3D 0 current process =3D 609 (atalkd) panic: from debugger Uptime: 24m34s Dumping 510 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 = 336 352 368 384 400 416 432 448 464 480 496 --- Reading symbols from /usr/obj/usr/src/sys/FIREWALL/modules/usr/src/sys/modu= les/acpi/acpi.ko.debug...done. Loaded symbols for /usr/obj/usr/src/sys/FIREWALL/modules/usr/src/sys/module= s/acpi/acpi.ko.debug #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 dumping++; (kgdb) bt #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0xc053f269 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:3= 72 #2 0xc053f648 in panic () at /usr/src/sys/kern/kern_shutdown.c:550 #3 0xc04539e2 in db_panic () at /usr/src/sys/ddb/db_command.c:450 #4 0xc0453942 in db_command (last_cmdp=3D0xc077dea0, cmd_table=3D0x0, aux_= cmd_tablep=3D0xc0747b70, aux_cmd_tablep_end=3D0xc0747b74) at /usr/src/sys/ddb/db_command.c:346 #5 0xc0453a85 in db_command_loop () at /usr/src/sys/ddb/db_command.c:472 #6 0xc0456aa5 in db_trap (type=3D12, code=3D0) at /usr/src/sys/ddb/db_trap= =2Ec:73 #7 0xc06d33cc in kdb_trap (type=3D12, code=3D0, regs=3D0xddc9bab0) at /usr= /src/sys/i386/i386/db_interface.c:171 #8 0xc06e5926 in trap_fatal (frame=3D0xddc9bab0, eva=3D0) at /usr/src/sys/= i386/i386/trap.c:818 #9 0xc06e4f33 in trap (frame=3D {tf_fs =3D -1066532840, tf_es =3D -1043791856, tf_ds =3D -1049755632,= tf_edi =3D -996660560, tf_esi =3D 0, tf_ebp =3D -573981932, tf_isp =3D -57= 3981988, tf_ebx =3D -996766064, tf_edx =3D -996660560, tf_ecx =3D -99544596= 8, tf_eax =3D 1, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1068283197, tf= _cs =3D 8, tf_eflags =3D 66050, tf_esp =3D 4, tf_ss =3D -573981888}) at /us= r/src/sys/i386/i386/trap.c:252 #10 0xc06d4db8 in calltrap () at {standard input}:102 #11 0xc05c08d2 in rtfree (rt=3D0xc4968e90) at /usr/src/sys/net/route.c:288 #12 0xc05d03f1 in at_pcbdetach (so=3D0xc4968e90, ddp=3D0x0) at /usr/src/sys= /netatalk/ddp_usrreq.c:462 #13 0xc05cfc01 in ddp_detach (so=3D0x0) at /usr/src/sys/netatalk/ddp_usrreq= =2Ec:73 #14 0xc057e4b2 in soclose (so=3D0x0) at /usr/src/sys/kern/uipc_socket.c:379 #15 0xc056e06b in soo_close (fp=3D0x0, td=3D0xc4982ab0) at /usr/src/sys/ker= n/sys_socket.c:244 #16 0xc051e289 in fdrop_locked (fp=3D0xc4901e14, td=3D0x0) at /usr/src/sys/= sys/file.h:292 #17 0xc051cd2f in fdrop (fp=3D0xc4901e14, td=3D0x0) at /usr/src/sys/kern/ke= rn_descrip.c:1828 #18 0xc051ccb2 in closef (fp=3D0xc4901e14, td=3D0xc4982ab0) at /usr/src/sys= /kern/kern_descrip.c:1814 #19 0xc051a7d2 in close (td=3D0xc4982ab0, uap=3D0x0) at /usr/src/sys/kern/k= ern_descrip.c:862 #20 0xc06e5ce0 in syscall (frame=3D {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 134582720, tf_e= si =3D 134586496, tf_ebp =3D -1077939128, tf_isp =3D -573981324, tf_ebx =3D= 8, tf_edx =3D 134582720, tf_ecx =3D 35, tf_eax =3D 6, tf_trapno =3D 12, tf= _err =3D 2, tf_eip =3D 673708511, tf_cs =3D 31, tf_eflags =3D 518, tf_esp = =3D -1077939284, tf_ss =3D 47}) at /usr/src/sys/i386/i386/trap.c:1012 #21 0xc06d4e0d in Xint0x80_syscall () at {standard input}:144 ---Can't read userspace from dump, or kernel process--- (kgdb) Looks like the problem is in "rtfree" when called from the appletalk code. --=20 Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/poaLNh6mMG5yMTYRApAqAKCDUp0U8qhzBNq3SGmkjHZALMt+ZQCdGNzw jgUy2znHI6tb2OJV8C68v18= =2QZs -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--