Closed FreeSlave closed 6 years ago
It seems to be related to -fvisibility=hidden, enabled by default in mittorn's Makefile, but not enabled in CMake.
2018-01-19 21:21 GMT+03:00 Roman Chistokhodov notifications@github.com:
cmake -DXASH_DEDICATED=ON -DXASH_VGUI=OFF -DXASH_SINGLE_BINARY=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_EXE_LINKER_FLAGS="-m32" -DCMAKE_BUILD_TYPE=Debug .. && make
produces the following segfault when running:
Hardware watchpoint 1: sv_gravity
Old value = (convar_t ) 0x0 New value = (convar_t ) 0x56aca0c8 SV_Init () at /home/server/git_projects/xash3d/engine/server/sv_main.c:954 954 sv_maxspeed = Cvar_Get( "sv_maxspeed", "320", CVAR_PHYSICINFO, "maximum speed a player can accelerate to when on ground"); (gdb) c Continuing. [20:45:33] Dll loaded for mod Half-Life
Hardware watchpoint 1: sv_gravity
Old value = (convar_t ) 0x56aca0c8 New value = (convar_t ) 0x41000000 Cvar_RegisterVariable (var=0x56ab9074
) at /home/server/git_projects/xash3d/engine/common/cvar.c:343 343 var->flags |= CVAR_EXTDLL; // all cvars passed this function are game cvars (gdb) c Continuing. [20:45:50] execing skill.cfg [20:45:50] execing config.cfg [20:45:50] execing server.cfg [20:45:50] Server IP address: 127.0.1.1:28015 Program received signal SIGSEGV, Segmentation fault. 0x565f0203 in SV_UpdateMovevars (initialize=true) at /home/server/git_projects/xash3d/engine/server/sv_main.c:237 237 svgame.movevars.gravity = sv_gravity->value;
Note: there's no segfault if I build the executable with mittorn's Makefile.linux. Compiler is cc (Debian 6.3.0-18) 6.3.0 20170516
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d/issues/344, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEJgcT0NMCHOqlQuMjfslH84y3EM4ERks5tMN0SgaJpZM4Rk3Lk .
cmake -DXASH_DEDICATED=ON -DXASH_VGUI=OFF -DXASH_SINGLE_BINARY=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_EXE_LINKER_FLAGS="-m32" -DCMAKE_BUILD_TYPE=Debug .. && make
produces the following segfault when running:
Note: there's no segfault if I build the executable with mittorn's Makefile.linux. Compiler is
cc (Debian 6.3.0-18) 6.3.0 20170516
Resulting binary: xashds.tar.gz