David Bremner <da...@tethera.net> writes: > > Attempt #3 > > swaks -t brem...@debian.org --pipe 'valgrind /usr/lib/sendmail -bs' > > This also runs without errors, so I'm out of ideas for the moment.
Attempt #4: Rebuild with asan make clean make CXXFLAGS="-g -O1 -fsanitize=address" make check I don't know if this is coincidence, or actually meaningful, but the test "Testing protocol success with smtp (stdin)" finds one memory leak. 220 OK smtp: Succeeded: 220 OK ================================================================= ==3035435==ERROR: LeakSanitizer: detected memory leaks Direct leak of 13 byte(s) in 1 object(s) allocated from: #0 0x7f64762edd10 in strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:578 #1 0x563a16835173 in parse_option /home/bremner/software/debian/nullmailer/protocols/protocol.cc:116 #2 0x563a16835173 in parse_options /home/bremner/software/debian/nullmailer/protocols/protocol.cc:130 #3 0x563a16835173 in cli_main(int, char**) /home/bremner/software/debian/nullmailer/protocols/protocol.cc:138 SUMMARY: AddressSanitizer: 13 byte(s) leaked in 1 allocation(s). Looking at the code there is indeed a leak, but it's hard to see how it would lead to a crash.