On Fr 27 Okt 2017 16:45:02 CEST, ucko wrote:
Mike Gabriel <mike.gabr...@das-netzwerkteam.de> writes:Sooo... My assumption was, that this was related to some package upgrades in the archive. Maybe packages that have not reached the archtitectures, that showed the test failures on buildd.Thanks for the quick reply! I do wonder whether there's more to it than that, though, particularly in light of the similar if not identical errors libqtdbusmock proceeded to hit on mips (which I reported as #879942 just after you sent your reply). More specifically, this looks like the sort of error that could arise after prematurely freeing memory. Have you tried running under Valgrind, or locally building with -fsanitize=address?
I did build with -fsanitize=address... Output of the unit tests (that don't fail locally here) below.
I really need a way to reproduce the test failures on my local setup (sbuild). ``` Start 1: unit-tests 1/1 Test #1: unit-tests .......................***Failed 15.46 sec [==========] Running 6 tests from 3 test cases. [----------] Global test environment set-up. [----------] 3 tests from TestDBusTestRunner [ RUN ] TestDBusTestRunner.StartsSessionService [ OK ] TestDBusTestRunner.StartsSessionService (307 ms) [ RUN ] TestDBusTestRunner.StartsSystemService [ OK ] TestDBusTestRunner.StartsSystemService (123 ms) [ RUN ] TestDBusTestRunner.SetsEnvironmentVariables [ OK ] TestDBusTestRunner.SetsEnvironmentVariables (12 ms) [----------] 3 tests from TestDBusTestRunner (442 ms total) [----------] 2 tests from TestQProcessDBusService [ RUN ] TestQProcessDBusService.WaitsForServiceAppeared [ OK ] TestQProcessDBusService.WaitsForServiceAppeared (118 ms) [ RUN ] TestQProcessDBusService.ThrowsErrorForFailToStart [ OK ] TestQProcessDBusService.ThrowsErrorForFailToStart (14778 ms) [----------] 2 tests from TestQProcessDBusService (14896 ms total) [----------] 1 test from TestSuicidalProcess [ RUN ] TestSuicidalProcess.BehavesLikeNormalQProcess [ OK ] TestSuicidalProcess.BehavesLikeNormalQProcess (25 ms) [----------] 1 test from TestSuicidalProcess (25 ms total) [----------] Global test environment tear-down [==========] 6 tests from 3 test cases ran. (15364 ms total) [ PASSED ] 6 tests. ================================================================= ==26444==ERROR: LeakSanitizer: detected memory leaks Indirect leak of 38151 byte(s) in 45 object(s) allocated from:#0 0x7fe0b47b0fd0 in __interceptor_realloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9fd0)
#1 0x7fe0b23e14cc (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x324cc) Indirect leak of 3636 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8) #1 0x7fe0b23e129d in _dbus_mem_pool_alloc (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x3229d)
Indirect leak of 2376 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23c2d2d (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x13d2d) Indirect leak of 2160 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23c0107 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x11107) #2 0x7ffffffff (<unknown module>) Indirect leak of 2088 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23dd32f (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x2e32f) Indirect leak of 2016 byte(s) in 36 object(s) allocated from:#0 0x7fe0b47b0c20 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9c20) #1 0x7fe0b23c79fd in _dbus_credentials_new (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x189fd)
Indirect leak of 1584 byte(s) in 18 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23d61da (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x271da) Indirect leak of 1440 byte(s) in 36 object(s) allocated from:#0 0x7fe0b47b0c20 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9c20)
#1 0x7fe0b23e76c1 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x386c1) Indirect leak of 1008 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8) #1 0x7fe0b23de28b in _dbus_hash_table_new (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x2f28b)
Indirect leak of 864 byte(s) in 18 object(s) allocated from:#0 0x7fe0b47b0c20 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9c20)
#1 0x7fe0b23e77e1 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x387e1) Indirect leak of 864 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8) #1 0x7fe0b23d2dbf in _dbus_message_loader_new (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x23dbf)
Indirect leak of 720 byte(s) in 18 object(s) allocated from:#0 0x7fe0b47b0c20 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9c20)
#1 0x7fe0b23e766a (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x3866a) Indirect leak of 576 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23d4b97 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x25b97) Indirect leak of 576 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0fd0 in __interceptor_realloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9fd0) #1 0x7fe0b23d309d in _dbus_message_loader_get_unix_fds (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x2409d)
#2 0x78a99d34ead9f5ff (<unknown module>) Indirect leak of 432 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23c2cf8 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x13cf8) Indirect leak of 432 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23c2ce7 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x13ce7) Indirect leak of 360 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8) #1 0x7fe0b23e1183 in _dbus_mem_pool_new (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x32183)
Indirect leak of 342 byte(s) in 18 object(s) allocated from:#0 0x7fe0b47b0c20 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9c20) #1 0x7fe0b23df27e in _dbus_strdup (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x3027e)
Indirect leak of 315 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0c20 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9c20) #1 0x7fe0b23e19d9 in _dbus_string_copy_data (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x329d9)
#2 0x78a99d34ead9f5ff (<unknown module>) Indirect leak of 288 byte(s) in 36 object(s) allocated from:#0 0x7fe0b47b0c20 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9c20)
#1 0x7fe0b23e1713 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x32713) Indirect leak of 216 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23c0cb1 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x11cb1) Indirect leak of 216 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0df8 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9df8)
#1 0x7fe0b23d4f72 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x25f72) Indirect leak of 144 byte(s) in 9 object(s) allocated from:#0 0x7fe0b47b0fd0 in __interceptor_realloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xd9fd0)
#1 0x7fe0b23de0d1 (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x2f0d1) SUMMARY: AddressSanitizer: 60804 byte(s) leaked in 360 allocation(s). ``` Greets, Mike -- DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby mobile: +49 (1520) 1976 148 landline: +49 (4354) 8390 139 GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de
pgpzkW998QmZo.pgp
Description: Digitale PGP-Signatur