Advertisement
yumetodo

wanotaitei_twitter_20190428_AddressSanitizer

Apr 27th, 2019
1,364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.46 KB | None | 0 0
  1. =================================================================
  2. ==11984==ERROR: AddressSanitizer: heap-use-after-free on address 0x606000000030 at pc 0x0000004e4162 bp 0x7ffd69c6e7d0 sp 0x7ffd69c6df80
  3. READ of size 48 at 0x606000000030 thread T0
  4. #0 0x4e4161 in __asan_memcpy (/home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/a.out+0x4e4161)
  5. #1 0x52fbba in void __gnu_cxx::new_allocator<std::_List_node<AStarNode> >::construct<AStarNode, AStarNode const&>(AStarNode*, AStarNode const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ext/new_allocator.h:136:23
  6. #2 0x52fb6c in void std::allocator_traits<std::allocator<std::_List_node<AStarNode> > >::construct<AStarNode, AStarNode const&>(std::allocator<std::_List_node<AStarNode> >&, AStarNode*, AStarNode const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/alloc_traits.h:475:8
  7. #3 0x52fa29 in std::_List_node<AStarNode>* std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::_M_create_node<AStarNode const&>(AStarNode const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:575:4
  8. #4 0x52f80d in void std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::_M_insert<AStarNode const&>(std::_List_iterator<AStarNode>, AStarNode const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:1801:18
  9. #5 0x52defd in AStarNode& std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::emplace_back<AStarNode const&>(AStarNode const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:1133:10
  10. #6 0x52c04d in bool AStar::search<std::array<std::array<int, 20ul>, 8ul> >(std::array<std::array<int, 20ul>, 8ul> const&, long, long) /home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/./a.hpp:106:17
  11. #7 0x52b359 in main /home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/main.cpp:15:10
  12. #8 0x7fbbdebdab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
  13. #9 0x41b1a9 in _start (/home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/a.out+0x41b1a9)
  14.  
  15. 0x606000000030 is located 16 bytes inside of 64-byte region [0x606000000020,0x606000000060)
  16. freed by thread T0 here:
  17. #0 0x527898 in operator delete(void*) (/home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/a.out+0x527898)
  18. #1 0x52d59f in __gnu_cxx::new_allocator<std::_List_node<AStarNode> >::deallocate(std::_List_node<AStarNode>*, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ext/new_allocator.h:125:2
  19. #2 0x52d56f in std::allocator_traits<std::allocator<std::_List_node<AStarNode> > >::deallocate(std::allocator<std::_List_node<AStarNode> >&, std::_List_node<AStarNode>*, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/alloc_traits.h:462:13
  20. #3 0x52d4c3 in std::__cxx11::_List_base<AStarNode, std::allocator<AStarNode> >::_M_put_node(std::_List_node<AStarNode>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:387:9
  21. #4 0x52f5e1 in std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::_M_erase(std::_List_iterator<AStarNode>) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:1820:2
  22. #5 0x52dd49 in std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::pop_front() /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:1104:15
  23. #6 0x52c034 in bool AStar::search<std::array<std::array<int, 20ul>, 8ul> >(std::array<std::array<int, 20ul>, 8ul> const&, long, long) /home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/./a.hpp:105:15
  24. #7 0x52b359 in main /home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/main.cpp:15:10
  25. #8 0x7fbbdebdab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
  26.  
  27. previously allocated by thread T0 here:
  28. #0 0x526aa0 in operator new(unsigned long) (/home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/a.out+0x526aa0)
  29. #1 0x52f09b in __gnu_cxx::new_allocator<std::_List_node<AStarNode> >::allocate(unsigned long, void const*) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ext/new_allocator.h:111:27
  30. #2 0x52f03b in std::allocator_traits<std::allocator<std::_List_node<AStarNode> > >::allocate(std::allocator<std::_List_node<AStarNode> >&, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/alloc_traits.h:436:20
  31. #3 0x52eddb in std::__cxx11::_List_base<AStarNode, std::allocator<AStarNode> >::_M_get_node() /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:383:16
  32. #4 0x52ebdf in std::_List_node<AStarNode>* std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::_M_create_node<AStarNode>(AStarNode&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:572:21
  33. #5 0x52e73d in void std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::_M_insert<AStarNode>(std::_List_iterator<AStarNode>, AStarNode&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:1801:18
  34. #6 0x52d73d in AStarNode& std::__cxx11::list<AStarNode, std::allocator<AStarNode> >::emplace_back<AStarNode>(AStarNode&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stl_list.h:1133:10
  35. #7 0x52bfca in bool AStar::search<std::array<std::array<int, 20ul>, 8ul> >(std::array<std::array<int, 20ul>, 8ul> const&, long, long) /home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/./a.hpp:102:14
  36. #8 0x52b359 in main /home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/main.cpp:15:10
  37. #9 0x7fbbdebdab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
  38.  
  39. SUMMARY: AddressSanitizer: heap-use-after-free (/home/yumetodo/wanotaitei_twitter_20190428/wanotaitei_twitter_20190428/a.out+0x4e4161) in __asan_memcpy
  40. Shadow bytes around the buggy address:
  41. 0x0c0c7fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  42. 0x0c0c7fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  43. 0x0c0c7fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  44. 0x0c0c7fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  45. 0x0c0c7fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  46. =>0x0c0c7fff8000: fa fa fa fa fd fd[fd]fd fd fd fd fd fa fa fa fa
  47. 0x0c0c7fff8010: 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa
  48. 0x0c0c7fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  49. 0x0c0c7fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  50. 0x0c0c7fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  51. 0x0c0c7fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  52. Shadow byte legend (one shadow byte represents 8 application bytes):
  53. Addressable: 00
  54. Partially addressable: 01 02 03 04 05 06 07
  55. Heap left redzone: fa
  56. Freed heap region: fd
  57. Stack left redzone: f1
  58. Stack mid redzone: f2
  59. Stack right redzone: f3
  60. Stack after return: f5
  61. Stack use after scope: f8
  62. Global redzone: f9
  63. Global init order: f6
  64. Poisoned by user: f7
  65. Container overflow: fc
  66. Array cookie: ac
  67. Intra object redzone: bb
  68. ASan internal: fe
  69. Left alloca redzone: ca
  70. Right alloca redzone: cb
  71. Shadow gap: cc
  72. ==11984==ABORTING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement