Crash: trying to free nonexistent swap page

Crash: trying to free nonexistent swap page

Post by Michael Fuch » Wed, 03 Dec 1997 04:00:00



Hi,

I got the following problem:

Hardware: Triton Board w. P90,  64MB Ram, Ad. 2940 SCSI Contr. w. HP
C1536A DAT Streamer
and IBM DCAS 34330 HD. Also a serial I/O card with a faxmodem installed.

(Add. a NE2000 comp network card and a "Fritz" ISDN-Card.)

Kernel 2.0.27 running.

During the last weeks ( without the SCSI HD, but IDE drive) I got
several times a crash saying:
trying to free nonexistent swap page...

It happened when I wanted to print via the network (from W95 to an HP
Postscript-Laser
connected to the Linux box.

I don't have any swap space installed.

Yesterday I wanted to backup the SCSI HD to the streamer. Every try
ended with a
similar crash (after maybe half an hour.)

Thank you for every little advice!

Michael Fuchs
f...@fuchs.pf.bawue.de

This was logged:

g to free nonexistent swap-page
Trying to free nonexistent swap-page
last message repeated 203 times
general protection: 0000
CPU:    0
EIP:    0010:[__iget+60/504]
EFLAGS: 00010202
eax: 00000805   ebx: 4008f8d0   ecx: 0099fde4   edx: 00002750
esi: 00203448   edi: 00000000   ebp: 00210cac   esp: 0099fdac
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process afio (pid: 4801, process nr: 31, stackpage=0099f000)
Stack: 03e7a3e0 00000000 00000004 039e8005 001582b5 001582e8 00210cac
00002750
       00000001 03e7a3e0 00000000 0099fe34 00000004 03e7a3e0 00002750
00129f2a
       03e7a3e0 039e8005 00000004 0099fe34 00000004 00000000 00008000
0099ff74
Call Trace: [ext2_lookup+129/368] [ext2_lookup+180/368] [lookup+218/244]
[open_namei+521/968] [do_execve+73/440] [ext2_lookup+129/368]
[ext2_lookup+180/368]
       [ext2_lookup+343/368] [ext2_lookup+222/368] [getname+215/320]
[sys_execve+50/80] [system_call+85/128]
Code: 66 39 03 75 0d 8b 4c 24 1c 39 4b 04 0f 84 f6 00 00 00 8b 5b
Unable to handle kernel paging request at virtual address c805287c
current->tss.cr3 = 00966000, ^_r3 = 00966000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[get_empty_inode+68/344]
EFLAGS: 00010206
eax: 00000500   ebx: 03f047c0   ecx: 08052800   edx: 0000000b
esi: 000001eb   edi: 00000001   ebp: 00210cac   esp: 00747ee0
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process afio (pid: 1747, process nr: 28, stackpage=00747000)
Stack: 00000000 00202f08 00000000 00121ef5 03e7a2e8 02959b28 0000000c
035e1005
       02959b28 0015838b 00210cac 000056a8 00000001 03e7a2e8 00747f74
00747f74
       0000000c 02955930 000056a8 00129f2a 03e7a2e8 035e1005 0000000c
00747f74
Call Trace: [__iget+97/504] [ext2_lookup+343/368] [lookup+218/244]
[_namei+84/188] [lnamei+48/72] [sys_newlstat+41/88] [system_call+85/128]

Code: 66 83 79 7c 00 75 26 ba e7 03 00 00 8a 81 80 00 00 00 0a 81
Unable to handle kernel paging request at virtual address c805287c
current->tss.cr3 = 0049f000, ^_r3 = 0049f000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[get_empty_inode+68/344]
EFLAGS: 00010206
eax: 00000500   ebx: 03f047c0   ecx: 08052800   edx: 0000000b
esi: 000001eb   edi: 00000001   ebp: 00008180   esp: 0087ec24
ds: 0018   es: 0018   fs: 0018   gs: 002b   ss: 0018
Process tob (pid: 1719, process nr: 27, stackpage=0087e000)
Stack: 00000000 0087ec94 037ff000 001562df 00000000 0087ec94 037ff000
00008180
       00204904 00158354 037ff000 037ff000 001582ca 037ff000 037ff000
00000242
       0087ecc0 00000004 00158728 037ff000 00008180 0087ec94 00000000
00000242
Call Trace: [ext2_new_inode+19/1612] [ext2_lookup+288/368]
[ext2_lookup+150/368] [ext2_create+56/360] [permission+32/208]
[open_namei+446/968] [elf_core_dump+514/2640]
       [scsi_do_cmd+896/940] [requeue_sd_request+3458/3472]
[rw_intr+0/1212] [getblk+58/1128] [inode_getblk+68/408]
[ext2_getblk+184/556] [getblk+58/1128] [copy_page_range+371/908]
       [sys_sigreturn+450/472] [do_signal+495/636] [signal_return+18/64]

Code: 66 83 79 7c 00 75 26 ba e7 03 00 00 8a 81 80 00 00 00 0a 81
Unable to handle kernel paging request at virtual address c805287c
current->tss.cr3 = 0325c000, ^_r3 = 0325c000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[get_empty_inode+68/344]
EFLAGS: 00010206
eax: 00000500   ebx: 03f047c0   ecx: 08052800   edx: 0000000b
esi: 000001eb   edi: 00000001   ebp: 00211168   esp: 02cf1eb4
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process bash (pid: 233, process nr: 4, stackpage=02cf1000)
Stack: 00000000 00203190 00000000 00121ef5 033408b8 025d9ae4 00000004
0087e00b
       025d9ae4 0015838b 00211168 00003ef5 00000001 033408b8 0087e010
02cf1f4c
       00000004 00393824 00003ef5 00129f2a 033408b8 0087e00b 00000004
02cf1f4c
Call Trace: [__iget+97/504] [ext2_lookup+343/368] [lookup+218/244]
[dir_namei+149/296] [_namei+46/188] [namei+48/72] [sys_newstat+41/88]
       [system_call+85/128]
Code: 66 83 79 7c 00 75 26 ba e7 03 00 00 8a 81 80 00 00 00 0a 81
Unable to handle kernel paging request at virtual address c805287c
current->tss.cr3 = 03f7c000, ^_r3 = 03f7c000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[get_empty_inode+68/344]
EFLAGS: 00010202
eax: 00000500   ebx: 03f047c0   ecx: 08052800   edx: 0000000b
esi: 000001ec   edi: 00000001   ebp: 00211168   esp: 03ff7e90
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process init (pid: 1, process nr: 1, stackpage=03ff7000)
Stack: 00000000 002038d8 00000000 00121ef5 03f049b0 025d9aa0 00000003
006a7005
       025d9aa0 0015838b 00211168 000007ec 00000001 03f049b0 006a7009
03ff7f28
       00000003 00393498 000007ec 00129f2a 03f049b0 006a7005 00000003
03ff7f28
Call Trace: [__iget+97/504] [ext2_lookup+343/368] [lookup+218/244]
[dir_namei+149/296] [open_namei+82/968] [do_open+89/292]
[sys_open+63/120]
       [system_call+85/128]
Code: 66 83 79 7c 00 75 26 ba e7 03 00 00 8a 81 80 00 00 00 0a 81
general protection: 0000
CPU:    0
EIP:    0010:[locks_remove_locks+12/56]
EFLAGS: 00010282
eax: f00000fd   ebx: 03ff8018   ecx: 00000000   edx: 03f9a000
esi: 00000000   edi: f00000fd   ebp: 03ff6018   esp: 03ff7dbc
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process init (pid: 1, process nr: 1, stackpage=03ff7000)
Stack: 00000401 00120b57 03ff8018 00000000 00000401 00000000 00000001
00115216
       00000000 0000002b 00000014 03ff8000 03ff7e54 0010ac63 0000000b
001ce025
       00000000 c805287c 03ff7e54 03ff8018 00000081 05000000 04800000
001c0018
Call Trace: [close_fp+55/92] [do_exit+274/492] [die_if_kernel+695/704]
[<05000000>] [<04800000>] [aic7xxx_isr+4516/11052]
[do_page_fault+698/716]
       [do_page_fault+0/716] [error_code+64/80] [get_empty_inode+68/344]
[__iget+97/504] [ext2_lookup+343/368] [lookup+218/244]
[dir_namei+149/296] [open_namei+82/968]
       [do_open+89/292] [sys_open+63/120] [system_call+85/128]
Code: 8b 50 4c 85 d2 74 22 f6 42 1c 01 74 0f 53 83 c0 4c 50 e8 15
Unable to handle kernel paging request at virtual address c805287c
current->tss.cr3 = 0325c000, ^_r3 = 0325c000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[get_empty_inode+68/344]
EFLAGS: 00010202
eax: 00000500   ebx: 03f047c0   ecx: 08052800   edx: 0000000b
esi: 000001ec   edi: 00000001   ebp: 00000017   esp: 03f7ef78
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process cron (pid: 4802, process nr: 4, stackpage=03f7e000)
Stack: 03f82580 0804f5f8 03999640 00121dbe 03f82580 00129adf bffffd30
0804f5f8
       00000000 bffff4c0 00000001 0010f4db 03f7efb0 03ff8414 e0000000
40073ce8
       0010a6b5 bffffd30 bffff4b8 00000000 0804f5f8 00000000 bffff4c0
ffffffda
Call Trace: [get_pipe_inode+6/220] [do_pipe+47/264] [sys_pipe+35/72]
[system_call+85/128]
Code: 66 83 79 7c 00 75 26 ba e7 03 00 00 8a 81 80 00 00 00 0a 81
Unable to handle kernel paging request at virtual address c805287c
current->tss.cr3 = 004b7000, ^_r3 = 004b7000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[get_empty_inode+68/344]
EFLAGS: 00010206
eax: 00000500   ebx: 03f047c0   ecx: 08052800   edx: 0000000b
esi: 000001ee   edi: 00000001   ebp: 00210cac   esp: 029bdebc
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process tcpd (pid: 4804, process nr: 27, stackpage=029bd000)
Stack: 00000000 00202ef8 00000000 00121ef5 00703e88 00e747b4 0000000b
032b0005
       00e747b4 0015838b 00210cac 000046ae 00000001 00703e88 00000001
029bdf54
       0000000b 00e6d688 000046ae 00129f2a 00703e88 032b0005 0000000b
029bdf54
Call Trace: [__iget+97/504] [ext2_lookup+343/368] [lookup+218/244]
[open_namei+521/968] [do_open+89/292] [sys_open+63/120]
[system_call+85/128]
Code: 66 83 79 7c 00 75 26 ba e7 03 00 00 8a 81 80 00 00 00 0a 81
general protection: 0000
CPU:    0
EIP:    0010:[locks_remove_locks+12/56]
EFLAGS: 00010282
eax: f00000fd   ebx: 03574810   ecx: 00000000   edx: 030ecd58
esi: 00000000   edi: f00000fd   ebp: 03e6d018   esp: 029bdde8
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process tcpd (pid: 4804, process nr: 27, stackpage=029bd000)
Stack: 00000001 00120b57 03574810 00000000 00000001 00000003 00000001
00115216
       00000000 0000002b 00000014 029be000 029bde80 0010ac63 0000000b
001ce025
       00000000 c805287c 029bde80 03574810 00000081 05000000 04800000
001c0018
Call Trace: [close_fp+55/92] [do_exit+274/492] [die_if_kernel+695/704]
[<05000000>] [<04800000>] [aic7xxx_isr+4516/11052]
[do_page_fault+698/716]
       [do_page_fault+0/716] [ext2_find_entry+490/716]
[error_code+64/80] [get_empty_inode+68/344] [__iget+97/504]
[ext2_lookup+343/368] [lookup+218/244] [open_namei+521/968]
       [do_open+89/292] [sys_open+63/120] [system_call+85/128]
Code: 8b 50 4c 85 d2 74 22 f6 42 1c 01 74 0f 53 83 c0 4c 50 e8 15
Unable to handle kernel paging request at virtual address c805287c
current->tss.cr3 = 03e43000, ^_r3 = 03e43000
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[get_empty_inode+68/344]
EFLAGS: 00010202
eax: 00000500   ebx: 03f047c0   ecx: 08052800   edx: 0000000b
esi: 000001ef   edi: 00000001   ebp: 00210cac   esp: 00371d9c
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process getty (pid: 235, process nr: 19, stackpage=00371000)
Stack: 00000000 002034a0 00000000 00121ef5 03e7a3e0 00e7461c 00000005
03f74005
       00e7461c 0015838b 00210cac 00002765 00000001 03e7a3e0 00000000
00371e34
...

read more »

 
 
 

Crash: trying to free nonexistent swap page

Post by Albert Janss » Sat, 06 Dec 1997 04:00:00


On Tue, 02 Dec 1997 13:38:23 +0100,


>Kernel 2.0.27 running.

>During the last weeks ( without the SCSI HD, but IDE drive) I got
>several times a crash saying:
>trying to free nonexistent swap page...

You might try to fiddle with your BIOS towards the SCSI-stuff.

I was installing Linux on my uncle's PC, worked on it for days (they first
wanted to keep W95 on it, but after a couple they allowed me to do the
wonderful deltree c:\windows :)

