cd /home/tomreyn/SCM/mandate
git pull
$ git show -s --format=%H
2bdc01fd50caf7f602285760d03e44d286fac9cb
rm -rf build; mkdir build; cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX='' ..
make -j4
I wasn't asking for a tester, I just didn't understand why you thought it was windows only.
I don't really know what those errors means. It doesn't look much like the errors from VC++.
Does it say there are two errors?
Did you try compiling the latest version of GAE from GitHub on the same machine? It would be helpful to know if it was a pre existing problem. IIRC john had a problem with both GAE and Mandate when he tried to compile.
It looks like you are having some problem with fpermissive? Presumably because VC++ isn't standards compliance?
Program received signal SIGSEGV, Segmentation fault.
Glest::Menu::MenuStateRoot::update (this=0x224e0f0) at /home/tomreyn/SCM/mandate/source/game/menu/menu_state_root.cpp:251
251 ccState->getCharacterCreator()->loadTech();
(gdb) bt
#0 Glest::Menu::MenuStateRoot::update (this=0x224e0f0) at /home/tomreyn/SCM/mandate/source/game/menu/menu_state_root.cpp:251
#1 0x00000000006624be in Glest::Main::Program::loop (this=this@entry=0x7fffffffd3d0) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#2 0x000000000065f476 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffffffe128) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#3 0x000000000050a65d in main (argc=1, argv=0x7fffffffe128) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220
#0 0x00007ffff57023cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1 0x00007ffff4267982 in poll (__timeout=-1, __nfds=1, __fds=0x7fffffffbd00) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2 _xcb_conn_wait (c=c@entry=0xa9fb00, cond=cond@entry=0x7fffffffbd70, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:400
#3 0x00007ffff4268e57 in wait_for_reply (c=c@entry=0xa9fb00, request=2143, e=e@entry=0x7fffffffbe28) at ../../src/xcb_in.c:395
#4 0x00007ffff426907b in xcb_wait_for_reply (c=0xa9fb00, request=2143, e=0x7fffffffbe28) at ../../src/xcb_in.c:425
#5 0x00007ffff48db2d9 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6 0x00007ffff7bbffb3 in DRI2GetBuffersWithFormat (dpy=0xa9e770, drawable=35651599, width=width@entry=0xfa37c8, height=height@entry=0xfa37cc, attachments=0x7fffffffbfc0, count=1, outCount=outCount@entry=0x7fffffffbfac) at dri2.c:485
#7 0x00007ffff7bbd78c in dri2GetBuffersWithFormat (driDrawable=<optimized out>, width=0xfa37c8, height=0xfa37cc, attachments=<optimized out>, count=<optimized out>, out_count=0x7fffffffbfac, loaderPrivate=0xfa36c0) at dri2_glx.c:893
#8 0x00007fffef2ce4d9 in dri2_drawable_get_buffers (count=<synthetischer Zeiger>, atts=0xfa3e80, drawable=0xfa37e0) at dri2.c:151
#9 dri2_allocate_textures (drawable=0xfa37e0, statts=0xfa3e80, statts_count=2) at dri2.c:402
#10 0x00007fffef2cd275 in dri_st_framebuffer_validate (stfbi=<optimized out>, statts=0xfa3e80, count=2, out=0x7fffffffc0f0) at dri_drawable.c:81
#11 0x00007fffee868006 in st_framebuffer_validate (stfb=stfb@entry=0xfa3a40, st=0xf9bc90, st=0xf9bc90) at ../../../../../src/mesa/state_tracker/st_manager.c:195
#12 0x00007fffee869515 in st_manager_validate_framebuffers (st=st@entry=0xf9bc90) at ../../../../../src/mesa/state_tracker/st_manager.c:832
#13 0x00007fffee83fe0c in st_validate_state (st=st@entry=0xf9bc90) at ../../../../../src/mesa/state_tracker/st_atom.c:172
#14 0x00007fffee84689a in st_Clear (ctx=0xf5cdc0, mask=18) at ../../../../../src/mesa/state_tracker/st_cb_clear.c:394
#15 0x000000000066251d in Glest::Main::Program::loop (this=this@entry=0x7fffffffd3d0) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:287
#16 0x0000000000662ddc in Glest::Main::Program::crash (this=0x7fffffffd3d0, e=e@entry=0x0) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:491
#17 0x000000000065facd in Glest::Main::ExceptionHandler::notifyUser (this=<optimized out>, pretty=<optimized out>) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:91
#18 0x00000000007aec86 in Shared::Platform::PlatformExceptionHandler::handler (signo=11, info=<optimized out>, context=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/sources/platform/sdl/platform_util.cpp:262
#19 <signal handler called>
#20 Glest::Menu::MenuStateRoot::update (this=0x224e0f0) at /home/tomreyn/SCM/mandate/source/game/menu/menu_state_root.cpp:251
#21 0x00000000006624be in Glest::Main::Program::loop (this=this@entry=0x7fffffffd3d0) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#22 0x000000000065f476 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffffffe128) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#23 0x000000000050a65d in main (argc=1, argv=0x7fffffffe128) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5fb55ee in std::string::assign(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0x00007ffff5fb55ee in std::string::assign(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00000000005daaeb in operator= (__str=..., this=0x2468610) at /usr/include/c++/4.7/bits/basic_string.h:544
#2 Glest::Gui::CharacterCreator::setupListBoxTraits (this=this@entry=0x24667d0) at /home/tomreyn/SCM/mandate/source/game/game/character_creator.cpp:783
#3 0x00000000005db232 in Glest::Gui::CharacterCreator::buildSovereignTab (this=this@entry=0x24667d0) at /home/tomreyn/SCM/mandate/source/game/game/character_creator.cpp:123
#4 0x00000000005dc299 in Glest::Gui::CharacterCreator::buildTabs (this=0x24667d0) at /home/tomreyn/SCM/mandate/source/game/game/character_creator.cpp:67
#5 0x0000000000672e00 in Glest::Menu::MenuStateRoot::update (this=0x2075b90) at /home/tomreyn/SCM/mandate/source/game/menu/menu_state_root.cpp:252
#6 0x00000000006624be in Glest::Main::Program::loop (this=this@entry=0x7fffffffd3d0) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#7 0x000000000065f476 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffffffe128) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#8 0x000000000050a65d in main (argc=1, argv=0x7fffffffe128) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220
Deleting
~Cells
~Tileset
~TechTree
~World
~GameState...with the progress bar at 0%.[/home/tomreyn/.glestadv] is in the search path.
[/home/tomreyn/.glestadv/addons/project_red] is in the search path.
[/home/tomreyn/SCM/mandate/data/game] is in the search path.
config-dir: /home/tomreyn/.glestadv
data-dir: /home/tomreyn/SCM/mandate/data/game
Init Window: 0 ms.
Init OpenGL: 206 ms.
Load WidgetConfig: 430 ms.
Renderer Load Config: 0 ms.
Renderer Init Resources: 558 ms.
Renderer Load Shader: 36 ms.
Init Renderer: 840 ms.
Init Sound: 6 ms.
Renderer Init Menu: 0 ms.
ots/check / glest_classic/anarchy
ots/map / glest_classic/anarchy
Node "tech-tree" doesn't have 1 children named "damage-types"
Tree: tech-tree (description attack-types (attack-type attack-type attack-type attack-type attack-type ) armor-types (armor-type armor-type armor-type armor-type armor-type armor-type ) damage-multipliers ) tomreyn@atibox:~/SCM/mandate$ gdb -q -n -ex "bt" -batch ./build/source/game/glestadv ~/.glestadv/core
[New LWP 21809]
[New LWP 21814]
[New LWP 21810]
[New LWP 21812]
[New LWP 21815]
warning: Can't read pathname for load map: input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffc495c000
Core was generated by `./build/source/game/glestadv'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f832812eaab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
38 ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: File or directory not found.
#0 0x00007f832812eaab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#1 0x00000000007aef1b in Shared::Platform::PlatformExceptionHandler::handler (signo=11, info=<optimized out>, context=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/sources/platform/sdl/platform_util.cpp:282
#2 <signal handler called>
#3 Glest::Plan::GoalSystem::findLair (this=this@entry=0x7fffc4908148, unit=unit@entry=0x54617f0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_personalities.cpp:1111
#4 0x000000000053d605 in Glest::Plan::MandateAISim::getTopGoal (this=this@entry=0x7fffc4908120, unit=unit@entry=0x54617f0, personality=...) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:159
#5 0x000000000053dc4d in Glest::Plan::MandateAISim::computeAction (this=this@entry=0x7fffc4908120, unit=unit@entry=0x54617f0, personality=..., reason=...) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:275
#6 0x000000000053eeb7 in Glest::Plan::MandateAISim::update (this=this@entry=0x7fffc4908120) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:383
#7 0x0000000000788ca3 in Glest::Sim::SimulationInterface::updateWorld (this=0x435e250) at /home/tomreyn/SCM/mandate/source/game/world/sim_interface.cpp:252
#8 0x00000000005ef94d in Glest::Gui::GameState::update (this=0x4027ef0) at /home/tomreyn/SCM/mandate/source/game/game/game.cpp:325
#9 0x000000000066262e in Glest::Main::Program::loop (this=this@entry=0x7fffc4908370) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#10 0x000000000065f5e6 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffc49090c8) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#11 0x000000000050a7bd in main (argc=1, argv=0x7fffc49090c8) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220
Deleting
~Cells
~Tileset
~TechTree
~World
(but not ~Gamestate this time) ... at which point the game freezes again. Core was generated by `./build/source/game/glestadv'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f832812eaab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#0 0x00007f832812eaab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#1 0x00000000007aef1b in Shared::Platform::PlatformExceptionHandler::handler (signo=11, info=<optimized out>, context=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/sources/platform/sdl/platform_util.cpp:282
#2 <signal handler called>
#3 Glest::Plan::GoalSystem::findLair (this=this@entry=0x7fffc4908148, unit=unit@entry=0x54617f0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_personalities.cpp:1111
#4 0x000000000053d605 in Glest::Plan::MandateAISim::getTopGoal (this=this@entry=0x7fffc4908120, unit=unit@entry=0x54617f0, personality="defender") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:159
#5 0x000000000053dc4d in Glest::Plan::MandateAISim::computeAction (this=this@entry=0x7fffc4908120, unit=unit@entry=0x54617f0, personality="defender", reason="compute") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:275
#6 0x000000000053eeb7 in Glest::Plan::MandateAISim::update (this=this@entry=0x7fffc4908120) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:383
#7 0x0000000000788ca3 in Glest::Sim::SimulationInterface::updateWorld (this=0x435e250) at /home/tomreyn/SCM/mandate/source/game/world/sim_interface.cpp:252
#8 0x00000000005ef94d in Glest::Gui::GameState::update (this=0x4027ef0) at /home/tomreyn/SCM/mandate/source/game/game/game.cpp:325
#9 0x000000000066262e in Glest::Main::Program::loop (this=this@entry=0x7fffc4908370) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#10 0x000000000065f5e6 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffc49090c8) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#11 0x000000000050a7bd in main (argc=1, argv=0x7fffc49090c8) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220Crash
Version: Advanced Engine 0.3.93
Built: Thu Jun 20 02:34:13 CEST 2013
Time: Sat Jun 22 12:05:11 2013
Description: SIGSEGV: address not mapped to object
Address: 0x200000942
Backtrace:
./build/source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP9siginfo_tPv+0x1aa) [0x7aefca]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbd0) [0x7f0c16112bd0]
./build/source/game/glestadv(_ZN5Glest3Gui16CharacterCreator20calculateCreatorCostEv+0x24) [0x5d3374]
./build/source/game/glestadv(_ZN5Glest3Gui16CharacterCreator13onButtonClickEPNS_7Widgets6WidgetE+0x36) [0x5d5616]
./build/source/game/glestadv(_ZN5Glest7Widgets6Button7mouseUpEN6Shared8Platform11MouseButtonENS2_4Math4Vec2IiEE+0x75) [0x755bd5]
./build/source/game/glestadv(_ZN5Glest7Widgets12WidgetWindow12eventMouseUpEiiN6Shared8Platform11MouseButtonE+0x45) [0x744085]
./build/source/game/glestadv(_ZN6Shared8Platform6Window11handleEventEv+0xdc) [0x7ae1bc]
./build/source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x224) [0x662644]
./build/source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x2b6) [0x65f5e6]
./build/source/game/glestadv(main+0x2d) [0x50a7bd]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f0c142f0ea5]
./build/source/game/glestadv() [0x50dba1]Crash
Version: Advanced Engine 0.3.93
Built: Thu Jun 20 02:34:13 CEST 2013
Time: Sat Jun 22 17:38:38 2013
Description: SIGSEGV: address not mapped to object
Address: 0x13f800b40
Backtrace:
./build/source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP9siginfo_tPv+0x1aa) [0x7aefca]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbd0) [0x7f174d322bd0]
./build/source/game/glestadv(_ZN5Glest4Plan10GoalSystem8findLairEPNS_8Entities4UnitE+0x126) [0x52d266]
./build/source/game/glestadv(_ZN5Glest4Plan12MandateAISim10getTopGoalEPNS_8Entities4UnitESs+0xfc5) [0x53d605]
./build/source/game/glestadv(_ZN5Glest4Plan12MandateAISim13computeActionEPNS_8Entities4UnitESsSs+0x4d) [0x53dc4d]
./build/source/game/glestadv(_ZN5Glest4Plan12MandateAISim6updateEv+0x707) [0x53eeb7]
./build/source/game/glestadv(_ZN5Glest3Sim19SimulationInterface11updateWorldEv+0x383) [0x788ca3]
./build/source/game/glestadv(_ZN5Glest3Gui9GameState6updateEv+0xbd) [0x5ef94d]
./build/source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x20e) [0x66262e]
./build/source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x2b6) [0x65f5e6]
./build/source/game/glestadv(main+0x2d) [0x50a7bd]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f174b500ea5]
./build/source/game/glestadv() [0x50dba1]
=======================
Glest Advanced Engine: Error log file. 22-Jun-2013_17-38-29
Error loading widget.cfg : styles for UnitBar could not be loaded.
Error loading widget.cfg : styles for FactionDisplay could not be loaded.
Error loading widget.cfg : styles for ItemDisplay could not be loaded.
No files found: techs/provision/factions/humans/modifications/*.
Glest Advanced Engine: Network log file. 22-Jun-2013_17-38-29
5900000: Frame: 0 :: quitGame aborting game.
5900000: Frame: 0 :: constructGameWorld
5900000: Frame: 0 :: loadWorld
7110000: Frame: 0 :: initWorld
7150000: Frame: 0 :: SkillCycleTable built, numEntries = 72, messageSize = 1152 (@16)
7480000: Frame: 0 :: launchGame
9730000: Frame: 8 :: destroyGameWorld
Program terminated with signal 11, Segmentation fault.
#0 0x00007f174d322aab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#0 0x00007f174d322aab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#1 0x00000000007aef1b in Shared::Platform::PlatformExceptionHandler::handler (signo=11, info=<optimized out>, context=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/sources/platform/sdl/platform_util.cpp:282
#2 <signal handler called>
#3 Glest::Plan::GoalSystem::findLair (this=this@entry=0x7fffe0304de8, unit=unit@entry=0x4a1b6a0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_personalities.cpp:1111
#4 0x000000000053d605 in Glest::Plan::MandateAISim::getTopGoal (this=this@entry=0x7fffe0304dc0, unit=unit@entry=0x4a1b6a0, personality="defender") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:159
#5 0x000000000053dc4d in Glest::Plan::MandateAISim::computeAction (this=this@entry=0x7fffe0304dc0, unit=unit@entry=0x4a1b6a0, personality="defender", reason="compute") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:275
#6 0x000000000053eeb7 in Glest::Plan::MandateAISim::update (this=this@entry=0x7fffe0304dc0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:383
#7 0x0000000000788ca3 in Glest::Sim::SimulationInterface::updateWorld (this=0x3917c80) at /home/tomreyn/SCM/mandate/source/game/world/sim_interface.cpp:252
#8 0x00000000005ef94d in Glest::Gui::GameState::update (this=0x38d97d0) at /home/tomreyn/SCM/mandate/source/game/game/game.cpp:325
#9 0x000000000066262e in Glest::Main::Program::loop (this=this@entry=0x7fffe0305010) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#10 0x000000000065f5e6 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffe0305d68) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#11 0x000000000050a7bd in main (argc=1, argv=0x7fffe0305d68) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220[/home/tomreyn/.glestadv] is in the search path.
[/home/tomreyn/SCM/mandate/data/game] is in the search path.
config-dir: /home/tomreyn/.glestadv
data-dir: /home/tomreyn/SCM/mandate/data/game
Init Window: 1 ms.
Init OpenGL: 55 ms.
Load WidgetConfig: 94 ms.
Renderer Load Config: 0 ms.
Renderer Init Resources: 351 ms.
Init Renderer: 367 ms.
Init Sound: 5 ms.
Renderer Init Menu: 0 ms.
Renderer Init Game: 314 ms.#!/bin/bash
#
# Build Mandate on Linux
GAE_CONFIG_DIR="`readlink -f ~`/.mandate"
GAE_DATA_DIR="`readlink -f ~`/SCM/mandate/data/game"
# Debug or Release or RelWithDebInfo
CMAKE_BUILD_TYPE=RelWithDebInfo
echo '[ STAGE 1 ] Updating git repository...'
git pull $@
echo
echo "You're now at this commit:"
git log -1 --pretty=tformat:"%h (%H)"
echo
echo
echo '[ STAGE 2 ] Preparing build environment...'
NUMCORES=`lscpu -p | grep -cv '^#'`
if [ "$NUMCORES" = '' ]; then NUMCORES=1; fi
echo $NUMCORES CPU cores detected
mkdir -p build
cd build
LANG=en_US.utf-8 cmake -DGAE_CONFIG_DIR=$GAE_CONFIG_DIR -DGAE_DATA_DIR=$GAE_DATA_DIR -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE ..
echo
echo
echo '[ STAGE 3 ] Building Mandate...'
LANG=en_US.UTF-8 make -j $NUMCORES
cd ../
echo
echo 'Run the game as: ./build/source/game/glestadv'
#!/bin/bash
#
# Run Mandate in debugging mode
LC_ALL=C
glestcmd=./build/source/game/glestadv
#glestcmdenv="http_proxy='http://127.0.0.1:8080' vblank=0"
glestcmdenv=''
glestcmdprefix='stdbuf -o0'
glestcmdsuffix=$@
configdir=~/.glestadv
logdir=$configdir
stdouterrlog=$logdir/stdouterr.log
backtracelog=$logdir/backtrace.log
# Back up old logs and core dump just in case
for file in $logdir/*.log core
do
if [ -f "$file" ]
then
mv -f $file $file.bak
fi
done
ulimit -c unlimited
if [ "`ulimit -c`" != 'unlimited' ]
then
echo 'Error: Failed to activate core dumps.' >&2
exit 1
fi
export $glestcmdenv > /dev/null 2>&1
$glestcmdprefix $glestcmd $glestcmdsuffix 2>&1 | tee $stdouterrlog
#$glestcmdprefix $glestcmd $glestcmdsuffix 2>&1 | gzip > $stdouterrlog.gz
# Check for segfault
if [ -f $configdir/core ]
then
echo ''
echo 'Segmentation fault detected, analyzing...'
echo ''
#gdb -q -n -ex "thread apply all bt full" -batch $glestcmd core | tee $backtracelog
gdb -q -n -ex "bt" -batch $glestcmd $configdir/core | tee $backtracelog
echo ''
echo "The above has been written to $backtracelog"
fiCore was generated by `./build/source/game/glestadv'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f174d322aab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#0 0x00007f174d322aab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#1 0x00000000007aef1b in Shared::Platform::PlatformExceptionHandler::handler (signo=11, info=<optimized out>, context=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/sources/platform/sdl/platform_util.cpp:282
#2 <signal handler called>
#3 Glest::Plan::GoalSystem::findLair (this=this@entry=0x7fffe0304de8, unit=unit@entry=0x4a1b6a0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_personalities.cpp:1111
#4 0x000000000053d605 in Glest::Plan::MandateAISim::getTopGoal (this=this@entry=0x7fffe0304dc0, unit=unit@entry=0x4a1b6a0, personality="defender") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:159
#5 0x000000000053dc4d in Glest::Plan::MandateAISim::computeAction (this=this@entry=0x7fffe0304dc0, unit=unit@entry=0x4a1b6a0, personality="defender", reason="compute") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:275
#6 0x000000000053eeb7 in Glest::Plan::MandateAISim::update (this=this@entry=0x7fffe0304dc0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:383
#7 0x0000000000788ca3 in Glest::Sim::SimulationInterface::updateWorld (this=0x3917c80) at /home/tomreyn/SCM/mandate/source/game/world/sim_interface.cpp:252
#8 0x00000000005ef94d in Glest::Gui::GameState::update (this=0x38d97d0) at /home/tomreyn/SCM/mandate/source/game/game/game.cpp:325
#9 0x000000000066262e in Glest::Main::Program::loop (this=this@entry=0x7fffe0305010) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#10 0x000000000065f5e6 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffe0305d68) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#11 0x000000000050a7bd in main (argc=1, argv=0x7fffe0305d68) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220But it's true, also with the workaround in place, it's easy to make it crash (or rather freeze on the unloading / end-of-game screen, then segfault on Alt-F4) while playing a game:
Core was generated by `./build/source/game/glestadv'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f174d322aab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#0 0x00007f174d322aab in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:38
#1 0x00000000007aef1b in Shared::Platform::PlatformExceptionHandler::handler (signo=11, info=<optimized out>, context=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/sources/platform/sdl/platform_util.cpp:282
#2 <signal handler called>
#3 Glest::Plan::GoalSystem::findLair (this=this@entry=0x7fffe0304de8, unit=unit@entry=0x4a1b6a0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_personalities.cpp:1111
#4 0x000000000053d605 in Glest::Plan::MandateAISim::getTopGoal (this=this@entry=0x7fffe0304dc0, unit=unit@entry=0x4a1b6a0, personality="defender") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:159
#5 0x000000000053dc4d in Glest::Plan::MandateAISim::computeAction (this=this@entry=0x7fffe0304dc0, unit=unit@entry=0x4a1b6a0, personality="defender", reason="compute") at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:275
#6 0x000000000053eeb7 in Glest::Plan::MandateAISim::update (this=this@entry=0x7fffe0304dc0) at /home/tomreyn/SCM/mandate/source/game/ai_mandate/mandate_ai_sim.cpp:383
#7 0x0000000000788ca3 in Glest::Sim::SimulationInterface::updateWorld (this=0x3917c80) at /home/tomreyn/SCM/mandate/source/game/world/sim_interface.cpp:252
#8 0x00000000005ef94d in Glest::Gui::GameState::update (this=0x38d97d0) at /home/tomreyn/SCM/mandate/source/game/game/game.cpp:325
#9 0x000000000066262e in Glest::Main::Program::loop (this=this@entry=0x7fffe0305010) at /home/tomreyn/SCM/mandate/source/game/main/program.cpp:331
#10 0x000000000065f5e6 in Glest::Main::glestMain (argc=argc@entry=1, argv=argv@entry=0x7fffe0305d68) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:187
#11 0x000000000050a7bd in main (argc=1, argv=0x7fffe0305d68) at /home/tomreyn/SCM/mandate/source/game/main/main.cpp:220Code: [Select]warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
These warnings appear to be based on some flag? And they are all in files I don't recall changing. I'll google it.
I pushed my latest files to Github. I'm not sure why a version that produced that error got sent. Should compile now.
source/game/world/world.cpp: In member function 'void Glest::Sim::World::computeProduction()':
source/game/world/world.cpp:798:117: error: taking address of temporary [-fpermissive]
source/game/world/world.cpp:799:110: error: taking address of temporary [-fpermissive]
override controls (override/final) only available with -std=c++11 or -std=gnu++11...are to make you aware that you are relying on a feature (https://en.wikipedia.org/wiki/C%2B%2B11#Explicit_overrides_and_final) of the new (well ... somewhat - it's actually 2 years old now) C++11 standard - which compilers unaware of this standard will be unable to handle (so building on other platforms and operating systems which lack support for C++11 would fail, this may include OS X and supported Linux releases which do not use the very latest software, such as Debian Wheezy and Ubuntu 12.04 LTS). So, if I'm interpreting it correctly, and if you do not care about backward compatibility at this time this should be of no concern.source/game/world/world.cpp: In member function void Glest::Sim::World::computeProduction():
source/game/world/world.cpp:797:140: error: taking address of temporary [-fpermissive]
source/game/world/world.cpp:798:133: error: taking address of temporary [-fpermissive]
I assume theses warnings...Not completely right. It's just telling you that you are using a reserved keyword from C++11 but haven't enabled C++11. The feature is not enabled.Code: [Select]override controls (override/final) only available with -std=c++11 or -std=gnu++11...are to make you aware that you are relying on a feature (https://en.wikipedia.org/wiki/C%2B%2B11#Explicit_overrides_and_final) of the new (well ... somewhat - it's actually 2 years old now) C++11 standard - which compilers unaware of this standard will be unable to handle (so building on other platforms and operating systems which lack support for C++11 would fail, this may include OS X and supported Linux releases which do not use the very latest software, such as Debian Wheezy and Ubuntu 12.04 LTS). So, if I'm interpreting it correctly, and if you do not care about backward compatibility at this time this should be of no concern.
source/game/world/world.cpp:797:140: error: taking address of temporary [-fpermissive]
source/game/world/world.cpp:798:133: error: taking address of temporary [-fpermissive]
make[2]: *** [source/game/CMakeFiles/glestadv.dir/world/world.cpp.o] Error 1
make[1]: *** [source/game/CMakeFiles/glestadv.dir/all] Error 2
make: *** [all] Error 2
Thanks for explaining, Ygg, and for commenting out problematic code for now, MoLAoS.
So I'll ignore the override controls warnings but I'm afraid I still run into the temporary error:Code: [Select]source/game/world/world.cpp:797:140: error: taking address of temporary [-fpermissive]
source/game/world/world.cpp:798:133: error: taking address of temporary [-fpermissive]
make[2]: *** [source/game/CMakeFiles/glestadv.dir/world/world.cpp.o] Error 1
make[1]: *** [source/game/CMakeFiles/glestadv.dir/all] Error 2
make: *** [all] Error 2
So basically that's unchanged?
Full log (http://tomreyn.megaglest.org/mandate_f35f8ab_linux.txt)
Crash
Version: Advanced Engine 0.3.93
Built: Tue Oct 15 22:53:57 CEST 2013
Time: Thu Oct 17 19:25:56 2013
Description: SIGSEGV: address not mapped to object
Address: 0xffffffffffffffe8
Backtrace:
./build/source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP9siginfo_tPv+0x1aa) [0x7c6d0a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbd0) [0x7f0a68d28bd0]
./build/source/game/glestadv(_ZN5Glest7Widgets8DropList11setSelectedERKSs+0x32) [0x74a172]
./build/source/game/glestadv(_ZN5Glest3Gui16CharacterCreator23setupListBoxFactionTypeEv+0xa8) [0x5edb68]
./build/source/game/glestadv(_ZN5Glest3Gui16CharacterCreator17buildSovereignTabEv+0x2eb) [0x5eeccb]
./build/source/game/glestadv(_ZN5Glest3Gui16CharacterCreator9buildTabsEv+0x9) [0x5effd9]
./build/source/game/glestadv(_ZN5Glest4Menu13MenuStateRoot6updateEv+0x100) [0x686c30]
./build/source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x20e) [0x67603e]
./build/source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x2b6) [0x673126]
./build/source/game/glestadv(main+0x2d) [0x50f95d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f0a66f06ea5]
./build/source/game/glestadv() [0x512d41]
=======================
My terminal window does not provide a green rebuild button. ;-) I was running the same build I was previously reporting about then. Sorry - I should just have rebuilt and tried that.
Which I just did (e57dfd920d3b303f24d1b370e0113066d9c39c58), and the character creator menu came up fine and loaded much more swiftly than before. So that's looking good.
Crash
Version: Advanced Engine 0.3.93
Built: Thu Oct 17 19:29:00 CEST 2013
Time: Fri Oct 18 11:12:37 2013
Description: SIGSEGV: unrecognized si_code
Address: 0
Backtrace:
./build/source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP9siginfo_tPv+0x1aa) [0x7c796a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbd0) [0x7f55c970abd0]
./build/source/game/glestadv(_ZN5Glest8Entities4Unit4killEv+0x2b6) [0x5a4ce6]
./build/source/game/glestadv(_ZN5Glest3Sim5World11updateUnitsEPKNS_8Entities7FactionE+0x44) [0x78d614]
./build/source/game/glestadv(_ZN5Glest3Sim5World12processFrameEv+0x8a) [0x79360a]
./build/source/game/glestadv(_ZN5Glest3Sim19SimulationInterface11updateWorldEv+0x46f) [0x7a164f]
./build/source/game/glestadv(_ZN5Glest3Gui9GameState6updateEv+0xbd) [0x6011dd]
./build/source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x20e) [0x676c9e]
./build/source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x2b6) [0x673d86]
./build/source/game/glestadv(main+0x2d) [0x50fb3d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f55c78e8ea5]
./build/source/game/glestadv() [0x512f21]
Despite of the progress indicator turning into negative percentages it does load and initialize fine. There are selection issues (due to relying on GlSelectBuf, I assume) with structures and units but I think that's a known bug.
I played around for like 15 minutes during which all of my units and structures got destroyed and all I had left was this unit which looks hero like, a guy with a sword and cape who has a lot of points on everything and can create structures (and workers?). So I tinkered for a while, destroyed all the enemy buildings until I finally attacked one of the enemy daemons and ran into:Code: [Select]Crash
Version: Advanced Engine 0.3.93
Built: Thu Oct 17 19:29:00 CEST 2013
Time: Fri Oct 18 11:12:37 2013
Description: SIGSEGV: unrecognized si_code
Address: 0
Backtrace:
./build/source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP9siginfo_tPv+0x1aa) [0x7c796a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbd0) [0x7f55c970abd0]
./build/source/game/glestadv(_ZN5Glest8Entities4Unit4killEv+0x2b6) [0x5a4ce6]
./build/source/game/glestadv(_ZN5Glest3Sim5World11updateUnitsEPKNS_8Entities7FactionE+0x44) [0x78d614]
./build/source/game/glestadv(_ZN5Glest3Sim5World12processFrameEv+0x8a) [0x79360a]
./build/source/game/glestadv(_ZN5Glest3Sim19SimulationInterface11updateWorldEv+0x46f) [0x7a164f]
./build/source/game/glestadv(_ZN5Glest3Gui9GameState6updateEv+0xbd) [0x6011dd]
./build/source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x20e) [0x676c9e]
./build/source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x2b6) [0x673d86]
./build/source/game/glestadv(main+0x2d) [0x50fb3d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f55c78e8ea5]
./build/source/game/glestadv() [0x512f21]
Core was generated by `./build/source/game/glestadv'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f6c7a2e2aab in ?? ()
#0 0x00007f6c7a2e2aab in ?? ()
#1 0x00000000007aef1b in ~PixmapIo (this=0xb, __in_chrg=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/include/graphics/pixmap.h:45
#2 Shared::Graphics::PixmapIoJpg::~PixmapIoJpg (this=0xb, __in_chrg=<optimized out>) at /home/tomreyn/SCM/mandate/source/shared_lib/include/graphics/pixmap.h:143
#3 0x00007f6c71dc21d3 in ?? ()
#4 0x0000000000000024 in ?? ()
#5 0x00007f6c71dc21d3 in ?? ()
#6 0x000000000180ae98 in ?? ()
#7 0x0000000001c81df0 in ?? ()
#8 0xffffffffffffffff in ?? ()
#9 0xffffffffffffffff in ?? ()
#10 0x0000000000000000 in ?? ()
linux-vdso.so.1 => (0x00007fff833fe000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f061451b000)
libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f061429c000)
libSDL-1.2.so.0 => /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 (0x00007f0614004000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0613de7000)
libopenal.so.1 => /usr/lib/x86_64-linux-gnu/libopenal.so.1 (0x00007f0613b8e000)
liblua5.1.so.0 => /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 (0x00007f0613960000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f06136c3000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f061349d000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f061324b000)
libGLEW.so.1.8 => /usr/lib/x86_64-linux-gnu/libGLEW.so.1.8 (0x00007f0612fc9000)
libphysfs.so.1 => /usr/lib/x86_64-linux-gnu/libphysfs.so.1 (0x00007f0612d9f000)
libvorbisfile.so.3 => /usr/lib/x86_64-linux-gnu/libvorbisfile.so.3 (0x00007f0612b96000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0612893000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f061258e000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0612377000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0611faf000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f0611d8a000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f0611b77000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f0611974000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f061176e000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f061156b000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f0611231000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f061101a000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f0610e14000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0610bf6000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f06109f0000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f06107e4000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f06105e0000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007f06102f6000)
libpulse-simple.so.0 => /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0 (0x00007f06100f1000)
libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f060fea9000)
libcaca.so.0 => /usr/lib/x86_64-linux-gnu/libcaca.so.0 (0x00007f060fbdc000)
/lib64/ld-linux-x86-64.so.2 (0x00007f06147a0000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f060f9d3000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f060f7bc000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f060f58e000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f060f387000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f060f182000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f060ef7c000)
libpulsecommon-3.0.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-3.0.so (0x00007f060ed18000)
libjson.so.0 => /lib/x86_64-linux-gnu/libjson.so.0 (0x00007f060eb0f000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f060e8cb000)
libslang.so.2 => /lib/x86_64-linux-gnu/libslang.so.2 (0x00007f060e53a000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f060e30d000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f060e0e5000)
libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f060deda000)
libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f060dc74000)
libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f060da6e000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f060d853000)
libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f060d607000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f060d137000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f060cf1d000)
Crash
Version: Advanced Engine 0.3.93
Built: Thu Oct 17 19:29:00 CEST 2013
Time: Fri Oct 18 11:12:37 2013
Description: SIGSEGV: unrecognized si_code
Address: 0
Backtrace:
./build/source/game/glestadv(Shared::Platform::PlatformExceptionHandler::handler(int, siginfo_t*, void*)+0x1aa) [/home/tomreyn/SCM/mandate/source/shared_lib/sources/platform/sdl/platform_util.cpp:250]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbd0) [??:0]
./build/source/game/glestadv(Glest::Entities::Unit::kill()+0x2b6) [/home/tomreyn/SCM/mandate/source/game/entities/unit.cpp:1764]
./build/source/game/glestadv(Glest::Sim::World::updateUnits(Glest::Entities::Faction const*)+0x44) [/home/tomreyn/SCM/mandate/source/game/world/world.cpp:290]
./build/source/game/glestadv(Glest::Sim::World::processFrame()+0x8a) [/home/tomreyn/SCM/mandate/source/game/world/world.cpp:315]
./build/source/game/glestadv(Glest::Sim::SimulationInterface::updateWorld()+0x46f) [/home/tomreyn/SCM/mandate/source/game/world/sim_interface.cpp:259]
./build/source/game/glestadv(Glest::Gui::GameState::update()+0xbd) [/home/tomreyn/SCM/mandate/source/game/game/game.cpp:325]
./build/source/game/glestadv(Glest::Main::Program::loop()+0x20e) [/home/tomreyn/SCM/mandate/source/game/main/program.cpp:326]
./build/source/game/glestadv(Glest::Main::glestMain(int, char**)+0x2b6) [/home/tomreyn/SCM/mandate/source/game/main/main.cpp:194]
./build/source/game/glestadv(main+0x2d) [/home/tomreyn/SCM/mandate/source/game/main/main.cpp:220 (discriminator 2)]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [??:0]
./build/source/game/glestadv() [??:?]
=======================