qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Brad Hards <bradh@frogmouth.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu_malloc failing
Date: Sun, 10 Apr 2011 07:41:32 +0100	[thread overview]
Message-ID: <BANLkTiksT24cF1RO5s+3hzkMq1nFeZuYvA@mail.gmail.com> (raw)
In-Reply-To: <201104101208.55243.bradh@frogmouth.net>

On Sun, Apr 10, 2011 at 3:08 AM, Brad Hards <bradh@frogmouth.net> wrote:
> #3  0x000000000042b3d6 in qemu_malloc (size=2128) at qemu-malloc.c:49

It's only slightly more than 2 KB.  When malloc(3) fails it returns
NULL, it doesn't crash.

As Mulyadi suggested, this looks like heap corruption.  If you have no
idea where the problem is coming from, you might like to try
valgrind(1).

Stefan

      parent reply	other threads:[~2011-04-10  6:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10  2:08 [Qemu-devel] qemu_malloc failing Brad Hards
2011-04-10  4:45 ` Mulyadi Santosa
2011-04-10  6:41 ` Stefan Hajnoczi [this message]

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=BANLkTiksT24cF1RO5s+3hzkMq1nFeZuYvA@mail.gmail.com \
    --to=stefanha@gmail.com \
    --cc=bradh@frogmouth.net \
    --cc=qemu-devel@nongnu.org \
    /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).