public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Eeek! page_mapcount(page) went negative! (-1)
@ 2006-07-01 17:06 Daniel Drake
  2006-07-01 17:07 ` Arjan van de Ven
  2006-07-01 17:30 ` Nick Piggin
  0 siblings, 2 replies; 15+ messages in thread
From: Daniel Drake @ 2006-07-01 17:06 UTC (permalink / raw)
  To: LKML

A user at http://bugs.gentoo.org/138366 reported a one-off crash on x86 
with 2.6.16.19. Here's hoping it might be useful to somebody:

Eeek! page_mapcount(page) went negative! (-1)
   page->flags = 8001003c
   page->count = 1
   page->mapping = f6ad2418
------------[ cut here ]------------
kernel BUG at mm/rmap.c:560!
invalid opcode: 0000 [#1]
PREEMPT
CPU:    0
EIP is at page_remove_rmap+0x93/0xa0
eax: ffffffff   ebx: c1234040   ecx: 0000827e   edx: c0374d01
esi: b2570000   edi: c1234040   ebp: cdf8bf2c   esp: cdf8be84
ds: 007b   es: 007b   ss: 0068
Process X (pid: 27937, threadinfo=cdf8a000 task=dc73da90)
Stack: <0>c0327022 f6ad2418 dc6fd5c0 c014592f c1234040 b2570000
11a0 2067 11a02067
        fffffffc ffffffff d6c562e0 b26ab000 e465fb28 b26ab000
cdf8bf2 c c0145ac5
        c03dbbec f0cd96fc e465fb24 b256c000 b26ab000 cdf8bf2c
0000000 0 b26aafff
Call Trace:
  [zap_pte_range+351/576] zap_pte_range+0x15f/0x240
  [<c014592f>] zap_pte_range+0x15f/0x240
  [unmap_page_range+181/320] unmap_page_range+0xb5/0x140
  [<c0145ac5>] unmap_page_range+0xb5/0x140
  [unmap_vmas+239/496] unmap_vmas+0xef/0x1f0
  [<c0145c3f>] unmap_vmas+0xef/0x1f0
  [unmap_region+149/304] unmap_region+0x95/0x130
  [<c014a255>] unmap_region+0x95/0x130
  [do_munmap+275/384] do_munmap+0x113/0x180
  [<c014a5d3>] do_munmap+0x113/0x180
  [sys_munmap+68/112] sys_munmap+0x44/0x70
  [<c014a684>] sys_munmap+0x44/0x70
  [sysenter_past_esp+84/117] sysenter_past_esp+0x54/0x75
  [<c0102ddb>] sysenter_past_esp+0x54/0x75
Code: 53 0c 8b 42 04 c7 04 24 0b 70 32 c0 40 89 44 24 04 e8 c2 b0
fc  ff 8b 43 10 c7 04 24 22 70 32 c0 89 44 24 04 e8 af b0 fc ff eb 86 
<0f> 0b
30 02  e0 6f 32 c0 eb 82 8d 76 00 83 ec 2c 89 5c 24 1c 8b

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Eeek! page_mapcount(page) went negative! (-1)
@ 2007-02-05  2:39 David Liontooth
  2007-02-05  4:48 ` David Liontooth
  0 siblings, 1 reply; 15+ messages in thread
From: David Liontooth @ 2007-02-05  2:39 UTC (permalink / raw)
  To: linux-kernel


Running a script called thumbnails, which uses imagemagick's convert
utility, I got this on a mainline 2.6.16.38:

Feb  4 17:04:01 prato /USR/SBIN/CRON[17173]: (tna) CMD (thumbnails
/db2/2006/2006-11/2006-11-16)

Feb  4 17:20:49 prato kernel: swap_free: Unused swap offset entry 00000080
Feb  4 17:20:49 prato kernel: convert[23078]: segfault at
0000000000008000 rip 00002b885c7d6590 rsp 00007fffffa49308 error 4
Feb  4 17:20:50 prato kernel: convert[23113]: segfault at
0000000000008010 rip 00002b0914f305aa rsp 00007fffff984340 error 4

Feb  4 17:50:57 prato kernel: swap_free: Unused swap offset entry 00000080
Feb  4 17:50:57 prato kernel: swap_free: Unused swap offset entry 00000080
Feb  4 17:50:57 prato kernel: Eeek! page_mapcount(page) went negative! (-1)
Feb  4 17:50:57 prato kernel:   page->flags = 10000000000083c
Feb  4 17:50:57 prato kernel:   page->count = 2
Feb  4 17:50:57 prato kernel:   page->mapping = ffff81002604c670
Feb  4 17:50:57 prato kernel: ----------- [cut here ] --------- [please
bite here ] ---------
Feb  4 17:50:57 prato kernel: Kernel BUG at mm/rmap.c:560
Feb  4 17:50:57 prato kernel: invalid opcode: 0000 [1] SMP
Feb  4 17:50:57 prato kernel: CPU 1
Feb 4 17:50:57 prato kernel: Modules linked in: lirc_serial lirc_dev
saa7134_alsa tuner saa7134 video_buf compat_ioctl32 v4l2_common v4l1_compat
ir_kbd_i2c ir_common videodev skge ehci_hcd ohci_hcd psmouse pcspkr evdev
Feb  4 17:50:57 prato kernel: Pid: 29168, comm: thumbnails Tainted:
GF     2.6.16.38 #1
Feb  4 17:50:57 prato kernel: RIP: 0010:[<ffffffff801581f0>]
<ffffffff801581f0>{page_remove_rmap+117}
Feb  4 17:50:57 prato kernel: RSP: 0018:ffff81000bc6dde8  EFLAGS: 00010286
Feb  4 17:50:57 prato kernel: RAX: 00000000ffffffff RBX:
ffff810001d1b290 RCX: 0000000000006507
Feb  4 17:50:57 prato kernel: RDX: 00000000ffffff01 RSI:
0000000000000292 RDI: ffffffff80465dfc
Feb  4 17:50:57 prato kernel: RBP: 000000003be9e000 R08:
0000000000000000 R09: 0000000000000001
Feb  4 17:50:57 prato kernel: R10: 0000000000000010 R11:
0000000000000000 R12: 000000000062f000
Feb  4 17:50:57 prato kernel: R13: ffff810015ed7178 R14:
00000000006d6000 R15: ffff810001e12220
Feb  4 17:50:57 prato kernel: FS:  00002b444df8a6d0(0000)
GS:ffff810001fc5ac0(0000) knlGS:0000000000000000
Feb  4 17:50:57 prato kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
000000008005003b
Feb  4 17:50:57 prato kernel: CR2: 00002b444ddb61f0 CR3:
0000000013f22000 CR4: 00000000000006e0
Feb  4 17:50:57 prato kernel: Process thumbnails (pid: 29168, threadinfo
ffff81000bc6c000, task ffff81003fe25160)
Feb  4 17:50:57 prato kernel: Stack: ffff810001d1b290 ffffffff801519da
0000000000000000 ffff81000bc6dec8
Feb  4 17:50:57 prato kernel:        ffffffffffffffff 0000000000000000
ffff81002955d648 ffff81000bc6ded0
Feb  4 17:50:57 prato kernel:        0000000000000000 000000012cf477b8
Feb  4 17:50:57 prato kernel: Call Trace:
<ffffffff801519da>{unmap_vmas+1012} <ffffffff80154a7d>{exit_mmap+120}
Feb  4 17:50:57 prato kernel:        <ffffffff80126c7d>{mmput+40}
<ffffffff8012bb38>{do_exit+489}
Feb  4 17:50:57 prato kernel:       
<ffffffff8012c217>{sys_exit_group+0} <ffffffff8010a936>{system_call+126}
Feb  4 17:50:57 prato kernel:
Feb  4 17:50:57 prato kernel: Code: 0f 0b 68 f8 21 40 80 c2 30 02 5b 48
83 ce ff bf 20 00 00 00
Feb  4 17:50:57 prato kernel: RIP
<ffffffff801581f0>{page_remove_rmap+117} RSP <ffff81000bc6dde8>
Feb  4 17:50:57 prato kernel:  <1>Fixing recursive fault but reboot is
needed!
Feb  4 17:52:52 prato kernel: Bad page state in process 'kswapd0'
Feb  4 17:52:52 prato kernel: page:ffff810001d1b290
flags:0x0100000000000008 mapping:0000000000000000 mapcount:-1 count:0
Feb  4 17:52:52 prato kernel: Trying to fix it up, but a reboot is needed
Feb  4 17:52:52 prato kernel: Backtrace:
Feb  4 17:52:52 prato kernel:
Feb  4 17:52:52 prato kernel: Call Trace:
<ffffffff80149d38>{bad_page+80} <ffffffff8014a0f3>{free_hot_cold_page+116}
Feb  4 17:52:52 prato kernel:       
<ffffffff8014a19a>{__pagevec_free+33}
<ffffffff8014cfc6>{__pagevec_release_nonlru+122}
Feb  4 17:52:52 prato kernel:       
<ffffffff8014e341>{shrink_zone+2280} <ffffffff8014ec9d>{balance_pgdat+527}
Feb  4 17:52:52 prato kernel:        <ffffffff8014f21c>{kswapd+265}
<ffffffff8013ae86>{autoremove_wake_function+0}
Feb  4 17:52:52 prato kernel:        <ffffffff8010b782>{child_rip+8}
<ffffffff8014f113>{kswapd+0}
Feb  4 17:52:52 prato kernel:        <ffffffff8010b77a>{child_rip+0}

lspci

00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
00:01.0 ISA bridge: nVidia Corporation nForce3 250Gb LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management
(rev a1)
00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.2 USB Controller: nVidia Corporation nForce3 EHCI USB 2.0
Controller (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
AC'97 Audio Controller (rev a1)
00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller
(v2.5) (rev a2)
00:0a.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller
(v2.5) (rev a2)
00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI
Bridge (rev a2)
00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge
(rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV18 [GeForce4 MX
4000 AGP 8x] (rev c1)
02:06.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135
Video Broadcast Decoder (rev 10)
02:07.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135
Video Broadcast Decoder (rev 10)
02:08.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135
Video Broadcast Decoder (rev 10)
02:09.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135
Video Broadcast Decoder (rev 10)
02:0a.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135
Video Broadcast Decoder (rev 10)
02:0b.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001
Gigabit Ethernet Controller (rev 13)

Let me know if more information would be useful, such as the kernel
.config file.

Dave



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-02-05 16:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-01 17:06 Eeek! page_mapcount(page) went negative! (-1) Daniel Drake
2006-07-01 17:07 ` Arjan van de Ven
2006-07-01 17:44   ` Lee Revell
2006-07-01 17:45     ` Arjan van de Ven
2006-07-01 18:11       ` Lee Revell
2006-07-01 21:29         ` Daniel Drake
2006-07-01 17:30 ` Nick Piggin
2006-07-01 18:09   ` Dave Jones
2006-07-01 20:13     ` Alistair John Strachan
  -- strict thread matches above, loose matches on Subject: below --
2007-02-05  2:39 David Liontooth
2007-02-05  4:48 ` David Liontooth
2007-02-05  5:17   ` Randy Dunlap
2007-02-05  6:10     ` David Liontooth
2007-02-05 13:57       ` Dave Jones
2007-02-05 16:30       ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox