Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2007 22:09:18 -0400 (EDT)
From:      "Mikhail T." <mi@aldan.algebra.com>
To:        stable@FreeBSD.org, sos@FreeBSD.org
Subject:   plugging in a new SATA drive causes panic
Message-ID:  <200707030209.l6329I0u001108@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help
I'm not 100% certain, this is a "legal" thing to do. But I think
it is.

I hooked up a brand new hard-drive (Seagate) to the free SATA port,
and then connected the power cable. Before that I had just one SATA
drive (ad8).

The kernel crashed in ata_identify(). I'll keep the core around for
some time -- let me know, if you need more investigation...

The kernel is 6.2-STABLE #1: Thu Jun  7 22:11:33 EDT 2007 ... amd64

	-mi

Unread portion of the kernel message buffer:
ad10: 715404MB <Seagate ST3750640AS 3.AAE> at ata5-master SATA150
ad8: 476940MB <HDS725050KLA360 K2AOA11A> at ata4-master SATA150


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x50
fault code		= supervisor read data, page not present
instruction pointer	= 0x8:0xffffffff802cb59d
stack pointer	        = 0x10:0xffffffffb1b0db00
frame pointer	        = 0x10:0xffffff004ed45100
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 8 (thread taskq)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 17d10h1m11s
Dumping 2047 MB (2 chunks)
  chunk 0: 1MB (156 pages) ... ok
  chunk 1: 2047MB (524016 pages) 2031 2015 1999 1983 1967 1951 1935 1919 1903 1887 1871 1855 1839 1823 1807 1791 1775 1759 1743 1727 1711 1695 1679 1663 1647 1631 1615 1599 1583 1567 1551 1535 1519 1503 1487 1471 1455 1439 1423 1407 1391 1375 1359 1343 1327 1311 1295 1279 1263 1247 1231 1215 1199 1183 1167 1151 1135 1119 1103 1087 1071 1055 1039 1023 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...
(kgdb) #0  doadump () at pcpu.h:172
#1  0x0000000000000004 in ?? ()
#2  0xffffffff802b12b7 in boot (howto=260)
    at /var/src/sys/kern/kern_shutdown.c:409
#3  0xffffffff802b1951 in panic (fmt=0xffffff007b9e8720 "")
    at /var/src/sys/kern/kern_shutdown.c:565
#4  0xffffffff80410faf in trap_fatal (frame=0xffffff007b9e8720, 
    eva=18446742976271941632) at /var/src/sys/amd64/amd64/trap.c:668
#5  0xffffffff8041132c in trap_pfault (frame=0xffffffffb1b0da50, usermode=0)
    at /var/src/sys/amd64/amd64/trap.c:580
#6  0xffffffff804115e3 in trap (frame=
      {tf_rdi = -1098189090560, tf_rsi = 4, tf_rdx = 0, tf_rcx = 1, tf_r8 = -2141067120, tf_r9 = -1097437640928, tf_rax = 2, tf_rbx = -1098189090560, tf_rbp = -1098189090560, tf_r10 = 72, tf_r11 = 1, tf_r12 = 0, tf_r13 = 0, tf_r14 = 4294967295, tf_r15 = 10, tf_trapno = 12, tf_addr = 80, tf_flags = 0, tf_err = 0, tf_rip = -2144553571, tf_cs = 8, tf_rflags = 66118, tf_rsp = -1313809648, tf_ss = 0}) at /var/src/sys/amd64/amd64/trap.c:353
#7  0xffffffff803f825b in calltrap ()
    at /var/src/sys/amd64/amd64/exception.S:168
#8  0xffffffff802cb59d in device_attach (dev=0xffffff004ed45100)
    at /var/src/sys/kern/subr_bus.c:278
#9  0xffffffff802cc76f in bus_generic_attach (dev=0xffffff004ed45100)
    at /var/src/sys/kern/subr_bus.c:2883
#10 0xffffffff801b48cd in ata_identify (dev=0xffffff007b98eb00)
    at /var/src/sys/dev/ata/ata-all.c:718
#11 0xffffffff801b5891 in ata_sata_phy_event (context=0xffffff004ed45100, 
    dummy=4) at /var/src/sys/dev/ata/ata-chipset.c:273
#12 0xffffffff802d8b35 in taskqueue_run (queue=0xffffff0000902d00)
    at /var/src/sys/kern/subr_taskqueue.c:257
#13 0xffffffff802d9885 in taskqueue_thread_loop (arg=0xffffff004ed45100)
    at /var/src/sys/kern/subr_taskqueue.c:376
#14 0xffffffff80296347 in fork_exit (
    callout=0xffffffff802d9800 <taskqueue_thread_loop>, 
    arg=0xffffffff8062a0f0, frame=0xffffffffb1b0dc50)
    at /var/src/sys/kern/kern_fork.c:821
#15 0xffffffff803f85be in fork_trampoline ()
    at /var/src/sys/amd64/amd64/exception.S:394
#16 0x0000000000000000 in ?? ()
#17 0x0000000000000000 in ?? ()
[...]
#127 0x0000000000000000 in ?? ()
#128 0x0000000000000000 in ?? ()
(kgdb) #10 0xffffffff801b48cd in ata_identify (dev=0xffffff007b98eb00)
    at /var/src/sys/dev/ata/ata-all.c:718
718	    bus_generic_attach(dev);
(kgdb) $1 = {ops = 0xffffff0000907000, link = {tqe_next = 0x0, 
    tqe_prev = 0xffffff007b98ec08}, devlink = {tqe_next = 0xffffff007b8fde00, 
    tqe_prev = 0xffffff007b98ec18}, parent = 0xffffff007b8fd800, children = {
    tqh_first = 0xffffff0000e4db00, tqh_last = 0xffffff007b7e0308}, 
  driver = 0xffffffff805c3e80, devclass = 0xffffff000095db80, unit = 5, 
  nameunit = 0xffffff007b93c480 "ata5", 
  desc = 0xffffff007b93c230 "ATA channel 3", busy = 0, state = DS_ATTACHED, 
  devflags = 0, flags = 11, order = 0 '\0', pad = 0 '\0', ivars = 0x0, 
  softc = 0xffffff007b71a800, sysctl_ctx = {tqh_first = 0xffffff007b91bc60, 
    tqh_last = 0xffffff0000ac00c8}, sysctl_tree = 0xffffff0000abfb00}
(kgdb) 



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