9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Francisco J Ballesteros <nemo@gsyc.escet.urjc.es>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9pcfs mballoc bug info
Date: Mon,  5 Feb 2001 21:23:49 +0100	[thread overview]
Message-ID: <3A7F0BD5.83256F29@gsyc.escet.urjc.es> (raw)
In-Reply-To: <20010205190637.58AB3199F4@mail.cse.psu.edu>



jmk@plan9.bell-labs.com wrote:
>
> are we looking at the same driver? in the one i have there is
> one call to mbfree in the 905 section:
>
>                 if(pd->mb != nil){
>                         mbfree(pd->mb);
>                         pd->mb = nil;
>                 }

Yes, and that call to mbfree() was the one made twice.
My first silly try was to put the mbfree inside an if,
to do it only if the mb was not already FREE.
The second caller of mbfree for the same pd->mb would then
file mb to be nil, and panic.

There are two different pd's with
the same pd->mb, and both are calling mbfree. My silly try
was trying to ensure that was the case.


  reply	other threads:[~2001-02-05 20:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-05 19:06 jmk
2001-02-05 20:23 ` Francisco J Ballesteros [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-02-06  1:01 nemo
2001-02-06  0:45 nemo
2001-02-05 18:43 jmk
2001-02-05 18:04 nemo
2001-02-05 17:56 ` Boyd Roberts

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=3A7F0BD5.83256F29@gsyc.escet.urjc.es \
    --to=nemo@gsyc.escet.urjc.es \
    --cc=9fans@cse.psu.edu \
    /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 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).