9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <russcox@gmail.com>
To: Sergey Reva <rs_rlab@mail.ru>,
	Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] realloc
Date: Sat, 26 Feb 2005 14:18:18 -0500	[thread overview]
Message-ID: <ee9e417a05022611186ad24d96@mail.gmail.com> (raw)
In-Reply-To: <17224107765.20050226193730@mail.ru>

you scribbled past the end of the buffer with an extra 0064.
the ef100064 should be more like ef1000be.  look in the
archives for the explanation of these dumps that i gave
a week ago in the tip o' the day thread.

your other problems may well go away once you fix this.

russ


On Sat, 26 Feb 2005 19:37:30 +0200, Sergey Reva <rs_rlab@mail.ru> wrote:
> Hello Fans
>
> I use realloc to increase buffer, and 3-5 cucle of resizing work fine,
> but others produce this:
>
> corrupt tail magic0
> pool sbrkmem block 38178
> hdr 0a110c09 00000020 00001429 00000000 00640064 00640064
> tail 0a110c09 00000020 00001429 00000000 00640064 00640064 | ef100064 00000020
> user data 64 00 64 00  64 00 64 00 | 64 00 10 ef  20 00 00 00
> panic: pool panic
> 8.out 2318: suicide: sys: trap: fault read addr=0x0 pc=0x0000375b
>
> What useful information I can get from this? What meaning of fields in this
> output?
> --
> http://rs-rlab.narod.ru                          mailto:rs_rlab@mail.ru
>
>


  parent reply	other threads:[~2005-02-26 19:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26 17:37 Sergey Reva
2005-02-26 17:58 ` Sergey Reva
2005-02-26 18:05   ` Charles Forsyth
2005-02-26 19:18 ` Russ Cox [this message]
2005-03-02 17:26   ` Sergey Reva
2005-03-02 18:16     ` rog
2005-03-03  6:13       ` Sergey Reva
2005-03-03  9:18         ` Charles Forsyth

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=ee9e417a05022611186ad24d96@mail.gmail.com \
    --to=russcox@gmail.com \
    --cc=9fans@cse.psu.edu \
    --cc=rs_rlab@mail.ru \
    /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).