Linux gave total lock-ups several time, without any reasons, till I did put
the BIOS-stuff at "optimal" instead of "default"...
Send your mail and error-messages to the linux-kernel-mailinglist, I think
they can help you out.

 
 
 

1. Crash: Trying to free nonexistent swap-page

: MY specs:
: P150intel, 48Megs Ram, 4gig Seagate SCSI, Aha2940u PCI, 120+Meg SWAP
: partition, Linux 2.0.32-pre5 on a 2.0.27 Slackware distribution, LIVE
: production system with 90% SHELL users.

: Also got the same program with the swap space. However I found out that my
: Apache 1.0.0 daemons were spawning all over the G-D-PLACE. Console was
: unusable as the /var/log/messages were filling it up. So I broke the

Same problem. Linux 2.0.25 (much and safely matched). Scenario: something
sends apache wild (1.2.4) and it spawns 251 copies (yes, maxchild = 100
in the config!), fills up 128M of swap, and you get "accessing
nonexistent swap .." messages.  I posted on linux-kernel to see if there
is an off-by-one error or similar in the swap code but nobody came up
with anything concrete.

The machine held up but dmesg was not pretty.

I have since reduced the amount of declared swap space to 127M within the 132M
partition in which it resides, just in case. And apache is being killed
and restarted every morning for good luck. No reoccurrence yet. But I have
seen this many times before and never resolved the cause. I feel it is to do
with stuck sockets and use of the -1 signal to apache. I rotate the logs in the morning at 8 and apache went crackers about 8.45 as far as I can tell. Maybe
a portscan? Apache should never have spawned that many children anyway.

This is on a scsi server with buslogic (not flashpoint) controller. Of course
it would happen when I was subbing for the normal solaris server for a while
(one broken cpu or scsi controoler) ...

: However I recall something in the newsgroups some time back and also in
: the SUSE 5.0 documentation about the buffer code in 2.0.29 and above being
: unreliable.

I am below that (and staying there!).

: Many thanx in advance.

De nada.

--
---------------------------------------------------------------------
Peter T. Breuer                   Phd. Ing.,

Dpto. Ingenieria                  Tel: +34 1 624 99 53
Universidad Carlos III de Madrid  Fax: +34 1 624 94 30/65
Butarque 15, E-28911 Leganes      URL: http://www.it.uc3m.es/~ptb
Spain            

2. Linux Installation

3. Netscape and newsgroups

4. "Trying to free nonexistent swap-page" error message.

5. User interfaces

6. 1.2.11: kernel: Trying to free nonexistent swap-page

7. after installing free bsd unix, which os becomes my default

8. Trying to free nonexistant swap page

9. Trying to free nonexistant swap-page

10. "nonexistent swap-page" messages on Viglen

11. 'trying to duplicate nonexisting swap-page'

12. trying to free kernel page-directory