Re: Ndis panic with 5.3-stable

From: Vladimir Grebenschikov <vova_at_fbsd.ru>
Date: Thu, 11 Nov 2004 11:32:47 +0300
В ср, 10/11/2004 в 13:59 -0800, Mike Hunter пишет:
> On Nov 09, "Tom Jensen" wrote:
> 
> 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,
> >  
> > Got the following panic (se attached file for more details) when doing a
> > kldload if_ndis.
> > 
> > Fatal trap 12: page fault while in kernel mode
> > fault virtual address   = 0x2c
> > fault code              = supervisor read, page not present
> > instruction pointer     = 0x8:0xc06302b2
> > stack pointer           = 0x10:0xced5c9e4
> > frame pointer           = 0x10:0xced5c9e4
> > code segment            = base 0x0, limit 0xfffff, type 0x1b
> >                         = DPL 0, pres 1, def32 1, gran 1
> > processor eflags        = interrupt enabled, resume, IOPL = 0
> > current process         = 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).
> > 
> > Regards
> > 
> > - Tom
> 
> > ndis0: <NETGEAR 108 Mbps Wireless PCI Adapter WG311T> mem 0xf4000000-0xf400ffff irq 9 at device 16.0 on pci0
> > 
> > 
> > Fatal trap 12: page fault while in kernel mode
> > fault virtual address   = 0x2c
> > fault code              = supervisor read, page not present
> > instruction pointer     = 0x8:0xc06302b2
> > stack pointer           = 0x10:0xced5c9e4
> > frame pointer           = 0x10:0xced5c9e4
> > code segment            = base 0x0, limit 0xfffff, type 0x1b
> >                         = DPL 0, pres 1, def32 1, gran 1
> > processor eflags        = interrupt enabled, resume, IOPL = 0
> > current process         = 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,c1832c7c) at bus_generic_setup_intr+0x76
> > bus_generic_setup_intr(c13c1400,c14bb580,10,4,c1d3fa2c,c1832000,c1832c7c) at bus_generic_setup_intr+0x76
> > bus_generic_setup_intr(c13f9a80,c14bb580,10,4,c1d3fa2c,c1832000,c1832c7c) at bus_generic_setup_intr+0x76
> > bus_setup_intr(c14bb580,10,204,c1d3fa2c,c1832000) at bus_setup_intr+0x99
> > ndis_attach(c14bb580,c14bb580,ced5cb88,c14bb580,c14bb580) at ndis_attach+0x6f
> > ndis_attach_pci(c14bb580) at ndis_attach_pci+0x469
> > device_attach(c14bb580,c14bb580,c14bb580,8,c14bb600) at device_attach+0x58
> > 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 devclass_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_file_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 = 0x280c0257, esp = 0xbfbfec5c, ebp = 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 0xc1be89d4][SLP] ndis swi
> >  1216 c1be8e20 ced85000    0     0     0 0000204 [SLPQ ndissp 0xc1be8f20][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 0xc08ee7e4][SLP] sshd
> >  1159 c1b361c4 ced1d000    0   567  1159 0000100 [SLPQ sbwait 0xc1bf0d40][SLP][SWAP] sshd
> >   859 c1beb54c ced89000 1001   854   695 0004000 [SLPQ select 0xc08ee7e4][SLP] imapd
> >   854 c17d5710 cec45000    0   695   695 0004001 [SLPQ select 0xc08ee7e4][SLP] couriertls
> >   849 c17d554c cec44000 1008   847   847 0004100 [SLPQ select 0xc08ee7e4][SLP] qmgr
> >   848 c1b33e20 ced1b000 1008   847   847 0004100 [SLPQ select 0xc08ee7e4][SLP] pickup
> >   847 c1b33c5c ced1a000    0     1   847 0004100 [SLPQ select 0xc08ee7e4][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=260) at /usr/src/sys/kern/kern_shutdown.c:397
> > #2  0xc0614d91 in panic (fmt=0xc07fa470 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:553
> > #3  0xc0464c79 in db_panic (addr=1048887, have_addr=0, count=-1, modif=0xced5c814 "") at /usr/src/sys/ddb/db_command.c:435
> > #4  0xc0464c10 in db_command (last_cmdp=0xc08ccbc4, cmd_table=0x0, aux_cmd_tablep=0xc084d954, aux_cmd_tablep_end=0xc084d970)
> >     at /usr/src/sys/ddb/db_command.c:349
> > #5  0xc0464cd8 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455
> > #6  0xc046684d in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:221
> > #7  0xc062c116 in kdb_trap (type=12, code=0, tf=0xced5c9a4) at /usr/src/sys/kern/subr_kdb.c:418
> > #8  0xc07c19a5 in trap_fatal (frame=0xced5c9a4, eva=44) at /usr/src/sys/i386/i386/trap.c:804
> > #9  0xc07c172b in trap_pfault (frame=0xced5c9a4, usermode=0, eva=44) at /usr/src/sys/i386/i386/trap.c:727
> > #10 0xc07c1329 in trap (frame=
> >       {tf_fs = 24, tf_es = 16, tf_ds = 117899280, tf_edi = -1048368004, tf_esi = 16, tf_ebp = -824849948, tf_isp = -824849968, tf_ebx = 4, tf_edx = -1052358592, tf_ecx = 0, tf_eax = 16, tf_trapno = 12, tf_err = 0, tf_eip = -1067253070, tf_cs = 8, tf_eflags = 66050, tf_esp = -824849924, tf_ss = -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=0x0) at /usr/src/sys/kern/subr_rman.c:647
> > #26 0xc07bb920 in nexus_setup_intr (bus=0xc13c1a80, child=0xc14bb580, irq=0x10, flags=4, ihand=0xc1d3fa2c, arg=0xc1832000, 
> >     cookiep=0xc1832c7c) at /usr/src/sys/i386/i386/nexus.c:489
> > #27 0xc06291b6 in bus_generic_setup_intr (dev=0x0, child=0xc14bb580, irq=0x10, flags=4, intr=0xc1d3fa2c, arg=0xc1832000, 
> >     cookiep=0xc1832c7c) at bus_if.h:386
> > #28 0xc06291b6 in bus_generic_setup_intr (dev=0x0, child=0xc14bb580, irq=0x10, flags=4, intr=0xc1d3fa2c, arg=0xc1832000, 
> >     cookiep=0xc1832c7c) at bus_if.h:386
> > #29 0xc06291b6 in bus_generic_setup_intr (dev=0x0, child=0xc14bb580, irq=0x10, flags=4, intr=0xc1d3fa2c, arg=0xc1832000, 
> >     cookiep=0xc1832c7c) at bus_if.h:386
> > #30 0xc062994d in bus_setup_intr (dev=0xc14bb580, r=0x10, flags=4, handler=0xc1d3fa2c, arg=0xc1832000, cookiep=0xc1832c7c)
> >     at bus_if.h:386
> > _______________________________________________
> > freebsd-current_at_freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
-- 
Vladimir B. Grebenchikov
vova_at_fbsd.ru
Received on Thu Nov 11 2004 - 07:33:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC