You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allocator_test fails - the problem is that new uses posix_memalign to allocate - the unique_ptr uses std::delete - solution is to use a custom deleter for unique_ptr.
AddressSanitizer output
==2551==ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete []) on 0x60900000d780
#0 0x7fa1424d502a in operator delete (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9a02a)
#1 0x41375c in std::default_delete<char []>::operator()(char*) const (/home/seamaster/seastar/build/debug/tests/allocator_test_g+0x41375c)
#2 0x40f7d4 in std::unique_ptr<char [], std::default_delete<char []> >::~unique_ptr() (/home/seamaster/seastar/build/debug/tests/allocator_test_g+0x40f7d4)
allocator_test fails - the problem is that new uses posix_memalign to allocate - the unique_ptr uses std::delete - solution is to use a custom deleter for unique_ptr.
AddressSanitizer output
==2551==ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete []) on 0x60900000d780
#0 0x7fa1424d502a in operator delete (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9a02a)
fix - diff attached.
allocator_test.txt
The text was updated successfully, but these errors were encountered: