Advertisement
shadowm

Untitled

May 26th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 303.62 KB | None | 0 0
  1. ==================
  2. WARNING: ThreadSanitizer: data race (pid=29308)
  3. Write of size 1 at 0x7f575b47bc20 by main thread:
  4. #0 call src/events.cpp:57 (wesnoth-debug+0x66b1e10)
  5. #1 events::pump() src/events.cpp:430 (wesnoth-debug+0x66b7757)
  6. #2 gui2::window::show(bool, unsigned int) src/gui/widgets/window.cpp:550 (wesnoth-debug+0x3c46b24)
  7. #3 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:89 (wesnoth-debug+0x42a3237)
  8. #4 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  9. #5 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  10. #6 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  11. #7 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  12. #8 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  13. #9 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  14. #10 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  15. #11 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  16. #12 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  17.  
  18. Previous read of size 1 at 0x7f575b47bc20 by thread T7:
  19. #0 events::call_in_main_thread(std::function<void ()> const&) src/events.cpp:761 (wesnoth-debug+0x66bb837)
  20. #1 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  21. #2 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  22. #3 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  23. #4 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  24. #5 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  25. #6 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  26. #7 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  27. #8 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  28. #9 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  29. #10 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  30. #11 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  31. #12 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  32. #13 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  33. #14 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  34. #15 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  35. #16 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  36. #17 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  37. #18 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  38. #19 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  39. #20 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  40. #21 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  41. #22 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  42. #23 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  43.  
  44. As if synchronized via sleep:
  45. #0 nanosleep <null> (libtsan.so.0+0x49490)
  46. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  47. #2 operator() src/scripting/lua_gui2.cpp:257 (wesnoth-debug+0x4a90616)
  48. #3 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x4a9bcb6)
  49. #4 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  50. #5 call src/events.cpp:56 (wesnoth-debug+0x66b1ddf)
  51. #6 events::pump() src/events.cpp:430 (wesnoth-debug+0x66b7757)
  52. #7 gui2::window::show(bool, unsigned int) src/gui/widgets/window.cpp:550 (wesnoth-debug+0x3c46b24)
  53. #8 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:89 (wesnoth-debug+0x42a3237)
  54. #9 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  55. #10 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  56. #11 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  57. #12 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  58. #13 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  59. #14 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  60. #15 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  61. #16 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  62. #17 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  63.  
  64. Location is stack of thread T7.
  65.  
  66. Thread T7 (tid=29702, running) created by main thread at:
  67. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  68. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  69. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  70. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  71. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  72. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  73. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  74. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  75. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  76. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  77. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  78. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  79. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  80. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  81.  
  82. SUMMARY: ThreadSanitizer: data race src/events.cpp:57 in call
  83. ==================
  84. ==================
  85. WARNING: ThreadSanitizer: data race (pid=29308)
  86. Read of size 8 at 0x7b6c0000ee18 by thread T7:
  87. #0 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:437 (wesnoth-debug+0x61b61be)
  88. #1 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  89. #2 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  90. #3 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  91. #4 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  92. #5 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  93. #6 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  94. #7 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  95. #8 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  96. #9 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  97. #10 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  98. #11 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  99. #12 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  100. #13 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  101. #14 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  102. #15 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  103. #16 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  104. #17 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  105. #18 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  106. #19 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  107. #20 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  108. #21 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  109.  
  110. Previous write of size 8 at 0x7b6c0000ee18 by main thread:
  111. [failed to restore the stack]
  112.  
  113. As if synchronized via sleep:
  114. #0 nanosleep <null> (libtsan.so.0+0x49490)
  115. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  116. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  117. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  118. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  119. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  120. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  121. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  122. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  123. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  124. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  125. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  126. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  127. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  128. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  129. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  130. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  131. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  132. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  133. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  134. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  135. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  136. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  137. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  138. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  139.  
  140. Location is heap block of size 1552 at 0x7b6c0000ee00 allocated by thread T7:
  141. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  142. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  143. #2 lua_newstate(void* (*)(void*, void*, unsigned long, unsigned long), void*) src/lua/lstate.cpp:299 (wesnoth-debug+0x61df7a2)
  144. #3 luaL_newstate() src/lua/lauxlib.cpp:1027 (wesnoth-debug+0x61a80b0)
  145. #4 lua_kernel_base::lua_kernel_base() src/scripting/lua_kernel_base.cpp:372 (wesnoth-debug+0x4ab0773)
  146. #5 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4020 (wesnoth-debug+0x4a2863c)
  147. #6 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  148. #7 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  149. #8 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  150. #9 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  151. #10 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  152. #11 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  153. #12 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  154.  
  155. Thread T7 (tid=29702, running) created by main thread at:
  156. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  157. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  158. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  159. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  160. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  161. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  162. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  163. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  164. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  165. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  166. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  167. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  168. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  169. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  170.  
  171. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:437 in luaD_precall(lua_State*, lua_TValue*, int)
  172. ==================
  173. ==================
  174. WARNING: ThreadSanitizer: data race (pid=29308)
  175. Write of size 8 at 0x7b6c0000ee28 by thread T7:
  176. #0 luaD_poscall(lua_State*, CallInfo*, lua_TValue*, int) src/lua/ldo.cpp:388 (wesnoth-debug+0x61b5b18)
  177. #1 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:437 (wesnoth-debug+0x61b61ef)
  178. #2 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  179. #3 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  180. #4 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  181. #5 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  182. #6 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  183. #7 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  184. #8 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  185. #9 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  186. #10 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  187. #11 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  188. #12 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  189. #13 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  190. #14 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  191. #15 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  192. #16 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  193. #17 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  194. #18 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  195. #19 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  196. #20 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  197. #21 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  198. #22 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  199.  
  200. Previous write of size 8 at 0x7b6c0000ee28 by main thread:
  201. [failed to restore the stack]
  202.  
  203. As if synchronized via sleep:
  204. #0 nanosleep <null> (libtsan.so.0+0x49490)
  205. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  206. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  207. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  208. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  209. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  210. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  211. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  212. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  213. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  214. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  215. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  216. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  217. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  218. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  219. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  220. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  221. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  222. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  223. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  224. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  225. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  226. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  227. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  228. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  229.  
  230. Location is heap block of size 1552 at 0x7b6c0000ee00 allocated by thread T7:
  231. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  232. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  233. #2 lua_newstate(void* (*)(void*, void*, unsigned long, unsigned long), void*) src/lua/lstate.cpp:299 (wesnoth-debug+0x61df7a2)
  234. #3 luaL_newstate() src/lua/lauxlib.cpp:1027 (wesnoth-debug+0x61a80b0)
  235. #4 lua_kernel_base::lua_kernel_base() src/scripting/lua_kernel_base.cpp:372 (wesnoth-debug+0x4ab0773)
  236. #5 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4020 (wesnoth-debug+0x4a2863c)
  237. #6 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  238. #7 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  239. #8 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  240. #9 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  241. #10 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  242. #11 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  243. #12 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  244.  
  245. Thread T7 (tid=29702, running) created by main thread at:
  246. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  247. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  248. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  249. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  250. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  251. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  252. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  253. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  254. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  255. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  256. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  257. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  258. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  259. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  260.  
  261. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:388 in luaD_poscall(lua_State*, CallInfo*, lua_TValue*, int)
  262. ==================
  263. ==================
  264. WARNING: ThreadSanitizer: data race (pid=29308)
  265. Read of size 8 at 0x7b7400058df0 by thread T7:
  266. #0 moveresults src/lua/ldo.cpp:341 (wesnoth-debug+0x61b53bb)
  267. #1 luaD_poscall(lua_State*, CallInfo*, lua_TValue*, int) src/lua/ldo.cpp:390 (wesnoth-debug+0x61b5b3d)
  268. #2 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:437 (wesnoth-debug+0x61b61ef)
  269. #3 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  270. #4 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  271. #5 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  272. #6 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  273. #7 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  274. #8 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  275. #9 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  276. #10 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  277. #11 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  278. #12 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  279. #13 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  280. #14 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  281. #15 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  282. #16 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  283. #17 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  284. #18 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  285. #19 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  286. #20 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  287. #21 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  288. #22 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  289. #23 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  290.  
  291. Previous write of size 8 at 0x7b7400058df0 by main thread:
  292. [failed to restore the stack]
  293.  
  294. As if synchronized via sleep:
  295. #0 nanosleep <null> (libtsan.so.0+0x49490)
  296. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  297. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  298. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  299. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  300. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  301. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  302. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  303. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  304. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  305. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  306. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  307. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  308. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  309. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  310. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  311. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  312. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  313. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  314. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  315. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  316. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  317. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  318. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  319. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  320.  
  321. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  322. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  323. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  324. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  325. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  326. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  327. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  328. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  329. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  330. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  331. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  332. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  333. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  334. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  335. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  336. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  337. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  338. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  339. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  340. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  341. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  342. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  343. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  344. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  345. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  346. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  347. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  348. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  349.  
  350. Thread T7 (tid=29702, running) created by main thread at:
  351. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  352. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  353. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  354. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  355. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  356. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  357. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  358. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  359. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  360. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  361. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  362. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  363. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  364. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  365.  
  366. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:341 in moveresults
  367. ==================
  368. ==================
  369. WARNING: ThreadSanitizer: data race (pid=29308)
  370. Write of size 8 at 0x7b7400058dc0 by thread T7:
  371. #0 luaV_execute(lua_State*) src/lua/lvm.cpp:839 (wesnoth-debug+0x61fe2db)
  372. #1 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  373. #2 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  374. #3 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  375. #4 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  376. #5 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  377. #6 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  378. #7 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  379. #8 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  380. #9 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  381. #10 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  382. #11 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  383. #12 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  384. #13 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  385. #14 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  386. #15 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  387. #16 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  388. #17 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  389. #18 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  390. #19 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  391. #20 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  392.  
  393. Previous read of size 8 at 0x7b7400058dc0 by main thread:
  394. [failed to restore the stack]
  395.  
  396. As if synchronized via sleep:
  397. #0 nanosleep <null> (libtsan.so.0+0x49490)
  398. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  399. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  400. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  401. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  402. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  403. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  404. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  405. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  406. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  407. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  408. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  409. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  410. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  411. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  412. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  413. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  414. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  415. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  416. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  417. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  418. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  419. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  420. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  421. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  422.  
  423. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  424. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  425. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  426. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  427. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  428. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  429. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  430. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  431. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  432. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  433. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  434. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  435. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  436. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  437. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  438. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  439. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  440. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  441. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  442. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  443. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  444. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  445. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  446. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  447. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  448. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  449. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  450. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  451.  
  452. Thread T7 (tid=29702, running) created by main thread at:
  453. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  454. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  455. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  456. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  457. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  458. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  459. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  460. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  461. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  462. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  463. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  464. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  465. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  466. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  467.  
  468. SUMMARY: ThreadSanitizer: data race src/lua/lvm.cpp:839 in luaV_execute(lua_State*)
  469. ==================
  470. ==================
  471. WARNING: ThreadSanitizer: data race (pid=29308)
  472. Write of size 8 at 0x7b7400058f20 by thread T7:
  473. #0 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:106 (wesnoth-debug+0x61f3215)
  474. #1 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  475. #2 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  476. #3 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  477. #4 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  478. #5 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  479. #6 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  480. #7 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  481. #8 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  482. #9 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  483. #10 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  484. #11 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  485. #12 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  486. #13 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  487. #14 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  488. #15 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  489. #16 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  490. #17 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  491. #18 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  492. #19 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  493. #20 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  494. #21 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  495. #22 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  496.  
  497. Previous write of size 8 at 0x7b7400058f20 by main thread:
  498. [failed to restore the stack]
  499.  
  500. As if synchronized via sleep:
  501. #0 nanosleep <null> (libtsan.so.0+0x49490)
  502. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  503. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  504. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  505. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  506. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  507. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  508. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  509. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  510. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  511. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  512. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  513. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  514. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  515. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  516. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  517. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  518. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  519. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  520. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  521. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  522. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  523. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  524. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  525. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  526.  
  527. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  528. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  529. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  530. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  531. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  532. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  533. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  534. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  535. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  536. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  537. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  538. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  539. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  540. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  541. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  542. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  543. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  544. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  545. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  546. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  547. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  548. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  549. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  550. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  551. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  552. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  553. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  554. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  555.  
  556. Thread T7 (tid=29702, running) created by main thread at:
  557. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  558. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  559. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  560. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  561. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  562. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  563. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  564. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  565. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  566. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  567. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  568. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  569. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  570. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  571.  
  572. SUMMARY: ThreadSanitizer: data race src/lua/ltm.cpp:106 in luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int)
  573. ==================
  574. ==================
  575. WARNING: ThreadSanitizer: data race (pid=29308)
  576. Write of size 8 at 0x7b7400058f30 by thread T7:
  577. #0 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:107 (wesnoth-debug+0x61f32b4)
  578. #1 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  579. #2 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  580. #3 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  581. #4 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  582. #5 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  583. #6 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  584. #7 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  585. #8 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  586. #9 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  587. #10 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  588. #11 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  589. #12 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  590. #13 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  591. #14 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  592. #15 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  593. #16 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  594. #17 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  595. #18 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  596. #19 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  597. #20 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  598. #21 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  599. #22 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  600.  
  601. Previous write of size 8 at 0x7b7400058f30 by main thread:
  602. [failed to restore the stack]
  603.  
  604. As if synchronized via sleep:
  605. #0 nanosleep <null> (libtsan.so.0+0x49490)
  606. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  607. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  608. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  609. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  610. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  611. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  612. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  613. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  614. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  615. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  616. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  617. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  618. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  619. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  620. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  621. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  622. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  623. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  624. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  625. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  626. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  627. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  628. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  629. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  630.  
  631. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  632. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  633. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  634. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  635. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  636. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  637. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  638. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  639. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  640. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  641. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  642. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  643. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  644. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  645. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  646. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  647. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  648. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  649. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  650. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  651. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  652. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  653. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  654. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  655. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  656. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  657. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  658. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  659.  
  660. Thread T7 (tid=29702, running) created by main thread at:
  661. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  662. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  663. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  664. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  665. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  666. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  667. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  668. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  669. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  670. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  671. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  672. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  673. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  674. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  675.  
  676. SUMMARY: ThreadSanitizer: data race src/lua/ltm.cpp:107 in luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int)
  677. ==================
  678. ==================
  679. WARNING: ThreadSanitizer: data race (pid=29308)
  680. Write of size 8 at 0x7b7400058f40 by thread T7:
  681. #0 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:108 (wesnoth-debug+0x61f3353)
  682. #1 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  683. #2 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  684. #3 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  685. #4 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  686. #5 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  687. #6 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  688. #7 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  689. #8 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  690. #9 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  691. #10 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  692. #11 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  693. #12 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  694. #13 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  695. #14 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  696. #15 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  697. #16 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  698. #17 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  699. #18 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  700. #19 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  701. #20 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  702. #21 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  703. #22 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  704.  
  705. Previous write of size 8 at 0x7b7400058f40 by main thread:
  706. [failed to restore the stack]
  707.  
  708. As if synchronized via sleep:
  709. #0 nanosleep <null> (libtsan.so.0+0x49490)
  710. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  711. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  712. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  713. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  714. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  715. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  716. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  717. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  718. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  719. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  720. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  721. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  722. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  723. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  724. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  725. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  726. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  727. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  728. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  729. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  730. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  731. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  732. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  733. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  734.  
  735. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  736. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  737. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  738. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  739. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  740. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  741. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  742. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  743. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  744. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  745. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  746. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  747. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  748. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  749. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  750. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  751. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  752. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  753. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  754. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  755. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  756. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  757. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  758. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  759. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  760. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  761. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  762. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  763.  
  764. Thread T7 (tid=29702, running) created by main thread at:
  765. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  766. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  767. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  768. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  769. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  770. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  771. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  772. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  773. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  774. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  775. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  776. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  777. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  778. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  779.  
  780. SUMMARY: ThreadSanitizer: data race src/lua/ltm.cpp:108 in luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int)
  781. ==================
  782. ==================
  783. WARNING: ThreadSanitizer: data race (pid=29308)
  784. Read of size 2 at 0x7b6c0000eece by thread T7:
  785. #0 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:496 (wesnoth-debug+0x61b6e39)
  786. #1 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:114 (wesnoth-debug+0x61f3599)
  787. #2 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  788. #3 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  789. #4 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  790. #5 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  791. #6 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  792. #7 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  793. #8 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  794. #9 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  795. #10 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  796. #11 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  797. #12 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  798. #13 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  799. #14 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  800. #15 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  801. #16 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  802. #17 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  803. #18 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  804. #19 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  805. #20 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  806. #21 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  807. #22 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  808. #23 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  809.  
  810. Previous write of size 2 at 0x7b6c0000eece by main thread:
  811. [failed to restore the stack]
  812.  
  813. As if synchronized via sleep:
  814. #0 nanosleep <null> (libtsan.so.0+0x49490)
  815. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  816. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  817. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  818. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  819. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  820. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  821. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  822. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  823. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  824. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  825. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  826. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  827. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  828. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  829. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  830. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  831. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  832. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  833. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  834. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  835. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  836. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  837. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  838. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  839.  
  840. Location is heap block of size 1552 at 0x7b6c0000ee00 allocated by thread T7:
  841. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  842. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  843. #2 lua_newstate(void* (*)(void*, void*, unsigned long, unsigned long), void*) src/lua/lstate.cpp:299 (wesnoth-debug+0x61df7a2)
  844. #3 luaL_newstate() src/lua/lauxlib.cpp:1027 (wesnoth-debug+0x61a80b0)
  845. #4 lua_kernel_base::lua_kernel_base() src/scripting/lua_kernel_base.cpp:372 (wesnoth-debug+0x4ab0773)
  846. #5 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4020 (wesnoth-debug+0x4a2863c)
  847. #6 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  848. #7 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  849. #8 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  850. #9 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  851. #10 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  852. #11 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  853. #12 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  854.  
  855. Thread T7 (tid=29702, running) created by main thread at:
  856. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  857. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  858. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  859. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  860. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  861. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  862. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  863. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  864. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  865. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  866. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  867. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  868. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  869. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  870.  
  871. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:496 in luaD_call(lua_State*, lua_TValue*, int)
  872. ==================
  873. ==================
  874. WARNING: ThreadSanitizer: data race (pid=29308)
  875. Write of size 8 at 0x7b14001561c0 by thread T7:
  876. #0 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:427 (wesnoth-debug+0x61b6050)
  877. #1 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:498 (wesnoth-debug+0x61b6ef8)
  878. #2 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:114 (wesnoth-debug+0x61f3599)
  879. #3 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  880. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  881. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  882. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  883. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  884. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  885. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  886. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  887. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  888. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  889. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  890. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  891. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  892. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  893. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  894. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  895. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  896. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  897. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  898. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  899. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  900. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  901.  
  902. Previous read of size 8 at 0x7b14001561c0 by main thread:
  903. [failed to restore the stack]
  904.  
  905. As if synchronized via sleep:
  906. #0 nanosleep <null> (libtsan.so.0+0x49490)
  907. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  908. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  909. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  910. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  911. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  912. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  913. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  914. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  915. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  916. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  917. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  918. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  919. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  920. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  921. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  922. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  923. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  924. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  925. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  926. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  927. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  928. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  929. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  930. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  931.  
  932. Location is heap block of size 72 at 0x7b14001561c0 allocated by thread T7:
  933. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  934. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  935. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  936. #3 luaE_extendCI(lua_State*) src/lua/lstate.cpp:109 (wesnoth-debug+0x61dd72b)
  937. #4 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:425 (wesnoth-debug+0x61b5f5c)
  938. #5 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  939. #6 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  940. #7 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  941. #8 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  942. #9 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  943. #10 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  944. #11 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  945. #12 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  946. #13 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  947. #14 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  948. #15 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  949. #16 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  950. #17 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  951. #18 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  952. #19 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  953. #20 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  954. #21 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  955. #22 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  956. #23 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  957. #24 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  958. #25 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  959. #26 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  960. #27 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  961. #28 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  962. #29 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  963. #30 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  964. #31 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  965. #32 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  966.  
  967. Thread T7 (tid=29702, running) created by main thread at:
  968. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  969. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  970. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  971. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  972. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  973. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  974. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  975. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  976. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  977. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  978. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  979. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  980. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  981. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  982.  
  983. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:427 in luaD_precall(lua_State*, lua_TValue*, int)
  984. ==================
  985. ==================
  986. WARNING: ThreadSanitizer: data race (pid=29308)
  987. Write of size 8 at 0x7b14001561c8 by thread T7:
  988. #0 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:428 (wesnoth-debug+0x61b60d4)
  989. #1 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:498 (wesnoth-debug+0x61b6ef8)
  990. #2 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:114 (wesnoth-debug+0x61f3599)
  991. #3 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  992. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  993. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  994. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  995. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  996. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  997. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  998. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  999. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1000. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1001. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1002. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1003. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1004. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1005. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1006. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1007. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1008. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1009. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1010. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1011. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1012. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1013.  
  1014. Previous write of size 8 at 0x7b14001561c8 by main thread:
  1015. [failed to restore the stack]
  1016.  
  1017. As if synchronized via sleep:
  1018. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1019. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1020. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1021. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1022. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1023. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1024. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1025. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1026. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1027. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1028. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1029. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1030. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1031. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1032. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1033. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1034. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1035. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1036. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1037. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1038. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1039. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1040. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1041. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1042. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1043.  
  1044. Location is heap block of size 72 at 0x7b14001561c0 allocated by thread T7:
  1045. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1046. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1047. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  1048. #3 luaE_extendCI(lua_State*) src/lua/lstate.cpp:109 (wesnoth-debug+0x61dd72b)
  1049. #4 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:425 (wesnoth-debug+0x61b5f5c)
  1050. #5 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1051. #6 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1052. #7 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1053. #8 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  1054. #9 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  1055. #10 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  1056. #11 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1057. #12 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1058. #13 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1059. #14 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1060. #15 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1061. #16 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1062. #17 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1063. #18 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1064. #19 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1065. #20 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1066. #21 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1067. #22 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1068. #23 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1069. #24 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1070. #25 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1071. #26 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1072. #27 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1073. #28 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1074. #29 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1075. #30 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1076. #31 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1077. #32 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1078.  
  1079. Thread T7 (tid=29702, running) created by main thread at:
  1080. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1081. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1082. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1083. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1084. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1085. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1086. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1087. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1088. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1089. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1090. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1091. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1092. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1093. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1094.  
  1095. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:428 in luaD_precall(lua_State*, lua_TValue*, int)
  1096. ==================
  1097. ==================
  1098. WARNING: ThreadSanitizer: data race (pid=29308)
  1099. Write of size 4 at 0x7b7400058f50 by thread T7:
  1100. #0 lua_pushboolean(lua_State*, int) src/lua/lapi.cpp:558 (wesnoth-debug+0x619abe1)
  1101. #1 lua_kernel_base::impl_game_config_get(lua_State*) src/scripting/lua_kernel_base.cpp:838 (wesnoth-debug+0x4ab523a)
  1102. #2 game_lua_kernel::impl_game_config_get(lua_State*) src/scripting/game_lua_kernel.cpp:1311 (wesnoth-debug+0x49f6b47)
  1103. #3 int dispatch<&lua_kernel_base::impl_game_config_get>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab8583)
  1104. #4 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1105. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:498 (wesnoth-debug+0x61b6ef8)
  1106. #6 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:114 (wesnoth-debug+0x61f3599)
  1107. #7 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  1108. #8 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  1109. #9 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1110. #10 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1111. #11 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1112. #12 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1113. #13 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1114. #14 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1115. #15 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1116. #16 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1117. #17 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1118. #18 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1119. #19 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1120. #20 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1121. #21 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1122. #22 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1123. #23 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1124. #24 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1125. #25 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1126. #26 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1127. #27 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1128. #28 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1129.  
  1130. Previous write of size 8 at 0x7b7400058f50 by main thread:
  1131. [failed to restore the stack]
  1132.  
  1133. As if synchronized via sleep:
  1134. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1135. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1136. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1137. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1138. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1139. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1140. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1141. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1142. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1143. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1144. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1145. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1146. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1147. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1148. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1149. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1150. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1151. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1152. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1153. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1154. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1155. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1156. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1157. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1158. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1159.  
  1160. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  1161. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1162. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1163. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  1164. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  1165. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  1166. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  1167. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1168. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1169. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1170. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1171. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1172. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1173. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1174. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1175. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1176. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1177. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1178. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1179. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1180. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1181. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1182. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1183. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1184. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1185. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1186. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1187. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1188.  
  1189. Thread T7 (tid=29702, running) created by main thread at:
  1190. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1191. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1192. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1193. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1194. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1195. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1196. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1197. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1198. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1199. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1200. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1201. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1202. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1203. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1204.  
  1205. SUMMARY: ThreadSanitizer: data race src/lua/lapi.cpp:558 in lua_pushboolean(lua_State*, int)
  1206. ==================
  1207. ==================
  1208. WARNING: ThreadSanitizer: data race (pid=29308)
  1209. Write of size 4 at 0x7b7400058f58 by thread T7:
  1210. #0 lua_pushboolean(lua_State*, int) src/lua/lapi.cpp:558 (wesnoth-debug+0x619ac1c)
  1211. #1 lua_kernel_base::impl_game_config_get(lua_State*) src/scripting/lua_kernel_base.cpp:838 (wesnoth-debug+0x4ab523a)
  1212. #2 game_lua_kernel::impl_game_config_get(lua_State*) src/scripting/game_lua_kernel.cpp:1311 (wesnoth-debug+0x49f6b47)
  1213. #3 int dispatch<&lua_kernel_base::impl_game_config_get>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab8583)
  1214. #4 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1215. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:498 (wesnoth-debug+0x61b6ef8)
  1216. #6 luaT_callTM(lua_State*, lua_TValue const*, lua_TValue const*, lua_TValue const*, lua_TValue*, int) src/lua/ltm.cpp:114 (wesnoth-debug+0x61f3599)
  1217. #7 luaV_finishget(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:182 (wesnoth-debug+0x61f7f35)
  1218. #8 luaV_execute(lua_State*) src/lua/lvm.cpp:845 (wesnoth-debug+0x61fe5c3)
  1219. #9 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1220. #10 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1221. #11 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1222. #12 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1223. #13 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1224. #14 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1225. #15 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1226. #16 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1227. #17 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1228. #18 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1229. #19 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1230. #20 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1231. #21 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1232. #22 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1233. #23 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1234. #24 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1235. #25 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1236. #26 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1237. #27 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1238. #28 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1239.  
  1240. Previous write of size 8 at 0x7b7400058f58 by main thread:
  1241. [failed to restore the stack]
  1242.  
  1243. As if synchronized via sleep:
  1244. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1245. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1246. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1247. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1248. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1249. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1250. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1251. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1252. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1253. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1254. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1255. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1256. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1257. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1258. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1259. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1260. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1261. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1262. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1263. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1264. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1265. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1266. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1267. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1268. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1269.  
  1270. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  1271. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1272. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1273. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  1274. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  1275. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  1276. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  1277. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1278. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1279. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1280. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1281. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1282. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1283. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1284. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1285. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1286. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1287. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1288. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1289. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1290. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1291. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1292. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1293. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1294. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1295. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1296. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1297. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1298.  
  1299. Thread T7 (tid=29702, running) created by main thread at:
  1300. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1301. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1302. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1303. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1304. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1305. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1306. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1307. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1308. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1309. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1310. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1311. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1312. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1313. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1314.  
  1315. SUMMARY: ThreadSanitizer: data race src/lua/lapi.cpp:558 in lua_pushboolean(lua_State*, int)
  1316. ==================
  1317. ==================
  1318. WARNING: ThreadSanitizer: data race (pid=29308)
  1319. Read of size 8 at 0x7b6c0000ef48 by thread T7:
  1320. #0 reallymarkobject src/lua/lgc.cpp:262 (wesnoth-debug+0x61bdd6e)
  1321. #1 luaC_upvalbarrier_(lua_State*, UpVal*) src/lua/lgc.cpp:190 (wesnoth-debug+0x61bd129)
  1322. #2 luaF_close(lua_State*, lua_TValue*) src/lua/lfunc.cpp:93 (wesnoth-debug+0x61bbdc1)
  1323. #3 luaV_execute(lua_State*) src/lua/lvm.cpp:1178 (wesnoth-debug+0x62059d6)
  1324. #4 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1325. #5 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1326. #6 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1327. #7 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1328. #8 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1329. #9 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1330. #10 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1331. #11 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1332. #12 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1333. #13 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1334. #14 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1335. #15 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1336. #16 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1337. #17 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1338. #18 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1339. #19 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1340. #20 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1341. #21 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1342. #22 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1343. #23 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1344.  
  1345. Previous write of size 8 at 0x7b6c0000ef48 by main thread:
  1346. [failed to restore the stack]
  1347.  
  1348. As if synchronized via sleep:
  1349. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1350. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1351. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1352. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1353. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1354. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1355. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1356. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1357. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1358. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1359. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1360. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1361. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1362. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1363. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1364. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1365. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1366. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1367. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1368. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1369. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1370. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1371. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1372. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1373. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1374.  
  1375. Location is heap block of size 1552 at 0x7b6c0000ee00 allocated by thread T7:
  1376. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1377. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1378. #2 lua_newstate(void* (*)(void*, void*, unsigned long, unsigned long), void*) src/lua/lstate.cpp:299 (wesnoth-debug+0x61df7a2)
  1379. #3 luaL_newstate() src/lua/lauxlib.cpp:1027 (wesnoth-debug+0x61a80b0)
  1380. #4 lua_kernel_base::lua_kernel_base() src/scripting/lua_kernel_base.cpp:372 (wesnoth-debug+0x4ab0773)
  1381. #5 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4020 (wesnoth-debug+0x4a2863c)
  1382. #6 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  1383. #7 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  1384. #8 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1385. #9 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1386. #10 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1387. #11 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1388. #12 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1389.  
  1390. Thread T7 (tid=29702, running) created by main thread at:
  1391. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1392. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1393. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1394. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1395. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1396. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1397. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1398. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1399. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1400. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1401. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1402. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1403. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1404. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1405.  
  1406. SUMMARY: ThreadSanitizer: data race src/lua/lgc.cpp:262 in reallymarkobject
  1407. ==================
  1408. ==================
  1409. WARNING: ThreadSanitizer: data race (pid=29308)
  1410. Write of size 8 at 0x7b0800174160 by thread T7:
  1411. #0 luaF_close(lua_State*, lua_TValue*) src/lua/lfunc.cpp:92 (wesnoth-debug+0x61bbcea)
  1412. #1 luaV_execute(lua_State*) src/lua/lvm.cpp:1178 (wesnoth-debug+0x62059d6)
  1413. #2 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1414. #3 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1415. #4 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1416. #5 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1417. #6 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1418. #7 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1419. #8 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1420. #9 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1421. #10 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1422. #11 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1423. #12 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1424. #13 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1425. #14 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1426. #15 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1427. #16 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1428. #17 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1429. #18 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1430. #19 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1431. #20 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1432. #21 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1433.  
  1434. Previous read of size 8 at 0x7b0800174160 by main thread:
  1435. [failed to restore the stack]
  1436.  
  1437. As if synchronized via sleep:
  1438. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1439. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1440. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1441. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1442. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1443. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1444. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1445. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1446. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1447. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1448. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1449. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1450. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1451. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1452. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1453. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1454. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1455. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1456. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1457. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1458. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1459. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1460. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1461. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1462. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1463.  
  1464. Location is heap block of size 32 at 0x7b0800174160 allocated by thread T7:
  1465. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1466. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1467. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  1468. #3 luaF_findupval(lua_State*, lua_TValue*) src/lua/lfunc.cpp:69 (wesnoth-debug+0x61bb701)
  1469. #4 pushclosure src/lua/lvm.cpp:642 (wesnoth-debug+0x61fc8eb)
  1470. #5 luaV_execute(lua_State*) src/lua/lvm.cpp:1289 (wesnoth-debug+0x62076d8)
  1471. #6 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1472. #7 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1473. #8 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1474. #9 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1475. #10 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1476. #11 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1477. #12 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1478. #13 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1479. #14 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1480. #15 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1481. #16 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1482. #17 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1483. #18 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1484. #19 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1485. #20 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1486. #21 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1487. #22 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1488. #23 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1489. #24 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1490. #25 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1491.  
  1492. Thread T7 (tid=29702, running) created by main thread at:
  1493. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1494. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1495. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1496. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1497. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1498. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1499. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1500. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1501. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1502. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1503. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1504. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1505. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1506. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1507.  
  1508. SUMMARY: ThreadSanitizer: data race src/lua/lfunc.cpp:92 in luaF_close(lua_State*, lua_TValue*)
  1509. ==================
  1510. ==================
  1511. WARNING: ThreadSanitizer: data race (pid=29308)
  1512. Read of size 8 at 0x7b6c0000eef0 by thread T7:
  1513. #0 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:97 (wesnoth-debug+0x61c8ce9)
  1514. #1 luaC_newobj(lua_State*, int, unsigned long) src/lua/lgc.cpp:210 (wesnoth-debug+0x61bd3ef)
  1515. #2 luaH_new(lua_State*) src/lua/ltable.cpp:403 (wesnoth-debug+0x61eee3b)
  1516. #3 luaV_execute(lua_State*) src/lua/lvm.cpp:870 (wesnoth-debug+0x61ff1c9)
  1517. #4 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1518. #5 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1519. #6 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1520. #7 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1521. #8 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1522. #9 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1523. #10 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1524. #11 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1525. #12 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1526. #13 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1527. #14 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1528. #15 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1529. #16 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1530. #17 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1531. #18 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1532. #19 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1533. #20 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1534. #21 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1535. #22 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1536. #23 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1537.  
  1538. Previous write of size 8 at 0x7b6c0000eef0 by main thread:
  1539. [failed to restore the stack]
  1540.  
  1541. As if synchronized via sleep:
  1542. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1543. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1544. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1545. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1546. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1547. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1548. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1549. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1550. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1551. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1552. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1553. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1554. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1555. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1556. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1557. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1558. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1559. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1560. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1561. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1562. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1563. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1564. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1565. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1566. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1567.  
  1568. Location is heap block of size 1552 at 0x7b6c0000ee00 allocated by thread T7:
  1569. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1570. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1571. #2 lua_newstate(void* (*)(void*, void*, unsigned long, unsigned long), void*) src/lua/lstate.cpp:299 (wesnoth-debug+0x61df7a2)
  1572. #3 luaL_newstate() src/lua/lauxlib.cpp:1027 (wesnoth-debug+0x61a80b0)
  1573. #4 lua_kernel_base::lua_kernel_base() src/scripting/lua_kernel_base.cpp:372 (wesnoth-debug+0x4ab0773)
  1574. #5 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4020 (wesnoth-debug+0x4a2863c)
  1575. #6 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  1576. #7 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  1577. #8 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1578. #9 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1579. #10 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1580. #11 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1581. #12 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1582.  
  1583. Thread T7 (tid=29702, running) created by main thread at:
  1584. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1585. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1586. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1587. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1588. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1589. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1590. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1591. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1592. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1593. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1594. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1595. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1596. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1597. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1598.  
  1599. SUMMARY: ThreadSanitizer: data race src/lua/lmem.cpp:97 in luaM_realloc_(lua_State*, void*, unsigned long, unsigned long)
  1600. ==================
  1601. ==================
  1602. WARNING: ThreadSanitizer: data race (pid=29308)
  1603. Read of size 8 at 0x7b6c0000ef30 by thread T7:
  1604. #0 luaC_newobj(lua_State*, int, unsigned long) src/lua/lgc.cpp:213 (wesnoth-debug+0x61bd4e7)
  1605. #1 luaH_new(lua_State*) src/lua/ltable.cpp:403 (wesnoth-debug+0x61eee3b)
  1606. #2 luaV_execute(lua_State*) src/lua/lvm.cpp:870 (wesnoth-debug+0x61ff1c9)
  1607. #3 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1608. #4 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1609. #5 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1610. #6 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1611. #7 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1612. #8 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1613. #9 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1614. #10 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1615. #11 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1616. #12 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1617. #13 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1618. #14 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1619. #15 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1620. #16 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1621. #17 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1622. #18 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1623. #19 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1624. #20 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1625. #21 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1626. #22 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1627.  
  1628. Previous write of size 8 at 0x7b6c0000ef30 by main thread:
  1629. [failed to restore the stack]
  1630.  
  1631. As if synchronized via sleep:
  1632. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1633. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1634. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1635. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1636. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1637. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1638. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1639. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1640. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1641. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1642. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1643. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1644. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1645. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1646. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1647. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1648. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1649. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1650. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1651. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1652. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1653. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1654. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1655. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1656. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1657.  
  1658. Location is heap block of size 1552 at 0x7b6c0000ee00 allocated by thread T7:
  1659. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1660. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1661. #2 lua_newstate(void* (*)(void*, void*, unsigned long, unsigned long), void*) src/lua/lstate.cpp:299 (wesnoth-debug+0x61df7a2)
  1662. #3 luaL_newstate() src/lua/lauxlib.cpp:1027 (wesnoth-debug+0x61a80b0)
  1663. #4 lua_kernel_base::lua_kernel_base() src/scripting/lua_kernel_base.cpp:372 (wesnoth-debug+0x4ab0773)
  1664. #5 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4020 (wesnoth-debug+0x4a2863c)
  1665. #6 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  1666. #7 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  1667. #8 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1668. #9 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1669. #10 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1670. #11 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1671. #12 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1672.  
  1673. Thread T7 (tid=29702, running) created by main thread at:
  1674. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1675. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1676. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1677. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1678. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1679. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1680. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1681. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1682. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1683. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1684. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1685. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1686. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1687. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1688.  
  1689. SUMMARY: ThreadSanitizer: data race src/lua/lgc.cpp:213 in luaC_newobj(lua_State*, int, unsigned long)
  1690. ==================
  1691. ==================
  1692. WARNING: ThreadSanitizer: data race (pid=29308)
  1693. Write of size 8 at 0x7b7400058d10 by thread T7:
  1694. #0 luaV_execute(lua_State*) src/lua/lvm.cpp:809 (wesnoth-debug+0x61fdb91)
  1695. #1 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1696. #2 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1697. #3 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1698. #4 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1699. #5 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1700. #6 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1701. #7 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1702. #8 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1703. #9 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1704. #10 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1705. #11 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1706. #12 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1707. #13 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1708. #14 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1709. #15 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1710. #16 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1711. #17 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1712. #18 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1713. #19 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1714. #20 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1715.  
  1716. Previous read of size 8 at 0x7b7400058d10 by main thread:
  1717. [failed to restore the stack]
  1718.  
  1719. As if synchronized via sleep:
  1720. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1721. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1722. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1723. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1724. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1725. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1726. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1727. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1728. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1729. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1730. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1731. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1732. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1733. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1734. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1735. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1736. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1737. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1738. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1739. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1740. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1741. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1742. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1743. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1744. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1745.  
  1746. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  1747. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1748. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1749. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  1750. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  1751. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  1752. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  1753. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1754. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1755. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1756. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1757. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1758. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1759. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1760. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1761. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1762. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1763. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1764. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1765. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1766. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1767. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1768. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1769. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1770. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1771. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1772. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1773. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1774.  
  1775. Thread T7 (tid=29702, running) created by main thread at:
  1776. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1777. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1778. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1779. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1780. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1781. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1782. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1783. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1784. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1785. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1786. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1787. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1788. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1789. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1790.  
  1791. SUMMARY: ThreadSanitizer: data race src/lua/lvm.cpp:809 in luaV_execute(lua_State*)
  1792. ==================
  1793. ==================
  1794. WARNING: ThreadSanitizer: data race (pid=29308)
  1795. Write of size 8 at 0x7b7400058d20 by thread T7:
  1796. #0 luaV_execute(lua_State*) src/lua/lvm.cpp:804 (wesnoth-debug+0x61fdaba)
  1797. #1 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1798. #2 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1799. #3 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1800. #4 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1801. #5 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1802. #6 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1803. #7 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1804. #8 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1805. #9 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1806. #10 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1807. #11 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1808. #12 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1809. #13 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1810. #14 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1811. #15 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1812. #16 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1813. #17 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1814. #18 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1815. #19 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1816. #20 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1817.  
  1818. Previous read of size 8 at 0x7b7400058d20 by main thread:
  1819. [failed to restore the stack]
  1820.  
  1821. As if synchronized via sleep:
  1822. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1823. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1824. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1825. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1826. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1827. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1828. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1829. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1830. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1831. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1832. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1833. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1834. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1835. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1836. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1837. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1838. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1839. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1840. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1841. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1842. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1843. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1844. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1845. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1846. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1847.  
  1848. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  1849. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1850. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1851. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  1852. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  1853. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  1854. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  1855. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1856. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1857. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1858. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1859. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1860. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1861. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1862. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1863. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1864. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1865. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1866. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1867. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1868. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1869. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1870. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1871. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1872. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1873. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1874. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1875. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1876.  
  1877. Thread T7 (tid=29702, running) created by main thread at:
  1878. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1879. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1880. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1881. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1882. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1883. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1884. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1885. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1886. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1887. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1888. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1889. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1890. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1891. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1892.  
  1893. SUMMARY: ThreadSanitizer: data race src/lua/lvm.cpp:804 in luaV_execute(lua_State*)
  1894. ==================
  1895. ==================
  1896. WARNING: ThreadSanitizer: data race (pid=29308)
  1897. Write of size 8 at 0x7b7400058d30 by thread T7:
  1898. #0 adjust_varargs src/lua/ldo.cpp:301 (wesnoth-debug+0x61b4e85)
  1899. #1 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:447 (wesnoth-debug+0x61b656d)
  1900. #2 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1901. #3 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1902. #4 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1903. #5 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1904. #6 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1905. #7 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1906. #8 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1907. #9 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1908. #10 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1909. #11 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1910. #12 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1911. #13 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1912. #14 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1913. #15 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1914. #16 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1915. #17 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1916. #18 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1917. #19 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1918. #20 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1919. #21 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1920. #22 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1921.  
  1922. Previous read of size 8 at 0x7b7400058d30 by main thread:
  1923. [failed to restore the stack]
  1924.  
  1925. As if synchronized via sleep:
  1926. #0 nanosleep <null> (libtsan.so.0+0x49490)
  1927. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  1928. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  1929. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  1930. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1931. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1932. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1933. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1934. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1935. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1936. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1937. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1938. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1939. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1940. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1941. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1942. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1943. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1944. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1945. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1946. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1947. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1948. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1949. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1950. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1951.  
  1952. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  1953. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  1954. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  1955. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  1956. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  1957. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  1958. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  1959. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  1960. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  1961. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  1962. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  1963. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  1964. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  1965. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  1966. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  1967. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  1968. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  1969. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  1970. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  1971. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  1972. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  1973. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  1974. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  1975. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  1976. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  1977. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  1978. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  1979. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  1980.  
  1981. Thread T7 (tid=29702, running) created by main thread at:
  1982. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  1983. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  1984. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  1985. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  1986. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  1987. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  1988. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  1989. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  1990. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  1991. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  1992. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  1993. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  1994. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  1995. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  1996.  
  1997. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:301 in adjust_varargs
  1998. ==================
  1999. ==================
  2000. WARNING: ThreadSanitizer: data race (pid=29308)
  2001. Write of size 8 at 0x7b7400058de8 by thread T7:
  2002. #0 luaV_execute(lua_State*) src/lua/lvm.cpp:833 (wesnoth-debug+0x61fe02b)
  2003. #1 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2004. #2 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2005. #3 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2006. #4 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2007. #5 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2008. #6 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2009. #7 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2010. #8 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2011. #9 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2012. #10 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2013. #11 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2014. #12 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2015. #13 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2016. #14 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2017. #15 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2018. #16 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2019. #17 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2020. #18 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2021. #19 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2022. #20 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2023.  
  2024. Previous read of size 4 at 0x7b7400058de8 by main thread:
  2025. [failed to restore the stack]
  2026.  
  2027. As if synchronized via sleep:
  2028. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2029. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2030. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2031. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2032. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2033. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2034. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2035. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2036. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2037. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2038. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2039. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2040. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2041. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2042. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2043. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2044. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2045. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2046. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2047. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2048. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2049. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2050. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2051. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2052. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2053.  
  2054. Location is heap block of size 2144 at 0x7b7400058c00 allocated by thread T7:
  2055. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  2056. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  2057. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2058. #3 luaD_reallocstack(lua_State*, int) src/lua/ldo.cpp:182 (wesnoth-debug+0x61b394c)
  2059. #4 luaD_growstack(lua_State*, int) src/lua/ldo.cpp:205 (wesnoth-debug+0x61b3d2a)
  2060. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:424 (wesnoth-debug+0x61b5e23)
  2061. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2062. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2063. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2064. #9 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2065. #10 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2066. #11 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2067. #12 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2068. #13 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2069. #14 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2070. #15 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2071. #16 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2072. #17 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2073. #18 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2074. #19 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2075. #20 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2076. #21 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2077. #22 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2078. #23 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2079. #24 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2080. #25 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2081. #26 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2082.  
  2083. Thread T7 (tid=29702, running) created by main thread at:
  2084. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2085. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2086. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2087. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2088. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2089. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2090. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2091. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2092. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2093. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2094. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2095. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2096. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2097. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2098.  
  2099. SUMMARY: ThreadSanitizer: data race src/lua/lvm.cpp:833 in luaV_execute(lua_State*)
  2100. ==================
  2101. ==================
  2102. WARNING: ThreadSanitizer: data race (pid=29308)
  2103. Write of size 2 at 0x7b1400155bc0 by thread T7:
  2104. #0 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:426 (wesnoth-debug+0x61b6017)
  2105. #1 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2106. #2 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2107. #3 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2108. #4 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2109. #5 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2110. #6 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2111. #7 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2112. #8 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2113. #9 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2114. #10 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2115. #11 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2116. #12 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2117. #13 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2118. #14 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2119. #15 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2120. #16 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2121. #17 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2122. #18 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2123. #19 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2124. #20 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2125. #21 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2126.  
  2127. Previous read of size 2 at 0x7b1400155bc0 by main thread:
  2128. [failed to restore the stack]
  2129.  
  2130. As if synchronized via sleep:
  2131. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2132. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2133. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2134. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2135. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2136. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2137. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2138. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2139. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2140. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2141. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2142. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2143. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2144. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2145. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2146. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2147. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2148. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2149. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2150. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2151. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2152. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2153. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2154. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2155. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2156.  
  2157. Location is heap block of size 72 at 0x7b1400155b80 allocated by thread T7:
  2158. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  2159. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  2160. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2161. #3 luaE_extendCI(lua_State*) src/lua/lstate.cpp:109 (wesnoth-debug+0x61dd72b)
  2162. #4 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:425 (wesnoth-debug+0x61b5f5c)
  2163. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:468 (wesnoth-debug+0x61b6cc8)
  2164. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2165. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2166. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2167. #9 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  2168. #10 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  2169. #11 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2170. #12 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2171. #13 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2172. #14 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2173. #15 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2174. #16 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  2175. #17 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  2176. #18 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2177. #19 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2178. #20 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2179. #21 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2180. #22 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2181. #23 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2182. #24 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2183. #25 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2184. #26 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2185. #27 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2186. #28 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2187. #29 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2188. #30 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2189. #31 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2190. #32 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2191. #33 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2192. #34 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2193. #35 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2194. #36 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2195. #37 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2196. #38 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2197. #39 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2198. #40 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2199.  
  2200. Thread T7 (tid=29702, running) created by main thread at:
  2201. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2202. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2203. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2204. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2205. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2206. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2207. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2208. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2209. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2210. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2211. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2212. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2213. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2214. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2215.  
  2216. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:426 in luaD_precall(lua_State*, lua_TValue*, int)
  2217. ==================
  2218. ==================
  2219. WARNING: ThreadSanitizer: data race (pid=29308)
  2220. Write of size 8 at 0x7b1400155b80 by thread T7:
  2221. #0 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:427 (wesnoth-debug+0x61b6050)
  2222. #1 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2223. #2 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2224. #3 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2225. #4 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2226. #5 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2227. #6 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2228. #7 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2229. #8 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2230. #9 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2231. #10 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2232. #11 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2233. #12 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2234. #13 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2235. #14 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2236. #15 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2237. #16 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2238. #17 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2239. #18 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2240. #19 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2241. #20 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2242. #21 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2243.  
  2244. Previous write of size 8 at 0x7b1400155b80 by main thread:
  2245. [failed to restore the stack]
  2246.  
  2247. As if synchronized via sleep:
  2248. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2249. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2250. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2251. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2252. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2253. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2254. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2255. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2256. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2257. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2258. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2259. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2260. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2261. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2262. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2263. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2264. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2265. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2266. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2267. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2268. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2269. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2270. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2271. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2272. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2273.  
  2274. Location is heap block of size 72 at 0x7b1400155b80 allocated by thread T7:
  2275. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  2276. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  2277. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2278. #3 luaE_extendCI(lua_State*) src/lua/lstate.cpp:109 (wesnoth-debug+0x61dd72b)
  2279. #4 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:425 (wesnoth-debug+0x61b5f5c)
  2280. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:468 (wesnoth-debug+0x61b6cc8)
  2281. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2282. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2283. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2284. #9 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  2285. #10 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  2286. #11 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2287. #12 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2288. #13 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2289. #14 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2290. #15 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2291. #16 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  2292. #17 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  2293. #18 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2294. #19 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2295. #20 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2296. #21 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2297. #22 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2298. #23 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2299. #24 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2300. #25 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2301. #26 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2302. #27 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2303. #28 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2304. #29 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2305. #30 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2306. #31 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2307. #32 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2308. #33 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2309. #34 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2310. #35 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2311. #36 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2312. #37 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2313. #38 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2314. #39 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2315. #40 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2316.  
  2317. Thread T7 (tid=29702, running) created by main thread at:
  2318. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2319. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2320. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2321. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2322. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2323. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2324. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2325. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2326. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2327. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2328. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2329. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2330. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2331. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2332.  
  2333. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:427 in luaD_precall(lua_State*, lua_TValue*, int)
  2334. ==================
  2335. ==================
  2336. WARNING: ThreadSanitizer: data race (pid=29308)
  2337. Write of size 2 at 0x7b1400155bc2 by thread T7:
  2338. #0 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:430 (wesnoth-debug+0x61b6111)
  2339. #1 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2340. #2 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2341. #3 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2342. #4 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2343. #5 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2344. #6 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2345. #7 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2346. #8 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2347. #9 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2348. #10 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2349. #11 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2350. #12 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2351. #13 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2352. #14 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2353. #15 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2354. #16 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2355. #17 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2356. #18 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2357. #19 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2358. #20 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2359. #21 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2360.  
  2361. Previous read of size 2 at 0x7b1400155bc2 by main thread:
  2362. [failed to restore the stack]
  2363.  
  2364. As if synchronized via sleep:
  2365. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2366. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2367. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2368. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2369. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2370. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2371. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2372. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2373. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2374. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2375. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2376. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2377. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2378. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2379. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2380. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2381. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2382. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2383. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2384. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2385. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2386. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2387. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2388. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2389. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2390.  
  2391. Location is heap block of size 72 at 0x7b1400155b80 allocated by thread T7:
  2392. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  2393. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  2394. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2395. #3 luaE_extendCI(lua_State*) src/lua/lstate.cpp:109 (wesnoth-debug+0x61dd72b)
  2396. #4 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:425 (wesnoth-debug+0x61b5f5c)
  2397. #5 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:468 (wesnoth-debug+0x61b6cc8)
  2398. #6 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2399. #7 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2400. #8 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2401. #9 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  2402. #10 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  2403. #11 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2404. #12 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2405. #13 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2406. #14 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2407. #15 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2408. #16 lua_callk(lua_State*, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:924 (wesnoth-debug+0x619fdaa)
  2409. #17 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:769 (wesnoth-debug+0x4ab499e)
  2410. #18 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2411. #19 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2412. #20 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2413. #21 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2414. #22 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2415. #23 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2416. #24 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2417. #25 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2418. #26 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2419. #27 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2420. #28 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2421. #29 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2422. #30 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2423. #31 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2424. #32 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2425. #33 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2426. #34 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2427. #35 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2428. #36 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2429. #37 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2430. #38 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2431. #39 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2432. #40 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2433.  
  2434. Thread T7 (tid=29702, running) created by main thread at:
  2435. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2436. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2437. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2438. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2439. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2440. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2441. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2442. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2443. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2444. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2445. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2446. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2447. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2448. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2449.  
  2450. SUMMARY: ThreadSanitizer: data race src/lua/ldo.cpp:430 in luaD_precall(lua_State*, lua_TValue*, int)
  2451. ==================
  2452. 20180527 00:55:41 info wml: [IftU] COMPAT: Checking for add-on No_Randomness_Mod...
  2453. 20180527 00:55:41 info wml: [IftU] COMPAT: Checking for add-on Damage_Distribution_Mod...
  2454. 20180527 00:55:41 info wml: [IftU] COMPAT: Checking for add-on Move_Units_Between_Campaigns...
  2455. 20180527 00:55:41 info wml: [IftU] COMPAT: Add-on compatibility check finished!
  2456. ==================
  2457. WARNING: ThreadSanitizer: data race (pid=29308)
  2458. Read of size 4 at 0x7b600003fb28 by thread T7:
  2459. #0 traversestrongtable src/lua/lgc.cpp:440 (wesnoth-debug+0x61bfe5b)
  2460. #1 traversetable src/lua/lgc.cpp:468 (wesnoth-debug+0x61c05fb)
  2461. #2 propagatemark src/lua/lgc.cpp:568 (wesnoth-debug+0x61c2323)
  2462. #3 propagateall src/lua/lgc.cpp:604 (wesnoth-debug+0x61c27f8)
  2463. #4 atomic src/lua/lgc.cpp:1000 (wesnoth-debug+0x61c5c86)
  2464. #5 singlestep src/lua/lgc.cpp:1065 (wesnoth-debug+0x61c6764)
  2465. #6 luaC_step(lua_State*) src/lua/lgc.cpp:1137 (wesnoth-debug+0x61c6ef4)
  2466. #7 luaX_newstring(LexState*, char const*, unsigned long) src/lua/llex.cpp:137 (wesnoth-debug+0x6211493)
  2467. #8 llex src/lua/llex.cpp:529 (wesnoth-debug+0x62194c2)
  2468. #9 luaX_next(LexState*) src/lua/llex.cpp:556 (wesnoth-debug+0x6219a2d)
  2469. #10 statement src/lua/lparser.cpp:1572 (wesnoth-debug+0x61dc7ea)
  2470. #11 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2471. #12 body src/lua/lparser.cpp:796 (wesnoth-debug+0x61d81b1)
  2472. #13 funcstat src/lua/lparser.cpp:1482 (wesnoth-debug+0x61dbe20)
  2473. #14 statement src/lua/lparser.cpp:1568 (wesnoth-debug+0x61dc7d9)
  2474. #15 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2475. #16 mainfunc src/lua/lparser.cpp:1620 (wesnoth-debug+0x61dcba5)
  2476. #17 luaY_parser(lua_State*, Zio*, Mbuffer*, Dyndata*, char const*, int) src/lua/lparser.cpp:1643 (wesnoth-debug+0x61dd170)
  2477. #18 f_parser src/lua/ldo.cpp:776 (wesnoth-debug+0x61b93dc)
  2478. #19 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2479. #20 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2480. #21 luaD_protectedparser(lua_State*, Zio*, char const*, char const*) src/lua/ldo.cpp:793 (wesnoth-debug+0x61b9740)
  2481. #22 lua_load(lua_State*, char const* (*)(lua_State*, void*, unsigned long*), void*, char const*, char const*) src/lua/lapi.cpp:998 (wesnoth-debug+0x61a08c0)
  2482. #23 lua_fileops::lua_filestream::lua_loadfile(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) src/scripting/lua_fileops.cpp:220 (wesnoth-debug+0x4a8d528)
  2483. #24 lua_fileops::load_file(lua_State*) src/scripting/lua_fileops.cpp:243 (wesnoth-debug+0x4a8ba37)
  2484. #25 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:763 (wesnoth-debug+0x4ab4930)
  2485. #26 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2486. #27 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2487. #28 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2488. #29 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2489. #30 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2490. #31 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2491. #32 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2492. #33 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2493. #34 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2494. #35 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2495. #36 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2496. #37 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2497. #38 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2498. #39 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2499. #40 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2500. #41 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2501. #42 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2502. #43 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2503. #44 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2504. #45 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2505. #46 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2506. #47 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2507. #48 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2508.  
  2509. Previous write of size 8 at 0x7b600003fb28 by main thread:
  2510. [failed to restore the stack]
  2511.  
  2512. As if synchronized via sleep:
  2513. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2514. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2515. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2516. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2517. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2518. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2519. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2520. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2521. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2522. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2523. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2524. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2525. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2526. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2527. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2528. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2529. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2530. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2531. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2532. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2533. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2534. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2535. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2536. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2537. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2538.  
  2539. Location is heap block of size 1024 at 0x7b600003f800 allocated by thread T7:
  2540. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  2541. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  2542. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2543. #3 setnodevector src/lua/ltable.cpp:320 (wesnoth-debug+0x61ee2c5)
  2544. #4 luaH_resize(lua_State*, Table*, unsigned int, unsigned int) src/lua/ltable.cpp:343 (wesnoth-debug+0x61ee6eb)
  2545. #5 rehash src/lua/ltable.cpp:392 (wesnoth-debug+0x61eede8)
  2546. #6 luaH_newkey(lua_State*, Table*, lua_TValue const*) src/lua/ltable.cpp:460 (wesnoth-debug+0x61ef6bd)
  2547. #7 luaV_finishset(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:214 (wesnoth-debug+0x61f8384)
  2548. #8 auxsetstr src/lua/lapi.cpp:751 (wesnoth-debug+0x619d5e4)
  2549. #9 lua_setfield(lua_State*, int, char const*) src/lua/lapi.cpp:778 (wesnoth-debug+0x619dcfd)
  2550. #10 luaL_newmetatable(lua_State*, char const*) src/lua/lauxlib.cpp:307 (wesnoth-debug+0x61a4645)
  2551. #11 lua_common::register_vconfig_metatable[abi:cxx11](lua_State*) src/scripting/lua_common.cpp:434 (wesnoth-debug+0x4a7e761)
  2552. #12 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4189 (wesnoth-debug+0x4a29a0a)
  2553. #13 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  2554. #14 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  2555. #15 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2556. #16 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2557. #17 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2558. #18 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2559. #19 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2560.  
  2561. Thread T7 (tid=29702, running) created by main thread at:
  2562. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2563. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2564. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2565. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2566. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2567. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2568. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2569. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2570. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2571. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2572. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2573. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2574. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2575. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2576.  
  2577. SUMMARY: ThreadSanitizer: data race src/lua/lgc.cpp:440 in traversestrongtable
  2578. ==================
  2579. ==================
  2580. WARNING: ThreadSanitizer: data race (pid=29308)
  2581. Write of size 4 at 0x7b600003fb38 by thread T7:
  2582. #0 removeentry src/lua/lgc.cpp:128 (wesnoth-debug+0x61bca5e)
  2583. #1 traversestrongtable src/lua/lgc.cpp:441 (wesnoth-debug+0x61bfe72)
  2584. #2 traversetable src/lua/lgc.cpp:468 (wesnoth-debug+0x61c05fb)
  2585. #3 propagatemark src/lua/lgc.cpp:568 (wesnoth-debug+0x61c2323)
  2586. #4 propagateall src/lua/lgc.cpp:604 (wesnoth-debug+0x61c27f8)
  2587. #5 atomic src/lua/lgc.cpp:1000 (wesnoth-debug+0x61c5c86)
  2588. #6 singlestep src/lua/lgc.cpp:1065 (wesnoth-debug+0x61c6764)
  2589. #7 luaC_step(lua_State*) src/lua/lgc.cpp:1137 (wesnoth-debug+0x61c6ef4)
  2590. #8 luaX_newstring(LexState*, char const*, unsigned long) src/lua/llex.cpp:137 (wesnoth-debug+0x6211493)
  2591. #9 llex src/lua/llex.cpp:529 (wesnoth-debug+0x62194c2)
  2592. #10 luaX_next(LexState*) src/lua/llex.cpp:556 (wesnoth-debug+0x6219a2d)
  2593. #11 statement src/lua/lparser.cpp:1572 (wesnoth-debug+0x61dc7ea)
  2594. #12 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2595. #13 body src/lua/lparser.cpp:796 (wesnoth-debug+0x61d81b1)
  2596. #14 funcstat src/lua/lparser.cpp:1482 (wesnoth-debug+0x61dbe20)
  2597. #15 statement src/lua/lparser.cpp:1568 (wesnoth-debug+0x61dc7d9)
  2598. #16 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2599. #17 mainfunc src/lua/lparser.cpp:1620 (wesnoth-debug+0x61dcba5)
  2600. #18 luaY_parser(lua_State*, Zio*, Mbuffer*, Dyndata*, char const*, int) src/lua/lparser.cpp:1643 (wesnoth-debug+0x61dd170)
  2601. #19 f_parser src/lua/ldo.cpp:776 (wesnoth-debug+0x61b93dc)
  2602. #20 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2603. #21 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2604. #22 luaD_protectedparser(lua_State*, Zio*, char const*, char const*) src/lua/ldo.cpp:793 (wesnoth-debug+0x61b9740)
  2605. #23 lua_load(lua_State*, char const* (*)(lua_State*, void*, unsigned long*), void*, char const*, char const*) src/lua/lapi.cpp:998 (wesnoth-debug+0x61a08c0)
  2606. #24 lua_fileops::lua_filestream::lua_loadfile(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) src/scripting/lua_fileops.cpp:220 (wesnoth-debug+0x4a8d528)
  2607. #25 lua_fileops::load_file(lua_State*) src/scripting/lua_fileops.cpp:243 (wesnoth-debug+0x4a8ba37)
  2608. #26 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:763 (wesnoth-debug+0x4ab4930)
  2609. #27 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2610. #28 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2611. #29 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2612. #30 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2613. #31 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2614. #32 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2615. #33 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2616. #34 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2617. #35 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2618. #36 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2619. #37 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2620. #38 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2621. #39 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2622. #40 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2623. #41 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2624. #42 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2625. #43 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2626. #44 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2627. #45 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2628. #46 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2629. #47 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2630. #48 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2631. #49 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2632.  
  2633. Previous read of size 4 at 0x7b600003fb38 by main thread:
  2634. [failed to restore the stack]
  2635.  
  2636. As if synchronized via sleep:
  2637. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2638. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2639. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2640. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2641. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2642. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2643. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2644. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2645. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2646. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2647. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2648. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2649. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2650. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2651. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2652. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2653. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2654. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2655. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2656. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2657. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2658. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2659. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2660. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2661. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2662.  
  2663. Location is heap block of size 1024 at 0x7b600003f800 allocated by thread T7:
  2664. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  2665. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  2666. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2667. #3 setnodevector src/lua/ltable.cpp:320 (wesnoth-debug+0x61ee2c5)
  2668. #4 luaH_resize(lua_State*, Table*, unsigned int, unsigned int) src/lua/ltable.cpp:343 (wesnoth-debug+0x61ee6eb)
  2669. #5 rehash src/lua/ltable.cpp:392 (wesnoth-debug+0x61eede8)
  2670. #6 luaH_newkey(lua_State*, Table*, lua_TValue const*) src/lua/ltable.cpp:460 (wesnoth-debug+0x61ef6bd)
  2671. #7 luaV_finishset(lua_State*, lua_TValue const*, lua_TValue*, lua_TValue*, lua_TValue const*) src/lua/lvm.cpp:214 (wesnoth-debug+0x61f8384)
  2672. #8 auxsetstr src/lua/lapi.cpp:751 (wesnoth-debug+0x619d5e4)
  2673. #9 lua_setfield(lua_State*, int, char const*) src/lua/lapi.cpp:778 (wesnoth-debug+0x619dcfd)
  2674. #10 luaL_newmetatable(lua_State*, char const*) src/lua/lauxlib.cpp:307 (wesnoth-debug+0x61a4645)
  2675. #11 lua_common::register_vconfig_metatable[abi:cxx11](lua_State*) src/scripting/lua_common.cpp:434 (wesnoth-debug+0x4a7e761)
  2676. #12 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4189 (wesnoth-debug+0x4a29a0a)
  2677. #13 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  2678. #14 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  2679. #15 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2680. #16 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2681. #17 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2682. #18 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2683. #19 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2684.  
  2685. Thread T7 (tid=29702, running) created by main thread at:
  2686. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2687. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2688. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2689. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2690. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2691. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2692. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2693. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2694. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2695. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2696. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2697. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2698. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2699. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2700.  
  2701. SUMMARY: ThreadSanitizer: data race src/lua/lgc.cpp:128 in removeentry
  2702. ==================
  2703. ==================
  2704. WARNING: ThreadSanitizer: data race (pid=29308)
  2705. Write of size 8 at 0x7b6c0000f3f0 by thread T7:
  2706. #0 luaS_clearcache(global_State*) src/lua/lstring.cpp:108 (wesnoth-debug+0x61e10c3)
  2707. #1 atomic src/lua/lgc.cpp:1022 (wesnoth-debug+0x61c606a)
  2708. #2 singlestep src/lua/lgc.cpp:1065 (wesnoth-debug+0x61c6764)
  2709. #3 luaC_step(lua_State*) src/lua/lgc.cpp:1137 (wesnoth-debug+0x61c6ef4)
  2710. #4 luaX_newstring(LexState*, char const*, unsigned long) src/lua/llex.cpp:137 (wesnoth-debug+0x6211493)
  2711. #5 llex src/lua/llex.cpp:529 (wesnoth-debug+0x62194c2)
  2712. #6 luaX_next(LexState*) src/lua/llex.cpp:556 (wesnoth-debug+0x6219a2d)
  2713. #7 statement src/lua/lparser.cpp:1572 (wesnoth-debug+0x61dc7ea)
  2714. #8 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2715. #9 body src/lua/lparser.cpp:796 (wesnoth-debug+0x61d81b1)
  2716. #10 funcstat src/lua/lparser.cpp:1482 (wesnoth-debug+0x61dbe20)
  2717. #11 statement src/lua/lparser.cpp:1568 (wesnoth-debug+0x61dc7d9)
  2718. #12 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2719. #13 mainfunc src/lua/lparser.cpp:1620 (wesnoth-debug+0x61dcba5)
  2720. #14 luaY_parser(lua_State*, Zio*, Mbuffer*, Dyndata*, char const*, int) src/lua/lparser.cpp:1643 (wesnoth-debug+0x61dd170)
  2721. #15 f_parser src/lua/ldo.cpp:776 (wesnoth-debug+0x61b93dc)
  2722. #16 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2723. #17 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2724. #18 luaD_protectedparser(lua_State*, Zio*, char const*, char const*) src/lua/ldo.cpp:793 (wesnoth-debug+0x61b9740)
  2725. #19 lua_load(lua_State*, char const* (*)(lua_State*, void*, unsigned long*), void*, char const*, char const*) src/lua/lapi.cpp:998 (wesnoth-debug+0x61a08c0)
  2726. #20 lua_fileops::lua_filestream::lua_loadfile(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) src/scripting/lua_fileops.cpp:220 (wesnoth-debug+0x4a8d528)
  2727. #21 lua_fileops::load_file(lua_State*) src/scripting/lua_fileops.cpp:243 (wesnoth-debug+0x4a8ba37)
  2728. #22 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:763 (wesnoth-debug+0x4ab4930)
  2729. #23 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2730. #24 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2731. #25 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2732. #26 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2733. #27 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2734. #28 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2735. #29 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2736. #30 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2737. #31 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2738. #32 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2739. #33 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2740. #34 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2741. #35 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2742. #36 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2743. #37 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2744. #38 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2745. #39 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2746. #40 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2747. #41 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2748. #42 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2749. #43 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2750. #44 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2751. #45 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2752.  
  2753. Previous read of size 8 at 0x7b6c0000f3f0 by main thread:
  2754. [failed to restore the stack]
  2755.  
  2756. As if synchronized via sleep:
  2757. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2758. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2759. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2760. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2761. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2762. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2763. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2764. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2765. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2766. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2767. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2768. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2769. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2770. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2771. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2772. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2773. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2774. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2775. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2776. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2777. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2778. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2779. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2780. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2781. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2782.  
  2783. Location is heap block of size 1552 at 0x7b6c0000ee00 allocated by thread T7:
  2784. #0 realloc <null> (libtsan.so.0+0x2ac7b)
  2785. #1 l_alloc src/lua/lauxlib.cpp:1015 (wesnoth-debug+0x61a7fc4)
  2786. #2 lua_newstate(void* (*)(void*, void*, unsigned long, unsigned long), void*) src/lua/lstate.cpp:299 (wesnoth-debug+0x61df7a2)
  2787. #3 luaL_newstate() src/lua/lauxlib.cpp:1027 (wesnoth-debug+0x61a80b0)
  2788. #4 lua_kernel_base::lua_kernel_base() src/scripting/lua_kernel_base.cpp:372 (wesnoth-debug+0x4ab0773)
  2789. #5 game_lua_kernel::game_lua_kernel(game_state&, play_controller&, reports&) src/scripting/game_lua_kernel.cpp:4020 (wesnoth-debug+0x4a2863c)
  2790. #6 game_state::game_state(config const&, play_controller&, std::shared_ptr<terrain_type_data> const&) src/game_state.cpp:51 (wesnoth-debug+0x410a8f4)
  2791. #7 operator() src/play_controller.cpp:208 (wesnoth-debug+0x48fcaa7)
  2792. #8 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2793. #9 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2794. #10 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2795. #11 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2796. #12 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2797.  
  2798. Thread T7 (tid=29702, running) created by main thread at:
  2799. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2800. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2801. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2802. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2803. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2804. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2805. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2806. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2807. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2808. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2809. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2810. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2811. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2812. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2813.  
  2814. SUMMARY: ThreadSanitizer: data race src/lua/lstring.cpp:108 in luaS_clearcache(global_State*)
  2815. ==================
  2816. ==================
  2817. WARNING: ThreadSanitizer: data race (pid=29308)
  2818. Write of size 8 at 0x7b04000baaa0 by thread T7:
  2819. #0 free <null> (libtsan.so.0+0x2ad2a)
  2820. #1 l_alloc src/lua/lauxlib.cpp:1011 (wesnoth-debug+0x61a7faa)
  2821. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2822. #3 luaH_free(lua_State*, Table*) src/lua/ltable.cpp:417 (wesnoth-debug+0x61ef163)
  2823. #4 freeobj src/lua/lgc.cpp:708 (wesnoth-debug+0x61c344f)
  2824. #5 sweeplist src/lua/lgc.cpp:744 (wesnoth-debug+0x61c3831)
  2825. #6 sweepstep src/lua/lgc.cpp:1033 (wesnoth-debug+0x61c6256)
  2826. #7 singlestep src/lua/lgc.cpp:1071 (wesnoth-debug+0x61c6874)
  2827. #8 luaC_step(lua_State*) src/lua/lgc.cpp:1137 (wesnoth-debug+0x61c6ef4)
  2828. #9 luaX_newstring(LexState*, char const*, unsigned long) src/lua/llex.cpp:137 (wesnoth-debug+0x6211493)
  2829. #10 llex src/lua/llex.cpp:529 (wesnoth-debug+0x62194c2)
  2830. #11 luaX_next(LexState*) src/lua/llex.cpp:556 (wesnoth-debug+0x6219a2d)
  2831. #12 statement src/lua/lparser.cpp:1572 (wesnoth-debug+0x61dc7ea)
  2832. #13 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2833. #14 body src/lua/lparser.cpp:796 (wesnoth-debug+0x61d81b1)
  2834. #15 funcstat src/lua/lparser.cpp:1482 (wesnoth-debug+0x61dbe20)
  2835. #16 statement src/lua/lparser.cpp:1568 (wesnoth-debug+0x61dc7d9)
  2836. #17 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2837. #18 mainfunc src/lua/lparser.cpp:1620 (wesnoth-debug+0x61dcba5)
  2838. #19 luaY_parser(lua_State*, Zio*, Mbuffer*, Dyndata*, char const*, int) src/lua/lparser.cpp:1643 (wesnoth-debug+0x61dd170)
  2839. #20 f_parser src/lua/ldo.cpp:776 (wesnoth-debug+0x61b93dc)
  2840. #21 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2841. #22 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2842. #23 luaD_protectedparser(lua_State*, Zio*, char const*, char const*) src/lua/ldo.cpp:793 (wesnoth-debug+0x61b9740)
  2843. #24 lua_load(lua_State*, char const* (*)(lua_State*, void*, unsigned long*), void*, char const*, char const*) src/lua/lapi.cpp:998 (wesnoth-debug+0x61a08c0)
  2844. #25 lua_fileops::lua_filestream::lua_loadfile(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) src/scripting/lua_fileops.cpp:220 (wesnoth-debug+0x4a8d528)
  2845. #26 lua_fileops::load_file(lua_State*) src/scripting/lua_fileops.cpp:243 (wesnoth-debug+0x4a8ba37)
  2846. #27 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:763 (wesnoth-debug+0x4ab4930)
  2847. #28 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2848. #29 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2849. #30 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2850. #31 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2851. #32 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2852. #33 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2853. #34 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2854. #35 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2855. #36 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2856. #37 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2857. #38 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2858. #39 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2859. #40 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2860. #41 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2861. #42 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2862. #43 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2863. #44 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2864. #45 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2865. #46 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2866. #47 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2867. #48 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2868. #49 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2869. #50 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2870.  
  2871. Previous read of size 8 at 0x7b04000baaa0 by main thread:
  2872. [failed to restore the stack]
  2873.  
  2874. As if synchronized via sleep:
  2875. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2876. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2877. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2878. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2879. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2880. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2881. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2882. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2883. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2884. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2885. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2886. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2887. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2888. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2889. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2890. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2891. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2892. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2893. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2894. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2895. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2896. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2897. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2898. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2899. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2900.  
  2901. Thread T7 (tid=29702, running) created by main thread at:
  2902. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  2903. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  2904. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  2905. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  2906. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  2907. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  2908. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  2909. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  2910. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  2911. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  2912. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  2913. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  2914. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  2915. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  2916.  
  2917. SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2ad2a) in free
  2918. ==================
  2919. ==================
  2920. WARNING: ThreadSanitizer: data race (pid=29308)
  2921. Write of size 8 at 0x7b1000069050 by thread T7:
  2922. #0 free <null> (libtsan.so.0+0x2ad2a)
  2923. #1 l_alloc src/lua/lauxlib.cpp:1011 (wesnoth-debug+0x61a7faa)
  2924. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  2925. #3 luaH_free(lua_State*, Table*) src/lua/ltable.cpp:418 (wesnoth-debug+0x61ef17d)
  2926. #4 freeobj src/lua/lgc.cpp:708 (wesnoth-debug+0x61c344f)
  2927. #5 sweeplist src/lua/lgc.cpp:744 (wesnoth-debug+0x61c3831)
  2928. #6 sweepstep src/lua/lgc.cpp:1033 (wesnoth-debug+0x61c6256)
  2929. #7 singlestep src/lua/lgc.cpp:1071 (wesnoth-debug+0x61c6874)
  2930. #8 luaC_step(lua_State*) src/lua/lgc.cpp:1137 (wesnoth-debug+0x61c6ef4)
  2931. #9 luaX_newstring(LexState*, char const*, unsigned long) src/lua/llex.cpp:137 (wesnoth-debug+0x6211493)
  2932. #10 llex src/lua/llex.cpp:529 (wesnoth-debug+0x62194c2)
  2933. #11 luaX_next(LexState*) src/lua/llex.cpp:556 (wesnoth-debug+0x6219a2d)
  2934. #12 statement src/lua/lparser.cpp:1572 (wesnoth-debug+0x61dc7ea)
  2935. #13 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2936. #14 body src/lua/lparser.cpp:796 (wesnoth-debug+0x61d81b1)
  2937. #15 funcstat src/lua/lparser.cpp:1482 (wesnoth-debug+0x61dbe20)
  2938. #16 statement src/lua/lparser.cpp:1568 (wesnoth-debug+0x61dc7d9)
  2939. #17 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  2940. #18 mainfunc src/lua/lparser.cpp:1620 (wesnoth-debug+0x61dcba5)
  2941. #19 luaY_parser(lua_State*, Zio*, Mbuffer*, Dyndata*, char const*, int) src/lua/lparser.cpp:1643 (wesnoth-debug+0x61dd170)
  2942. #20 f_parser src/lua/ldo.cpp:776 (wesnoth-debug+0x61b93dc)
  2943. #21 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2944. #22 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2945. #23 luaD_protectedparser(lua_State*, Zio*, char const*, char const*) src/lua/ldo.cpp:793 (wesnoth-debug+0x61b9740)
  2946. #24 lua_load(lua_State*, char const* (*)(lua_State*, void*, unsigned long*), void*, char const*, char const*) src/lua/lapi.cpp:998 (wesnoth-debug+0x61a08c0)
  2947. #25 lua_fileops::lua_filestream::lua_loadfile(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) src/scripting/lua_fileops.cpp:220 (wesnoth-debug+0x4a8d528)
  2948. #26 lua_fileops::load_file(lua_State*) src/scripting/lua_fileops.cpp:243 (wesnoth-debug+0x4a8ba37)
  2949. #27 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:763 (wesnoth-debug+0x4ab4930)
  2950. #28 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  2951. #29 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2952. #30 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2953. #31 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2954. #32 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2955. #33 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2956. #34 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2957. #35 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2958. #36 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2959. #37 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2960. #38 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2961. #39 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2962. #40 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2963. #41 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2964. #42 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2965. #43 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2966. #44 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2967. #45 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2968. #46 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2969. #47 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  2970. #48 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  2971. #49 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  2972. #50 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  2973.  
  2974. Previous read of size 8 at 0x7b1000069050 by main thread:
  2975. [failed to restore the stack]
  2976.  
  2977. As if synchronized via sleep:
  2978. #0 nanosleep <null> (libtsan.so.0+0x49490)
  2979. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  2980. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  2981. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  2982. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  2983. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  2984. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  2985. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  2986. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  2987. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  2988. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  2989. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  2990. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  2991. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  2992. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  2993. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  2994. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  2995. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  2996. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  2997. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  2998. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  2999. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  3000. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  3001. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  3002. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  3003.  
  3004. Thread T7 (tid=29702, running) created by main thread at:
  3005. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  3006. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  3007. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  3008. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  3009. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  3010. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  3011. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  3012. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  3013. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  3014. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  3015. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  3016. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  3017. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  3018. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  3019.  
  3020. SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2ad2a) in free
  3021. ==================
  3022. ==================
  3023. WARNING: ThreadSanitizer: data race (pid=29308)
  3024. Write of size 8 at 0x7b0c000c4c98 by thread T7:
  3025. #0 free <null> (libtsan.so.0+0x2ad2a)
  3026. #1 l_alloc src/lua/lauxlib.cpp:1011 (wesnoth-debug+0x61a7faa)
  3027. #2 luaM_realloc_(lua_State*, void*, unsigned long, unsigned long) src/lua/lmem.cpp:86 (wesnoth-debug+0x61c8b9c)
  3028. #3 freeobj src/lua/lgc.cpp:713 (wesnoth-debug+0x61c3554)
  3029. #4 sweeplist src/lua/lgc.cpp:744 (wesnoth-debug+0x61c3831)
  3030. #5 sweepstep src/lua/lgc.cpp:1033 (wesnoth-debug+0x61c6256)
  3031. #6 singlestep src/lua/lgc.cpp:1071 (wesnoth-debug+0x61c6874)
  3032. #7 luaC_step(lua_State*) src/lua/lgc.cpp:1137 (wesnoth-debug+0x61c6ef4)
  3033. #8 luaX_newstring(LexState*, char const*, unsigned long) src/lua/llex.cpp:137 (wesnoth-debug+0x6211493)
  3034. #9 llex src/lua/llex.cpp:529 (wesnoth-debug+0x62194c2)
  3035. #10 luaX_next(LexState*) src/lua/llex.cpp:556 (wesnoth-debug+0x6219a2d)
  3036. #11 statement src/lua/lparser.cpp:1572 (wesnoth-debug+0x61dc7ea)
  3037. #12 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  3038. #13 body src/lua/lparser.cpp:796 (wesnoth-debug+0x61d81b1)
  3039. #14 funcstat src/lua/lparser.cpp:1482 (wesnoth-debug+0x61dbe20)
  3040. #15 statement src/lua/lparser.cpp:1568 (wesnoth-debug+0x61dc7d9)
  3041. #16 statlist src/lua/lparser.cpp:605 (wesnoth-debug+0x61d68f5)
  3042. #17 mainfunc src/lua/lparser.cpp:1620 (wesnoth-debug+0x61dcba5)
  3043. #18 luaY_parser(lua_State*, Zio*, Mbuffer*, Dyndata*, char const*, int) src/lua/lparser.cpp:1643 (wesnoth-debug+0x61dd170)
  3044. #19 f_parser src/lua/ldo.cpp:776 (wesnoth-debug+0x61b93dc)
  3045. #20 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  3046. #21 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  3047. #22 luaD_protectedparser(lua_State*, Zio*, char const*, char const*) src/lua/ldo.cpp:793 (wesnoth-debug+0x61b9740)
  3048. #23 lua_load(lua_State*, char const* (*)(lua_State*, void*, unsigned long*), void*, char const*, char const*) src/lua/lapi.cpp:998 (wesnoth-debug+0x61a08c0)
  3049. #24 lua_fileops::lua_filestream::lua_loadfile(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) src/scripting/lua_fileops.cpp:220 (wesnoth-debug+0x4a8d528)
  3050. #25 lua_fileops::load_file(lua_State*) src/scripting/lua_fileops.cpp:243 (wesnoth-debug+0x4a8ba37)
  3051. #26 lua_kernel_base::intf_dofile(lua_State*) src/scripting/lua_kernel_base.cpp:763 (wesnoth-debug+0x4ab4930)
  3052. #27 int dispatch<&lua_kernel_base::intf_dofile>(lua_State*) src/scripting/lua_kernel_base.cpp:367 (wesnoth-debug+0x4ab7f1c)
  3053. #28 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  3054. #29 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  3055. #30 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  3056. #31 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  3057. #32 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  3058. #33 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  3059. #34 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  3060. #35 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  3061. #36 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  3062. #37 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  3063. #38 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  3064. #39 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  3065. #40 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  3066. #41 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  3067. #42 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  3068. #43 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  3069. #44 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  3070. #45 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  3071. #46 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  3072. #47 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  3073. #48 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  3074. #49 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  3075.  
  3076. Previous read of size 8 at 0x7b0c000c4c98 by main thread:
  3077. [failed to restore the stack]
  3078.  
  3079. As if synchronized via sleep:
  3080. #0 nanosleep <null> (libtsan.so.0+0x49490)
  3081. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  3082. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  3083. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  3084. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  3085. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  3086. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  3087. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  3088. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  3089. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  3090. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  3091. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  3092. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  3093. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  3094. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  3095. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  3096. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  3097. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  3098. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  3099. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  3100. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  3101. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  3102. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  3103. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  3104. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  3105.  
  3106. Thread T7 (tid=29702, running) created by main thread at:
  3107. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  3108. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  3109. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  3110. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  3111. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  3112. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  3113. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  3114. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  3115. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  3116. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  3117. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  3118. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  3119. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  3120. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  3121.  
  3122. SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2ad2a) in free
  3123. ==================
  3124. ==================
  3125. WARNING: ThreadSanitizer: data race (pid=29308)
  3126. Read of size 8 at 0x556f740639c0 by thread T7:
  3127. #0 std::__cxx11::_List_base<events::sdl_handler*, std::allocator<events::sdl_handler*> >::_M_inc_size(unsigned long) /usr/include/c++/7/bits/stl_list.h:354 (wesnoth-debug+0x66c9295)
  3128. #1 void std::__cxx11::list<events::sdl_handler*, std::allocator<events::sdl_handler*> >::_M_insert<events::sdl_handler*>(std::_List_iterator<events::sdl_handler*>, events::sdl_handler*&&) /usr/include/c++/7/bits/stl_list.h:1803 (wesnoth-debug+0x69865fe)
  3129. #2 std::__cxx11::list<events::sdl_handler*, std::allocator<events::sdl_handler*> >::push_back(events::sdl_handler*&&) /usr/include/c++/7/bits/stl_list.h:1123 (wesnoth-debug+0x69852ef)
  3130. #3 video2::draw_layering::draw_layering(bool) src/video.cpp:52 (wesnoth-debug+0x697fc80)
  3131. #4 display::display(display_context const*, std::weak_ptr<wb::manager>, reports&, config const&, config const&, bool) src/display.cpp:229 (wesnoth-debug+0x661013c)
  3132. #5 game_display::game_display(game_board&, std::weak_ptr<wb::manager>, reports&, config const&, config const&, bool) src/game_display.cpp:80 (wesnoth-debug+0x40646da)
  3133. #6 operator() src/play_controller.cpp:237 (wesnoth-debug+0x48fefff)
  3134. #7 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  3135. #8 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  3136. #9 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  3137. #10 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  3138. #11 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  3139.  
  3140. Previous write of size 8 at 0x556f740639c0 by main thread:
  3141. [failed to restore the stack]
  3142.  
  3143. As if synchronized via sleep:
  3144. #0 nanosleep <null> (libtsan.so.0+0x49490)
  3145. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  3146. #2 lua_gui2::show_dialog(lua_State*) src/scripting/lua_gui2.cpp:246 (wesnoth-debug+0x4a90865)
  3147. #3 luaD_precall(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:434 (wesnoth-debug+0x61b6186)
  3148. #4 luaV_execute(lua_State*) src/lua/lvm.cpp:1134 (wesnoth-debug+0x6204ef5)
  3149. #5 luaD_call(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:499 (wesnoth-debug+0x61b6f0d)
  3150. #6 luaD_callnoyield(lua_State*, lua_TValue*, int) src/lua/ldo.cpp:509 (wesnoth-debug+0x61b7072)
  3151. #7 f_call src/lua/lapi.cpp:942 (wesnoth-debug+0x619ffe2)
  3152. #8 luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*) src/lua/ldo.cpp:142 (wesnoth-debug+0x61b2dc6)
  3153. #9 luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) src/lua/ldo.cpp:729 (wesnoth-debug+0x61b8d87)
  3154. #10 lua_pcallk(lua_State*, int, int, int, long, int (*)(lua_State*, int, long)) src/lua/lapi.cpp:968 (wesnoth-debug+0x61a0211)
  3155. #11 luaW_pcall_internal(lua_State*, int, int) src/scripting/lua_common.cpp:956 (wesnoth-debug+0x4a81ea4)
  3156. #12 lua_kernel_base::protected_call(lua_State*, int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:643 (wesnoth-debug+0x4ab2aca)
  3157. #13 lua_kernel_base::protected_call(int, int, std::function<void (char const*, char const*)>) src/scripting/lua_kernel_base.cpp:638 (wesnoth-debug+0x4ab2a51)
  3158. #14 lua_kernel_base::throwing_run(char const*, int) src/scripting/lua_kernel_base.cpp:721 (wesnoth-debug+0x4ab3bc3)
  3159. #15 lua_kernel_base::run(char const*, int) src/scripting/lua_kernel_base.cpp:728 (wesnoth-debug+0x4ab3d61)
  3160. #16 lua_kernel_base::run_lua_tag(config const&) src/scripting/lua_kernel_base.cpp:711 (wesnoth-debug+0x4ab35e3)
  3161. #17 game_lua_kernel::initialize(config const&) src/scripting/game_lua_kernel.cpp:4327 (wesnoth-debug+0x4a2b5bf)
  3162. #18 game_state::init(config const&, play_controller&) src/game_state.cpp:210 (wesnoth-debug+0x4110668)
  3163. #19 operator() src/play_controller.cpp:219 (wesnoth-debug+0x48fd709)
  3164. #20 _M_invoke /usr/include/c++/7/bits/std_function.h:316 (wesnoth-debug+0x492918c)
  3165. #21 std::function<void ()>::operator()() const /usr/include/c++/7/bits/std_function.h:706 (wesnoth-debug+0x39a426d)
  3166. #22 operator() src/gui/dialogs/loading_screen.cpp:116 (wesnoth-debug+0x427459d)
  3167. #23 run /usr/include/boost/thread/detail/thread.hpp:116 (wesnoth-debug+0x4279c57)
  3168. #24 <null> <null> (libboost_thread.so.1.62.0+0x11f95)
  3169.  
  3170. Location is global 'video2::draw_layers[abi:cxx11]' of size 24 at 0x556f740639b0 (wesnoth-debug+0x00000c31c9c0)
  3171.  
  3172. Thread T7 (tid=29702, running) created by main thread at:
  3173. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  3174. #1 boost::thread::start_thread_noexcept() <null> (libboost_thread.so.1.62.0+0x112f8)
  3175. #2 thread<gui2::dialogs::loading_screen::pre_show(gui2::window&)::<lambda()> > /usr/include/boost/thread/detail/thread.hpp:265 (wesnoth-debug+0x4277da5)
  3176. #3 gui2::dialogs::loading_screen::pre_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:123 (wesnoth-debug+0x42748c1)
  3177. #4 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:85 (wesnoth-debug+0x42a2eca)
  3178. #5 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  3179. #6 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  3180. #7 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  3181. #8 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  3182. #9 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  3183. #10 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  3184. #11 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  3185. #12 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  3186. #13 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  3187.  
  3188. SUMMARY: ThreadSanitizer: data race /usr/include/c++/7/bits/stl_list.h:354 in std::__cxx11::_List_base<events::sdl_handler*, std::allocator<events::sdl_handler*> >::_M_inc_size(unsigned long)
  3189. ==================
  3190. ==================
  3191. WARNING: ThreadSanitizer: data race (pid=29308)
  3192. Write of size 8 at 0x7b1400125d68 by main thread:
  3193. #0 operator delete(void*) <null> (libtsan.so.0+0x6f3d1)
  3194. #1 __gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned long const, gui2::timer> > >::deallocate(std::_Rb_tree_node<std::pair<unsigned long const, gui2::timer> >*, unsigned long) /usr/include/c++/7/ext/new_allocator.h:125 (wesnoth-debug+0x422bfc7)
  3195. #2 std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<unsigned long const, gui2::timer> > > >::deallocate(std::allocator<std::_Rb_tree_node<std::pair<unsigned long const, gui2::timer> > >&, std::_Rb_tree_node<std::pair<unsigned long const, gui2::timer> >*, unsigned long) /usr/include/c++/7/bits/alloc_traits.h:462 (wesnoth-debug+0x422bd0b)
  3196. #3 std::_Rb_tree<unsigned long, std::pair<unsigned long const, gui2::timer>, std::_Select1st<std::pair<unsigned long const, gui2::timer> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, gui2::timer> > >::_M_put_node(std::_Rb_tree_node<std::pair<unsigned long const, gui2::timer> >*) /usr/include/c++/7/bits/stl_tree.h:592 (wesnoth-debug+0x422b736)
  3197. #4 std::_Rb_tree<unsigned long, std::pair<unsigned long const, gui2::timer>, std::_Select1st<std::pair<unsigned long const, gui2::timer> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, gui2::timer> > >::_M_drop_node(std::_Rb_tree_node<std::pair<unsigned long const, gui2::timer> >*) /usr/include/c++/7/bits/stl_tree.h:659 (wesnoth-debug+0x422a30f)
  3198. #5 std::_Rb_tree<unsigned long, std::pair<unsigned long const, gui2::timer>, std::_Select1st<std::pair<unsigned long const, gui2::timer> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, gui2::timer> > >::_M_erase_aux(std::_Rb_tree_const_iterator<std::pair<unsigned long const, gui2::timer> >) /usr/include/c++/7/bits/stl_tree.h:2477 (wesnoth-debug+0x422b57b)
  3199. #6 std::_Rb_tree<unsigned long, std::pair<unsigned long const, gui2::timer>, std::_Select1st<std::pair<unsigned long const, gui2::timer> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, gui2::timer> > >::erase[abi:cxx11](std::_Rb_tree_iterator<std::pair<unsigned long const, gui2::timer> >) <null> (wesnoth-debug+0x422a199)
  3200. #7 std::map<unsigned long, gui2::timer, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, gui2::timer> > >::erase[abi:cxx11](std::_Rb_tree_iterator<std::pair<unsigned long const, gui2::timer> >) <null> (wesnoth-debug+0x42295b1)
  3201. #8 gui2::remove_timer(unsigned long) src/gui/core/timer.cpp:170 (wesnoth-debug+0x42285f6)
  3202. #9 gui2::dialogs::loading_screen::clear_timer() src/gui/dialogs/loading_screen.cpp:233 (wesnoth-debug+0x4277855)
  3203. #10 gui2::dialogs::loading_screen::post_show(gui2::window&) src/gui/dialogs/loading_screen.cpp:138 (wesnoth-debug+0x427531e)
  3204. #11 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:108 (wesnoth-debug+0x42a38bb)
  3205. #12 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  3206. #13 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  3207. #14 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  3208. #15 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  3209. #16 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  3210. #17 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  3211. #18 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  3212. #19 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  3213. #20 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  3214.  
  3215. Previous read of size 4 at 0x7b1400125d6c by thread T1:
  3216. #0 timer_callback src/gui/core/timer.cpp:106 (wesnoth-debug+0x4227a37)
  3217. #1 <null> <null> (libSDL2-2.0.so.0+0x67fc8)
  3218.  
  3219. As if synchronized via sleep:
  3220. #0 nanosleep <null> (libtsan.so.0+0x49490)
  3221. #1 <null> <null> (libSDL2-2.0.so.0+0xdd914)
  3222. #2 gui2::dialogs::modal_dialog::show(unsigned int) src/gui/dialogs/modal_dialog.cpp:89 (wesnoth-debug+0x42a3237)
  3223. #3 gui2::dialogs::loading_screen::display(std::function<void ()>) src/gui/dialogs/loading_screen.cpp:223 (wesnoth-debug+0x42771c8)
  3224. #4 play_controller::init(config const&) src/play_controller.cpp:204 (wesnoth-debug+0x4902559)
  3225. #5 play_controller::play_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/play_controller.cpp:181 (wesnoth-debug+0x48facfa)
  3226. #6 playsingle_controller::playsingle_controller(config const&, saved_game&, config const&, std::shared_ptr<terrain_type_data> const&, bool) src/playsingle_controller.cpp:79 (wesnoth-debug+0x5a5c1a0)
  3227. #7 campaign_controller::playsingle_scenario(end_level_data&) src/game_initialization/playcampaign.cpp:189 (wesnoth-debug+0x5676e7a)
  3228. #8 campaign_controller::play_game() src/game_initialization/playcampaign.cpp:281 (wesnoth-debug+0x5678a70)
  3229. #9 game_launcher::launch_game(game_launcher::RELOAD_GAME_DATA) src/game_launcher.cpp:983 (wesnoth-debug+0x40f6333)
  3230. #10 do_gameloop src/wesnoth.cpp:897 (wesnoth-debug+0x3ca4dcf)
  3231. #11 main src/wesnoth.cpp:1143 (wesnoth-debug+0x3ca5b33)
  3232.  
  3233. Thread T1 'SDLTimer' (tid=29310, running) created by main thread at:
  3234. #0 pthread_create <null> (libtsan.so.0+0x2b6db)
  3235. #1 <null> <null> (libSDL2-2.0.so.0+0xd8e36)
  3236. #2 __libc_start_main <null> (libc.so.6+0x21a86)
  3237.  
  3238. SUMMARY: ThreadSanitizer: data race (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x6f3d1) in operator delete(void*)
  3239. ==================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement