Advertisement
Ilya_konstantinov

Untitled

Oct 10th, 2024
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. shared.h:242:18: runtime error: member call on misaligned address 0x000000000002 for type 'ControlBlockBase', which requires 8 byte alignment
  2. 0x000000000002: note: pointer points here
  3. <memory cannot be printed>
  4. SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior shared.h:242:18 in
  5. UndefinedBehaviorSanitizer:DEADLYSIGNAL
  6. ==45853==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000002 (pc 0x608d869dcbee bp 0x7fff8ac478d0 sp 0x7fff8ac478a0 T45853)
  7. ==45853==The signal is caused by a READ memory access.
  8. ==45853==Hint: address points to the zero page.
  9.     #0 0x608d869dcbee in SharedPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Reset() (/home/remote/cpp-advanced-hse/tasks/smart-ptrs/shared/main+0x35bee) (BuildId: 4ecb2ccd708a01cd864a0ab578cb09d6fd4be8b3)
  10.     #1 0x608d869dab1c in SharedPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::SharedPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(SharedPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&&) (/home/remote/cpp-advanced-hse/tasks/smart-ptrs/shared/main+0x33b1c) (BuildId: 4ecb2ccd708a01cd864a0ab578cb09d6fd4be8b3)
  11.     #2 0x608d869d9a78 in main (/home/remote/cpp-advanced-hse/tasks/smart-ptrs/shared/main+0x32a78) (BuildId: 4ecb2ccd708a01cd864a0ab578cb09d6fd4be8b3)
  12.     #3 0x7292d3829d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  13.     #4 0x7292d3829e3f in __libc_start_main csu/../csu/libc-start.c:392:3
  14.     #5 0x608d869af4e4 in _start (/home/remote/cpp-advanced-hse/tasks/smart-ptrs/shared/main+0x84e4) (BuildId: 4ecb2ccd708a01cd864a0ab578cb09d6fd4be8b3)
  15.  
  16. UndefinedBehaviorSanitizer can not provide additional info.
  17. SUMMARY: UndefinedBehaviorSanitizer: SEGV (/home/remote/cpp-advanced-hse/tasks/smart-ptrs/shared/main+0x35bee) (BuildId: 4ecb2ccd708a01cd864a0ab578cb09d6fd4be8b3) in SharedPtr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Reset()
  18. ==45853==ABORTING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement