Messages in this thread | | | Date | Mon, 3 May 1999 21:14:34 +0200 (MET DST) | From | Laurent Bruasse Doctorant <> | Subject | bug : swap, swapfiles |
| |
Hi,
here enclosed is a bug report concerning swapfiles, swapon, and kernel 2.2.6 or 2.2.7. Sorry, we couldn't run ksymoops ... we don't have iberty libs (if usefull, we'll try to get them ...)
Yours
Laurent and Alexandra Bruasse
[1] Segmentation fault while turning on a swap file
[2] I use either 2 swap partitions or 1 swap file (when I idle my scsi unused disks). At boot time, I turn on my to swap partitions. I used to run a small shell script doing : 1) swapoff -a 2) swapon /var/tmp/swapfile I had no problem until the 2.2.2, and then I installed the 2.2.6 (and today the 2.2.7) versions. When swaping on the swapfile, I get a segmentation fault :
Oops: 0000 CPU: 0 EIP: 0010:[<c0121a09>] EFLAGS: 00010202 eax: 00000000 ebx: c2681980 ecx: 00000002 edx: 00000001 esi: fffffff0 edi: c2681980 ebp: 00000000 esp: c2721f1c ds: 0018 es: 0018 ss: 0018 Process swapon (pid: 102, process nr: 16, stackpage=c2721000) Stack: 08048db5 bffffa9c c271c2a0 c2720000 00000001 c271b278 c272b000 c001e660 c0119079 c01f1ea0 00000002 00000002 00000001 00000000 c2721f68 00000000 00001000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 Call Trace: [<c0119079>] [<c01079b4>] Code: 8b 48 08 39 cf 0f 84 1b 04 00 00 42 8b 44 24 30 39 c2 72 db Segmentation fault
In the /var/log/syslog, I found :
May 3 20:10:48 thundera kernel: Unable to handle kernel NULL pointer derefer en\ce at virtual address 00000008 May 3 20:10:48 thundera kernel: current->tss.cr3 = 0271e000, May 3 20:10:48 thundera kernel: *pde = 00000000 May 3 20:10:48 thundera kernel: Oops: 0000 May 3 20:10:48 thundera kernel: CPU: 0 May 3 20:10:48 thundera kernel: EIP: 0010:[<c0121a09>] May 3 20:10:48 thundera kernel: EFLAGS: 00010202 May 3 20:10:48 thundera kernel: eax: 00000000 ebx: c2681980 ecx: 0000000 2 edx: 00000001 May 3 20:10:48 thundera kernel: esi: fffffff0 edi: c2681980 ebp: 0000000 0 esp: c2721f1c May 3 20:10:48 thundera kernel: ds: 0018 es: 0018 ss: 0018 May 3 20:10:48 thundera kernel: Process swapon (pid: 102, process nr: 16, st ac\kpage=c2721000) May 3 20:10:48 thundera kernel: Stack: 08048db5 bffffa9c c271c2a0 c2720000 0 00\00001 c271b278 c272b000 c001e660 May 3 20:10:48 thundera kernel: c0119079 c01f1ea0 00000002 00000002 0 00\00001 00000000 c2721f68 00000000 May 3 20:10:48 thundera kernel: 00001000 00000000 00000000 00000000 0 00\00000 00000000 00000000 00000000 May 3 20:10:48 thundera kernel: Call Trace: [<c0119079>] [<c01079b4>] May 3 20:10:48 thundera kernel: Code: 8b 48 08 39 cf 0f 84 1b 04 00 00 42 8b 4\4 24 30 39 c2 72 db
If I first turn on the swap file and then turn off the others, the problem doesn't appear. Another surprising thing : if we create the swapfile with :
dd if=/dev/zero of=swapfile bs=1024 count=8192 mkswap swapfile 8192
just before turning it on, it works as well. But once we've rebooted, it's just as for the old ones : swapon fails. [3] swap, swapfile, swapon
[4] Linux version : 2.2.7 (same for 2.2.6)
[5] Oops
[6] % swapoff -a % swapon /var/tmp/swapfile
[7.1] thundera:/usr/src/linux/scripts# sh ./ver_linux -- Versions installed: (if some fields are empty or looks -- unusual then possibly you have very old versions) Linux thundera 2.2.7 #1 Mon May 3 18:39:58 GMT+0100 1999 i586 unknown Kernel modules 2.1.121 Gnu C 2.7.2 Binutils 2.9.1.0.4 Linux C Library 5.4.46 Dynamic linker ldd: version 1.9.10 Linux C++ Library 27.2.8 Linux C++ Library 27.2.8 Procps 2.0.0 Mount 2.7l Net-tools 1.50 Kbd 0.96 Sh-utils 1.16 Modules Loaded
[7.2] processor : 0 vendor_id : GenuineIntel cpu family : 5 model : 2 model name : Pentium 75 - 200 stepping : 12 cpu MHz : 166.094142 fdiv_bug : no hlt_bug : no sep_bug : no f00f_bug : yes fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr mce cx8 bogomips : 66.36
[7.3] empty
[7.4] Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBMAS400 Model: DFHSS2W Rev: 4I4I Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: IBMAS400 Model: DFHSS2W Rev: 4I4I Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 02 Lun: 00 Vendor: IBMAS400 Model: DFHSS2W Rev: 4I4I Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 03 Lun: 00 Vendor: IBMAS400 Model: DFHSS2W Rev: 4I4I Type: Direct-Access ANSI SCSI revision: 02
[7.5] /proc/swaps Unable to handle kernel NULL pointer dereference at virtual address 00000000 current->tss.cr3 = 0271e000, %cr3 = 0271e000 *pde = 00000000 Oops: 0000 CPU: 0 EIP: 0010:[<c0121730>] EFLAGS: 00010246 eax: 00000000 ebx: 0000004a ecx: 00000000 edx: 00000000 esi: c222f000 edi: 00000000 ebp: c01f1ea0 esp: c2687f08 ds: 0018 es: 0018 ss: 0018 Process more (pid: 599, process nr: 20, stackpage=c2687000) Stack: 00000000 c22d3000 00000001 00000000 c222f000 c0141c49 c22d3000 00000000 0000001d 00000000 00000040 c01dbaa0 ffffffea 00000000 c0141e9e c22d3000 0000001d c2687f98 00000000 00000040 c01dbaa0 ffffffea 00000000 00000040 Call Trace: [<c0141c49>] [<c0141e9e>] [<c01231b4>] [<c01079b4>] Code: 66 8b 04 57 85 c0 74 08 3d 00 80 00 00 74 01 41 42 8b 44 24 Segmentation fault
| |