qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1836762] [NEW] Many leaks from qemu_spice_create_updat


From: Philippe Mathieu-Daudé
Subject: [Qemu-devel] [Bug 1836762] [NEW] Many leaks from qemu_spice_create_update
Date: Tue, 16 Jul 2019 14:53:58 -0000

Public bug reported:

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).

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: spice

-- 
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:
  New

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 via email to

[Prev in Thread] Current Thread [Next in Thread]