Segfault in random map generator

Bug #1782593 reported by Benedikt Straub
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Undecided
Unassigned

Bug Description

Start the editor and create a random map. During map creation, Widelands crashes with:

Thread 1 "widelands" received signal SIGSEGV, Segmentation fault.
0x006458bf in Widelands::MapGenerator::create_random_map() ()
(gdb) bt
#0 0x006458bf in Widelands::MapGenerator::create_random_map() ()
#1 0x00622fc7 in MainMenuNewRandomMap::clicked_create_map() ()
#2 0x0074342c in boost::signals2::detail::signal_impl<void (), boost::signals2::optional_last_value<void>, int, std::less<int>, boost::function<void ()>, boost::function<void (boost::signals2::connection const&)>, boost::signals2::mutex>::operator()() ()
#3 0x007ed480 in UI::Button::handle_mouserelease(unsigned char, int, int) ()
#4 0x008062ef in UI::Panel::ui_mouserelease(unsigned char, int, int) ()
#5 0x005cdd80 in WLApplication::handle_input(InputCallback const*) ()
#6 0x008069d9 in UI::Panel::do_run() ()
#7 0x005ef3d0 in EditorInteractive::run_editor(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&) ()
#8 0x005d2e7e in WLApplication::run() ()
#9 0x00586d7e in main ()

Tags: crash editor

Related branches

Revision history for this message
kaputtnik (franku) wrote :

With bzr8759 it crashes with the message:

widelands: /home/kaputtnik/Quellcode/widelands-repo/trunk/src/logic/map.cc:411: const string& Widelands::Map::get_scenario_player_tribe(Widelands::PlayerNumber) const: Assertion `p <= get_nrplayers()' failed.

Full backtrace attached.

Changed in widelands:
status: New → Confirmed
milestone: none → build20-rc1
Notabilis (notabilis27)
Changed in widelands:
assignee: nobody → Notabilis (notabilis27)
Revision history for this message
Notabilis (notabilis27) wrote :

Should be fixed in trunk now.

GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → Fix Committed
assignee: Notabilis (notabilis27) → nobody
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.