masaori335 commented on issue #10296:
URL:
https://github.com/apache/trafficserver/issues/10296#issuecomment-1734839006
I noticed the log file (`test_NextHopConsistentHash.log`) has this leak
report.
```
=================================================================
==25140==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 64 byte(s) in 1 object(s) allocated from:
#0 0x5571db5ac9c8 in operator new(unsigned long)
(/workspace/proxy/http/remap/.libs/lt-test_NextHopConsistentHash+0xce9c8)
(BuildId: 5b728ec67a8ddc721bb9e4066b7b9ccb38ca360e)
#1 0x5571db6538e6 in build_request(long, HttpSM*, sockaddr_in*, char
const*, sockaddr const*)
/workspace/proxy/http/remap/unit-tests/nexthop_test_stubs.cc:101:34
#2 0x5571db60f9fa in C_A_T_C_H_T_E_S_T_42()
/workspace/proxy/http/remap/unit-tests/test_NextHopConsistentHash.cc:606:9
#3 0x5571db5e055e in Catch::TestCase::invoke() const
/workspace/lib/catch2/catch.hpp:14167:15
#4 0x5571db5e055e in Catch::RunContext::invokeActiveTestCase()
/workspace/lib/catch2/catch.hpp:13027:27
#5 0x5571db5e055e in
Catch::RunContext::runCurrentTest(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>>&,
std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char>>&) /workspace/lib/catch2/catch.hpp:13000:17
#6 0x5571db5dfa6e in Catch::RunContext::runTest(Catch::TestCase const&)
/workspace/lib/catch2/catch.hpp:12761:13
#7 0x5571db5e5f23 in Catch::(anonymous namespace)::TestGroup::execute()
/workspace/lib/catch2/catch.hpp:13354:45
#8 0x5571db5e5f23 in Catch::Session::runInternal()
/workspace/lib/catch2/catch.hpp:13560:39
#9 0x5571db5e4bb8 in Catch::Session::run()
/workspace/lib/catch2/catch.hpp:13516:24
#10 0x5571db5fd6b0 in int Catch::Session::run<char>(int, char const*
const*) /workspace/lib/catch2/catch.hpp:13238:30
#11 0x5571db5fd6b0 in main /workspace/lib/catch2/catch.hpp:17533:29
#12 0x7f3bf0e02a8f (/lib/x86_64-linux-gnu/libc.so.6+0x23a8f) (BuildId:
bdb8aa3b1b60f9d43e1c70ba98158e05f765efdc)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x5571db5ac9c8 in operator new(unsigned long)
(/workspace/proxy/http/remap/.libs/lt-test_NextHopConsistentHash+0xce9c8)
(BuildId: 5b728ec67a8ddc721bb9e4066b7b9ccb38ca360e)
#1 0x5571db653aa3 in build_request(long, HttpSM*, sockaddr_in*, char
const*, sockaddr const*)
/workspace/proxy/http/remap/unit-tests/nexthop_test_stubs.cc:112:39
#2 0x5571db60f9fa in C_A_T_C_H_T_E_S_T_42()
/workspace/proxy/http/remap/unit-tests/test_NextHopConsistentHash.cc:606:9
#3 0x5571db5e055e in Catch::TestCase::invoke() const
/workspace/lib/catch2/catch.hpp:14167:15
#4 0x5571db5e055e in Catch::RunContext::invokeActiveTestCase()
/workspace/lib/catch2/catch.hpp:13027:27
#5 0x5571db5e055e in
Catch::RunContext::runCurrentTest(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>>&,
std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char>>&) /workspace/lib/catch2/catch.hpp:13000:17
#6 0x5571db5dfa6e in Catch::RunContext::runTest(Catch::TestCase const&)
/workspace/lib/catch2/catch.hpp:12761:13
#7 0x5571db5e5f23 in Catch::(anonymous namespace)::TestGroup::execute()
/workspace/lib/catch2/catch.hpp:13354:45
#8 0x5571db5e5f23 in Catch::Session::runInternal()
/workspace/lib/catch2/catch.hpp:13560:39
#9 0x5571db5e4bb8 in Catch::Session::run()
/workspace/lib/catch2/catch.hpp:13516:24
#10 0x5571db5fd6b0 in int Catch::Session::run<char>(int, char const*
const*) /workspace/lib/catch2/catch.hpp:13238:30
#11 0x5571db5fd6b0 in main /workspace/lib/catch2/catch.hpp:17533:29
#12 0x7f3bf0e02a8f (/lib/x86_64-linux-gnu/libc.so.6+0x23a8f) (BuildId:
bdb8aa3b1b60f9d43e1c70ba98158e05f765efdc)
SUMMARY: LeakSanitizer: 80 byte(s) leaked in 2 allocation(s).
FAIL test_NextHopConsistentHash (exit status: 23)
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]