Server crashes under Linux with r7121

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
PhilSophus
Krill Swarm
Posts: 11
Joined: Thu May 16, 2013 9:52 am
Location: Germany

Server crashes under Linux with r7121

#1 Post by PhilSophus »

Directly after starting a single player game with default settings (removed config.xml for a clean start), I shortly get to see the starting location and then the server triggers an assertion in boost (1.53) under Kubuntu 12.04 (64 bits).

Having done a bisect, the first broken SVN revision seems to be

r7121 some AI code reorganization preparatory to supporting proposed supply patch

Code: Select all

freeorion: /usr/local/include/boost-1_53/boost/cast.hpp:97: Target boost::polymorphic_downcast(Source*) [with Target = PlayingGame*, Source = boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0u>]: Assertion `dynamic_cast<Target>(x) == x' failed.

Code: Select all

Core was generated by `bin/freeorion'.
Program terminated with signal 6, Aborted.
#0  0x00007f1894f45425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007f1894f45425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f1894f48b8b in __GI_abort () at abort.c:91
#2  0x00007f1894f3e0ee in __assert_fail_base (fmt=<optimized out>, assertion=0xe7cf55 "dynamic_cast<Target>(x) == x", 
    file=0xe7cf28 "/usr/local/include/boost-1_53/boost/cast.hpp", line=<optimized out>, function=<optimized out>) at assert.c:94
#3  0x00007f1894f3e192 in __GI___assert_fail (assertion=0xe7cf55 "dynamic_cast<Target>(x) == x", 
    file=0xe7cf28 "/usr/local/include/boost-1_53/boost/cast.hpp", line=97, 
    function=0xe81ca0 "Target boost::polymorphic_downcast(Source*) [with Target = PlayingGame*, Source = boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0u>"...) at assert.c:103
