Advertisement
Baoulettes

AsanCrashOof

May 3rd, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.53 KB | None | 0 0
  1. =================================================================
  2. ==86220==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xecfb9f40 at pc 0x56f763b0 bp 0xfffc60a8 sp 0xfffc6098
  3. READ of size 1 at 0xecfb9f40 thread T0
  4. #0 0x56f763af in import_texture_i4 libultraship/Lib/Fast3D/gfx_pc.cpp:697
  5. #1 0x56f78313 in import_texture libultraship/Lib/Fast3D/gfx_pc.cpp:870
  6. #2 0x56f7befe in gfx_sp_tri1 libultraship/Lib/Fast3D/gfx_pc.cpp:1252
  7. #3 0x56f81c9c in gfx_draw_rectangle libultraship/Lib/Fast3D/gfx_pc.cpp:1900
  8. #4 0x56f82280 in gfx_dp_texture_rectangle libultraship/Lib/Fast3D/gfx_pc.cpp:1968
  9. #5 0x56f85a80 in gfx_run_dl libultraship/Lib/Fast3D/gfx_pc.cpp:2575
  10. #6 0x56f8738d in gfx_run libultraship/Lib/Fast3D/gfx_pc.cpp:2757
  11. #7 0x572c1214 in Ship::Window::RunCommands(Gfx*) libultraship/Window.cpp:287
  12. #8 0x56dcd2b0 in Graph_ProcessGfxCommands soh/OTRGlobals.cpp:106
  13. #9 0x56978bea in RunFrame src/code/graph.c:514
  14. #10 0x572ed11a in gfx_sdl_main_loop libultraship/Lib/Fast3D/gfx_sdl2.cpp:199
  15. #11 0x572c166b in Ship::Window::MainLoop(void (*)()) libultraship/Window.cpp:323
  16. #12 0x56dcd142 in Graph_ProcessFrame soh/OTRGlobals.cpp:101
  17. #13 0x56978cd8 in Graph_ThreadEntry src/code/graph.c:538
  18. #14 0x5697aba5 in Main src/code/main.c:117
  19. #15 0x5697a7d5 in main src/code/main.c:46
  20. #16 0xf7099518 (/lib/i386-linux-gnu/libc.so.6+0x21518)
  21. #17 0xf70995f2 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x215f2)
  22. #18 0x5693c4e4 in _start (/home/baoulettes/.var/Shipwright_asan/soh/soh.elf+0x3c64e4)
  23.  
  24. 0xecfb9f40 is located 0 bytes to the right of 64-byte region [0xecfb9f00,0xecfb9f40)
  25. allocated by thread T3 here:
  26. #0 0xf7a87473 in operator new[](unsigned int) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:102
  27. #1 0x572b81e6 in Ship::TextureV0::ParseFileBinary(BinaryReader*, Ship::Resource*) libultraship/Texture.cpp:18
  28. #2 0x5726af5b in Ship::TextureFactory::ReadTexture(BinaryReader*) libultraship/Factories/TextureFactory.cpp:16
  29. #3 0x57245611 in Ship::ResourceLoader::LoadResource(std::shared_ptr<Ship::File>) libultraship/Factories/ResourceLoader.cpp:43
  30. #4 0x57202644 in Ship::ResourceMgr::LoadResourceThread() libultraship/ResourceMgr.cpp:135
  31. #5 0x57226b3e in void std::__invoke_impl<void, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::__invoke_memfun_deref, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/invoke.h:73
  32. #6 0x5722674d in std::__invoke_result<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>::type std::__invoke<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/invoke.h:95
  33. #7 0x5722649c in void std::thread::_Invoker<std::tuple<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*> >::_M_invoke<0u, 1u>(std::_Index_tuple<0u, 1u>) /usr/include/c++/10/thread:264
  34. #8 0x572262a8 in std::thread::_Invoker<std::tuple<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*> >::operator()() /usr/include/c++/10/thread:271
  35. #9 0x57224fea in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*> > >::_M_run() /usr/include/c++/10/thread:215
  36. #10 0xf749b080 (/lib/i386-linux-gnu/libstdc++.so.6+0xbf080)
  37. #11 0xf7a24236 in asan_thread_start ../../../../src/libsanitizer/asan/asan_interceptors.cpp:207
  38. #12 0xf719b64b (/lib/i386-linux-gnu/libc.so.6+0x12364b)
  39.  
  40. Thread T3 created by T0 here:
  41. #0 0xf7a242ca in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cpp:216
  42. #1 0xf749b2ab in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/i386-linux-gnu/libstdc++.so.6+0xbf2ab)
  43. #2 0x5722257c in decltype (::new ((void*)(0)) std::thread((declval<void (Ship::ResourceMgr::*)()>)(), (declval<Ship::ResourceMgr*>)())) std::construct_at<std::thread, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::thread*, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/stl_construct.h:97
  44. #3 0x572225f1 in void std::allocator_traits<std::allocator<std::thread> >::construct<std::thread, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::allocator<std::thread>&, std::thread*, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/alloc_traits.h:514
  45. #4 0x572200ca in std::_Sp_counted_ptr_inplace<std::thread, std::allocator<std::thread>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::allocator<std::thread>, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr_base.h:551
  46. #5 0x5721beb1 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<std::thread, std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::thread*&, std::_Sp_alloc_shared_tag<std::allocator<std::thread> >, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr_base.h:682
  47. #6 0x57218428 in std::__shared_ptr<std::thread, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::_Sp_alloc_shared_tag<std::allocator<std::thread> >, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr_base.h:1371
  48. #7 0x57212aa2 in std::shared_ptr<std::thread>::shared_ptr<std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::_Sp_alloc_shared_tag<std::allocator<std::thread> >, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr.h:408
  49. #8 0x5720b38a in std::shared_ptr<std::thread> std::allocate_shared<std::thread, std::allocator<std::thread>, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(std::allocator<std::thread> const&, void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr.h:860
  50. #9 0x5720742a in std::shared_ptr<std::thread> std::make_shared<std::thread, void (Ship::ResourceMgr::*)(), Ship::ResourceMgr*>(void (Ship::ResourceMgr::*&&)(), Ship::ResourceMgr*&&) /usr/include/c++/10/bits/shared_ptr.h:876
  51. #10 0x57200f99 in Ship::ResourceMgr::Start() libultraship/ResourceMgr.cpp:35
  52. #11 0x572007b6 in Ship::ResourceMgr::ResourceMgr(std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) libultraship/ResourceMgr.cpp:18
  53. #12 0x571f5802 in decltype (::new ((void*)(0)) Ship::ResourceMgr((declval<std::shared_ptr<Ship::GlobalCtx2> >)(), (declval<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>)(), (declval<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>)())) std::construct_at<Ship::ResourceMgr, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(Ship::ResourceMgr*, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/stl_construct.h:97
  54. #13 0x571f5a1c in void std::allocator_traits<std::allocator<Ship::ResourceMgr> >::construct<Ship::ResourceMgr, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<Ship::ResourceMgr>&, Ship::ResourceMgr*, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/alloc_traits.h:514
  55. #14 0x571f2d6f in std::_Sp_counted_ptr_inplace<Ship::ResourceMgr, std::allocator<Ship::ResourceMgr>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:551
  56. #15 0x571efd35 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<Ship::ResourceMgr, std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(Ship::ResourceMgr*&, std::_Sp_alloc_shared_tag<std::allocator<Ship::ResourceMgr> >, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:682
  57. #16 0x571ec8da in std::__shared_ptr<Ship::ResourceMgr, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::_Sp_alloc_shared_tag<std::allocator<Ship::ResourceMgr> >, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr_base.h:1371
  58. #17 0x571e9ad4 in std::shared_ptr<Ship::ResourceMgr>::shared_ptr<std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::_Sp_alloc_shared_tag<std::allocator<Ship::ResourceMgr> >, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:408
  59. #18 0x571e622e in std::shared_ptr<Ship::ResourceMgr> std::allocate_shared<Ship::ResourceMgr, std::allocator<Ship::ResourceMgr>, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::allocator<Ship::ResourceMgr> const&, std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:860
  60. #19 0x571e0994 in std::shared_ptr<Ship::ResourceMgr> std::make_shared<Ship::ResourceMgr, std::shared_ptr<Ship::GlobalCtx2>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::shared_ptr<Ship::GlobalCtx2>&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) /usr/include/c++/10/bits/shared_ptr.h:876
  61. #20 0x571cf4e6 in Ship::GlobalCtx2::InitWindow() libultraship/GlobalCtx2.cpp:52
  62. #21 0x571ce70d in Ship::GlobalCtx2::CreateInstance(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) libultraship/GlobalCtx2.cpp:23
  63. #22 0x56dcc5b6 in OTRGlobals::OTRGlobals() soh/OTRGlobals.cpp:35
  64. #23 0x56dcc8cf in InitOTR soh/OTRGlobals.cpp:49
  65. #24 0x5697a7b0 in main src/code/main.c:42
  66. #25 0xf7099518 (/lib/i386-linux-gnu/libc.so.6+0x21518)
  67.  
  68. SUMMARY: AddressSanitizer: heap-buffer-overflow libultraship/Lib/Fast3D/gfx_pc.cpp:697 in import_texture_i4
  69. Shadow bytes around the buggy address:
  70. 0x3d9f7390: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  71. 0x3d9f73a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  72. 0x3d9f73b0: 00 00 00 00 00 00 04 fa fa fa fa fa fa fa fa fa
  73. 0x3d9f73c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  74. 0x3d9f73d0: fa fa fa fa 00 00 00 00 00 00 02 fa fa fa fa fa
  75. =>0x3d9f73e0: 00 00 00 00 00 00 00 00[fa]fa fa fa 00 00 00 00
  76. 0x3d9f73f0: 00 00 02 fa fa fa fa fa 00 00 00 00 00 00 00 00
  77. 0x3d9f7400: fa fa fa fa 00 00 00 00 00 00 00 04 fa fa fa fa
  78. 0x3d9f7410: fd fd fd fd fd fd fd fa fa fa fa fa 00 00 00 00
  79. 0x3d9f7420: 00 00 04 fa fa fa fa fa 00 00 00 00 00 00 04 fa
  80. 0x3d9f7430: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  81. Shadow byte legend (one shadow byte represents 8 application bytes):
  82. Addressable: 00
  83. Partially addressable: 01 02 03 04 05 06 07
  84. Heap left redzone: fa
  85. Freed heap region: fd
  86. Stack left redzone: f1
  87. Stack mid redzone: f2
  88. Stack right redzone: f3
  89. Stack after return: f5
  90. Stack use after scope: f8
  91. Global redzone: f9
  92. Global init order: f6
  93. Poisoned by user: f7
  94. Container overflow: fc
  95. Array cookie: ac
  96. Intra object redzone: bb
  97. ASan internal: fe
  98. Left alloca redzone: ca
  99. Right alloca redzone: cb
  100. Shadow gap: cc
  101. ==86220==ABORTING
  102.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement