Page 1 of 1

Latest SVN trunk crashes

Posted: 29 Oct 2007, 12:48
by julroy
Hi all, I wanted to use the latest SVN trunk but it crashes with this in GDB :

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x00002af28fb2db49 in ?? () from /lib64/ld-linux-x86-64.so.2

Posted: 29 Oct 2007, 13:27
by Tobi
Could you recompile with

Code: Select all

scons configure debug=yes optimize=yes && scons
and make gdb output a proper stacktrace next time using the bt command.

Is it a reproducable crash?

Posted: 29 Oct 2007, 20:24
by julroy
Ok, I will recompile it, and then I give the new backtrace. Oh, yes I use Gentoo and my config is :

Code: Select all

Gentoo-Tux Spring # gcc -v
Utilisation des specs internes.
Target: x86_64-pc-linux-gnu
Configur├â┬® avec: /var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.2.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.2.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Modèle de thread: posix
version gcc 4.2.2 (Gentoo 4.2.2 p1.0)
And yes it is reproducible, it happens every time I launch Spring (at the end of loading)

Posted: 29 Oct 2007, 20:39
by julroy
So I recompiled it, GDB gives me this :

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x00002b8e19e48b49 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x00002b8e19e48b49 in ?? () from /lib64/ld-linux-x86-64.so.2
#1  0x00002b8e19e436e8 in ?? () from /lib64/ld-linux-x86-64.so.2
#2  0x00002b8e1ca402da in ?? () from /lib/libdl.so.2
#3  0x00002b8e1ca40030 in dlclose () from /lib/libdl.so.2
#4  0x00000000004ed364 in ~SoLib (this=0x1412a10) at rts/System/Platform/Linux/SoLib.cpp:31
#5  0x00000000006ecbd2 in CGroupHandler::TestDll (this=0x16a5420, name=@0x7fff90c6f1e0) at rts/ExternalAI/GroupHandler.cpp:137
#6  0x00000000006ecf36 in CGroupHandler::FindDlls (this=0x16a5420) at rts/ExternalAI/GroupHandler.cpp:260
#7  0x00000000006ed58d in CGroupHandler (this=0x16a5420, team=<value optimized out>) at rts/ExternalAI/GroupHandler.cpp:47
#8  0x000000000057023e in CGame (this=0x1314cf0, server=<value optimized out>, mapname=@0x7fff90c6f690, modName=@0x7fff90c6f680, ic=<value optimized out>) at rts/Game/Game.cpp:398
#9  0x000000000055700f in CPreGame::Update (this=0xebb060) at rts/Game/PreGame.cpp:410
#10 0x00000000004a0b05 in SpringApp::Update (this=0x7fff90c6f850) at rts/System/Main.cpp:869
#11 0x00000000004a6285 in SpringApp::Run (this=0x7fff90c6f850, argc=15446112, argv=0xd) at rts/System/Main.cpp:1055
#12 0x00000000004a6647 in Run (argc=2, argv=0x7fff90c6f988) at rts/System/Main.cpp:1115
#13 0x00002b8e1c722b23 in __libc_start_main () from /lib/libc.so.6
#14 0x00000000004a0389 in _start ()
(Sorry for my poor English ^^)

Posted: 29 Oct 2007, 21:20
by Tobi
Should be fixed now.

However it was (probably) caused by a shared object (.so) AI file that could not be loaded (and crash in the error handling), so you will still get an error about that.

You may want to erase/upgrade/recompile that AI.

Thanks for reporting it btw :-)

Posted: 29 Oct 2007, 22:43
by julroy
Perfect, the latest SVN builds and runs ;D

Let the SVN turn a bit ^^