#4  0x00000000009a1362 in PlayingGame* boost::polymorphic_downcast<PlayingGame*, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>*) ()
#5  0x000000000099fd30 in PlayingGame& boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::context_impl_this_context::context_impl<PlayingGame, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&) ()
#6  0x000000000099e298 in PlayingGame& boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::context<PlayingGame>() ()
#7  0x000000000099bf54 in boost::statechart::detail::safe_reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::transit_impl<IntroMenu, HumanClientFSM, boost::statechart::detail::no_transition_function>(boost::statechart::detail::no_transition_function const&) ()
#8  0x0000000000999be5 in boost::statechart::detail::safe_reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::transit<IntroMenu>() ()
#9  0x000000000099553b in PlayingGame::react(EndGame const&) ()
#10 0x00000000009aa08f in boost::statechart::detail::reaction_result boost::statechart::custom_reaction<EndGame>::react<PlayingGame, boost::statechart::event_base, void const*>(PlayingGame&, boost::statechart::event_base const&, void const* const&) ()
#11 0x00000000009aa003 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list5<boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#12 0x00000000009a9ec7 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list5<boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#13 0x00000000009a9dc1 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list6<boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#14 0x00000000009a9c65 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list6<boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#15 0x00000000009a9afd in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list7<boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#16 0x00000000009a99a1 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list7<boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#17 0x00000000009a9839 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list8<boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#18 0x00000000009a96d1 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list8<boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#19 0x00000000009a94b2 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list9<boost::statechart::custom_reaction<Diplomacy>, boost::statechart::c---Type <return> to continue, or q <return> to quit---
ustom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#20 0x00000000009a9243 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list9<boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#21 0x00000000009a8f27 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list10<boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#22 0x00000000009a8bf7 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list10<boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#23 0x00000000009a87a0 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list11<boost::statechart::custom_reaction<Disconnection>, boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#24 0x00000000009a81dd in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list11<boost::statechart::custom_reaction<Disconnection>, boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#25 0x00000000009a7b7c in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list12<boost::statechart::custom_reaction<PlayerChat>, boost::statechart::custom_reaction<Disconnection>, boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> >, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#26 0x00000000009a7379 in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list12<boost::statechart::custom_reaction<PlayerChat>, boost::statechart::custom_reaction<Disconnection>, boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate> > >(boost::statechart::event_base const&, void const*) ()
#27 0x00000000009a681a in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react_impl_non_empty::local_react_impl<boost::mpl::list<boost::statechart::custom_reaction<HostID>, boost::statechart::custom_reaction<PlayerChat>, boost::statechart::custom_reaction<Disconnection>, boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0> >(boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>&, boost::statechart::event_base const&, void const*) ()
#28 0x00000000009a5b2f in boost::statechart::detail::reaction_result boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::local_react<boost::mpl::list<boost::statechart::custom_reaction<HostID>, boost::statechart::custom_reaction<PlayerChat>, boost::statechart::custom_reaction<Disconnection>, boost::statechart::custom_reaction<PlayerStatus>, boost::statechart::custom_reaction<Diplomacy>, boost::statechart::custom_reaction<DiplomaticStatusUpdate>, boost::statechart::custom_reaction<VictoryDefeat>, boost::statechart::custom_reaction<PlayerEliminated>, boost::statechart::custom_reaction<EndGame>, boost::statechart::custom_reaction<ResetToIntroMenu>, boost::statechart::custom_reaction<Error>, boost::statechart::custom_reaction<TurnProgress>, boost::statechart::custom_reaction<TurnPartialUpdate>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na> >(boost::statechart::event_base const&, void const*) ()
#29 0x00000000009a4cdf in boost::statechart::simple_state<PlayingGame, HumanClientFSM, WaitingForGameStart, (boost::statechart::history_mode)0>::react_impl(boost::statechart::event_base const&, void const*) ()
#30 0x00000000009a4a1f in boost::statechart::simple_state<PlayingTurn, PlayingGame, boost::mpl::list<mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na---Type <return> to continue, or q <return> to quit---
, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, (boost::statechart::history_mode)0>::react_impl(boost::statechart::event_base const&, void const*) ()
#31 0x0000000000959591 in boost::statechart::detail::send_function<boost::statechart::detail::state_base<std::allocator<void>, boost::statechart::detail::rtti_policy>, boost::statechart::event_base, void const*>::operator()() ()
#32 0x0000000000951da5 in boost::statechart::detail::safe_reaction_result boost::statechart::null_exception_translator::operator()<boost::statechart::detail::send_function<boost::statechart::detail::state_base<std::allocator<void>, boost::statechart::detail::rtti_policy>, boost::statechart::event_base, void const*>, boost::statechart::state_machine<HumanClientFSM, IntroMenu, std::allocator<void>, boost::statechart::null_exception_translator>::exception_event_handler>(boost::statechart::detail::send_function<boost::statechart::detail::state_base<std::allocator<void>, boost::statechart::detail::rtti_policy>, boost::statechart::event_base, void const*>, boost::statechart::state_machine<HumanClientFSM, IntroMenu, std::allocator<void>, boost::statechart::null_exception_translator>::exception_event_handler) ()
#33 0x000000000094abed in boost::statechart::state_machine<HumanClientFSM, IntroMenu, std::allocator<void>, boost::statechart::null_exception_translator>::send_event(boost::statechart::event_base const&) ()
#34 0x0000000000943a0c in boost::statechart::state_machine<HumanClientFSM, IntroMenu, std::allocator<void>, boost::statechart::null_exception_translator>::process_event(boost::statechart::event_base const&) ()
#35 0x0000000000934eb4 in HumanClientApp::HandleMessage(Message&) ()
#36 0x000000000093478b in HumanClientApp::HandleSystemEvents() ()
#37 0x00007f1899815354 in (anonymous namespace)::OgreModalEventPump::operator()() () from /usr/local/games/freeorion/lib/freeorion/libGiGiOgre.so
#38 0x00007f1899815ddc in GG::OgreGUI::Run() () from /usr/local/games/freeorion/lib/freeorion/libGiGiOgre.so
#39 0x00007f18980c570b in GG::GUI::operator()() () from /usr/local/games/freeorion/lib/freeorion/libGiGi.so
#40 0x0000000000980dfa in mainSetupAndRunOgre() ()
#41 0x000000000097d39e in main ()
freeorionca also generated a core:

Code: Select all

