jiridanek opened a new pull request #1080: URL: https://github.com/apache/qpid-dispatch/pull/1080
This was a silly test issue. There was no good way for the test to stop the libwebsockets server, because of how the shutdown code was structured previously. All that's needed is to stop it, and the leak disappears. This may not be the best of fixes for it, I am open to better suggestions. ``` 9: Test Case thread_tests.test_condition: PASS 9: 9: ================================================================= 9: ==10641==ERROR: LeakSanitizer: detected memory leaks 9: 9: Indirect leak of 8397696 byte(s) in 5 object(s) allocated from: 9: #0 0x7fb6364ee1f8 in __interceptor_realloc (/nix/store/g40sl3zh3nv52vj0mrl4iki5iphh5ika-gcc-10.2.0-lib/lib/libasan.so.6+0xad1f8) 9: #1 0x7fb6353ebde5 in _realloc (/nix/store/yf2b40nmyhyyhlzjjniwg9a6g4w99k4s-libwebsockets-3.2.2/lib/libwebsockets.so.15+0x10de5) 9: 9: ----------------------------------------------------- 9: Suppressions used: 9: count bytes template 9: 2 280 http-libwebsockets.c 9: 1 1160 run_unit_tests.c 9: 1 64 sys_mutex 9: 1 56 qdr_core_subscribe 9: 5 3096 ^_PyObject_Realloc 9: 580 908616 ^PyObject_Malloc$ 9: 1 32 ^PyThread_allocate_lock$ 9: 5 11945 ^PyMem_Malloc$ 9: 1 840 ^_PyObject_GC_Resize$ 9: 1 319 ^_PyBytes_Resize$ 9: ----------------------------------------------------- 9: 9: SUMMARY: AddressSanitizer: 8397696 byte(s) leaked in 5 allocation(s). 9/73 Test #9: unit_tests ........................................***Failed 1.47 sec ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org