All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Segaud <matt@minas-morgul.org>
To: Alex Zarochentsev <zam@namesys.com>
Cc: reiserfs-list@namesys.com
Subject: Re: Bug report: slab error at module removal
Date: Sun, 15 Aug 2004 22:01:06 +0200	[thread overview]
Message-ID: <87d61sjhml.fsf@barad-dur.crans.org> (raw)
In-Reply-To: <20040815161604.GB4703@backtop.namesys.com> (Alex Zarochentsev's message of "Sun, 15 Aug 2004 20:16:04 +0400")

Alex Zarochentsev <zam@namesys.com> writes:

> On Sat, Aug 14, 2004 at 06:26:36AM +0200, Mathieu Segaud wrote:

>> slab error in kmem_cache_destroy(): cache `plugin_set': Can't free all objects
>>  [<c0135c41>] kmem_cache_destroy+0xd1/0x130
>>  [<f99bf57a>] plugin_set_done+0xa/0x30 [reiser4]
>>  [<f99b9194>] shutdown_reiser4+0xf4/0x210 [reiser4]
>>  [<c012a004>] sys_delete_module+0x144/0x180
>>  [<c013ea9e>] unmap_vma_list+0xe/0x20
>>  [<c013edcf>] do_munmap+0xef/0x150
>>  [<c0103afd>] sysenter_past_esp+0x52/0x71

This does not seem to fix every leak...
I got the same message at module removal (this time the fs had been mounted,
one of them was used to compile lirc, and each one was then umounted)

> can you try the following patch:
>
> # This is a BitKeeper generated diff -Nru style patch.
> #
> # ChangeSet
> #   2004/08/15 20:07:10+04:00 zam@crimson.namesys.com 
> #   plugin_set_done: first clean the hash table and free all elements, then remove the slab cache.
> # 
> # plugin/plugin_set.c
> #   2004/08/15 20:07:07+04:00 zam@crimson.namesys.com +1 -1
> #   plugin_set_done: first clean the hash table and free all elements, then remove the slab cache.
> # 
> diff -Nru a/plugin/plugin_set.c b/plugin/plugin_set.c
> --- a/plugin/plugin_set.c	Sun Aug 15 20:12:29 2004
> +++ b/plugin/plugin_set.c	Sun Aug 15 20:12:29 2004
> @@ -329,8 +329,8 @@
>  reiser4_internal void plugin_set_done(void)
>  {
>  	/* NOTE: scan hash table and recycle all objects. */
> -	kmem_cache_destroy(plugin_set_slab);
>  	ps_hash_done(&ps_table);
> +	kmem_cache_destroy(plugin_set_slab);
>  }
>  

I forgot again to reenable DEBUG options. I will give it a try this night.

-- 
Mathieu Segaud


  reply	other threads:[~2004-08-15 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-14  4:26 Bug report: slab error at module removal Mathieu Segaud
2004-08-14 18:51 ` Lamont R. Peterson
2004-08-15 16:31   ` Alex Zarochentsev
2004-08-15 16:16 ` Alex Zarochentsev
2004-08-15 20:01   ` Mathieu Segaud [this message]
2004-08-16 14:23     ` Alex Zarochentsev
2004-08-16 20:52       ` Mathieu Segaud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d61sjhml.fsf@barad-dur.crans.org \
    --to=matt@minas-morgul.org \
    --cc=reiserfs-list@namesys.com \
    --cc=zam@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.