Core was generated by `"/usr/local/games/freeorion.svn7124/bin/freeorionca" AI_1 5 --resource-dir "/us'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007f24f5573c6f in ?? () from /usr/lib/libpython2.7.so.1.0
#2  0x00007f24f5574878 in _PyObject_GC_Malloc () from /usr/lib/libpython2.7.so.1.0
#3  0x00007f24f55748be in _PyObject_GC_NewVar () from /usr/lib/libpython2.7.so.1.0
#4  0x00007f24f5574964 in PyTuple_New () from /usr/lib/libpython2.7.so.1.0
#5  0x00007f24f545be8e in ?? () from /usr/lib/libpython2.7.so.1.0
#6  0x00007f24f545c3c4 in ?? () from /usr/lib/libpython2.7.so.1.0
#7  0x00007f24f545bed5 in ?? () from /usr/lib/libpython2.7.so.1.0
#8  0x00007f24f545c3c4 in ?? () from /usr/lib/libpython2.7.so.1.0
#9  0x00007f24f545bed5 in ?? () from /usr/lib/libpython2.7.so.1.0
#10 0x00007f24f545c3c4 in ?? () from /usr/lib/libpython2.7.so.1.0
#11 0x00007f24f544e868 in PyMarshal_ReadObjectFromString () from /usr/lib/libpython2.7.so.1.0
#12 0x00007f24f544e9bc in PyMarshal_ReadLastObjectFromFile () from /usr/lib/libpython2.7.so.1.0
#13 0x00007f24f5547495 in ?? () from /usr/lib/libpython2.7.so.1.0
#14 0x00007f24f5547acc in ?? () from /usr/lib/libpython2.7.so.1.0
#15 0x00007f24f551bdc1 in ?? () from /usr/lib/libpython2.7.so.1.0
#16 0x00007f24f55480df in ?? () from /usr/lib/libpython2.7.so.1.0
#17 0x00007f24f5541b8a in PyImport_ImportModuleLevel () from /usr/lib/libpython2.7.so.1.0
#18 0x00007f24f5445cef in ?? () from /usr/lib/libpython2.7.so.1.0
#19 0x00007f24f552f083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#20 0x00007f24f552f9d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#21 0x00007f24f54879f2 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#22 0x00007f24f544a6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#23 0x00007f24f544a9e2 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#24 0x00007f24f544c082 in PyImport_ExecCodeModuleEx () from /usr/lib/libpython2.7.so.1.0
#25 0x00007f24f554736e in ?? () from /usr/lib/libpython2.7.so.1.0
#26 0x00007f24f5547acc in ?? () from /usr/lib/libpython2.7.so.1.0
#27 0x00007f24f551bd3f in ?? () from /usr/lib/libpython2.7.so.1.0
#28 0x00007f24f5548124 in ?? () from /usr/lib/libpython2.7.so.1.0
#29 0x00007f24f5541b8a in PyImport_ImportModuleLevel () from /usr/lib/libpython2.7.so.1.0
#30 0x00007f24f5445cef in ?? () from /usr/lib/libpython2.7.so.1.0
#31 0x00007f24f552f083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#32 0x00007f24f552f9d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#33 0x00007f24f54879f2 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#34 0x00007f24f544a6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#35 0x00007f24f544a9e2 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
#36 0x00007f24f544c082 in PyImport_ExecCodeModuleEx () from /usr/lib/libpython2.7.so.1.0
#37 0x00007f24f554736e in ?? () from /usr/lib/libpython2.7.so.1.0
#38 0x00007f24f5512756 in ?? () from /usr/lib/libpython2.7.so.1.0
#39 0x00007f24f5547acc in ?? () from /usr/lib/libpython2.7.so.1.0
#40 0x00007f24f551bd3f in ?? () from /usr/lib/libpython2.7.so.1.0
#41 0x00007f24f55480df in ?? () from /usr/lib/libpython2.7.so.1.0
#42 0x00007f24f5541b8a in PyImport_ImportModuleLevel () from /usr/lib/libpython2.7.so.1.0
#43 0x00007f24f5445cef in ?? () from /usr/lib/libpython2.7.so.1.0
#44 0x00007f24f552f083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#45 0x00007f24f552f9d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#46 0x00007f24f54879f2 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#47 0x00007f24f544a6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#48 0x00007f24f544a86d in ?? () from /usr/lib/libpython2.7.so.1.0
#49 0x00007f24f552f083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#50 0x00007f24f552f9d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#51 0x00007f24f5481970 in PyErr_PrintEx () from /usr/lib/libpython2.7.so.1.0
#52 0x00000000004cf7b3 in PythonAI::GetSaveStateString() ()
#53 0x00000000004c3e60 in AIClientApp::HandleMessage(Message const&) ()
#54 0x00000000004c359d in AIClientApp::Run() ()
#55 0x00000000004c3204 in AIClientApp::operator()() ()
#56 0x0000000000512061 in main ()

PhilSophus
Krill Swarm
Posts: 11
Joined: Thu May 16, 2013 9:52 am
Location: Germany

Re: Server crashes under Linux with r7121

#2 Post by PhilSophus »

See zip with log files attached
Attachments
logs.zip
(80.48 KiB) Downloaded 78 times

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Server crashes under Linux with r7121

#3 Post by Dilvish »

Those were my changes; I'll take a closer look. **edit: at your logs. My main dev environment is Linux (Kubuntu 13.10 -- Linux kernel 3.11.0-20-generic), and that's what I tested those changes on. Could you post some more info on your environment?
Never mind about more info, I can replicate. I guess towards the end of my work on this patch I had shifted to just running in multiplayer mode, which does not do the end of turn saves & so didn't trigger this error, which is appearing during the getSaveState call.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Server crashes under Linux with r7121

#4 Post by Dilvish »

I believe this is now fixed, in r[7125]; it appeared to be caused by trouble pickling a dict keyed by a boost-python <class 'freeOrionAIInterface.starType'>
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

PhilSophus
Krill Swarm
Posts: 11
Joined: Thu May 16, 2013 9:52 am
Location: Germany

Re: Server crashes under Linux with r7121

#5 Post by PhilSophus »

Dilvish wrote:I believe this is now fixed, in r[7125]
Yes, works for me. Thank you!

Post Reply