Memory leak in AddressBookTests #706

issue Sjors openend this issue on February 1, 2023
  1. Sjors commented at 2:18 pm on February 1, 2023: member

    On Ubuntu 22.10 master (e1bf5470f919cf212703466411968916db8ae61f) using depends:

    0./configure --enable-suppress-external-warnings --enable-debug --with-sanitizers=address,undefined --disable-asm
    
     0********* Start testing of AddressBookTests *********
     1Config: Using QtTest library 5.15.5, Qt 5.15.5 (x86_64-little_endian-lp64 static debug build; by GCC 12.2.0), ubuntu 22.10
     2PASS   : AddressBookTests::initTestCase()
     3QWARN  : AddressBookTests::addressBookTests() This plugin does not support propagateSizeHints()
     4QWARN  : AddressBookTests::addressBookTests() This plugin does not support propagateSizeHints()
     5QDEBUG : AddressBookTests::addressBookTests() "NotifyAddressBookChanged: bcrt1qg9fv77eltn0vzs0jrxc5qks0009szpfn3m67f8 io - new A isMine=0 purpose=send status=0"
     6QDEBUG : AddressBookTests::addressBookTests() "NotifyAddressBookChanged: bcrt1q98nu3luk5pvz404ylecg3kks3q0n8h0je5x6z3 io - new B isMine=0 purpose=send status=0"
     7PASS   : AddressBookTests::addressBookTests()
     8PASS   : AddressBookTests::cleanupTestCase()
     9Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 572ms
    10********* Finished testing of AddressBookTests *********
    11
    12All tests passed.
    13
    14~InitExecutor : Stopping thread
    15~InitExecutor : Stopped thread
    16
    17=================================================================
    18==134373==ERROR: LeakSanitizer: detected memory leaks
    19
    20Direct leak of 552 byte(s) in 3 object(s) allocated from:
    21    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf2d7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
    22    [#1](/bitcoin-core-gui/1/) 0x7f9c9d925286  (<unknown module>)
    23
    24Direct leak of 520 byte(s) in 13 object(s) allocated from:
    25    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf90f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    26    [#1](/bitcoin-core-gui/1/) 0x7f9c9d936527  (<unknown module>)
    27
    28Direct leak of 184 byte(s) in 1 object(s) allocated from:
    29    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf2d7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
    30    [#1](/bitcoin-core-gui/1/) 0x7f9c9d925286  (<unknown module>)
    31    [#2](/bitcoin-core-gui/2/) 0x140000000b  (<unknown module>)
    32
    33Direct leak of 184 byte(s) in 1 object(s) allocated from:
    34    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf2d7 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
    35    [#1](/bitcoin-core-gui/1/) 0x7f9c9d925286  (<unknown module>)
    36    [#2](/bitcoin-core-gui/2/) 0x2a00000021  (<unknown module>)
    37
    38Direct leak of 176 byte(s) in 2 object(s) allocated from:
    39    [#0](/bitcoin-core-gui/0/) 0x7f9cb72c0488 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    40    [#1](/bitcoin-core-gui/1/) 0x55fd2bce2fae in QLayoutPrivate::createWidgetItem(QLayout const*, QWidget*) kernel/qlayout.cpp:200
    41
    42Direct leak of 96 byte(s) in 3 object(s) allocated from:
    43    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf90f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    44    [#1](/bitcoin-core-gui/1/) 0x7f9c9d932bf2  (<unknown module>)
    45
    46Direct leak of 24 byte(s) in 1 object(s) allocated from:
    47    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf90f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    48    [#1](/bitcoin-core-gui/1/) 0x7f9c9d93a48c  (<unknown module>)
    49
    50Indirect leak of 4193 byte(s) in 7 object(s) allocated from:
    51    [#0](/bitcoin-core-gui/0/) 0x7f9cb72be720 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85
    52    [#1](/bitcoin-core-gui/1/) 0x7f9c9d932cd4  (<unknown module>)
    53
    54Indirect leak of 120 byte(s) in 3 object(s) allocated from:
    55    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf90f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    56    [#1](/bitcoin-core-gui/1/) 0x7f9c9d933a37  (<unknown module>)
    57
    58Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    59    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf90f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    60    [#1](/bitcoin-core-gui/1/) 0x7f9c9d93a48c  (<unknown module>)
    61
    62Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    63    [#0](/bitcoin-core-gui/0/) 0x7f9cb72bf90f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    64    [#1](/bitcoin-core-gui/1/) 0x7f9c9d92ac1a  (<unknown module>)
    65
    66SUMMARY: AddressSanitizer: 6097 byte(s) leaked in 36 allocation(s).
    67FAIL qt/test/test_bitcoin-qt (exit status: 1)
    
  2. Sjors added the label Bug on Feb 1, 2023
  3. Sjors commented at 2:18 pm on February 1, 2023: member
  4. achow101 commented at 5:00 pm on February 1, 2023: member
    Based on that output, it seems like an issue in Qt itself?
  5. hebasto commented at 3:27 pm on February 2, 2023: member

    … using depends

    FWIW, all our CI tasks, which uses --with-sanitizers=address, do not use depends.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 09:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me