Skip to content

Instantly share code, notes, and snippets.

@commander-trashdin
Last active October 17, 2019 17:49
Show Gist options
  • Save commander-trashdin/07b7ef5ad04910c4fad431588e90d0f4 to your computer and use it in GitHub Desktop.
Save commander-trashdin/07b7ef5ad04910c4fad431588e90d0f4 to your computer and use it in GitHub Desktop.
asan_build
Deque has constructors
-------------------------------------------------------------------------------
/home/aun/SDA/shad-cpp0/deque/test.cpp:23
...............................................................................
/home/aun/SDA/shad-cpp0/deque/test.cpp:23: FAILED:
{Unknown expression after the reported line}
due to a fatal error condition:
SIGSEGV - Segmentation violation signal
===============================================================================
test cases: 1 | 1 failed
assertions: 3 | 2 passed | 1 failed
AddressSanitizer:DEADLYSIGNAL
=================================================================
==6552==ERROR: AddressSanitizer: SEGV on unknown address 0x03e800001998 (pc 0x55dfaf9b9ee5 bp 0x7ffdc43d6650 sp 0x7ffdc43d6640 T0)
==6552==The signal is caused by a READ memory access.
#0 0x55dfaf9b9ee4 in std::__uniq_ptr_impl<Block, std::default_delete<Block> >::_M_ptr() const (/home/aun/SDA/shad-cpp0/asan_build/test_deque+0x599ee4)
#1 0x55dfaf9b402b in std::unique_ptr<Block, std::default_delete<Block> >::get() const (/home/aun/SDA/shad-cpp0/asan_build/test_deque+0x59402b)
#2 0x55dfaf9afe18 in std::unique_ptr<Block, std::default_delete<Block> >::operator*() const (/home/aun/SDA/shad-cpp0/asan_build/test_deque+0x58fe18)
#3 0x55dfaf9acbf3 in Deque::operator[](unsigned long) const (/home/aun/SDA/shad-cpp0/asan_build/test_deque+0x58cbf3)
#4 0x55dfaf99975a in Check(Deque const&, std::vector<int, std::allocator<int> > const&) /home/aun/SDA/shad-cpp0/deque/test.cpp:13
#5 0x55dfaf99b339 in ____C_A_T_C_H____T_E_S_T____0 /home/aun/SDA/shad-cpp0/deque/test.cpp:30
#6 0x55dfafa3acc4 in Catch::TestInvokerAsFunction::invoke() const /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:10271
#7 0x55dfafa3749e in Catch::TestCase::invoke() const /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:10172
#8 0x55dfafa1b950 in Catch::RunContext::invokeActiveTestCase() /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:9043
#9 0x55dfafa1a204 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> >&) /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:9017
#10 0x55dfafa0f743 in Catch::RunContext::runTest(Catch::TestCase const&) /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:8800
#11 0x55dfafa23517 in runTests /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:9339
#12 0x55dfafa2ac73 in Catch::Session::runInternal() /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:9537
#13 0x55dfafa295aa in Catch::Session::run() /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:9494
#14 0x55dfafa291e2 in Catch::Session::run(int, char**) /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:9462
#15 0x55dfafa94abb in main /home/aun/SDA/shad-cpp0/contrib/catch/catch.hpp:12987
#16 0x7f5fa45f5bba in __libc_start_main ../csu/libc-start.c:308
#17 0x55dfaf998d19 in _start (/home/aun/SDA/shad-cpp0/asan_build/test_deque+0x578d19)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/aun/SDA/shad-cpp0/asan_build/test_deque+0x599ee4) in std::__uniq_ptr_impl<Block, std::default_delete<Block> >::_M_ptr() const
==6552==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment