Compiling iceball and trying to run the game or connect to a server causes the game to crash. GreaseMonkey has told me to recompile without the -O2 part and here is what GDB spit out:
C:\iceball>gdb iceball
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i686-pc-mingw32".
For bug reporting instructions, please see:
...
Reading symbols from C:\iceball\iceball.exe...done.
(gdb) run -c aoswiki.rakiru.com 20737
Starting program: C:\iceball\iceball.exe -c aoswiki.rakiru.com 20737
[New Thread 2428.0x240]
[New Thread 2428.0x5b0]
[New Thread 2428.0x1124]
[New Thread 2428.0xdf4]
[New Thread 2428.0xf78]
Program received signal SIGSEGV, Segmentation fault.
0x77c4708c in msvcrt!memcpy () from C:\WINDOWS\system32\msvcrt.dll
(gdb) bt full
#0 0x77c4708c in msvcrt!memcpy () from C:\WINDOWS\system32\msvcrt.dll
No symbol table info available.
#1 0x0040442b in img_parse_tga (len=37110, data=0x5152ff8 "")
at src/img.c:101
rle = 110
tmp_col = 4009684734
p = 0x515cff5 "■ε■ε■ε■ε■ε■"
dend = 0x515c0ee "\253\253\253\253\253\253\253\253ε■"
x = 0
y = 42
i = 0
head = {idlen = 254 '■', cmtype = 238 'ε', imgtype = 254 '■',
cmoffs = 61182, cmlen = 61182, cmbpp = 254 '■', xstart = 61182,
ystart = 510, width = 48, height = 10272, bpp = 166 'ª',
flags = 0 '\000'}
palette = 0x0
img = 0x62a0020
bplen = 21
idx = 490962
#2 0x0040aeeb in icelua_fn_common_fetch_poll (L=0x3fa64b8)
at src/lua_fetch.h:239
img = 0x22ffe0
ret = 0
#3 0x0041f6db in luaD_precall ()
No symbol table info available.
#4 0x0041faa8 in luaD_call ()
No symbol table info available.
#5 0x00417bad in lua_call ()
No symbol table info available.
#6 0x0040b21e in icelua_fn_common_fetch_block (L=0x3fa64b8)
at src/lua_fetch.h:341
top = 2
#7 0x0041f6db in luaD_precall ()
No symbol table info available.
#8 0x0041faa8 in luaD_call ()
No symbol table info available.
#9 0x00417bad in lua_call ()
No symbol table info available.
#10 0x0040c08c in icelua_fn_common_img_load (L=0x3fa64b8)
at src/lua_image.h:89
top = 1
fname = 0x5128ad8 "pkg/base/gfx/font-numbers.tga"
img = 0x3fa91f8
#11 0x0041f6db in luaD_precall ()
No symbol table info available.
#12 0x00423cea in luaV_execute ()
No symbol table info available.
#13 0x0041fae4 in luaD_call ()
No symbol table info available.
#14 0x00417bad in lua_call ()
No symbol table info available.
#15 0x0040b421 in icelua_fn_base_dofile (L=0x3fa64b8) at src/lua_base.h:50
top = 1
#16 0x0041f6db in luaD_precall ()
No symbol table info available.
#17 0x00423cea in luaV_execute ()
No symbol table info available.
#18 0x0041fae4 in luaD_call ()
No symbol table info available.
#19 0x00416b48 in f_call ()
No symbol table info available.
#20 0x0041eeb1 in luaD_rawrunprotected ()
No symbol table info available.
#21 0x0041fc39 in luaD_pcall ()
No symbol table info available.
#22 0x00417c1c in lua_pcall ()
No symbol table info available.
#23 0x00410570 in icelua_initfetch () at src/lua.c:239
i = 0
xpath = "pkg/base/main_client.lua\000\250DÑq▐g\253q╕²\"\000µ\024@\000\00
1\000\000\000\000\000\000\000╨'\372\003.Ñ├wx\033╞wp²\"\000\221╣├w\021\000\000\00
0╕²\"\000{\031─w\001\000\000\000\240ⁿ┼wm\031─w╨'\372\003\b\000\000\000\000\000\0
00\000\021", '\000' , "\021\000\000\000\204²\"\000\020'\000"
argct = 0
#24 0x00401c80 in update_client () at src/main.c:304
quitflag = 0
#25 0x0040220f in run_game () at src/main.c:453
usec_curtime = 2000
quitflag = 0
#26 0x00402610 in SDL_main (argc=4, argv=0x3fa27d0) at src/main.c:576
No locals.
#27 0x0042bb29 in console_main (argc=4, argv=0x3fa27d0)
at ./src/main/win32/SDL_win32_main.c:315
n =
bufp =
appname =
status = -285282562
#28 0x0042bbeb in WinMain@16 (hInst=0x400000, hPrev=0x0,
szCmdLine=0x251ef7 "-c aoswiki.rakiru.com 20737", sw=10)
at ./src/main/win32/SDL_win32_main.c:398
handle =
argv = 0x3fa27d0
argc = 4
cmdline = 0x3fa2538 "C:\\iceball\\iceball.exe"
env_str =
bufp =
nLen =
#29 0x00430f4b in main ()
No symbol table info available.
(gdb)
Compiling iceball and trying to run the game or connect to a server causes the game to crash. GreaseMonkey has told me to recompile without the -O2 part and here is what GDB spit out: