GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from vcmiclient...done. (gdb) r Starting program: /usr/bin/vcmiclient [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Starting... [New Thread 0x7fffe62bf700 (LWP 2796)] VCMI 0.99 4d1fb6759482c1b7122827decbe9bd679b758448 (client) Creating console and configuring logger: 5 The log file will be saved to "/home/zer0def/.cache/vcmi/VCMI_Client_log.txt"  Initialization: 2  Data loading: 83  Mod handler: 0  Mod filesystems: 18 Basic initialization: 104 Initialized logging system based on settings successfully. [log level] ai => not set [log level] animation => not set [log level] bonus => not set [log level] global => trace [log level] network => not set Error: campaign movies was not found! Error: campaign music was not found! Loading settings: 107 [New Thread 0x7fffe590b700 (LWP 2797)] [New Thread 0x7ffff7e40700 (LWP 2807)] Found 4 render drivers  opengl (active)  opengles2  opengles  software Check display mode: requested 800 x 600; available up to 1366 x 768 Created renderer opengl  Initializing screen: 184  Initializing video: 6 [New Thread 0x7ffff7ff0700 (LWP 2808)] Initializing screen and sound handling: 3 [New Thread 0x7fffcaf13700 (LWP 2809)]  Bonus type handler: 6  General text handler: 8  Hero handler: 4  Artifact handler: 0  Creature handler: 0  Town handler: 0  Object handler: 0  Object types information handler: 0  Spell handler: 0  Terrain view pattern handler: 3  Template handler: 0  Initializing handlers: 25  Initializing content handler: 147 ms  [68a4bee3] Original game files  [63c2a784] VCMI essential files  Parsing mod data: 41 ms  [SKIP] Original game files  [SKIP] VCMI essential files  Loading mod data: 85ms  Resolving identifiers: 17 ms No templates found for 38:1 No templates found for 49:1 No templates found for 70:0 No templates found for 79:7 No templates found for 90:1 No templates found for 100:1 No templates found for 103:1 No templates found for 113:1 No templates found for 172:0 No templates found for 186:0 No templates found for 189:0  Handlers post-load finalization: 5 ms  All game content loaded in 296 ms Initializing VCMI_Lib: 323 Screen handler: 6  Main graphics: 272 Initializing game graphics: 279 Message handler: 2 Initialization of VCMI (together): 914 [Thread 0x7fffcaf13700 (LWP 2809) exited] [New Thread 0x7fffcaf13700 (LWP 2810)] [Thread 0x7fffcaf13700 (LWP 2810) exited] [New Thread 0x7fffcaf13700 (LWP 2811)] Blocking buttons from 1  [New Thread 0x7fffc90ba700 (LWP 2830)] [New Thread 0x7fffc88b9700 (LWP 2831)] Setting up thread calling server: 0 No templates found for 38:1 No templates found for 49:1 No templates found for 70:0 No templates found for 79:7 No templates found for 90:1 No templates found for 100:1 No templates found for 103:1 No templates found for 113:1 No templates found for 172:0 No templates found for 186:0 No templates found for 189:0 Waiting for server: 33 Establishing connection... Found endpoints:  0: 127.0.0.1:3030 Trying connection to 127.0.0.1:3030 (0) Established connection with VCMI 0.99 4d1fb6759482c1b7122827decbe9bd679b758448 (server)  Connecting to the server: 4  Will send info to server...  Sending/Getting info to/from the server: 8  Creating gamestate: 0  Using random seed: 1495954846 Open map file: MAPS/ARROGANCE Map loaded!  Our checksum for the map: 1596882971 Seed after init is 619623896 (before was 1495954846) Initializing GameState (together): 104 Creating mapHandler: 1  Preparing FoW, terrain, roads, rivers, borders: 52  Making object rects: 75 Initializing mapHandler (together): 127 Player 1 will be lead by VCAI Opening VCAI Loaded VCAI Engine: InputVariable: OurShooters enabled: true range: 0.000 1.000 term: FEW Ramp 0.600 0.000 term: MANY Ramp 0.400 1.000 InputVariable: OurWalkers enabled: true range: 0.000 1.000 term: FEW Ramp 0.600 0.000 term: MANY Ramp 0.400 1.000 InputVariable: OurFlyers enabled: true range: 0.000 1.000 term: FEW Ramp 0.600 0.000 term: MANY Ramp 0.400 1.000 InputVariable: EnemyShooters enabled: true range: 0.000 1.000 term: FEW Ramp 0.600 0.000 term: MANY Ramp 0.400 1.000 InputVariable: EnemyWalkers enabled: true range: 0.000 1.000 term: FEW Ramp 0.600 0.000 term: MANY Ramp 0.400 1.000 InputVariable: EnemyFlyers enabled: true range: 0.000 1.000 term: FEW Ramp 0.600 0.000 term: MANY Ramp 0.400 1.000 InputVariable: OurSpeed enabled: true range: 0.000 25.000 term: LOW Ramp 6.500 3.000 term: MEDIUM Triangle 5.500 8.000 10.500 term: HIGH Ramp 8.500 16.000 InputVariable: EnemySpeed enabled: true range: 0.000 25.000 term: LOW Ramp 6.500 3.000 term: MEDIUM Triangle 5.500 8.000 10.500 term: HIGH Ramp 8.500 16.000 InputVariable: CastleWalls enabled: true range: 0.000 3.000 term: NONE Rectangle 0.000 0.500 term: MEDIUM Trapezoid 0.500 1.000 2.000 2.500 term: HIGH Ramp 1.900 3.000 InputVariable: Bank enabled: true range: 0.000 1.000 term: FALSE Rectangle 0.000 0.500 term: TRUE Rectangle 0.500 1.000 OutputVariable: Threat enabled: true range: 0.500 1.500 accumulation: AlgebraicSum defuzzifier: Centroid 200 default: nan lock-previous: false lock-range: false term: LOW Ramp 1.000 0.500 term: MEDIUM Triangle 0.800 1.000 1.200 term: HIGH Ramp 1.000 1.500 RuleBlock: enabled: true conjunction: Minimum disjunction: Maximum activation: Minimum rule: if OurShooters is MANY and EnemySpeed is LOW then Threat is LOW rule: if OurShooters is MANY and EnemyShooters is FEW then Threat is LOW rule: if OurSpeed is LOW and EnemyShooters is MANY then Threat is HIGH rule: if OurSpeed is HIGH and EnemyShooters is MANY then Threat is LOW rule: if OurWalkers is FEW and EnemyShooters is MANY then Threat is somewhat LOW rule: if OurShooters is MANY and EnemySpeed is HIGH then Threat is somewhat HIGH rule: if OurShooters is FEW and EnemySpeed is HIGH then Threat is MEDIUM rule: if EnemySpeed is MEDIUM then Threat is MEDIUM rule: if EnemySpeed is LOW and OurShooters is FEW then Threat is MEDIUM rule: if Bank is TRUE and OurShooters is MANY then Threat is somewhat HIGH rule: if Bank is TRUE and EnemyShooters is MANY then Threat is LOW rule: if CastleWalls is HIGH and OurWalkers is MANY then Threat is very HIGH rule: if CastleWalls is HIGH and OurFlyers is MANY and OurShooters is MANY then Threat is MEDIUM rule: if CastleWalls is MEDIUM and OurShooters is MANY and EnemyWalkers is MANY then Threat is LOW Engine: InputVariable: strengthRatio enabled: true range: 0.000 4.500 term: LOW Ramp 1.500 0.000 term: HIGH Ramp 1.500 4.500 InputVariable: heroStrength enabled: true range: 0.000 1.000 term: LOW Ramp 0.200 0.000 term: MEDIUM Triangle 0.200 0.500 0.800 term: HIGH Ramp 0.500 1.000 InputVariable: turnDistance enabled: true range: 0.000 3.000 term: SMALL Ramp 0.500 0.000 term: MEDIUM Triangle 0.100 0.450 0.800 term: LONG Ramp 0.500 3.000 InputVariable: lockedMissionImportance enabled: true range: 0.000 5.000 term: LOW Ramp 2.500 0.000 term: MEDIUM Triangle 2.000 2.500 3.000 term: HIGH Ramp 2.500 5.000 OutputVariable: Value enabled: true range: 0.000 5.000 accumulation: AlgebraicSum defuzzifier: Centroid 200 default: nan lock-previous: false lock-range: false term: LOW Ramp 2.500 0.000 term: MEDIUM Triangle 2.000 2.500 3.000 term: HIGH Ramp 2.500 5.000 RuleBlock: enabled: true conjunction: Minimum disjunction: Maximum activation: Minimum rule: if strengthRatio is HIGH and heroStrength is LOW then Value is very HIGH rule: if strengthRatio is HIGH and heroStrength is MEDIUM then Value is somewhat HIGH rule: if strengthRatio is HIGH and heroStrength is HIGH then Value is somewhat LOW rule: if strengthRatio is LOW and heroStrength is LOW then Value is very LOW rule: if strengthRatio is LOW and heroStrength is MEDIUM then Value is somewhat HIGH rule: if strengthRatio is LOW and heroStrength is HIGH then Value is LOW rule: if lockedMissionImportance is HIGH then Value is very LOW rule: if lockedMissionImportance is MEDIUM then Value is somewhat LOW rule: if lockedMissionImportance is LOW then Value is HIGH rule: if turnDistance is SMALL then Value is HIGH rule: if turnDistance is MEDIUM then Value is MEDIUM rule: if turnDistance is LONG then Value is LOW Player 5 will be lead by VCAI Opening VCAI Loaded VCAI Player 6 will be lead by VCAI Opening VCAI Loaded VCAI Opening BattleAI Loaded Battle AI [New Thread 0x7fffa3a27700 (LWP 2871)] [Thread 0x7fffc90ba700 (LWP 2830) exited] #1444-like issue in CGTownInstance::serialize. From town at 4 6 1 removing the bogus builtBuildings item 27 #1444-like issue in CGTownInstance::serialize. From town at 6 29 0 removing the bogus builtBuildings item 27 #1444-like issue in CGTownInstance::serialize. From town at 9 5 0 removing the bogus builtBuildings item 27 #1444-like issue in CGTownInstance::serialize. From town at 27 4 1 removing the bogus builtBuildings item 27 [Thread 0x7fffcaf13700 (LWP 2811) exited] [New Thread 0x7fffcaf13700 (LWP 2879)] [Thread 0x7fffcaf13700 (LWP 2879) exited] [New Thread 0x7fffcaf13700 (LWP 2880)] Saving lib part of game...  Saving header  Saving options  Saving handlers  Saving gamestate #1444-like issue in CGTownInstance::serialize. From town at 4 6 1 removing the bogus builtBuildings item 27 #1444-like issue in CGTownInstance::serialize. From town at 6 29 0 removing the bogus builtBuildings item 27 #1444-like issue in CGTownInstance::serialize. From town at 9 5 0 removing the bogus builtBuildings item 27 #1444-like issue in CGTownInstance::serialize. From town at 27 4 1 removing the bogus builtBuildings item 27 Grindan has assigned an empty path! Ignoring it... Warning, Grindan tries to leave the town but hero is not inside. vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) sh: line 1: 2833 Aborted (core dumped) /usr/bin/vcmiserver --port=3030 > "/home/zer0def/.cache/vcmi/server_log.txt" Error: server failed to close correctly or crashed! Check /home/zer0def/.cache/vcmi/server_log.txt for more info terminate called after throwing an instance of 'boost::exception_detail::clone_impl >' what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument terminate called recursively Thread 1 "vcmiclient" received signal SIGABRT, Aborted. 0x00007ffff30b3a10 in raise () from /usr/lib/libc.so.6 (gdb) bt full #0 0x00007ffff30b3a10 in raise () from /usr/lib/libc.so.6 No symbol table info available. #1 0x00007ffff30b513a in abort () from /usr/lib/libc.so.6 No symbol table info available. #2 0x00007ffff39df4ed in __gnu_cxx::__verbose_terminate_handler () at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/vterminate.cc:95 terminating = true t = #3 0x00007ffff39dd2a6 in __cxxabiv1::__terminate (handler=) at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47 No locals. #4 0x00007ffff39dd2f1 in std::terminate () at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57 No locals. #5 0x00007ffff39dd508 in __cxxabiv1::__cxa_throw (obj=obj@entry=0xa5ddf0, tinfo=tinfo@entry=0x69cc78 >>, dest=dest@entry=0x457cc0 >::~clone_impl()>) at /build/gcc-multilib/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:87 globals = #6 0x0000000000457e87 in boost::throw_exception (e=...) at /usr/include/boost/throw_exception.hpp:69 No locals. #7 0x000000000049f6d5 in boost::mutex::lock (this=) at /usr/include/boost/thread/pthread/mutex.hpp:119 No locals. #8 boost::unique_lock::lock (this=) at /usr/include/boost/thread/lock_types.hpp:346 No locals. #9 boost::unique_lock::unique_lock (m_=..., this=) at /usr/include/boost/thread/lock_types.hpp:124 No locals. #10 CondSh::get (this=) at /var/tmp/vcmi-git/src/vcmi-git/include/../lib/CondSh.h:39 No locals. #11 CGuiHandler::renderFrame (this=this@entry=0x9b7d60 ) at /var/tmp/vcmi-git/src/vcmi-git/client/gui/CGuiHandler.cpp:405 acquiredTheLockOnPim = false __FUNCTION__ = "renderFrame" #12 0x00000000004457f7 in mainLoop (this=, this=, this=, this=, this=, this=, this=, this=, this=, this=, this=) at /var/tmp/vcmi-git/src/vcmi-git/client/CMT.cpp:1269 ev = {type = 769, common = {type = 769, timestamp = 11036}, window = {type = 769, timestamp = 11036, windowID = 2, event = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', data1 = 44, data2 = 32}, key = {type = 769, timestamp = 11036, windowID = 2, state = 0 '\000', repeat = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', keysym = {scancode = SDL_SCANCODE_SPACE, sym = 32, mod = 0, unused = 3989962708}}, edit = {type = 769, timestamp = 11036, windowID = 2, text = "\000\000\000\000,\000\000\000 \000\000\000\000\000\316\344\324\377\321\355\000\000\000\000\000\000\000\000\000\257", , start = 0, length = 0}, text = {type = 769, timestamp = 11036, windowID = 2, text = "\000\000\000\000,\000\000\000 \000\000\000\000\000\316\344\324\377\321\355\000\000\000\000\000\000\000\000\000\257", }, motion = {type = 769, timestamp = 11036, windowID = 2, which = 0, state = 44, x = 32, y = -456261632, xrel = -305004588, yrel = 0}, button = {type = 769, timestamp = 11036, windowID = 2, which = 0, button = 44 ',', state = 0 '\000', clicks = 0 '\000', padding1 = 0 '\000', x = 32, y = -456261632}, wheel = {type = 769, timestamp = 11036, windowID = 2, which = 0, x = 44, y = 32, direction = 3838705664}, jaxis = {type = 769, timestamp = 11036, which = 2, axis = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', value = 44, padding4 = 0}, jball = {type = 769, timestamp = 11036, which = 2, ball = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', xrel = 44, yrel = 0}, jhat = { type = 769, timestamp = 11036, which = 2, hat = 0 '\000', value = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, jbutton = {type = 769, timestamp = 11036, which = 2, button = 0 '\000', state = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, jdevice = {type = 769, timestamp = 11036, which = 2}, caxis = {type = 769, timestamp = 11036, which = 2, axis = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000', value = 44, padding4 = 0}, cbutton = {type = 769, timestamp = 11036, which = 2, button = 0 '\000', state = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000'}, cdevice = {type = 769, timestamp = 11036, which = 2}, adevice = {type = 769, timestamp = 11036, which = 2, iscapture = 0 '\000', padding1 = 0 '\000', padding2 = 0 '\000', padding3 = 0 '\000'}, quit = {type = 769, timestamp = 11036}, user = {type = 769, timestamp = 11036, windowID = 2, code = 0, data1 = 0x200000002c, data2 = 0xedd1ffd4e4ce0000}, syswm = {type = 769, timestamp = 11036, msg = 0x2}, tfinger = {type = 769, timestamp = 11036, touchId = 2, fingerId = 137438953516, x = -3.04002342e+22, y = -8.12395553e+27, dx = 0, dy = 0, pressure = 1.87972194e-38}, mgesture = {type = 769, timestamp = 11036, touchId = 2, dTheta = 6.16571324e-44, dDist = 4.48415509e-44, x = -3.04002342e+22, y = -8.12395553e+27, numFingers = 0, padding = 0}, dgesture = {type = 769, timestamp = 11036, touchId = 2, gestureId = 137438953516, numFingers = 3838705664, error = -8.12395553e+27, x = 0, y = 0}, drop = {type = 769, timestamp = 11036, file = 0x2 , windowID = 44}, padding = "\001\003\000\000\034+\000\000\002\000\000\000\000\000\000\000,\000\000\000 \000\000\000\000\000\316\344\324\377\321\355\000\000\000\000\000\000\000\000\000\257\314", '\000' } resChanged = {parent = @0x9b4e40, path = std::vector of length 2, capacity 2 = {"video", "fullscreen"}, callback = {> = {> = {}, }, = {static _M_max_size = 16, static _M_max_align = 8, _M_functor = {_M_unused = {_M_object = 0x7fffffffdde0, _M_const_object = 0x7fffffffdde0, _M_function_pointer = 0x7fffffffdde0, _M_member_pointer = (void (std::_Undefined_class::*)(std::_Undefined_class * const)) 0x7fffffffdde0, this adjustment -1309984726751203840}, _M_pod_data = "\340\335\377\377\377\177\000\000\000\256\316\344\324\377\321", }, _M_manager = 0x5fd160 >::_M_manager(std::_Any_data &, const std::_Any_data &, std::_Manager_operation)>}, _M_invoker = 0x5fd500 >::_M_invoke(const std::_Any_data &, const JsonNode &)>}} #13 main (argc=, argv=0x7fffffffe108) at /var/tmp/vcmi-git/src/vcmi-git/client/CMT.cpp:520 opts = {static m_default_line_length = 80, m_caption = "Allowed options", m_line_length = 80, m_min_description_length = 40, m_options = std::vector of length 21, capacity 32 = {{ px = 0xa201b0, pn = {pi_ = 0xa20270}}, {px = 0xa202f0, pn = {pi_ = 0xa203c0}}, {px = 0xa20410, pn = {pi_ = 0xa204c0}}, {px = 0xa20530, pn = {pi_ = 0xa205d0}}, {px = 0xa20610, pn = {pi_ = 0xa20700}}, {px = 0xa207d0, pn = {pi_ = 0xa208a0}}, {px = 0xa208c0, pn = {pi_ = 0xa209d0}}, {px = 0xa20a10, pn = {pi_ = 0xa20af0}}, {px = 0xa20b30, pn = { pi_ = 0xa20c00}}, {px = 0xa20d30, pn = {pi_ = 0xa20780}}, {px = 0xa20dd0, pn = {pi_ = 0xa20e90}}, {px = 0xa20ed0, pn = {pi_ = 0xa20f70}}, {px = 0xa20fd0, pn = { pi_ = 0xa210c0}}, {px = 0xa210e0, pn = {pi_ = 0xa211d0}}, {px = 0xa211f0, pn = {pi_ = 0xa212c0}}, {px = 0xa21310, pn = {pi_ = 0xa21400}}, {px = 0xa21420, pn = { pi_ = 0xa214f0}}, {px = 0xa20c20, pn = {pi_ = 0xa20cf0}}, {px = 0xa21720, pn = {pi_ = 0xa217e0}}, {px = 0xa21800, pn = {pi_ = 0xa218d0}}, {px = 0xa21920, pn = { pi_ = 0xa219f0}}}, belong_to_group = std::vector of length 21, capacity 64 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, groups = std::vector of length 0, capacity 0} total = {start = , last = , mem = 0} pomtime = {start = , last = , mem = 0} logPath = {static separator = 47 '/', static preferred_separator = 47 '/', static dot = 46 '.', m_pathname = "/home/zer0def/.cache/vcmi/VCMI_Client_log.txt"} logConfig = {filePath = {static separator = 47 '/', static preferred_separator = 47 '/', static dot = 46 '.', m_pathname = "/home/zer0def/.cache/vcmi/VCMI_Client_log.txt"}, console = 0xa21a40, appendToLogFile = true} testingSettings = {parent = @0x9b4e40, path = std::vector of length 1, capacity 1 = {"testing"}, node = @0xcc43b0, copy = {type = JsonNode::DATA_NULL, data = {Bool = false, Float = 0, String = 0x0, Vector = 0x0, Struct = 0x0, Integer = 0}, meta = ""}} video = res = loading = {thread_info = {px = 0x0, pn = {pi_ = 0x0}}} (gdb) q A debugging session is active. Inferior 1 [process 2743] will be killed. Quit anyway? (y or n) y