Date: Tue, 30 Sep 2003 18:05:52 -0400 From: Andriy Gapon <agapon@cv-nj.com> To: freebsd-stable@freebsd.org Subject: 4.8-release crash while trying to access dvd with mplayer Message-ID: <3F79FE40.1020504@cv-nj.com>
next in thread | raw e-mail | index | archive | help
System: FreeBSD 4.8-RELEASE #0: Mon Aug 4 16:23:07 EDT 2003 Debug: IdlePTD at phsyical address 0x00400000 initial pcb at physical address 0x00311da0 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x8 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01a2eb5 stack pointer = 0x10:0xd30f6df0 frame pointer = 0x10:0xd30f6e24 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 = 80269 (mplayer) interrupt mask = none trap number = 12 panic: page fault syncing disks... 6 done Uptime: 2d20h39m27s dumping to dev #ad/0x40001, offset 90240 dump ata0: resetting devices .. ata0: mask=03 ostat0=50 ostat2=00 ad0: ATAPI 00 00 ata0-slave: ATAPI 00 00 ata0: mask=03 stat0=50 stat1=00 ad0: ATA 01 a5 ata0: devices=01 ad0: success setting PIO4 on generic chip 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 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 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 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 29 28 27 26 25 24 23 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 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 /sys-devel/src/sys/kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) bt #0 dumpsys () at /sys-devel/src/sys/kern/kern_shutdown.c:487 #1 0xc0168e88 in boot (howto=256) at /sys-devel/src/sys/kern/kern_shutdown.c:316 #2 0xc01692bc in poweroff_wait (junk=0xc02c802c, howto=-1070826673) at /sys-devel/src/sys/kern/kern_shutdown.c:595 #3 0xc02772c3 in trap_fatal (frame=0xd30f6db0, eva=8) at /sys-devel/src/sys/i386/i386/trap.c:974 #4 0xc0276f85 in trap_pfault (frame=0xd30f6db0, usermode=0, eva=8) at /sys-devel/src/sys/i386/i386/trap.c:867 #5 0xc0276b67 in trap (frame={tf_fs = -1070792688, tf_es = -786956272, tf_ds = -1072300016, tf_edi = -753963416, tf_esi = -759116864, tf_ebp = -753963484, tf_isp = -753963556, tf_ebx = -753963308, tf_edx = 0, tf_ecx = -760529184, tf_eax = -1033175040, tf_trapno = 12, tf_err = 0, tf_eip = -1072025931, tf_cs = 8, tf_eflags = 2163202, tf_esp = -1033175040, tf_ss = -753963308}) at /sys-devel/src/sys/i386/i386/trap.c:466 #6 0xc01a2eb5 in spec_read (ap=0xd30f6e68) at /sys-devel/src/sys/miscfs/specfs/spec_vnops.c:253 #7 0xc0208b3c in ufsspec_read (ap=0xd30f6e68) at /sys-devel/src/sys/ufs/ufs/ufs_vnops.c:1798 #8 0xc02091dd in ufs_vnoperatespec (ap=0xd30f6e68) at /sys-devel/src/sys/ufs/ufs/ufs_vnops.c:2394 #9 0xc019eed8 in vn_read (fp=0xc2b1af40, uio=0xd30f6ed4, cred=0xc2997000, flags=0, p=0xd2ab3ee0) at vnode_if.h:334 #10 0xc0178143 in dofileread (p=0xd2ab3ee0, fp=0xc2b1af40, fd=7, buf=0xbfbfa608, nbyte=2048, offset=-1, flags=0) at /sys-devel/src/sys/sys/file.h:147 #11 0xc0178007 in read (p=0xd2ab3ee0, uap=0xd30f6f80) at /sys-devel/src/sys/kern/sys_generic.c:117 #12 0xc027757d in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 138924032, tf_esi = 0, tf_ebp = -1077959504, tf_isp = -753963052, tf_ebx = 682427148, tf_edx = 7, tf_ecx = -1077959160, tf_eax = 3, tf_trapno = 12, tf_err = 2, tf_eip = 682141340, tf_cs = 31, tf_eflags = 2097811, tf_esp = -1077959548, tf_ss = 47}) at /sys-devel/src/sys/i386/i386/trap.c:1175 #13 0xc026ae75 in Xint0x80_syscall () #14 0x28a86a66 in ?? () #15 0x81c380e in ?? () #16 0x7 in ?? () #17 0x6476642f in ?? () Cannot access memory at address 0x7665642f. (kgdb) fr 6 #6 0xc01a2eb5 in spec_read (ap=0xd30f6e68) at /sys-devel/src/sys/miscfs/specfs/spec_vnops.c:253 253 error = (*devsw(dev)->d_read) (dev, uio, ap->a_ioflag); (kgdb) i loc ap = (struct vop_read_args *) 0xd30f6e68 vp = (struct vnode *) 0xd2c0cbc0 p = (struct proc *) 0xd2ab3ee0 uio = (struct uio *) 0x0 dev = 0xc26b0000 error = 0 Strange thing with data seems to be: (kgdb) p *dev $14 = {si_flags = 0, si_udev = 29960, si_hash = {le_next = 0xc0310e6c, le_prev = 0xc26d3a08}, si_hlist = {slh_first = 0xd2c0cbc0}, si_name = "acd1", '\000' <repeats 11 times>, si_drv1 = 0x0, si_drv2 = 0x0, si_devsw = 0x0, si_iosize_max = 131072, __si_u = {__si_tty = {__sit_tty = 0x0}, __si_disk = {__sid_disk = 0x0, __sid_mountpoint = 0x0, __sid_bsize_phys = 2048, __sid_bsize_best = 0}}} (kgdb) p dev->si_devsw $15 = (struct cdevsw *) 0x0 (kgdb) p (dev->si_udev >> 8) & 0xff $16 = 117 (kgdb) p cdevsw[117] $17 = (struct cdevsw *) 0x0 117, I believe, is a correct major number for the acd devices. I have two of them (DVD and CD-RW) and both were detected correctly: acd0: <LITE-ON LTR-40125W/WS03> CD-RW drive at ata1 as master acd0: read 8250KB/s (32KB/s) write 172KB/s (6875KB/s), 1984KB buffer, UDMA33 acd0: Reads: CD-R, CD-RW, CD-DA stream, packet acd0: Writes: CD-R, CD-RW, test write, burnproof acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray, unlocked acd0: Medium: no/blank disc acd1: <TOSHIBA DVD-ROM SD-M1212/1R14> DVD-ROM drive at ata1 as slave acd1: read 5512KB/s (3271KB/s), 256KB buffer, UDMA33 acd1: Reads: CD-R, CD-RW, CD-DA stream, DVD-ROM, DVD-R acd1: Writes: acd1: Audio: play, 16 volume levels acd1: Mechanism: ejectable tray, unlocked acd1: Medium: 120mm data disc I am not sure how this could happen, I played the dvd once until mplayer quit playback and then wanted to play it again when this happened - the system froze for a while (several minutes) and the n rebooted. I am readily available to provide any additional information. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F79FE40.1020504>