Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 15:32:17 -0400
From:      abe <abe@informationwave.net>
To:        questions@freebsd.org
Subject:   follow-up on fatal trap 12 issue
Message-ID:  <20021007193217.GA50936@dipole.informationwave.net>

next in thread | raw e-mail | index | archive | help

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


I was only able to reproduce this error once where it produced a core.
Here is the log of the gdb session, and the trace from the debugger
immediately after the panic.

-Abe

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gdb.output"

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) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-file /var/crash/kernel.0
(kgdb) core-file /var/crash/vmcore.0
IdlePTD at phsyical address 0x004c1000
initial pcb at physical address 0x004030c0
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x94
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc125a766
stack pointer	        = 0x10:0xcc895c98
frame pointer	        = 0x10:0xcc895ca8
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		= 228 (ping)
interrupt mask		= 
panic: from debugger
panic: from debugger
Uptime: 1m50s

dumping to dev #ad/0x20001, offset 3670176
dump ata0: resetting devices .. done
255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 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:474
474		if (dumping++) {
(kgdb) backtrace
#0  dumpsys () at ../../kern/kern_shutdown.c:474
#1  0xc01c5dfb in boot (howto=260) at ../../kern/kern_shutdown.c:313
#2  0xc01c61f5 in panic (fmt=0xc0361da4 "from debugger")
    at ../../kern/kern_shutdown.c:582
#3  0xc01404cd in db_panic (addr=-1054496922, have_addr=0, count=-1, 
    modif=0xcc895b04 "") at ../../ddb/db_command.c:435
#4  0xc014046d in db_command (last_cmdp=0xc03be2c4, cmd_table=0xc03be104, 
    aux_cmd_tablep=0xc03fd998) at ../../ddb/db_command.c:333
#5  0xc0140532 in db_command_loop () at ../../ddb/db_command.c:457
#6  0xc014264f in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71
#7  0xc033077a in kdb_trap (type=12, code=0, regs=0xcc895c58)
    at ../../i386/i386/db_interface.c:158
#8  0xc0340928 in trap_fatal (frame=0xcc895c58, eva=148)
    at ../../i386/i386/trap.c:951
#9  0xc0340601 in trap_pfault (frame=0xcc895c58, usermode=0, eva=148)
    at ../../i386/i386/trap.c:849
#10 0xc034017b in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, 
      tf_edi = -1054466816, tf_esi = -1054482984, tf_ebp = -863413080, 
      tf_isp = -863413116, tf_ebx = 37, tf_edx = 0, tf_ecx = -1053739008, 
      tf_eax = 1033830400, tf_trapno = 12, tf_err = 0, tf_eip = -1054496922, 
      tf_cs = 8, tf_eflags = 66054, tf_esp = -1054466816, tf_ss = -1054466816})
    at ../../i386/i386/trap.c:448
#11 0xc125a766 in ?? ()
#12 0xc125a98d in ?? ()
#13 0xc125b2c4 in ?? ()
#14 0xc021dacc in ip_output (m0=0xc0e63800, opt=0x0, ro=0xcbafdd7c, flags=0, 
    imo=0x0) at ../../netinet/ip_output.c:579
#15 0xc02286b0 in udp_output (inp=0xcbafdd40, m=0xc0e63800, addr=0x0, 
    control=0x0, p=0xcb69ea40) at ../../netinet/udp_usrreq.c:747
#16 0xc0228914 in udp_send (so=0xcbacb980, flags=0, m=0xc0e63800, addr=0x0, 
    control=0x0, p=0xcb69ea40) at ../../netinet/udp_usrreq.c:907
#17 0xc01e43b3 in sosend (so=0xcbacb980, addr=0x0, uio=0xcc895ecc, 
    top=0xc0e63800, control=0x0, flags=0, p=0xcb69ea40)
    at ../../kern/uipc_socket.c:611
#18 0xc01e7c73 in sendit (p=0xcb69ea40, s=5, mp=0xcc895f0c, flags=0)
    at ../../kern/uipc_syscalls.c:583
#19 0xc01e7d76 in sendto (p=0xcb69ea40, uap=0xcc895f80)
    at ../../kern/uipc_syscalls.c:636
#20 0xc0340c09 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = 0, tf_esi = -1077939200, tf_ebp = -1077942192, 
      tf_isp = -863412268, tf_ebx = 27, tf_edx = 0, tf_ecx = 16, tf_eax = 133, 
      tf_trapno = 12, tf_err = 2, tf_eip = 134530288, tf_cs = 31, 
      tf_eflags = 659, tf_esp = -1077942236, tf_ss = 47})
    at ../../i386/i386/trap.c:1157
#21 0xc0331535 in Xint0x80_syscall ()
#22 0x8065539 in ?? ()
#23 0x806846d in ?? ()
#24 0x806889b in ?? ()
#25 0x806861f in ?? ()
#26 0x80525b8 in ?? ()
#27 0x8051325 in ?? ()
#28 0x804890f in ?? ()
#29 0x8048135 in ?? ()
(kgdb) quit

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="trace.txt"

add_dyn_rule(c0424894,0,c1258e00) at add_dyn_rule+0x172
install_state(c1258e00) at install_state+0x179
ip_fw_chk(cc88cda4,14,c1153000,cc88cdaa,cc88cdac) at ip_fw_chk+0x8d8
ip_output(c0e63800,0,cbafad7c,0,0) at ip_output+0x530
udp_output(cbafad40,c0e63800,0,0,cb69ba40) at udp_output+0x238
udp_send(cbac8980,0,c0e63800,0,0) at udp_send+0x20
sosend(cbac8980,0,cc88cecc,c0e63800,0) at sosend+0x5df
sendit(cb69ba40,5,cc88cf0c,0,bfbfeb2b) at sendit+0x253
sendto(cb69ba40,cc88cf80,1b,bfbff400,0) at sendto+0x4e
syscall2(2f,2f,2f,0,bfbff400) at syscall2+0x1f5
Xint0x80_syscall() at Xint0x80_syscall+0x25

--ibTvN161/egqYuK8--

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




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