Hello guys. I have encountered bug in 2.0.30 and 2.0.33.
Well, problem itself. I have encountered it when I tried to make test
backup to streamer. I had to fill 2.3 G tape, so I got CD put it in NEC
MultiSpin external CD and expected to make a backup. But in the middle
of one long mpg file which was something like >80Mb computer hang with
(1)
Kernel panic. scsi_free: Trying to free unused memory.
In swapper task - not syncing.
on console. I made 2 attempts and each time I was manage to read exactly
the same number of bytes of that file (45088768), at least after reset on
disk they were of equal size. While reading last 2Mb I had observed
significant slowdown of reading with overall slow down of disk access.
dd if=/dev/cdrom of=/dev/null bs=2048 hangs too.
Those experiments were made under 2.0.33 and 2.0.30.
CD is really old and somewhat scratched but I read it on SGI O2 station
using dd if=/dev/cdrom of=/dev/null bs=2048 command completely (655Mb).
Ok,I had things to do, so I wanted to make 12 copies of this 45088768
file and backup them. When I ordered
cp mirtv0.mpg mirtv1.mpg
under 2.0.30 first time kernel hang with message on console:
Kernel panic: scsi: trying to call schedule in interrupt, scsi.c, line 1379
In swapper task - not syncing.
Another time I was manage to get my sda* but as system is located
on sdb it was operational but any attempt to read or write on sda
such as ls -l /home ( /home /dev/sda2) leaded to processes come into D
(uninterruptable sleep) state.
When I upgraded to 2.0.33 I already was manage to make copies of files.
All is 100% reproducable. Why the bad CD can cause hang of whole system?
Computer info:
486DX2-66 EISA 32Mb
cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: MICROP Model: 2112-15MQ1086403 Rev: HQ48
Type: Direct-Access ANSI SCSI revision: 01 CCS
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: WDIGTL Model: SP4200 1 Rev: 4.03
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: NEC Model: CD-ROM DRIVE:500 Rev: 2.5
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: WangDAT Model: Model 3200 Rev: 02.2
Type: Sequential-Access ANSI SCSI revision: 02
cat /proc/scsi/aha1740/0
aha174x at IO:1c80, IRQ 11, SLOT 1.
Extended translation disabled.
dmesg
Console: colour VGA+ 80x25, 1 virtual console (max 63)
Calibrating delay loop.. ok - 33.18 BogoMIPS
Memory: 31108k/32768k available (572k kernel code,384k reserved, 704k data)
This processor honours the WP bit even when in supervisor mode. Good.
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: IGMP, ICMP, UDP,TCP
Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Checking 'hlt' instruction... Ok.
Wed Mar 11 21:09:32 MET 1998Starting
kswapd v 1.4.2.2
Floppy drive(s): fd0 is 1.44M, fd1 is 1.2M
FDC 0 is a post-1991 82077
Configuring aha174x at IO:1c80, IRQ 11
aha174x: Extended translation disabled.
scsi0 : Adaptec 174x (EISA)
scsi : 1 host.
Vendor: MICROP Model: 2112-15MQ1086403 Rev: HQ48
Type: Direct-Access ANSI SCSI revision: 01 CCS
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: WDIGTL Model: SP4200 1 Rev: 4.03
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
Vendor: NEC Model: CD-ROM DRIVE:500 Rev: 2.5
Type: CD-ROM ANSI SCSI revision: 02
Vendor: WangDAT Model: Model 3200 Rev: 02.2
Type: Sequential-Access ANSI SCSI revision: 02
scsi : detected 2 SCSI disks total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 2051615 [1001 MB] [1.0 GB]
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 409600 [200 MB] [0.2 GB]
Partition check:
sda: sda1 sda2 sda4
sdb: sdb1
VFS: Mounted root (ext2 filesystem) readonly.
Adding Swap: 50172k swap-space (priority -1)
Swansea University Computer Society IPX 0.34 for NET3.035
IPX Portions Copyright (c) 1995 Caldera, Inc.
Serial driver version 4.13 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16450
tty01 at 0x02f8 (irq = 3) is a 16450
tty02 at 0x03e8 (irq = 4) is a 16450
tty03 at 0x02e8 (irq = 3) is a 16450
smc-ultra.c: Presently autoprobing (not recommended) for a single card.
loading device 'eth0'...
eth0: SMC EtherEZ at 0x380, 00 00 C0 8B 2E F6, IRQ 10 memory 0xd8000-0xd9fff.
cat /proc/cpuinfo
processor : 0
cpu : 486
model : unknown
vendor_id : unknown
stepping : unknown
fdiv_bug : no
hlt_bug : no
f00f_bug : no
fpu : yes
fpu_exception : yes
cpuid : no
wp : yes
flags :
bogomips : 33.18
cat /proc/interrupts
0: 9032659 timer
1: 10063 keyboard
2: 0 cascade
4: 272 + serial1
0: 7067134 SMC EtherEZ
11: 141344 aha1740
13: 0 math error
cat /proc/dma
4: cascade
cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
02e8-02ef : serial(auto)
02f8-02ff : serial(auto)
0380-039f : SMC EtherEZ
03c0-03df : vga+
03e8-03ef : serial(auto)
03f0-03f5 : floppy
03f7-03f7 : floppy DIR
03f8-03ff : serial(auto)
1c80-1cdb : aha1740