Skip site navigation (1)Skip section navigation (2)
Date:      16 Feb 2001 17:10:52 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Warner Losh <imp@harmony.village.org>
Cc:        mobile@FreeBSD.ORG, wpaul@FreeBSD.ORG
Subject:   Re: dc0 problems
Message-ID:  <xzpae7m622b.fsf@flood.ping.uio.no>
In-Reply-To: Dag-Erling Smorgrav's message of "16 Feb 2001 13:56:04 %2B0100"
References:  <xzplmrbprtv.fsf@flood.ping.uio.no> <200102131811.f1DIBsW40108@harmony.village.org> <xzpitmalrbv.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav <des@ofug.org> writes:
> On a kernel with this patch, 'ifconfig dc0' results in a general
> protection fault (not a trap 12 - some other trap, I didn't catch a
> dump but will try again) in witness_exit().

Hey, I take that back. My laptop has been crashing a lot lately, I got
my crashes confused...

Any recent -CURRENT kernel (with or without the patch) crashes when I
try to config up my network adapter. Here's the full info:

des@aes /var/crash% gdb -k
GNU gdb 4.18
Copyright 1998 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 conditions.
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-unknown-freebsd".
(kgdb) source ~/kgdb
(kgdb) kernel 0
IdlePTD 3100672
initial pcb at 273440
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc0155c29
stack pointer           = 0x10:0xc8722d00
frame pointer           = 0x10:0xc8722d0c
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         = 26 (ifconfig)
panic: from debugger
panic: from debugger
Uptime: 1m8s

dumping to dev #ad/1, offset 262528
dump ata0: resetting devices .. done
127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
---
#0  dumpsys () at ../../kern/kern_shutdown.c:476
476             if (dumping++) {
(kgdb) kldstat
Id Refs Address    Size     Name
 1    3 0xc0100000 1d42a8   kernel
 2    1 0xc0afa000 b000     if_dc.ko
 3    1 0xc0b07000 10000    miibus.ko
(kgdb) p/x 0xc0afa000 + 0x23f4
$1 = 0xc0afc3f4
(kgdb) add-symbol-file if_dc.ko 0xc0afc3f4
add symbol table from file "if_dc.ko" at text_addr = 0xc0afc3f4?
(y or n) y
Reading symbols from if_dc.ko...done.
(kgdb) where
#0  dumpsys () at ../../kern/kern_shutdown.c:476
#1  0xc015b6df in boot (howto=260) at ../../kern/kern_shutdown.c:319
#2  0xc015baa9 in panic (fmt=0xc021a614 "from debugger")
    at ../../kern/kern_shutdown.c:569
#3  0xc011b275 in db_panic (addr=-1072341975, have_addr=0, count=1,
    modif=0xc8722b70 "") at ../../ddb/db_command.c:433
#4  0xc011b215 in db_command (last_cmdp=0xc0247440, cmd_table=0xc02472a0,
    aux_cmd_tablep=0xc026171c) at ../../ddb/db_command.c:333
#5  0xc011b2da in db_command_loop () at ../../ddb/db_command.c:455
#6  0xc011d4a7 in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71
#7  0xc01f5db6 in kdb_trap (type=12, code=0, regs=0xc8722cc0)
    at ../../i386/i386/db_interface.c:164
#8  0xc02032dc in trap_fatal (frame=0xc8722cc0, eva=0)
    at ../../i386/i386/trap.c:990
#9  0xc0203051 in trap_pfault (frame=0xc8722cc0, usermode=0, eva=0)
    at ../../i386/i386/trap.c:909
#10 0xc02026a4 in trap (frame={tf_fs = 24, tf_es = 16, tf_ds = -932052976,
      tf_edi = -1071173576, tf_esi = 0, tf_ebp = -932041460,
      tf_isp = -932041492, tf_ebx = -1071078684, tf_edx = 0,
      tf_ecx = -1066227328, tf_eax = -1071072672, tf_trapno = 12, tf_err = 2,
      tf_eip = -1072341975, tf_cs = 8, tf_eflags = 66182,
      tf_esp = -1071078684, tf_ss = 1}) at ../../i386/i386/trap.c:456
#11 0xc0155c29 in witness_exit (m=0xc028a2e4, flags=0,
---Type <return> to continue, or q <return> to quit---
    file=0xc0228e51 "../../kern/uipc_mbuf.c", line=377)
    at ../../kern/kern_mutex.c:1305
#12 0xc017b99c in m_clalloc (ncl=1, how=1) at ../../kern/uipc_mbuf.c:377
#13 0xc0b006a3 in dc_newbuf ()
#14 0xc0b0041d in dc_list_rx_init ()
#15 0xc0b022ad in dc_init ()
#16 0xc01a41de in ether_ioctl (ifp=0xc0b2a000, command=-2145359604,
    data=0xc0af7100 "\230q¯À¨q¯À¸q¯À") at ../../net/if_ethersubr.c:721
#17 0xc0b02706 in dc_ioctl ()
#18 0xc01aae51 in in_ifinit (ifp=0xc0b2a000, ia=0xc0af7100, sin=0xc8722ed8,
    scrub=0) at ../../netinet/in.c:657
#19 0xc01aa991 in in_control (so=0xc7c44f00, cmd=2151704858,
    data=0xc8722ec8 "dc0", ifp=0xc0b2a000, p=0xc7817980)
    at ../../netinet/in.c:409
#20 0xc01a3083 in ifioctl (so=0xc7c44f00, cmd=2151704858,
    data=0xc8722ec8 "dc0", p=0xc7817980) at ../../net/if.c:974
#21 0xc017537a in soo_ioctl (fp=0xc0b05440, cmd=2151704858,
    data=0xc8722ec8 "dc0", p=0xc7817980) at ../../kern/sys_socket.c:141
#22 0xc01717c2 in ioctl (p=0xc7817980, uap=0xc8722f80) at ../../sys/file.h:172
#23 0xc0203b89 in syscall (frame={tf_fs = -1078001617, tf_es = 47,
      tf_ds = -1078001617, tf_edi = 0, tf_esi = -1077936780,
      tf_ebp = -1077937016, tf_isp = -932040748, tf_ebx = 134676724,
      tf_edx = 3, tf_ecx = 134764816, tf_eax = 54, tf_trapno = 7, tf_err = 2,
---Type <return> to continue, or q <return> to quit---
      tf_eip = 134529488, tf_cs = 31, tf_eflags = 647, tf_esp = -1077937156,
      tf_ss = 47}) at ../../i386/i386/trap.c:1192
#24 0xc01f6723 in Xint0x80_syscall ()
#25 0x804870d in ?? ()
#26 0x8048135 in ?? ()
(kgdb)

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpae7m622b.fsf>