From owner-freebsd-current@FreeBSD.ORG Thu Nov 11 08:33:00 2004 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 A732016A4CE for ; Thu, 11 Nov 2004 08:33:00 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FC5543D1F for ; Thu, 11 Nov 2004 08:32:59 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.43 (FreeBSD)) id 1CSANs-0000mB-2Z; Thu, 11 Nov 2004 11:32:48 +0300 From: Vladimir Grebenschikov To: Mike Hunter In-Reply-To: <20041110215950.GA3609@ack.Berkeley.EDU> References: <20041109222142.72D2B630C@bart.motd.dk> <20041110215950.GA3609@ack.Berkeley.EDU> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Thu, 11 Nov 2004 11:32:47 +0300 Message-Id: <1100161967.1115.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: freebsd-current@freebsd.org cc: Tom Jensen Subject: Re: Ndis panic with 5.3-stable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 08:33:00 -0000 =F7 =D3=D2, 10/11/2004 =D7 13:59 -0800, Mike Hunter =D0=C9=DB=C5=D4: > On Nov 09, "Tom Jensen" wrote: >=20 > This looks exactly like the panic I'm getting from loading if_ndis. > You're using 5.3-RELEASE, right? I have panic on if_ndis loading too. But on fresh 6-CURRENT. > > Hi, > > =20 > > Got the following panic (se attached file for more details) when doing = a > > kldload if_ndis. > >=20 > > Fatal trap 12: page fault while in kernel mode > > fault virtual address =3D 0x2c > > fault code =3D supervisor read, page not present > > instruction pointer =3D 0x8:0xc06302b2 > > stack pointer =3D 0x10:0xced5c9e4 > > frame pointer =3D 0x10:0xced5c9e4 > > 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 1218 (kldload) > > [thread 100137] > > Stopped at rman_get_flags+0x6: movl 0x1c(%eax),%eax > > (kgdb) l *0xc06302b2 > > 0xc06302b2 is in rman_get_flags (/usr/src/sys/kern/subr_rman.c:647). > >=20 > > Regards > >=20 > > - Tom >=20 > > ndis0: mem 0xf4000000-0x= f400ffff irq 9 at device 16.0 on pci0 > >=20 > >=20 > > Fatal trap 12: page fault while in kernel mode > > fault virtual address =3D 0x2c > > fault code =3D supervisor read, page not present > > instruction pointer =3D 0x8:0xc06302b2 > > stack pointer =3D 0x10:0xced5c9e4 > > frame pointer =3D 0x10:0xced5c9e4 > > 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 1218 (kldload) > > [thread 100137] > > Stopped at rman_get_flags+0x6: movl 0x1c(%eax),%eax > > db> where > > rman_get_flags(10) at rman_get_flags+0x6 > > nexus_setup_intr(c13c1a80,c14bb580,10,4,c1d3fa2c,c1832000,c1832c7c) at = nexus_setup_intr+0x2c > > bus_generic_setup_intr(c13c1900,c14bb580,10,4,c1d3fa2c,c1832000,c1832c7= c) at bus_generic_setup_intr+0x76 > > bus_generic_setup_intr(c13c1400,c14bb580,10,4,c1d3fa2c,c1832000,c1832c7= c) at bus_generic_setup_intr+0x76 > > bus_generic_setup_intr(c13f9a80,c14bb580,10,4,c1d3fa2c,c1832000,c1832c7= c) at bus_generic_setup_intr+0x76 > > bus_setup_intr(c14bb580,10,204,c1d3fa2c,c1832000) at bus_setup_intr+0x9= 9 > > ndis_attach(c14bb580,c14bb580,ced5cb88,c14bb580,c14bb580) at ndis_attac= h+0x6f > > ndis_attach_pci(c14bb580) at ndis_attach_pci+0x469 > > device_attach(c14bb580,c14bb580,c14bb580,8,c14bb600) at device_attach+0= x58 > > device_probe_and_attach(c14bb580,c14bb580,c14bb600) at device_probe_and= _attach+0xb4 > > pci_driver_added(c13f9a80,c1d9a9c0) at pci_driver_added+0xd1 > > devclass_add_driver(c13cb040,c1d9a9c0,c1963940,c1d9a9ec,c1962680) at de= vclass_add_driver+0xb7 > > driver_module_handler(c1963940,0,c1d9a9d8,c08e96c0,0) at driver_module_= handler+0x4a > > module_register_init(c1d9a9ec) at module_register_init+0x4b > > linker_file_sysinit(c1bd6500,c1bd6500,c1bd6500,1,c1bd6500) at linker_fi= le_sysinit+0x7d > > linker_load_file(c1962680,ced5ccb0,400,0,c14ee400) at linker_load_file+= 0xd9 > > linker_load_module(0,c14ee400,0,0,ced5ccdc) at linker_load_module+0xa3 > > kldload(c1be9af0,ced5cd14,1,0,292) at kldload+0xe7 > > syscall(2f,2f,2f,0,bfbfecec) at syscall+0x27b > > Xint0x80_syscall() at Xint0x80_syscall+0x1f > > --- syscall (304, FreeBSD ELF32, kldload), eip =3D 0x280c0257, esp =3D = 0xbfbfec5c, ebp =3D 0xbfbfeca0 --- > > db> ps > > pid proc uarea uid ppid pgrp flag stat wmesg wchan = cmd > > 1218 c1beb1c4 ced87000 0 1166 1218 0004002 [CPU 0] kldload > > 1217 c1be88d4 ced82000 0 0 0 0000204 [SLPQ ndissp 0xc1be89d= 4][SLP] ndis swi > > 1216 c1be8e20 ced85000 0 0 0 0000204 [SLPQ ndissp 0xc1be8f2= 0][SLP] ndis taskqueue > > 1166 c1be8000 ceba2000 0 1164 1166 0004002 [RUNQ] bash > > 1164 c172d000 ceb9e000 0 1163 1164 0004002 [SLPQ pause 0xc172d038= ][SLP][SWAP] csh > > 1163 c1b33a98 ced19000 1001 1162 1163 0004102 [SLPQ wait 0xc1b33a98]= [SLP][SWAP] su > > 1162 c1b36c5c ced23000 1001 1161 1162 0004002 [SLPQ wait 0xc1b36c5c]= [SLP][SWAP] bash > > 1161 c1beb000 ced86000 1001 1159 1159 0000100 [SLPQ select 0xc08ee7e= 4][SLP] sshd > > 1159 c1b361c4 ced1d000 0 567 1159 0000100 [SLPQ sbwait 0xc1bf0d4= 0][SLP][SWAP] sshd > > 859 c1beb54c ced89000 1001 854 695 0004000 [SLPQ select 0xc08ee7e= 4][SLP] imapd > > 854 c17d5710 cec45000 0 695 695 0004001 [SLPQ select 0xc08ee7e= 4][SLP] couriertls > > 849 c17d554c cec44000 1008 847 847 0004100 [SLPQ select 0xc08ee7e= 4][SLP] qmgr > > 848 c1b33e20 ced1b000 1008 847 847 0004100 [SLPQ select 0xc08ee7e= 4][SLP] pickup > > 847 c1b33c5c ced1a000 0 1 847 0004100 [SLPQ select 0xc08ee7e= 4][SLP] master > > 806 c1b36000 ced1c000 0 1 806 0004002 [SLPQ ttyin 0xc1510e10= ][SLP] getty > > 805 c14b0e20 ca48b000 0 1 805 0004002 [SLPQ ttyin 0xc1510a10= ][SLP][SWAP] getty > > 804 c17d5a98 cec47000 0 1 804 0004002 [SLPQ ttyin 0xc1494210= ][SLP][SWAP] getty > > 803 c1985e20 cecc4000 0 1 803 0004002 [SLPQ ttyin 0xc1494410= ][SLP][SWAP] getty > > 802 c1b33000 cec17000 0 1 802 0004002 [SLPQ ttyin 0xc1494610= ][SLP][SWAP] getty > > --More-- > > (kgdb) l *0xc06302b2 > > 0xc06302b2 is in rman_get_flags (/usr/src/sys/kern/subr_rman.c:647). > > 642 } > > 643 > > 644 u_int > > 645 rman_get_flags(struct resource *r) > > 646 { > > 647 return (r->r_flags); > > 648 } > > 649 > > 650 void > > 651 rman_set_virtual(struct resource *r, void *v) > > (kgdb) backtrace > > #0 doadump () at pcpu.h:159 > > #1 0xc0614aa6 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown= .c:397 > > #2 0xc0614d91 in panic (fmt=3D0xc07fa470 "from debugger") at /usr/src/= sys/kern/kern_shutdown.c:553 > > #3 0xc0464c79 in db_panic (addr=3D1048887, have_addr=3D0, count=3D-1, = modif=3D0xced5c814 "") at /usr/src/sys/ddb/db_command.c:435 > > #4 0xc0464c10 in db_command (last_cmdp=3D0xc08ccbc4, cmd_table=3D0x0, = aux_cmd_tablep=3D0xc084d954, aux_cmd_tablep_end=3D0xc084d970) > > at /usr/src/sys/ddb/db_command.c:349 > > #5 0xc0464cd8 in db_command_loop () at /usr/src/sys/ddb/db_command.c:4= 55 > > #6 0xc046684d in db_trap (type=3D12, code=3D0) at /usr/src/sys/ddb/db_= main.c:221 > > #7 0xc062c116 in kdb_trap (type=3D12, code=3D0, tf=3D0xced5c9a4) at /u= sr/src/sys/kern/subr_kdb.c:418 > > #8 0xc07c19a5 in trap_fatal (frame=3D0xced5c9a4, eva=3D44) at /usr/src= /sys/i386/i386/trap.c:804 > > #9 0xc07c172b in trap_pfault (frame=3D0xced5c9a4, usermode=3D0, eva=3D= 44) at /usr/src/sys/i386/i386/trap.c:727 > > #10 0xc07c1329 in trap (frame=3D > > {tf_fs =3D 24, tf_es =3D 16, tf_ds =3D 117899280, tf_edi =3D -104= 8368004, tf_esi =3D 16, tf_ebp =3D -824849948, tf_isp =3D -824849968, tf_eb= x =3D 4, tf_edx =3D -1052358592, tf_ecx =3D 0, tf_eax =3D 16, tf_trapno =3D= 12, tf_err =3D 0, tf_eip =3D -1067253070, tf_cs =3D 8, tf_eflags =3D 66050= , tf_esp =3D -824849924, tf_ss =3D -1065633504}) at /usr/src/sys/i386/i386/= trap.c:417 > > #11 0xc07b10aa in calltrap () at /usr/src/sys/i386/i386/exception.s:140 > > #12 0x00000018 in ?? () > > #13 0x00000010 in ?? () > > #14 0x07070010 in ?? () > > #15 0xc1832c7c in ?? () > > #16 0x00000010 in ?? () > > #17 0xced5c9e4 in ?? () > > #18 0xced5c9d0 in ?? () > > #19 0x00000004 in ?? () > > #20 0xc1464840 in ?? () > > #21 0x00000000 in ?? () > > #22 0x00000010 in ?? () > > #23 0x0000000c in ?? () > > #24 0x00000000 in ?? () > > #25 0xc06302b2 in rman_get_flags (r=3D0x0) at /usr/src/sys/kern/subr_rm= an.c:647 > > #26 0xc07bb920 in nexus_setup_intr (bus=3D0xc13c1a80, child=3D0xc14bb58= 0, irq=3D0x10, flags=3D4, ihand=3D0xc1d3fa2c, arg=3D0xc1832000,=20 > > cookiep=3D0xc1832c7c) at /usr/src/sys/i386/i386/nexus.c:489 > > #27 0xc06291b6 in bus_generic_setup_intr (dev=3D0x0, child=3D0xc14bb580= , irq=3D0x10, flags=3D4, intr=3D0xc1d3fa2c, arg=3D0xc1832000,=20 > > cookiep=3D0xc1832c7c) at bus_if.h:386 > > #28 0xc06291b6 in bus_generic_setup_intr (dev=3D0x0, child=3D0xc14bb580= , irq=3D0x10, flags=3D4, intr=3D0xc1d3fa2c, arg=3D0xc1832000,=20 > > cookiep=3D0xc1832c7c) at bus_if.h:386 > > #29 0xc06291b6 in bus_generic_setup_intr (dev=3D0x0, child=3D0xc14bb580= , irq=3D0x10, flags=3D4, intr=3D0xc1d3fa2c, arg=3D0xc1832000,=20 > > cookiep=3D0xc1832c7c) at bus_if.h:386 > > #30 0xc062994d in bus_setup_intr (dev=3D0xc14bb580, r=3D0x10, flags=3D4= , handler=3D0xc1d3fa2c, arg=3D0xc1832000, cookiep=3D0xc1832c7c) > > at bus_if.h:386 > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " --=20 Vladimir B. Grebenchikov vova@fbsd.ru