gdb ./widelands GNU gdb (GDB) 7.11 Copyright (C) 2016 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 ./widelands...done. (gdb) run Starting program: /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/widelands [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". This is Widelands Version bzr7974[bug-1573968-new-map-crash] (Debug) Set home directory: /home/kaputtnik/.widelands Widelands executable directory: /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/ Adding directory: /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/data selected language: en No corresponding locale found - trying to set it via LANGUAGE=en, LANG=en Graphics: Try to set Videomode 800x600 Graphics: OpenGL: Version "3.0 Mesa 11.2.1" Graphics: SDL_GL_RED_SIZE is 8 Graphics: SDL_GL_GREEN_SIZE is 8 Graphics: SDL_GL_BLUE_SIZE is 8 Graphics: SDL_GL_ALPHA_SIZE is 0 Graphics: SDL_GL_BUFFER_SIZE is 24 Graphics: SDL_GL_DOUBLEBUFFER is 1 Graphics: SDL_GL_DEPTH_SIZE is 24 Graphics: SDL_GL_STENCIL_SIZE is 8 Graphics: SDL_GL_ACCUM_RED_SIZE is 0 Graphics: SDL_GL_ACCUM_GREEN_SIZE is 0 Graphics: SDL_GL_ACCUM_BLUE_SIZE is 0 Graphics: SDL_GL_ACCUM_ALPHA_SIZE is 0 Graphics: SDL_GL_STEREO is 0 Graphics: SDL_GL_MULTISAMPLEBUFFERS is 0 Graphics: SDL_GL_MULTISAMPLESAMPLES is 0 Graphics: SDL_GL_ACCELERATED_VISUAL is 1 Graphics: SDL_GL_CONTEXT_MAJOR_VERSION is 2 Graphics: SDL_GL_CONTEXT_MINOR_VERSION is 1 Graphics: SDL_GL_CONTEXT_FLAGS is 0 Graphics: SDL_GL_CONTEXT_PROFILE_MASK is 2 Graphics: SDL_GL_SHARE_WITH_CURRENT_CONTEXT is 0 Graphics: SDL_GL_FRAMEBUFFER_SRGB_CAPABLE is 0 Graphics: OpenGL: Double buffering enabled Graphics: OpenGL: Max texture size: 8192 Graphics: OpenGL: ShadingLanguage: "1.30" **** GRAPHICS REPORT **** VIDEO DRIVER x11 pixel fmt 370546692 size 800 600 **** END GRAPHICS REPORT **** [New Thread 0x7fffe18ee700 (LWP 1589)] [New Thread 0x7fffe10ed700 (LWP 1590)] ## FrankU -> Starting editor Loading the world took 460ms Loading Ships Loading Wares Loading Immovables Loading Workers Loading Warehouses Loading Productionsites Loading Trainingsites Loading Militarysites Loading Partially Finished Buildings Loading Atlanteans Loading Barbarians Loading Empire Finished loading tribes Loading the tribes took 1482ms ## FrankU -> places a player and saving the Map Writing Elemental Data ... took 3ms Writing Player Names And Tribe Data ... took 0ms Writing Port Spaces Data ... took 0ms Writing Heights Data ... took 2ms Writing Terrain Data ... took 11ms Writing Player Start Position Data ... took 0ms Writing Resources Data ... took 4ms Writing Map Version ... took 1ms Writing Map Objects ... took 0ms Writing Scripting Data ... took 0ms Writing Objective Data ... took 0ms Writing map images ... took 0ms MapSaver::save() for 'one_player' took 25ms ## FrankU -> Creates a new map (no output in konsole) ## FrankU -> Place a player and save the Map Writing Elemental Data ... took 1ms Writing Player Names And Tribe Data ... took 0ms Writing Port Spaces Data ... took 0ms Writing Heights Data ... took 1ms Writing Terrain Data ... took 7ms Writing Player Start Position Data ... took 0ms Writing Resources Data ... took 2ms Writing Map Version ... took 1ms Writing Map Objects ... took 0ms Writing Scripting Data ... took 0ms Writing Objective Data ... took 0ms Writing map images ... took 0ms MapSaver::save() for 'one_player' took 15ms ## FrankU -> Load the previous saved Map Reading Elemental Data ... took 1ms Reading Player Names And Tribe Data ... took 0ms Reading Port Spaces Data ... took 0ms Reading Heights Data ... took 1ms Reading Terrain Data ... took 4ms Reading Map Objects ... took 0ms Reading Player Start Position Data ... took 0ms Reading Resources Data ... took 21ms Reading Objective Data ... took 0ms Reading Scripting Data ... took 0ms Reading map images ... took 0ms WidelandsMapLoader::load_map_complete() for 'one_player' took 103ms widelands: /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/logic/map.h:205: Widelands::Coords Widelands::Map::get_starting_pos(Widelands::PlayerNumber) const: Assertion `1 <= p && p <= get_nrplayers()' failed. Thread 1 "widelands" received signal SIGABRT, Aborted. 0x00007ffff516d2a8 in raise () from /usr/lib/libc.so.6 (gdb) backtrace #0 0x00007ffff516d2a8 in raise () from /usr/lib/libc.so.6 #1 0x00007ffff516e72a in abort () from /usr/lib/libc.so.6 #2 0x00007ffff51661b7 in __assert_fail_base () from /usr/lib/libc.so.6 #3 0x00007ffff5166262 in __assert_fail () from /usr/lib/libc.so.6 #4 0x0000000000d26dc3 in Widelands::Map::get_starting_pos (this=0x30ae5b0, p=2 '\002') at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/logic/map.h:205 #5 0x0000000000d4a4fe in editor_tool_set_starting_pos_callback (c=..., map=...) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/editor/tools/set_starting_pos_tool.cc:64 #6 0x0000000000d83ea4 in boost::_bi::list2, boost::reference_wrapper >::operator() const&, Widelands::Map&), boost::_bi::rrlist1 const&> > (this=0x301cd10, f=@0x301cd08: 0xd4a4b4 const&, Widelands::Map&)>, a=...) at /usr/include/boost/bind/bind.hpp:309 #7 0x0000000000d839c0 in boost::_bi::bind_t const&, Widelands::Map&), boost::_bi::list2, boost::reference_wrapper > >::operator() const&> (this=0x301cd08, a1=...) at /usr/include/boost/bind/bind.hpp:1234 #8 0x0000000000d83230 in std::_Function_handler const&), boost::_bi::bind_t const&, Widelands::Map&), boost::_bi::list2, boost::reference_wrapper > > >::_M_invoke(std::_Any_data const&, Widelands::TCoords const&) (__functor=..., __args#0=...) at /usr/include/c++/5.3.0/functional:1857 #9 0x000000000112b6cd in std::function const&)>::operator()(Widelands::TCoords const&) const ( this=0x301cd08, __args#0=...) at /usr/include/c++/5.3.0/functional:2267 #10 0x000000000112a9d4 in FieldOverlayManager::get_buildhelp_overlay (this=0x301cc10, ---Type to continue, or q to quit--- fc=...) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/wui/field_overlay_manager.cc:103 #11 0x000000000112a755 in FieldOverlayManager::get_overlays (this=0x301cc10, c=..., result=0x7fffffffc150) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/wui/field_overlay_manager.cc:76 #12 0x00000000012332ce in GameRenderer::draw_objects (this=0x3650cc0, dst=..., egbase=..., view_offset=..., player=0x0, minfx=-2, maxfx=14, minfy=-2, maxfy=28) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/graphic/game_renderer.cc:403 #13 0x00000000012324ea in GameRenderer::draw (this=0x3650cc0, dst=..., egbase=..., view_offset=..., player=0x0) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/graphic/game_renderer.cc:243 #14 0x0000000001231e24 in GameRenderer::rendermap (this=0x3650cc0, dst=..., egbase=..., view_offset=...) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/graphic/game_renderer.cc:138 #15 0x000000000105992a in MapView::draw (this=0x364f600, dst=...) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/wui/mapview.cc:91 #16 0x0000000000f9fcaa in UI::Panel::do_draw_inner (this=0x364f600, dst=...) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/ui_basic/panel.cc:750 #17 0x0000000000f9fe6c in UI::Panel::do_draw (this=0x364f600, dst=...) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/ui_basic/panel.cc:786 #18 0x0000000000f9ed14 in UI::Panel::do_run (this=0x364f600) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/ui_basic/panel.cc:188 ---Type to continue, or q to quit--- #19 0x0000000000d0b0dc in UI::Panel::run (this=0x364f600) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/ui_basic/panel.h:98 #20 0x0000000000d2494e in EditorInteractive::run_editor (filename="", script_to_run="") at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/editor/editorinteractive.cc:676 #21 0x0000000000d04c39 in WLApplication::mainmenu (this=0x19d7d80) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/wlapplication.cc:1033 #22 0x0000000000d015d0 in WLApplication::run (this=0x19d7d80) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/wlapplication.cc:449 #23 0x0000000000cffcc1 in main (argc=1, argv=0x7fffffffe688) at /home/kaputtnik/widelands-repo/bug-1573968-new-map-crash/src/main.cc:50 (gdb) quit A debugging session is active. Inferior 1 [process 1585] will be killed. Quit anyway? (y or n) y