Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2001 08:41:08 +0200
From:      "Karel J. Bosschaart" <karelj@wop21.wop.wtb.tue.nl>
To:        stable@FreeBSD.ORG
Subject:   reproducible panic (was: problem reading one or more particular file(s) from CD)
Message-ID:  <20010615084108.A3590@wop21.wop.wtb.tue.nl>
In-Reply-To: <20010614153251.A86540@wop21.wop.wtb.tue.nl>; from karelj@wop21.wop.wtb.tue.nl on Thu, Jun 14, 2001 at 03:32:51PM %2B0200
References:  <20010614153251.A86540@wop21.wop.wtb.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
[Follow-up to -stable as I think that's a more appropriate place for this]

It seems my CD reading trouble can cause a panic - I included a gdb
session below, and hope someone can shed some light on it.

On Thu, Jun 14, 2001 at 03:32:51PM +0200, Karel J. Bosschaart wrote:
> 
> Hi,
> 
> I have a problem reading some files off CD's that I burnt with the 
> mkisofs/cdrecord combo; I mount it as usual, and copy the contents. However, 
> one of the files is not copied, as cp says "Bad address", while the console 
> shows 
> 
> Jun 14 14:41:30 wop21 /kernel: cd9660: Joliet Extension (Level 3)
> acd0: READ_BIG - ILLEGAL REQUEST asc=64 ascq=00 error=01
> vm_fault: pager read error, pid 86366 (cp)
> 
> (the first line is from the mount command)
> I thought this to be some bad spot on the CD, but it happens more often than
> would be reasonable, as I had yesterday 4 of such CD's in a row, and I had
> similar trouble in the past, sometimes with more than just one file. Also, it 
> happens consistently always on the same file(s), and in both of my CD players 
> (both SCSI). I tried on other machines: a 4.1.1-STABLE with IDE drive: same 
> problem, as well as on another 4.3-RC with IDE. 
> 
> When dumping the CD content with dd to the harddisk and mounting the image
> using vnconfig, I can copy the 'lost' file without any trouble! Also,
> firing up VMware with NT4 will let me copy that file. A Win'98 box didn't
> give me any trouble copying that file.
> 
> Finally, I found a FreeBSD box (4.3-STABLE with IDE drive) that is able to 
> copy the particular file, and it never failed (I tried 10 times or so). 
> 
> Does someone has an idea as where to start searching for the problem? I'm
> getting a bit concerned about the safety of my data on CD. 
> 
> Maybe important: it appears (at least in the 4 cases from yesterday) that
> it concerns the file that was last written to the CD, which is also filled
> up almost entirely (648 to 650 MB, with 1 MB = 1024*1024). But from the
> findings with dd, VMware, Win'98 and that particular FreeBSD machine I'd
> say that the iso is correct and complete.
>

I experimented further with my CD reading problems and now I'm able to get
a reproducible panic on two different machines (recent 4.3-STABLE and 4.3-RC) 
when doing the following:

1) accessing a file (for example with 'mpg123' or 'strings') on a mounted
   cdrom that would give me a 'Bad address' when trying to cp it. Accessing it 
   this way seems to cause no trouble reading it.
2) An attempt to cp the file now leads to a 'panic: vm_page_free: freeing wired
   page' and subsequent reboot.

I tried two different CD's, both of which cause this problem. The back trace of 
one of the crash dumps is below.


homeflame# 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) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-file /home/karelj/savecore/crash2/kernel.0 
(kgdb) core-file /home/karelj/savecore/crash2/vmcore.0 
IdlePTD 3969024
initial pcb at 303e80
panicstr: vm_page_free: freeing wired page

panic messages:
---
panic: vm_page_free: freeing wired page


syncing disks... 11 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 
giving up on 3 buffers
Uptime: 25m1s
/dev/vmmon: Module vmmon: unloaded

dumping to dev #da/0x20001, offset 8224
dump 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  0xc015c16a in dumpsys ()
(kgdb) bt
#0  0xc015c16a in dumpsys ()
#1  0xc015bf8b in boot ()
#2  0xc015c308 in poweroff_wait ()
#3  0xc02409e6 in vm_page_free_toq ()
#4  0xc0239141 in vm_fault ()
#5  0xc028e54a in trap_pfault ()
#6  0xc028e16f in trap ()
#7  0xc028cfd2 in slow_copyin ()
#8  0xc022f9fd in ffs_write ()
#9  0xc018f576 in vn_write ()
#10 0xc016a2d1 in dofilewrite ()
#11 0xc016a18a in write ()
#12 0xc028eb89 in syscall2 ()
#13 0xc02808f5 in Xint0x80_syscall ()
#14 0x80489a9 in ?? ()
#15 0x804853e in ?? ()
#16 0x8048135 in ?? ()
(kgdb) 


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




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