mfrw / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

Crash on ARM #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've been using ramzswap on ARM for a while now with no observed problems, but 
today I got this on shutdown when the swap get disabled.

On the ssh consoles:
Message from syslogd@sheeva at Dec 26 15:58:23 ...
 kernel:Code: fdd24f06 d832a4d0 5370eeb0 d155756e (fc1e79f9) 
Message from syslogd@sheeva at Dec 26 15:58:24 ...
 kernel:Internal error: Oops - undefined instruction: 0 [#2] PREEMPT
Message from syslogd@sheeva at Dec 26 15:58:24 ...
 kernel:last sysfs file: /sys/devices/virtual/block/ramzswap0/range
Message from syslogd@sheeva at Dec 26 15:58:24 ...
 kernel:Process init (pid: 1, stack limit = 0xdf834270)
Message from syslogd@sheeva at Dec 26 15:58:24 ...
 kernel:Stack: (0xdf835b88 to 0xdf836000)

On the main (serial) console:
Internal error: Oops - undefined instruction: 0 [#1] PREEMPT
last sysfs file: /sys/devices/virtual/block/ramzswap0/range
Modules linked in: ramzswap lzo_decompress lzo_compress af_packet dm_mod 
orion_nand nand nand_ids nand_ecc leds_gpio mtd ehci_hcd l]
CPU: 0    Not tainted  (2.6.32.2-kw #1)
PC is at 0xc0c12858
LR is at ramzswap_exit+0xbcc/0x74 [ramzswap]
pc : [<c0c12858>]    lr : [<bf0ba27c>]    psr: 00000013
sp : df835e20  ip : dfa47600  fp : df8e4000
r10: df8988e0  r9 : 1362430f  r8 : 0000004c
r7 : 00000000  r6 : 00000001  r5 : 00000001  r4 : 00000000
r3 : c04582dc  r2 : bf0ba274  r1 : 00009824  r0 : fffffffc
Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 0005397f  Table: 1f8e4000  DAC: 00000015
Process init (pid: 1, stack limit = 0xdf834270)
Stack: (0xdf835e20 to 0xdf836000)
5e20: 00009824 df834000 00009824 df8d1000 df8988e0 c00b8274 c06d4480 c00b7a9c
5e40: c06d4480 00000001 00000000 c00b92e4 c06d4480 df8d4210 00038000 c00aa3ac
5e60: 00000000 00000000 00000000 c0394af4 00000038 df8e4000 00038000 00038fe8
5e80: df8d1040 1362430f 00000038 df8988e0 00000000 c00ab4d0 df8e4000 df8d1040
5ea0: 1362430f c03b13a8 00200200 00000001 df8e4000 df8e4000 000000e0 00009824
5ec0: def58320 df835fb0 df832000 00038fe8 df8d4210 df8d1000 df8d1034 0000081f
5ee0: bebebac0 c02aa980 00038fe8 0000081f 0000081f c038a85c 00038fe8 df835fb0
5f00: bebebc28 00030ab0 00002000 c0028304 df8f4c80 df835f60 df834000 df832000
5f20: df8f4c80 df832110 df835f78 00000000 df835e30 df835e34 df835e38 df835e3c
5f40: df835e40 df835e44 00000003 00000000 00000007 00000000 00000007 bebebba8
5f60: bebebc28 c00d395c 00000000 bebebae8 df835f90 0000004e c0028b84 bebebae8
5f80: 00000008 00000000 bebebba8 bebebc28 0000008e c0028b84 df834000 ffffffff
5fa0: 00009afc 00038fe0 0000000c c02a9040 00038fe0 00000000 00038fd8 40189244
5fc0: 00039690 00009afc 00038fe0 0000000c bebebc28 00030ab0 00002000 bebebac0
5fe0: 00001238 bebeba28 400b7f1c 000170e4 20000010 ffffffff 1010d9f6 489cda7f
Code: fdd24f06 d832a4d0 5370eeb0 d155756e (fc1e79f9) 
---[ end trace 0b847768556770f7 ]---
note: init[1] exited with preempt_count 2
BUG: scheduling while atomic: init/1/0x40000003
Modules linked in: ramzswap lzo_decompress lzo_compress af_packet dm_mod 
orion_nand nand nand_ids nand_ecc leds_gpio mtd ehci_hcd l]
[<c002db40>] (unwind_backtrace+0x0/0xd8) from [<c02a66b4>] (schedule+0x78/0x480)
[<c02a66b4>] (schedule+0x78/0x480) from [<c003b110>] (__cond_resched+0x24/0x34)
[<c003b110>] (__cond_resched+0x24/0x34) from [<c02a6bcc>] 
(_cond_resched+0x30/0x40)
[<c02a6bcc>] (_cond_resched+0x30/0x40) from [<c00ac930>] 
(unmap_vmas+0x594/0x664)
[<c00ac930>] (unmap_vmas+0x594/0x664) from [<c00af41c>] (exit_mmap+0xc4/0x1fc)
[<c00af41c>] (exit_mmap+0xc4/0x1fc) from [<c003f974>] (mmput+0x38/0x114)
[<c003f974>] (mmput+0x38/0x114) from [<c00439b8>] (exit_mm+0x124/0x130)
[<c00439b8>] (exit_mm+0x124/0x130) from [<c0045514>] (do_exit+0x198/0x728)
[<c0045514>] (do_exit+0x198/0x728) from [<c002c2a8>] (die+0x190/0x1b4)
[<c002c2a8>] (die+0x190/0x1b4) from [<c002c368>] (baddataabort+0x0/0xb8)
[<c002c368>] (baddataabort+0x0/0xb8) from [<00000001>] (0x1)
Internal error: Oops - undefined instruction: 0 [#2] PREEMPT
last sysfs file: /sys/devices/virtual/block/ramzswap0/range
Modules linked in: ramzswap lzo_decompress lzo_compress af_packet dm_mod 
orion_nand nand nand_ids nand_ecc leds_gpio mtd ehci_hcd l]
CPU: 0    Tainted: G      D     (2.6.32.2-kw #1)
PC is at 0xc0c12858
LR is at ramzswap_exit+0xbcc/0x74 [ramzswap]
pc : [<c0c12858>]    lr : [<bf0ba27c>]    psr: 00000013
sp : df835b88  ip : dfa47600  fp : 136f330f
r10: 00000000  r9 : 00006000  r8 : 0000004c
r7 : 00000000  r6 : 00000001  r5 : 00000001  r4 : 00000000
r3 : c04582dc  r2 : bf0ba274  r1 : 00009820  r0 : fffffffc
Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 0005397f  Table: 1eca0000  DAC: 00000015
Process init (pid: 1, stack limit = 0xdf834270)
Stack: (0xdf835b88 to 0xdf836000)
5b80:                   00009820 df834000 00009820 c038ac30 0005a000 c00b8274
5ba0: c06d5e60 c00b7a9c c06d5e60 00008000 df8d4210 c00b9220 c06d5e60 c06d5e60
5bc0: df8d4210 c00b78f4 00034000 c00ac734 00001ec0 00000000 0005a000 df8988d0
5be0: fffffffe df835c4c df8d1000 00000000 df8e4000 df8e4000 00000000 00000000
5c00: ffffffff 0005a000 00000001 00059fff 00059fff df834000 df8d1034 df834000
5c20: df8d1000 df8d4058 df835c48 00000900 00000001 df834000 df8e4000 c00af41c
5c40: df835c48 00000000 0000002a c038ac30 df8d1000 df8d1000 00000000 df834000
5c60: df8d1034 00000900 00000001 c003f974 df8d1000 df832000 df834000 c00439b8
5c80: df832000 00000000 00000002 df832000 0000000b df832000 00000000 c0045514
5ca0: 0000000b c03281af df835cd0 df834270 df835d98 df832000 00000000 00000900
5cc0: c02a8d84 df834000 df8e4000 c002c2a8 df834270 df835d98 00000000 00000013
5ce0: c0c12858 00000000 fc1e79f9 c002c368 df835d98 c002821c 00000006 c00d3ac0
5d00: 00000004 00000000 00030001 c0c12858 00000000 ded1d200 df834000 c03aeb20
5d20: df8ad280 00000008 00000000 000bcc10 00000000 c017c098 00000001 a0000013
5d40: 00000002 dee7c780 decc4780 00000008 df8d4000 df834000 00000000 00000000
5d60: 0004c138 df835e94 df835ea1 df835e94 df835ea1 ffffffff 00000002 0000000a
5d80: ffffffff df835dcc df834050 00000001 00000900 c02a8d84 fffffffc 00009824
5da0: bf0ba274 c04582dc 00000000 00000001 00000001 00000000 0000004c 1362430f
5dc0: df8988e0 df8e4000 dfa47600 df835e20 bf0ba27c c0c12858 00000013 ffffffff
5de0: bf0ba274 c04582dc 00000000 00000001 00000001 00000000 0000004c 1362430f
5e00: df8988e0 df8e4000 dfa47600 bebeba28 400b7f1c bf0ba27c a0000013 df4d4380
5e20: 00009824 df834000 00009824 df8d1000 df8988e0 c00b8274 c06d4480 c00b7a9c
5e40: c06d4480 00000001 00000000 c00b92e4 c06d4480 df8d4210 00038000 c00aa3ac
5e60: 00000000 00000000 00000000 c0394af4 00000038 df8e4000 00038000 00038fe8
5e80: df8d1040 1362430f 00000038 df8988e0 00000000 c00ab4d0 df8e4000 df8d1040
5ea0: 1362430f c03b13a8 00200200 00000001 df8e4000 df8e4000 000000e0 00009824
5ec0: def58320 df835fb0 df832000 00038fe8 df8d4210 df8d1000 df8d1034 0000081f
5ee0: bebebac0 c02aa980 00038fe8 0000081f 0000081f c038a85c 00038fe8 df835fb0
5f00: bebebc28 00030ab0 00002000 c0028304 df8f4c80 df835f60 df834000 df832000
5f20: df8f4c80 df832110 df835f78 00000000 df835e30 df835e34 df835e38 df835e3c
5f40: df835e40 df835e44 00000003 00000000 00000007 00000000 00000007 bebebba8
5f60: bebebc28 c00d395c 00000000 bebebae8 df835f90 0000004e c0028b84 bebebae8
5f80: 00000008 00000000 bebebba8 bebebc28 0000008e c0028b84 df834000 ffffffff
5fa0: 00009afc 00038fe0 0000000c c02a9040 00038fe0 00000000 00038fd8 40189244
5fc0: 00039690 00009afc 00038fe0 0000000c bebebc28 00030ab0 00002000 bebebac0
5fe0: 00001238 bebeba28 400b7f1c 000170e4 20000010 ffffffff 1010d9f6 489cda7f
Code: fdd24f06 d832a4d0 5370eeb0 d155756e (fc1e79f9) 
---[ end trace 0b847768556770f8 ]---
Fixing recursive fault but reboot is needed!
BUG: scheduling while atomic: init/1/0x00000006
Modules linked in: ramzswap lzo_decompress lzo_compress af_packet dm_mod 
orion_nand nand nand_ids nand_ecc leds_gpio mtd ehci_hcd l]
[<c002db40>] (unwind_backtrace+0x0/0xd8) from [<c02a66b4>] (schedule+0x78/0x480)
[<c02a66b4>] (schedule+0x78/0x480) from [<c0045444>] (do_exit+0xc8/0x728)
[<c0045444>] (do_exit+0xc8/0x728) from [<c002c2a8>] (die+0x190/0x1b4)
[<c002c2a8>] (die+0x190/0x1b4) from [<c002c368>] (baddataabort+0x0/0xb8)
[<c002c368>] (baddataabort+0x0/0xb8) from [<00000001>] (0x1)

This is on a SheevaPlug, kernel 2.6.32 with the swap clear notification patch 
applied.

Original issue reported on code.google.com by gordan.b...@gmail.com on 26 Dec 2010 at 4:03

GoogleCodeExporter commented 9 years ago
This looks like a duplicate of Issue 80. Please try the patch attached in that 
Issue:

http://code.google.com/p/compcache/issues/attachmentText?id=80&aid=-575356733159
1187603&name=compcache-0.5.4.patch&token=06f6488df43c9513c58d1e779506de16

Thanks to maacruz for the fix.

Original comment by nitingupta910@gmail.com on 23 Jan 2011 at 12:09