linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.0-test1 oops mm/slab.c:1631
@ 2003-07-14 16:44 Nicolas
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas @ 2003-07-14 16:44 UTC (permalink / raw)
  To: linux-kernel



Hello,

Always don't know exactly how to reproduce this oops,
it occurs randomsly...
I don't know if it is hardware related,
or if I am doing something nasty ... :(,
however never hanged on XP.

Regards

Nicolas.


Jul 14 18:35:05 hal9003 kernel: ------------[ cut here ]------------
Jul 14 18:35:05 hal9003 kernel: kernel BUG at mm/slab.c:1631!
Jul 14 18:35:05 hal9003 kernel: invalid operand: 0000 [#1]
Jul 14 18:35:05 hal9003 kernel: CPU:    0
Jul 14 18:35:05 hal9003 kernel: EIP:    0060:[kmem_cache_free+662/752]    Not 
tainted
Jul 14 18:35:05 hal9003 kernel: EIP:    0060:[<c01361a5>]    Not tainted
Jul 14 18:35:05 hal9003 kernel: EFLAGS: 00010087
Jul 14 18:35:05 hal9003 kernel: EIP is at kmem_cache_free+0x296/0x2f0
Jul 14 18:35:05 hal9003 kernel: eax: c17668a8   ebx: 007668a8   ecx: f7ffd580   
edx: f7ffd580
Jul 14 18:35:05 hal9003 kernel: esi: 00001000   edi: ef5d1000   ebp: cc719f9c   
esp: cc719f74
Jul 14 18:35:05 hal9003 kernel: ds: 007b   es: 007b   ss: 0068
Jul 14 18:35:05 hal9003 kernel: Process sh (pid: 21061, threadinfo=cc718000 
task=d3df5000)
Jul 14 18:35:05 hal9003 kernel: Stack: fffffff4 00000003 00000101 00000001 
c01477ca f7ffb794 00000296 00000003
Jul 14 18:35:05 hal9003 kernel:        e0295708 ef5d1000 cc719fbc c01477ca 
f7ffd580 ef5d1000 00000000 0810d848
Jul 14 18:35:05 hal9003 kernel:        0810d7a0 4003de9f cc718000 c0108fe3 
0810d848 00000000 00000000 0810d7a0
Jul 14 18:35:05 hal9003 kernel: Call Trace:
Jul 14 18:35:05 hal9003 kernel:  [sys_open+120/133] sys_open+0x78/0x85
Jul 14 18:35:05 hal9003 kernel:  [<c01477ca>] sys_open+0x78/0x85
Jul 14 18:35:05 hal9003 kernel:  [sys_open+120/133] sys_open+0x78/0x85
Jul 14 18:35:05 hal9003 kernel:  [<c01477ca>] sys_open+0x78/0x85
Jul 14 18:35:05 hal9003 kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
Jul 14 18:35:05 hal9003 kernel:  [<c0108fe3>] syscall_call+0x7/0xb
Jul 14 18:35:05 hal9003 kernel:
Jul 14 18:35:05 hal9003 kernel: Code: 0f 0b 5f 06 d3 fa 2a c0 e9 cc fd ff ff 
89 7c 24 04 c7 04 24


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

* Re: 2.6.0-test1 oops mm/slab.c:1631
@ 2003-07-14 17:37 Manfred Spraul
  0 siblings, 0 replies; 2+ messages in thread
From: Manfred Spraul @ 2003-07-14 17:37 UTC (permalink / raw)
  To: Nicolas; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

Nicolas wrote:

>kernel BUG at mm/slab.c:1631!
>
 That's
      BUG_ON(GET_PAGE_CACHE(page) != cachep);

Someone called kmem_cache_free(cachep, obj), but cachep is for a 
different object type.

>Call Trace:
>[sys_open+120/133] sys_open+0x78/0x85
>
Within sys_open - probably putname().
I have no idea how the bug could be triggered. If you can easily 
reproduce it: can you try the attached patch? It prints additional data.

And please add more details: Which gcc compiler, which filesystems, etc.

--
    Manfred

[-- Attachment #2: patch-slab-cachedebug --]
[-- Type: text/plain, Size: 625 bytes --]

--- 2.5/mm/slab.c	2003-07-10 23:27:00.000000000 +0200
+++ build-2.5/mm/slab.c	2003-07-14 19:36:26.000000000 +0200
@@ -1628,7 +1628,13 @@
 	kfree_debugcheck(objp);
 	page = virt_to_page(objp);
 
-	BUG_ON(GET_PAGE_CACHE(page) != cachep);
+	if (GET_PAGE_CACHE(page) != cachep) {
+		printk(KERN_ERR "mismatch in kmem_cache_free: expected cache %p, got %p\n",
+				GET_PAGE_CACHE(page),cachep);
+		printk(KERN_ERR "%p is %s.\n", cachep, cachep->name);
+		printk(KERN_ERR "%p is %s.\n", GET_PAGE_CACHE(page), GET_PAGE_CACHE(page)->name);
+		WARN_ON(1);
+	}
 	slabp = GET_PAGE_SLAB(page);
 
 	if (cachep->flags & SLAB_STORE_USER) {

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

end of thread, other threads:[~2003-07-14 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 16:44 2.6.0-test1 oops mm/slab.c:1631 Nicolas
2003-07-14 17:37 Manfred Spraul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).