Skip to content

Instantly share code, notes, and snippets.

@dscharrer
Created April 14, 2013 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dscharrer/a334e11387feafb3eee1 to your computer and use it in GitHub Desktop.
Save dscharrer/a334e11387feafb3eee1 to your computer and use it in GitHub Desktop.
$ DEBUGGER='gdb --args' ./hl.sh -game gearbox
GNU gdb (Gentoo 7.5.1 p1) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /home/dscharrer/Games/Steam/SteamApps/common/Half-Life/hl_linux...done.
(gdb) r
Starting program: /home/dscharrer/Games/Steam/SteamApps/common/Half-Life/hl_linux -game gearbox
warning: the debug information found in "/mnt/overflow/usr/lib/debug/lib64/ld-2.17.so.debug" does not match "/lib/ld-linux.so.2" (CRC mismatch).
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Using breakpad crash handler
Setting breakpad minidump AppID = 50
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198055870470 [API loaded yes]
Steam_SetMinidumpSteamID: Setting Steam ID: 76561198055870470
[New Thread 0xf2862b40 (LWP 20236)]
GL_SIZES: r:8 g:8 b:8 a:8 depth:24
ARB Multitexture extensions found.
8 texture units. Detail texture supported.
[New Thread 0xebcb8b40 (LWP 20238)]
[0414/225548:ERROR:resource_bundle.cc(411)] Failed to load /home/dscharrer/Games/Steam/SteamApps/common/Half-Life/cef_gtk.pak
Some features may not be available.
[New Thread 0xeb2ffb40 (LWP 20239)]
[New Thread 0xea8ffb40 (LWP 20240)]
[New Thread 0xe9ef8b40 (LWP 20241)]
[New Thread 0xe94ffb40 (LWP 20242)]
[0414/225548:ERROR:object_proxy.cc(239)] Failed to call method: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
[New Thread 0xe8affb40 (LWP 20243)]
[New Thread 0xe80ffb40 (LWP 20244)]
[0414/225548:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation
[New Thread 0xe76ffb40 (LWP 20245)]
ILocalize::AddFile() failed to load file "resource/gearbox_english.txt".
Platform config directory: platform/config
0:Initializing platform...
[New Thread 0xe6cffb40 (LWP 20246)]
[New Thread 0xeb47cb40 (LWP 20247)]
[New Thread 0xe6387b40 (LWP 20248)]
[Thread 0xe6387b40 (LWP 20248) exited]
[New Thread 0xe5b86b40 (LWP 20250)]
[New Thread 0xe8c86b40 (LWP 20251)]
[New Thread 0xe6387b40 (LWP 20252)]
Server module initialized.
World module initialized.
[New Thread 0xe8c72b40 (LWP 20253)]
[New Thread 0xe57dcb40 (LWP 20254)]
[New Thread 0xe55dbb40 (LWP 20255)]
[New Thread 0xe53dab40 (LWP 20256)]
STEAM Auth Server
AppActive: active
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
AppActive: active
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
Can't register variable mapcyclefile, already defined
Can't register variable servercfgfile, already defined
Can't register variable lservercfgfile, already defined
Loading game from SAVE/quick.sav...
Loading game from SAVE/of6a5.HL1...
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
[New Thread 0xe4a19b40 (LWP 20257)]
[New Thread 0xe4918b40 (LWP 20258)]
[Thread 0xe4a19b40 (LWP 20257) exited]
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198055870470 [API loaded yes]
Steam_SetMinidumpSteamID: Setting Steam ID: 76561198055870470
[S_API WARN] Invalid game server IP passed to InitiateGameConnection
Error: server failed to transmit file 'sound/ambience/port_suckout1'
[New Thread 0xe4a19b40 (LWP 20259)]
Loading decals from of6a4b
Loading decals from of7a0
[Thread 0xe5b86b40 (LWP 20250) exited]
[New Thread 0xe5b86b40 (LWP 20260)]
Unknown command: VModEnable
Program received signal SIGSEGV, Segmentation fault.
EntityIndex (pevLookup=0x1, this=0xffffbccc) at ../gearbox/dlls/util.cpp:2653
2653 ../gearbox/dlls/util.cpp: No such file or directory.
(gdb) bt
#0 EntityIndex (pevLookup=0x1, this=0xffffbccc) at ../gearbox/dlls/util.cpp:2653
#1 EntityIndex (pEntity=0x90ff490, this=0xffffbccc) at ../gearbox/dlls/util.cpp:1700
#2 CSave::WriteFields (this=0xffffbccc, pname=0xe5071dd9 "COFGeneWormSpawn", pBaseData=0x90ffbb0, pFields=0xe50c30a0 <COFGeneWormSpawn::m_SaveData>, fieldCount=9)
at ../gearbox/dlls/util.cpp:2105
#3 0xe4ff925c in Save (save=..., this=0x90ffbb0) at ../gearbox/dlls/geneworm.cpp:151
#4 COFGeneWormSpawn::Save (this=0x90ffbb0, save=...) at ../gearbox/dlls/geneworm.cpp:151
#5 0xe4f13edc in DispatchSave (pent=0xef5d0b38, pSaveData=0xb72d5d0) at ../gearbox/dlls/cbase.cpp:272
#6 0xf6a6ae6f in SaveGamestate () at ../engine/host_cmd.c:2512
#7 0xf6a6c42d in SaveGameSlot (pSaveName=0xef2759b0 "Half-Life-037.sav", pSaveComment=0xffffc420 "#OF6A4TITLE", ' ' <repeats 54 times>, "09:39") at ../engine/host_cmd.c:2056
#8 0xf6a6ce05 in Host_Savegame_f () at ../engine/host_cmd.c:2180
#9 Host_Savegame_f () at ../engine/host_cmd.c:2152
#10 0xf6a4e4dd in Cmd_ExecuteString (text=0xffffc4e0 "save Half-Life-037.sav", src=<optimized out>) at ../engine/cmd.c:1143
#11 Cbuf_Execute () at ../engine/cmd.c:242
#12 0xf6a65163 in _Host_Frame (time=0.016671529) at ../engine/host.c:1384
#13 0xf6a65612 in Host_Frame (time=0.016671529, iState=1, stateInfo=0xffffc9fc) at ../engine/host.c:1522
#14 0xf6a919d4 in CEngine::Frame (this=0xf6ca9ba0 <g_Engine>) at ../engine/sys_engine.cpp:245
#15 0xf6a8f4b3 in RunListenServer (instance=0x0, basedir=0x804b220 <szBaseDir> "/home/dscharrer/Games/Steam/SteamApps/common/Half-Life",
cmdline=0x804e860 "/home/dscharrer/Games/Steam/SteamApps/common/Half-Life/hl_linux -game gearbox", postRestartCmdLineArgs=0x804d360 <main::szNewCommandParams> "",
launcherFactory=0x8049350 <CreateInterfaceLocal(char const*, int*)>, filesystemFactory=0xf7febad0 <CreateInterface(char const*, int*)>) at ../engine/sys_dll2.cpp:946
#16 0x08048d67 in main (argc=3, argv=0xffffcc34) at ../launcher/launcher.cpp:440
(gdb) bt full
#0 EntityIndex (pevLookup=0x1, this=0xffffbccc) at ../gearbox/dlls/util.cpp:2653
No locals.
#1 EntityIndex (pEntity=0x90ff490, this=0xffffbccc) at ../gearbox/dlls/util.cpp:1700
No locals.
#2 CSave::WriteFields (this=0xffffbccc, pname=0xe5071dd9 "COFGeneWormSpawn", pBaseData=0x90ffbb0, pFields=0xe50c30a0 <COFGeneWormSpawn::m_SaveData>, fieldCount=9)
at ../gearbox/dlls/util.cpp:2105
pOutputData = <optimized out>
i = <optimized out>
actualCount = <optimized out>
emptyCount = <optimized out>
j = <optimized out>
entityArray = {152041552, 192089116, -17204, -453950952, -17204, -452691140, 152041552, 4, 5, -1, -1, -17204, -452576016, 192089116, -17204, -453360612, -17204,
-452576016, 152041552, 4, 2, -1, -1, -17204, 152041552, 192089116, -17204, -454027044, -17204, -452708176, 152041552, 4, 5, -1, -1, -17204, 152041552, 192089116,
-17204, -453360708, -17204, -452576028, 152041552, 12, 19, -1, -1, -17204, 152041552, 192089116, -17204, -453650004, -17204, -452617740, 152041552, 57, 37, -1, -1,
-17204, 152042416, 192089140, -17204, -453950952}
#3 0xe4ff925c in Save (save=..., this=0x90ffbb0) at ../gearbox/dlls/geneworm.cpp:151
No locals.
#4 COFGeneWormSpawn::Save (this=0x90ffbb0, save=...) at ../gearbox/dlls/geneworm.cpp:151
No locals.
#5 0xe4f13edc in DispatchSave (pent=0xef5d0b38, pSaveData=0xb72d5d0) at ../gearbox/dlls/cbase.cpp:272
pTable = 0xb730c34
saveHelper = {<CSaveRestoreBuffer> = {m_pdata = 0xb72d5d0}, <No data fields>}
pEntity = 0x90ffbb0
#6 0xf6a6ae6f in SaveGamestate () at ../engine/host_cmd.c:2512
name = "SAVE/of6a5.HL1", '\000' <repeats 241 times>
pTableData = <optimized out>
pTokenData = <optimized out>
pFile = <optimized out>
i = 522
dataSize = <optimized out>
tableSize = <optimized out>
pent = <optimized out>
header = {saveId = 0, version = 6005, skillLevel = 2, entityCount = 530, connectionCount = 2, lightStyleCount = 14, time = 579.20813,
mapName = "of6a5", '\000' <repeats 26 times>, skyName = "xen10", '\000' <repeats 26 times>, skyColor_r = 120, skyColor_g = 155, skyColor_b = 177, skyVec_x = 1,
skyVec_y = 0, skyVec_z = 0}
pSaveData = 0xb72d5d0
light = {index = 63, style = "a", '\000' <repeats 62 times>}
#7 0xf6a6c42d in SaveGameSlot (pSaveName=0xef2759b0 "Half-Life-037.sav", pSaveComment=0xffffc420 "#OF6A4TITLE", ' ' <repeats 54 times>, "09:39") at ../engine/host_cmd.c:2056
hlPath = "\204\242\063\000\000\000\000\000\001", '\000' <repeats 19 times>, "Ȗ?\bXK;\b \020L\b\000\000\001\000\000\000\001\000\310\377", '\000' <repeats 26 times>, "\003", '\000' <repeats 39 times>, "\001\000\000\000\000\000\000\000\234BA\b\000\000\000\000\204\304\377\377\000\000\000\000\314{C\b {C\b\204\304\377\377P:A\b\000\000\000\000\254\323/\365 {C\b\000\000\000\000\000\000\063\071\000\000\000\000\001\000\000\000\234BA\b\000\000\000\000\204\304\377\377", '\000' <repeats 16 times>, "\001\000\000\000\000\000\000\000\234BA\b\000\000\000\000\344\304\377\377\000\000\000\000\314{C\b {C\b\344\304\377\377P:A\b\000\000\000"
name = "\254\323/\365 {C\bg\363\tO\000p\035O\320\302\377\377\246\f\nOo6\274\366\374\303\377\377n\304\377\377\000\000\000\000(\020\067\b\324\004\000\000\v\347\006O\000p\035Op\303\377\377 \304\377\377\320\302\377\377Q\246\tO\320\302\377\377]6\274\366\004\304\377\377 \304\377\377\000\000\000\000\350\271\060\b\300q?\b\001\000\000\000\270μ\b\370\261\027\365\333\001\026ON\000\000\000\001\200\255\373 \304\377\377 \304\377\377 \304\377\377 \304\377\377f\304\377\377n\304\377\377 \304\377\377n\304\377\377", '\000' <repeats 20 times>, "(\032\067\b\000\000\000\000\070C7\b\000\000\000\b\000\000\000\000\215\261&\365\270μ\b\370\261\027\365\333\001\026O\000\000\000\000Ɇ\340\365\340\374\067\b\377\377\377\377\240\000\000\000-\265&\365\340\374\067\b\377\377\377\377+\377\275\366\002\000\000\000\001\000\000"
pTokenData = <optimized out>
tag = <optimized out>
i = <optimized out>
pFile = <optimized out>
pSaveData = <optimized out>
gameHeader = {mapName = "\001\000\000\000\377\377\377\377\002\000\000\000\000i\035O\000\000\000\000f/\fO\301Y'\357\000\000\000",
comment = "\001\000\000\000\215\261&\365\350\271\060\b85]\b\000\000\000\000*\377\275\366\275Y'\357\003\000\000\000\005\000\000\000\000\000\000\000+\377\275\366j;\274\366\065\000\000\000\035\246\vOP\000\000\000(P2\367\251\245\tO\000p\035O\000\336E\357X\304", <incomplete sequence \357>, mapCount = 22}
---Type <return> to continue, or q <return> to quit---
#8 0xf6a6ce05 in Host_Savegame_f () at ../engine/host_cmd.c:2180
szComment = "#OF6A4TITLE", ' ' <repeats 54 times>, "09:39\000\377{\304\377\377\000\000\000"
szTemp = "#OF6A4TITLE", '\000' <repeats 68 times>
#9 Host_Savegame_f () at ../engine/host_cmd.c:2152
No locals.
#10 0xf6a4e4dd in Cmd_ExecuteString (text=0xffffc4e0 "save Half-Life-037.sav", src=<optimized out>) at ../engine/cmd.c:1143
cmd = 0xef45de00
a = <optimized out>
src = src_command
#11 Cbuf_Execute () at ../engine/cmd.c:242
i = <optimized out>
text = <optimized out>
line = "save Half-Life-037.sav\000\000\300q?\b\001\000\000\000\006C\000\000\022F\000\000\004F\000\000\020\000\000\000\276G\000\000\006F\000\000\022I\000\000\004I\000\000 \000\000\000\276J\000\000\006I\000\000 \321\r\b\311\000\200\004\254\005\000\000\001\000\000\000\001\000\000\000\244\005\000\000\060\351i\b\264\025L\b", '\000' <repeats 13 times>, "\tC\b {C\b\000\tC\b\000\000\000\000\270\317+\365\000\367\353\367`<]\b\000\367\353\367\002\000\000\000`<]\b\367U\332\364`\256K\b@B]\b\320\070j\b\320:j\b\000\000\000\000\002\000\000\000\000\000\000\000\320\070j\b\357\300\373\b\357\300\373\b\000\000\000\000\000\000\000\000\234\203\274\364@\210J\b\330\305\377\377\340\305\377\377\350\305\377\377\360\305\377\377\370\305\377\377\000\306\377\377`\256K\b", '\000' <repeats 24 times>, "x2\325\365؋?\b(\264"...
quotes = <optimized out>
amount = 22
#12 0xf6a65163 in _Host_Frame (time=0.016671529) at ../engine/host.c:1384
host_times = {13.638931425000001, 13.639123122999999, 13.639444606, 13.639583550999999, 13.655613406000001, 13.655633268000001}
#13 0xf6a65612 in Host_Frame (time=0.016671529, iState=1, stateInfo=0xffffc9fc) at ../engine/host.c:1522
time1 = 2.758594528254854e-313
time2 = <optimized out>
#14 0xf6a919d4 in CEngine::Frame (this=0xf6ca9ba0 <g_Engine>) at ../engine/sys_engine.cpp:245
dummy = 0
iState = <optimized out>
#15 0xf6a8f4b3 in RunListenServer (instance=0x0, basedir=0x804b220 <szBaseDir> "/home/dscharrer/Games/Steam/SteamApps/common/Half-Life",
cmdline=0x804e860 "/home/dscharrer/Games/Steam/SteamApps/common/Half-Life/hl_linux -game gearbox", postRestartCmdLineArgs=0x804d360 <main::szNewCommandParams> "",
launcherFactory=0x8049350 <CreateInterfaceLocal(char const*, int*)>, filesystemFactory=0xf7febad0 <CreateInterface(char const*, int*)>) at ../engine/sys_dll2.cpp:946
result = 0
OrigCmd = "/home/dscharrer/Games/Steam/SteamApps/common/Half-Life/hl_linux\000-game\000gearbox", '\000' <repeats 946 times>
#16 0x08048d67 in main (argc=3, argv=0xffffcc34) at ../launcher/launcher.cpp:440
engineAPI = 0xf6ca51e0 <__g_CEngineAPI_singleton>
engineFactory = <optimized out>
filesystemModule = 0x804e920
engineResult = 0
szNewCommandParams = '\000' <repeats 2047 times>
engineModule = 0x8050460
hInstance = 0x0
szFirstSep = 0x1 <Address 0x1 out of bounds>
mod = <optimized out>
en_US = "en_US.UTF-8"
exename = "/home/dscharrer/Games/Steam/SteamApps/common/Half-Life/hl_linux", '\000' <repeats 192 times>
game = <optimized out>
restart = false
CurrentLocale = <optimized out>
enginedll = 0x804a068 "hw.so"
hl_binary_name = 0x804a090 "hl"
(gdb) q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment