-
-
Notifications
You must be signed in to change notification settings - Fork 220
Open
Description
16:==9646==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x7c086efe6e80 in thread T0:
78:SUMMARY: AddressSanitizer: new-delete-type-mismatch ../test/net/test_socket_listen.cc:78 in test_socket_listen::test_basic()
186:SUMMARY: AddressSanitizer: 98640 byte(s) leaked in 24 allocation(s).
210:==9642==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x7b82e05ebd70 in thread T0:
272:SUMMARY: AddressSanitizer: new-delete-type-mismatch ../test/torrent/net/test_socket_address.cc:33 in test_socket_address::test_sa_is_any()
380:SUMMARY: AddressSanitizer: 1874072 byte(s) leaked in 1445 allocation(s).
486:SUMMARY: AddressSanitizer: 432072 byte(s) leaked in 106 allocation(s).
592:SUMMARY: AddressSanitizer: 384936 byte(s) leaked in 4124 allocation(s).
most of these issues are to do with new-delete mismatch with sockaddr structs and the Poll class leaking memory:
50: #1 0x7fd87139bb08 in torrent::sa_copy_in6(sockaddr_in6 const*) ../src/torrent/net/socket_address.cc:219
51: #2 0x7fd87139b8c5 in torrent::sa_copy(sockaddr const*) ../src/torrent/net/socket_address.cc:202
52: #3 0x0000006b6333 in torrent::ai_get_first_sa(char const*, char const*, addrinfo const*) ../src/torrent/net/address_info.cc:26
93: #2 0x7f97a7d37500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
125: #2 0x7f97a7d37500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
157: #2 0x7f97a7d37500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
244: #1 0x7f52e299bb08 in torrent::sa_copy_in6(sockaddr_in6 const*) ../src/torrent/net/socket_address.cc:219
245: #2 0x7f52e299b8c5 in torrent::sa_copy(sockaddr const*) ../src/torrent/net/socket_address.cc:202
246: #3 0x0000005f822d in torrent::ai_get_first_sa(char const*, char const*, addrinfo const*) ../src/torrent/net/address_info.cc:26
399: #2 0x7ff32f937500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
429: #2 0x7ff32f937500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
459: #2 0x7ff32f937500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
505: #2 0x7f5ef9d37500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
512: #9 0x7f5ef9e3ec7b in torrent::ThreadDisk::init_thread() ../src/data/thread_disk.cc:47
537: #2 0x7f5ef9d37500 in torrent::Poll::create(int) ../src/torrent/poll_epoll.cc:111
567: #2 0x0000005d3763 in torrent::HashChunk::HashChunk(torrent::ChunkHandle) ../src/data/hash_chunk.cc:49
the hashchunk one I believe has to do with its raw pointer usage and delete not being called.
Metadata
Metadata
Assignees
Labels
No labels