qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <1836762@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1836762] Re: Many leaks from qemu_spice_create_update
Date: Thu, 22 Apr 2021 04:18:54 -0000	[thread overview]
Message-ID: <161906513452.9169.13168801469474547485.malone@wampee.canonical.com> (raw)
In-Reply-To: 156328883859.28108.13283790893247050323.malonedeb@chaenomeles.canonical.com

The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience.

** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1836762

Title:
  Many leaks from qemu_spice_create_update

Status in QEMU:
  Incomplete

Bug description:
  tag: v4.1.0-rc0

  Compiled with --enable-sanitizers

  $ qemu-system-x86_64 -device qxl-vga ...
  [guest exits calling 'hlt']
  ==20452==ERROR: LeakSanitizer: detected memory leaks

  Direct leak of 167616 byte(s) in 582 object(s) allocated from:
      #0 0x561146f2c8ef in calloc (x86_64-softmmu/qemu-system-x86_64+0x18248ef)
      #1 0x7f73af3dde1d in g_malloc0 (/lib64/libglib-2.0.so.0+0x54e1d)
      #2 0x561148c6d547 in qemu_spice_create_update qemu/ui/spice-display.c:222:21
      #3 0x561148c6ba2b in qemu_spice_display_refresh qemu/ui/spice-display.c:488:9
      #4 0x561148172eff in display_refresh qemu/hw/display/qxl.c:2030:9
      #5 0x561148c2748f in dpy_refresh qemu/ui/console.c:1629:13
      #6 0x561148c263f1 in gui_update qemu/ui/console.c:206:5
      #7 0x561149558e6b in timerlist_run_timers qemu/util/qemu-timer.c:574:9
      #8 0x5611495591de in qemu_clock_run_timers qemu/util/qemu-timer.c:588:12
      #9 0x56114955a489 in qemu_clock_run_all_timers qemu/util/qemu-timer.c:708:25
      #10 0x56114955b235 in main_loop_wait qemu/util/main-loop.c:519:5
      #11 0x561147c587b3 in main_loop qemu/vl.c:1791:9
      #12 0x561147c4976d in main qemu/vl.c:4473:5
      #13 0x7f73ac5c4412 in __libc_start_main (/lib64/libc.so.6+0x24412)

  Direct leak of 5184 byte(s) in 18 object(s) allocated from:
      #0 0x561146f2c8ef in calloc (x86_64-softmmu/qemu-system-x86_64+0x18248ef)
      #1 0x7f73af3dde1d in g_malloc0 (/lib64/libglib-2.0.so.0+0x54e1d)
      #2 0x561148c6e3e7 in qemu_spice_create_update qemu/ui/spice-display.c:243:13
      #3 0x561148c6ba2b in qemu_spice_display_refresh qemu/ui/spice-display.c:488:9
      #4 0x561148172eff in display_refresh qemu/hw/display/qxl.c:2030:9
      #5 0x561148c2748f in dpy_refresh qemu/ui/console.c:1629:13
      #6 0x561148c263f1 in gui_update qemu/ui/console.c:206:5
      #7 0x561149558e6b in timerlist_run_timers qemu/util/qemu-timer.c:574:9
      #8 0x5611495591de in qemu_clock_run_timers qemu/util/qemu-timer.c:588:12
      #9 0x56114955a489 in qemu_clock_run_all_timers qemu/util/qemu-timer.c:708:25
      #10 0x56114955b235 in main_loop_wait qemu/util/main-loop.c:519:5
      #11 0x561147c587b3 in main_loop qemu/vl.c:1791:9
      #12 0x561147c4976d in main qemu/vl.c:4473:5
      #13 0x7f73ac5c4412 in __libc_start_main (/lib64/libc.so.6+0x24412)

  Direct leak of 2560 byte(s) in 4 object(s) allocated from:
      #0 0x561146f2cb46 in realloc (x86_64-softmmu/qemu-system-x86_64+0x1824b46)
      #1 0x7f73ac04c420  (/lib64/libfontconfig.so.1+0x21420)

  Direct leak of 22 byte(s) in 1 object(s) allocated from:
      #0 0x561146f2c6af in __interceptor_malloc (x86_64-softmmu/qemu-system-x86_64+0x18246af)
      #1 0x7f73ae781953 in XGetAtomName (/lib64/libX11.so.6+0x2a953)

  Indirect leak of 54936 byte(s) in 510 object(s) allocated from:
      #0 0x561146f2c6af in __interceptor_malloc (x86_64-softmmu/qemu-system-x86_64+0x18246af)
      #1 0x7f73af3dddc5 in g_malloc (/lib64/libglib-2.0.so.0+0x54dc5)
      #2 0x561148c6d547 in qemu_spice_create_update qemu/ui/spice-display.c:222:21
      #3 0x561148c6ba2b in qemu_spice_display_refresh qemu/ui/spice-display.c:488:9
      #4 0x561148172eff in display_refresh qemu/hw/display/qxl.c:2030:9
      #5 0x561148c2748f in dpy_refresh qemu/ui/console.c:1629:13
      #6 0x561148c263f1 in gui_update qemu/ui/console.c:206:5
      #7 0x561149558e6b in timerlist_run_timers qemu/util/qemu-timer.c:574:9
      #8 0x5611495591de in qemu_clock_run_timers qemu/util/qemu-timer.c:588:12
      #9 0x56114955a489 in qemu_clock_run_all_timers qemu/util/qemu-timer.c:708:25
      #10 0x56114955b235 in main_loop_wait qemu/util/main-loop.c:519:5
      #11 0x561147c587b3 in main_loop qemu/vl.c:1791:9
      #12 0x561147c4976d in main qemu/vl.c:4473:5
      #13 0x7f73ac5c4412 in __libc_start_main (/lib64/libc.so.6+0x24412)

  Indirect leak of 30720 byte(s) in 23 object(s) allocated from:
      #0 0x561146f2c6af in __interceptor_malloc (x86_64-softmmu/qemu-system-x86_64+0x18246af)
      #1 0x7f73af3dddc5 in g_malloc (/lib64/libglib-2.0.so.0+0x54dc5)
      #2 0x561148c6e3e7 in qemu_spice_create_update qemu/ui/spice-display.c:243:13
      #3 0x561148c6ba2b in qemu_spice_display_refresh qemu/ui/spice-display.c:488:9
      #4 0x561148172eff in display_refresh qemu/hw/display/qxl.c:2030:9
      #5 0x561148c2748f in dpy_refresh qemu/ui/console.c:1629:13
      #6 0x561148c263f1 in gui_update qemu/ui/console.c:206:5
      #7 0x561149558e6b in timerlist_run_timers qemu/util/qemu-timer.c:574:9
      #8 0x5611495591de in qemu_clock_run_timers qemu/util/qemu-timer.c:588:12
      #9 0x56114955a489 in qemu_clock_run_all_timers qemu/util/qemu-timer.c:708:25
      #10 0x56114955b235 in main_loop_wait qemu/util/main-loop.c:519:5
      #11 0x561147c587b3 in main_loop qemu/vl.c:1791:9
      #12 0x561147c4976d in main qemu/vl.c:4473:5
      #13 0x7f73ac5c4412 in __libc_start_main (/lib64/libc.so.6+0x24412)

  Indirect leak of 8288 byte(s) in 259 object(s) allocated from:
      #0 0x561146f2c6af in __interceptor_malloc (x86_64-softmmu/qemu-system-x86_64+0x18246af)
      #1 0x7f73ac0385af  (/lib64/libfontconfig.so.1+0xd5af)

  Indirect leak of 4068 byte(s) in 303 object(s) allocated from:
      #0 0x561146e78f40 in __interceptor_strdup (x86_64-softmmu/qemu-system-x86_64+0x1770f40)
      #1 0x7f73ac04bc44 in FcValueSave (/lib64/libfontconfig.so.1+0x20c44)

  Indirect leak of 2336 byte(s) in 73 object(s) allocated from:
      #0 0x561146f2c8ef in calloc (x86_64-softmmu/qemu-system-x86_64+0x18248ef)
      #1 0x7f73ac04c9cc  (/lib64/libfontconfig.so.1+0x219cc)

  Indirect leak of 1536 byte(s) in 48 object(s) allocated from:
      #0 0x561146f2c8ef in calloc (x86_64-softmmu/qemu-system-x86_64+0x18248ef)
      #1 0x7f73ac04bf0c  (/lib64/libfontconfig.so.1+0x20f0c)

  Indirect leak of 1440 byte(s) in 5 object(s) allocated from:
      #0 0x561146f2c8ef in calloc (x86_64-softmmu/qemu-system-x86_64+0x18248ef)
      #1 0x7f73af3dde1d in g_malloc0 (/lib64/libglib-2.0.so.0+0x54e1d)
      #2 0x561148c6e3e7 in qemu_spice_create_update qemu/ui/spice-display.c:243:13
      #3 0x561148c6ba2b in qemu_spice_display_refresh qemu/ui/spice-display.c:488:9
      #4 0x561148172eff in display_refresh qemu/hw/display/qxl.c:2030:9
      #5 0x561148c2748f in dpy_refresh qemu/ui/console.c:1629:13
      #6 0x561148c263f1 in gui_update qemu/ui/console.c:206:5
      #7 0x561149558e6b in timerlist_run_timers qemu/util/qemu-timer.c:574:9
      #8 0x5611495591de in qemu_clock_run_timers qemu/util/qemu-timer.c:588:12
      #9 0x56114955a489 in qemu_clock_run_all_timers qemu/util/qemu-timer.c:708:25
      #10 0x56114955b235 in main_loop_wait qemu/util/main-loop.c:519:5
      #11 0x561147c587b3 in main_loop qemu/vl.c:1791:9
      #12 0x561147c4976d in main qemu/vl.c:4473:5
      #13 0x7f73ac5c4412 in __libc_start_main (/lib64/libc.so.6+0x24412)

  Indirect leak of 1440 byte(s) in 5 object(s) allocated from:
      #0 0x561146f2c8ef in calloc (x86_64-softmmu/qemu-system-x86_64+0x18248ef)
      #1 0x7f73af3dde1d in g_malloc0 (/lib64/libglib-2.0.so.0+0x54e1d)
      #2 0x561148c6d547 in qemu_spice_create_update qemu/ui/spice-display.c:222:21
      #3 0x561148c6ba2b in qemu_spice_display_refresh qemu/ui/spice-display.c:488:9
      #4 0x561148172eff in display_refresh qemu/hw/display/qxl.c:2030:9
      #5 0x561148c2748f in dpy_refresh qemu/ui/console.c:1629:13
      #6 0x561148c263f1 in gui_update qemu/ui/console.c:206:5
      #7 0x561149558e6b in timerlist_run_timers qemu/util/qemu-timer.c:574:9
      #8 0x5611495591de in qemu_clock_run_timers qemu/util/qemu-timer.c:588:12
      #9 0x56114955a489 in qemu_clock_run_all_timers qemu/util/qemu-timer.c:708:25
      #10 0x56114955b235 in main_loop_wait qemu/util/main-loop.c:519:5
      #11 0x561147c587b3 in main_loop qemu/vl.c:1791:9
      #12 0x561147c4976d in main qemu/vl.c:4473:5
      #13 0x7f73ac5c4412 in __libc_start_main (/lib64/libc.so.6+0x24412)

  Indirect leak of 384 byte(s) in 12 object(s) allocated from:
      #0 0x561146f2c8ef in calloc (x86_64-softmmu/qemu-system-x86_64+0x18248ef)
      #1 0x7f73ac04bd9e  (/lib64/libfontconfig.so.1+0x20d9e)

  Indirect leak of 96 byte(s) in 2 object(s) allocated from:
      #0 0x561146f2c6af in __interceptor_malloc (x86_64-softmmu/qemu-system-x86_64+0x18246af)
      #1 0x7f73ac045e51 in FcLangSetCreate (/lib64/libfontconfig.so.1+0x1ae51)

  SUMMARY: AddressSanitizer: 280628 byte(s) leaked in 1847
  allocation(s).

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1836762/+subscriptions


  reply	other threads:[~2021-04-22  4:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-16 14:53 [Qemu-devel] [Bug 1836762] [NEW] Many leaks from qemu_spice_create_update Philippe Mathieu-Daudé
2021-04-22  4:18 ` Thomas Huth [this message]
2021-05-09 15:32 ` [Bug 1836762] " Philippe Mathieu-Daudé

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=161906513452.9169.13168801469474547485.malone@wampee.canonical.com \
    --to=1836762@bugs.launchpad.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).