Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why LeakSanitizer reports memory leak when hashtable rehash? (gcc (GCC) 11.2.0) #1664

Open
SeulYoung opened this issue Jun 26, 2023 · 0 comments

Comments

@SeulYoung
Copy link

This is the report information for the memory leak, it seems to be incomplete:

80 Direct leak of 38712 byte(s) in 3 object(s) allocated from:
81 #0 0x7fe413887ac4 in operator new(unsigned long) ../../../../gcc-11.2.0/libsanitizer/lsan/lsan_interceptors.cpp:238
82 #1 0x27b94df in std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<unsigned long const, unsigned int>, false> > >::_M_allocate_buckets(unsigned long) /opt/rh/ devtoolset-9/root/usr/include/c++/9/ext/new_allocator.h:114
83 #2 0x27b94df in std::_Hashtable<unsigned long, std::pair<unsigned long const, unsigned int>, std::allocator<std::pair<unsigned long const, unsigned int> >, std::__detail::_Select1st, std::eq ual_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<fal se, false, true> >::_M_allocate_buckets(unsigned long) /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/hashtable.h:361
84 #3 0x27b94df in std::_Hashtable<unsigned long, std::pair<unsigned long const, unsigned int>, std::allocator<std::pair<unsigned long const, unsigned int> >, std::__detail::_Select1st, std::eq ual_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<fal se, false, true> >::_M_rehash_aux(unsigned long, std::integral_constant<bool, true>) /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/hashtable.h:2088
85 #4 0x27b94df in std::_Hashtable<unsigned long, std::pair<unsigned long const, unsigned int>, std::allocator<std::pair<unsigned long const, unsigned int> >, std::__detail::_Select1st, std::eq ual_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<fal se, false, true> >::_M_rehash(unsigned long, unsigned long const&) /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/hashtable.h:2067
86
87 Objects leaked above:
88 0x627000003800 (12904 bytes)
89 0x627000007000 (12904 bytes)
90 0x62700000a800 (12904 bytes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant