qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: qemu-devel <qemu-devel@nongnu.org>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] Double-free due to e5dc1a6c6c
Date: Fri, 19 Jan 2018 17:55:27 -0500	[thread overview]
Message-ID: <0919c2ab-1a62-f96c-1847-d6f95d3326f3@linux.vnet.ibm.com> (raw)

I get double-free memory errors when QEMU terminates due to commit 
e5dc1a6c6c.

The way to reproduce the error is to 1st do a 'system_reset' in the 
monitor and then get into the grub console and do a 'halt' there.


      Stefan


commit e5dc1a6c6c4359cd783810f63eb68e9e09350708
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Thu Jan 4 17:05:15 2018 +0100

     readline: add a free function

     Fixes leaks such as:

     Direct leak of 2 byte(s) in 1 object(s) allocated from:
         #0 0x7eff58beb850 in malloc (/lib64/libasan.so.4+0xde850)
         #1 0x7eff57942f0c in g_malloc ../glib/gmem.c:94
         #2 0x7eff579431cf in g_malloc_n ../glib/gmem.c:331
         #3 0x7eff5795f6eb in g_strdup ../glib/gstrfuncs.c:363
         #4 0x55db720f1d46 in readline_hist_add 
/home/elmarco/src/qq/util/readline.c:258
         #5 0x55db720f2d34 in readline_handle_byte 
/home/elmarco/src/qq/util/readline.c:387
         #6 0x55db71539d00 in monitor_read 
/home/elmarco/src/qq/monitor.c:3896
         #7 0x55db71f9be35 in qemu_chr_be_write_impl 
/home/elmarco/src/qq/chardev/char.c:167
         #8 0x55db71f9bed3 in qemu_chr_be_write 
/home/elmarco/src/qq/chardev/char.c:179
         #9 0x55db71fa013c in fd_chr_read 
/home/elmarco/src/qq/chardev/char-fd.c:66
         #10 0x55db71fe18a8 in qio_channel_fd_source_dispatch 
/home/elmarco/src/qq/io/channel-watch.c:84
         #11 0x7eff5793a90b in g_main_dispatch ../glib/gmain.c:3182
         #12 0x7eff5793b7ac in g_main_context_dispatch ../glib/gmain.c:3847
         #13 0x55db720af3bd in glib_pollfds_poll 
/home/elmarco/src/qq/util/main-loop.c:214
         #14 0x55db720af505 in os_host_main_loop_wait 
/home/elmarco/src/qq/util/main-loop.c:261
         #15 0x55db720af6d6 in main_loop_wait 
/home/elmarco/src/qq/util/main-loop.c:515
         #16 0x55db7184e0de in main_loop /home/elmarco/src/qq/vl.c:1995
         #17 0x55db7185e956 in main /home/elmarco/src/qq/vl.c:4914
         #18 0x7eff4ea17039 in __libc_start_main (/lib64/libc.so.6+0x21039)

             reply	other threads:[~2018-01-19 22:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-19 22:55 Stefan Berger [this message]
2018-01-20  2:05 ` [Qemu-devel] Double-free due to e5dc1a6c6c Emilio G. Cota
2018-01-20  3:26   ` Stefan Berger

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=0919c2ab-1a62-f96c-1847-d6f95d3326f3@linux.vnet.ibm.com \
    --to=stefanb@linux.vnet.ibm.com \
    --cc=marcandre.lureau@redhat.com \
    --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).