kern/58391: Trap 12 with heavy disk load on ide vinum mirror

Alexander Haderer alexander.haderer at charite.de
Thu Oct 23 10:30:23 PDT 2003


The following reply was made to PR kern/58391; it has been noted by GNATS.

From: Alexander Haderer <alexander.haderer at charite.de>
To: Greg 'groggy' Lehey <grog at FreeBSD.org>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: kern/58391: Trap 12 with heavy disk load on ide vinum
  mirror
Date: Thu, 23 Oct 2003 19:16:31 +0200

 At 11:43 23.10.2003 +0930, Greg 'groggy' Lehey wrote:
 >On Wednesday, 22 October 2003 at 21:26:36 +0200, Alexander Haderer wrote:
 >>
 >>> Description:
 >> Setup: A single CPU x86 running 4.8R with GENERIC kernel, a SCSI disk
 >> holds OS and two 160G Maxtor disks (ad0, ad2) setup as vinum mirror
 >> to hold data (whole disk). Ata write cache is off as well as hw.ata.tags.
 >>
 >> When doing high io load to the ide disks the kernel panics with trap 12:
 >>
 >> Fatal trap 12: page fault while in kernel mode
 >
 >Please take a dump of the system and supply a back trace.  Ensure that
 >you have debugging symbols in the kernel.  Don't delete the dump: I
 >will need more information.
 
 Sorry folks, when printing the last backtrace I just forgot to cp the .gdb* 
 stuff before doing the backtrace, so the vinum symbols were not printed.
 
 BTW: It now seems to be that I get trap 18 instead of 12, even when I repeat the
 crash. Is this the debug kernel?
 
 Here we go again:
 
 Kernel was build with config -g GENERIC; make install, and after the crash:
 
 gdb -k /usr/src/sys/compile/GENERIC/kernel.debug vmcore.11
 
 
 
 GNU gdb 4.18 (FreeBSD)
 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"...
 IdlePTD at phsyical address 0x00538000
 initial pcb at physical address 0x0046cec0
 panicstr: integer divide fault
 panic messages:
 ---
 Fatal trap 18: integer divide fault while in kernel mode
 instruction pointer     = 0x8:0xc039fe9a
 stack pointer           = 0x10:0xd1a37c5c
 frame pointer           = 0x10:0xd1a37cc8
 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         = 504 (vinum)
 interrupt mask          = none
 trap number             = 18
 panic: integer divide fault
 
 syncing disks... 76 72 67 64 62 62 56 56 52 51 51 46 46 41 41 36 36 31 31 26 26 22 21 21 16 16 12 11 11 7 7 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 
 giving up on 2 buffers
 Uptime: 1h12m5s
 
 dumping to dev #da/0x20001, offset 3670144
 dump 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 12 9 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:487
 487             if (dumping++) {
 #0  dumpsys () at ../../kern/kern_shutdown.c:487
 #1  0xc0216273 in boot (howto=0x100) at ../../kern/kern_shutdown.c:316
 #2  0xc0216698 in poweroff_wait (junk=0xc040440c, howto=0xc0403f0a) at ../../kern/kern_shutdown.c:595
 #3  0xc0389f0e in trap_fatal (frame=0xd1a37c1c, eva=0x0) at ../../i386/i386/trap.c:974
 #4  0xc03898eb in trap (frame={tf_fs = 0x10, tf_es = 0x10, tf_ds = 0x10, tf_edi = 0x0, tf_esi = 0x0, 
       tf_ebp = 0xd1a37cc8, tf_isp = 0xd1a37c48, tf_ebx = 0x1000, tf_edx = 0x0, tf_ecx = 0x0, tf_eax = 0x1, 
       tf_trapno = 0x12, tf_err = 0x0, tf_eip = 0xc039fe9a, tf_cs = 0x8, tf_eflags = 0x10246, tf_esp = 0x0, 
       tf_ss = 0x1000}) at ../../i386/i386/trap.c:636
 #5  0xc039fe9a in __qdivrem (uq=0x1000, vq=0x0, arq=0x0) at ../../libkern/qdivrem.c:100
 #6  0xc039fd7f in __divdi3 (a=0x1000, b=0x0) at ../../libkern/divdi3.c:61
 #7  0xc17d0da7 in driveio (drive=0xc1657000, buf=0xc17b8800 "IN VINO", length=0x200, offset=0x1000, flag=0x0)
     at /usr/src/sys/modules/vinum/../../dev/vinum/vinumio.c:330
 #8  0xc17d15cd in daemon_save_config () at /usr/src/sys/modules/vinum/../../dev/vinum/vinumio.c:674
 #9  0xc17cf69b in vinum_daemon () at /usr/src/sys/modules/vinum/../../dev/vinum/vinumdaemon.c:138
 #10 0xc17cf88e in vinum_finddaemon () at /usr/src/sys/modules/vinum/../../dev/vinum/vinumdaemon.c:267
 #11 0xc17d2461 in vinumioctl (dev=0xc17b2280, cmd=0x465d, data=0xd1a37ea8 "", flag=0x3, p=0xd19d85a0)
     at /usr/src/sys/modules/vinum/../../dev/vinum/vinumioctl.c:292
 #12 0xc024f0ce in spec_ioctl (ap=0xd1a37de4) at ../../miscfs/specfs/spec_vnops.c:306
 #13 0xc024edf9 in spec_vnoperate (ap=0xd1a37de4) at ../../miscfs/specfs/spec_vnops.c:119
 #14 0xc032b495 in ufs_vnoperatespec (ap=0xd1a37de4) at ../../ufs/ufs/ufs_vnops.c:2394
 #15 0xc024b687 in vn_ioctl (fp=0xc17bbc40, com=0x465d, data=0xd1a37ea8 "", p=0xd19d85a0) at vnode_if.h:429
 #16 0xc02257fa in ioctl (p=0xd19d85a0, uap=0xd1a37f80) at ../../sys/file.h:178
 #17 0xc038a1bd in syscall2 (frame={tf_fs = 0x2f, tf_es = 0x2f, tf_ds = 0x2f, tf_edi = 0xbfbffc60, tf_esi = 0xbfbffc58, 
       tf_ebp = 0xbfbffb80, tf_isp = 0xd1a37fd4, tf_ebx = 0x1, tf_edx = 0x1, tf_ecx = 0xfffffff9, tf_eax = 0x36, 
       tf_trapno = 0xc, tf_err = 0x2, tf_eip = 0x806fc34, tf_cs = 0x1f, tf_eflags = 0x293, tf_esp = 0xbfbffb54, 
       tf_ss = 0x2f}) at ../../i386/i386/trap.c:1175
 #18 0xc037afd5 in Xint0x80_syscall ()
 #19 0x80483d9 in ?? ()
 #20 0x804813e in ?? ()
 
 -- 
 ------------------------------------------------------------------
 Alexander Haderer                     Charite
                                       Campus Virchow-Klinikum
 Tel.  +49 30 - 450 557 182            Strahlenklinik und Poliklinik  
 Fax.  +49 30 - 450 557 117            Sekr. Prof. Felix
 Email alexander.haderer at charite.de    Augustenburger Platz 1
 www   http://www.charite.de/rv/str/   13353 Berlin - Germany
 ------------------------------------------------------------------
 


More information about the freebsd-bugs mailing list