• Server not starting (Segmentation fault, Ubuntu, Docker)
    1 replies, posted
Hello all, I try to run a gmod server on my Mac with Docker. I created an image, based on ubuntu 16.04, which installs needed dependencies to start the server. Now, when I start the server with the server files mounted from my Mac, the server just crashes, showing the following information: Auto detecting CPU Using default binary: ./srcds_linux Enabling debug mode tcmalloc: large alloc 4292976640 bytes == (nil) @ Failed to load keyvalues file cfg/mount.cfg! tcmalloc: large alloc 4292976640 bytes == (nil) @ Couldn't load shader dll: game_shader_generic_garrysmod_srv.soConVarRef mat_dxlevel doesn't point to an existing ConVar Game_srv.so loaded for "Garry's Mod" Setting breakpad minidump AppID = 4000 tcmalloc: large alloc 4292976640 bytes == (nil) @ --------------- Paths: --- ENGINECORE --- "/gmod/bin/" "EXECUTABLE_PATH" "/gmod/" "BASE_PATH" "/gmod/garrysmod/bin/" "GAMEBIN" "/gmod/garrysmod/" "LOGDIR" --- GMODCORE --- "/gmod/garrysmod/workshop/" "GAME" "/gmod/garrysmod/workshop/" "workshop" "/gmod/garrysmod/workshop/" "thirdparty" "/gmod/garrysmod/garrysmod.vpk" "MOD" (VPK) "/gmod/garrysmod/garrysmod.vpk" "GAME" (VPK) "/gmod/garrysmod/garrysmod.vpk" "garrysmod" (VPK) "/gmod/garrysmod/" "MOD" "/gmod/garrysmod/" "MOD_WRITE" "/gmod/garrysmod/" "DEFAULT_WRITE_PATH" "/gmod/garrysmod/" "GAME" "/gmod/garrysmod/" "GAME_WRITE" "/gmod/garrysmod/" "garrysmod" --- SOURCESDK --- "/gmod/sourceengine/hl2_misc.vpk" "GAME" (VPK) "/gmod/sourceengine/hl2_sound_misc.vpk" "GAME" (VPK) "/gmod/sourceengine/hl2_sound_vo_english.vpk" "GAME" (VPK) "/gmod/sourceengine/hl2_textures.vpk" "GAME" (VPK) "/gmod/sourceengine/" "GAME" "/gmod/platform/platform_misc.vpk" "GAME" (VPK) "/gmod/platform/" "GAME" --- DOWNLOADS --- "/gmod/garrysmod/download/" "GAME" "/gmod/garrysmod/download/" "DOWNLOAD" --- FALLBACKS --- "/gmod/garrysmod/fallbacks.vpk" "GAME" (VPK) LOAD FROM FILE FAILED resource/serverevents.res LOAD FROM FILE FAILED resource/serverevents.res LOAD FROM FILE FAILED resource/serverevents.res Segmentation fault (core dumped) BFD: Warning: /gmod/core is truncated: expected core file size >= 318722048, found: 1527808. Cannot access memory at address 0xf7759908 Cannot access memory at address 0xf7759904 Failed to read a valid object file image from memory. Cannot access memory at address 0xf7759908 Cannot access memory at address 0xf7759904 debug.cmds:5: Error in sourced command file: No function contains program counter for selected frame. email debug.log to linux@valvesoftware.com Sat Apr 21 01:17:56 UTC 2018: Server Quit This is how I start the server: docker container run -it --name gmod -v /Users/pascal/code/gmod-server:/gmod p4sca1/egm-server:gmod Here's the bash script belonging to the container (some useless echos for debug atm): DEBUG=$(printenv DEBUG) INSECURE=$(printenv INSECURE) IP=$(printenv IP) PORT=$(printenv PORT) SLOTS=$(printenv SLOTS) MAP=$(printenv MAP) TICKRATE=$(printenv TICKRATE) echo $DEBUG #todo echo $INSECURE #todo echo $IP echo $PORT echo $SLOTS echo $MAP cd /gmod ./srcds_run -game garrysmod +ip $IP -port $PORT -maxplayers $SLOTS +map $MAP -tickrate $TICKRATE -nohltv -norestart +r_hunkalloclightmaps 0 -debug -insecure The directory of the mounted files looks like this: ls -la gmod-server                                                                                                            ✔  1823  03:29:33 total 3160 drwxr-xr-x  13 pascal  staff      416 21 Apr 03:17 . drwxr-xr-x  11 pascal  staff      352 21 Apr 02:41 .. -rwxr-xr-x   1 pascal  staff    54224 21 Apr 03:15 ThirdPartyLegalNotices.txt drwxr-xr-x  69 pascal  staff     2208 21 Apr 03:16 bin -rw-------   1 pascal  staff  1527808 21 Apr 03:17 core -rw-r--r--   1 pascal  staff     1231 21 Apr 03:17 debug.log drwxr-xr-x  26 pascal  staff      832 21 Apr 03:16 garrysmod drwxr-xr-x  11 pascal  staff      352 21 Apr 03:16 platform drwxr-xr-x  32 pascal  staff     1024 21 Apr 03:16 sourceengine -rwxr-xr-x   1 pascal  staff    12193 21 Apr 03:16 srcds_linux -rwxr-xr-x   1 pascal  staff    10149 21 Apr 03:16 srcds_run -rw-r--r--   1 pascal  staff        6 21 Apr 03:17 steam_appid.txt drwxr-xr-x   7 pascal  staff      224 21 Apr 03:12 steamapps Any hint, why the server can't start is appreciated. Kind Regards, Pascal
Here's the generated debug log: ---------------------------------------------- ---------------------------------------------- CRASH: Sun Apr 22 13:10:45 UTC 2018 Start Line: ./srcds_linux -game garrysmod -debug [New LWP 57] [New LWP 58] [New LWP 59] [New LWP 60] [New LWP 61] [New LWP 62] Core was generated by `./srcds_linux -game garrysmod -debug'. Program terminated with signal SIGSEGV, Segmentation fault. #0  0xf5dd6e93 in ?? () [Current thread is 1 (LWP 57)] #0  0xf5dd6e93 in ?? () Backtrace stopped: Cannot access memory at address 0xffc84890 No symbol table info available. eax            0x0 0 ecx            0xa33e0b0 171172016 edx            0x67 103 ebx            0xffc848ac -3651412 esp            0xffc84890 0xffc84890 ebp            0xffc84cb8 0xffc84cb8 esi            0x1 1 edi            0x21 33 eip            0xf5dd6e93 0xf5dd6e93 eflags         0x10246 [ PF ZF IF RF ] cs             0x23 35 ss             0x2b 43 ds             0x2b 43 es             0x2b 43 fs             0x0 0 gs             0x63 99 No shared libraries loaded at this time. End of Source crash report ----------------------------------------------
Sorry, you need to Log In to post a reply to this thread.