1

Topic: Teeworlds Crash

I'm having problems with the 0.5.2 stable build of teeworlds. After a few minutes the game crashes and doesnt save anything. I compiled this release btw on a linux box 32 bit.

julia@julia-laptop /usr/games/Teeworlds $ ./teeworlds
[4c81b693][engine]: running on unix-linux-ia32
[4c81b693][engine]: arch is little endian
[4c81b694][binds]: bound f1 (282) = toggle_local_console
[4c81b694][binds]: bound f2 (283) = toggle_remote_console
[4c81b694][binds]: bound tab (9) = +scoreboard
[4c81b694][binds]: bound f10 (291) = screenshot
[4c81b694][binds]: bound a (97) = +left
[4c81b694][binds]: bound d (100) = +right
[4c81b694][binds]: bound space (32) = +jump
[4c81b694][binds]: bound mouse1 (323) = +fire
[4c81b694][binds]: bound mouse2 (324) = +hook
[4c81b694][binds]: bound lshift (304) = +emote
[4c81b694][binds]: bound 1 (49) = +weapon1
[4c81b694][binds]: bound 2 (50) = +weapon2
[4c81b694][binds]: bound 3 (51) = +weapon3
[4c81b694][binds]: bound 4 (52) = +weapon4
[4c81b694][binds]: bound 5 (53) = +weapon5
[4c81b694][binds]: bound mousewheelup (331) = +prevweapon
[4c81b694][binds]: bound mousewheeldown (332) = +nextweapon
[4c81b694][binds]: bound t (116) = chat all
[4c81b694][binds]: bound y (121) = chat team
[4c81b694][binds]: bound f3 (284) = vote yes
[4c81b694][binds]: bound f4 (285) = vote no
[4c81b694][engine/datadir]: paths used:
[4c81b694][engine/datadir]:     .
[4c81b694][engine/datadir]:     /home/julia/.teeworlds
[4c81b694][engine/datadir]:     data
[4c81b694][engine/datadir]: saving files to: /home/julia/.teeworlds
[4c81b694][console]: failed to open 'autoexec.cfg'
[4c81b694][console]: executing 'settings.cfg'
[4c81b694][]: added fav, (nil)
[4c81b694][]: added fav, (nil)
[4c81b694][]: added fav, (nil)
[4c81b694][]: added fav, (nil)
[4c81b694][]: added fav, (nil)
[4c81b694][]: added fav, (nil)
[4c81b694][binds]: bound tab (9) = +scoreboard
[4c81b694][binds]: bound 1 (49) = +weapon1
[4c81b694][binds]: bound 2 (50) = +weapon2
[4c81b694][binds]: bound 3 (51) = +weapon3
[4c81b694][binds]: bound 4 (52) = +weapon4
[4c81b694][binds]: bound 5 (53) = +weapon5
[4c81b694][binds]: bound a (97) = +left
[4c81b694][binds]: bound d (100) = +right
[4c81b694][binds]: bound f (102) = say /device
[4c81b694][binds]: bound g (103) = exec gfx_full_clear 1.cfg
[4c81b694][binds]: bound k (107) = kill
[4c81b694][binds]: bound o (111) = say " LoL "
[4c81b694][binds]: bound r (114) = say /r
[4c81b694][binds]: bound t (116) = chat all
[4c81b694][binds]: bound w (119) = +jump
[4c81b694][binds]: bound x (120) = say " xD "
[4c81b694][binds]: bound y (121) = chat team
[4c81b694][binds]: bound f1 (282) = toggle_local_console
[4c81b694][binds]: bound f2 (283) = toggle_remote_console
[4c81b694][binds]: bound f3 (284) = vote yes
[4c81b694][binds]: bound f4 (285) = vote no
[4c81b694][binds]: bound f10 (291) = screenshot
[4c81b694][binds]: bound lshift (304) = +emote
[4c81b694][binds]: bound mouse1 (323) = +fire
[4c81b694][binds]: bound mouse2 (324) = +hook
[4c81b694][binds]: bound mousewheelup (331) = +prevweapon
[4c81b694][binds]: bound mousewheeldown (332) = +nextweapon
[4c81b694][engine/mastersrv]: refreshing master server addresses
[4c81b694][client/sound]: sound init successful
[4c81b694][font]: gfx memory used for font textures: 3058288
[4c81b695][game]: load skin saddo
[4c81b695][game]: load skin twinbop
[4c81b695][game]: load skin cammostripes
[4c81b695][game]: load skin toptri
[4c81b695][game]: load skin redstripe
[4c81b695][game]: load skin warpaint
[4c81b695][game]: load skin pinky
[4c81b695][game]: load skin brownbear
[4c81b695][game]: load skin cammo
[4c81b695][game]: load skin twintri
[4c81b695][game]: load skin redbopp
[4c81b695][game]: load skin x_ninja
[4c81b695][game]: load skin limekitty
[4c81b695][game]: load skin coala
[4c81b695][game]: load skin default
[4c81b695][game]: load skin bluestripe
[4c81b695][game]: load skin bluekitty
[4c81b697][]: 3262.920960.2ms
[4c81b697][client]: version 0.5 b67d1f1a1eea234e
[4c81b6ad][engine/mastersrv]: saving addresses
[4c81b6b9][netclient]: disconnected. reason="(null)"
[4c81b6b9][client]: connecting to '68.68.99.64:8303'
[4c81b6b9][client]: connected, sending info
[4c81b6b9][client]: loading map, map=fng1 wanted crc=9fd0a47a
[4c81b6b9][datafile]: datafile loading. filename='maps/fng1.map'
[4c81b6b9][datafile]: datafile loading. filename='downloadedmaps/fng1_9fd0a47a.map'
[4c81b6b9][client]: loaded map 'downloadedmaps/fng1_9fd0a47a.map'
[4c81b6b9][client/network]: loading done
[4c81b6b9][datafile]: loading data index=17 size=2309 uncompressed=129600
[4c81b6b9][datafile]: loading data index=12 size=1209 uncompressed=119600
[4c81b6b9][datafile]: loading data index=13 size=47 uncompressed=264
[4c81b6b9][datafile]: loading data index=14 size=420 uncompressed=129600
[4c81b6b9][datafile]: loading data index=15 size=1388 uncompressed=129600
[4c81b6b9][datafile]: loading data index=16 size=222 uncompressed=129600
[4c81b6b9][datafile]: loading data index=18 size=390 uncompressed=129600
[4c81b6b9][datafile]: loading data index=19 size=225 uncompressed=129600
[4c81b6b9][datafile]: loading data index=20 size=183 uncompressed=89712
[4c81b6b9][datafile]: loading data index=21 size=2793 uncompressed=129600
[4c81b6b9][datafile]: loading data index=22 size=122 uncompressed=54000
[4c81b6b9][datafile]: loading data index=23 size=3260 uncompressed=129600
[4c81b6b9][datafile]: loading data index=0 size=19 uncompressed=11
[4c81b6ba][datafile]: loading data index=1 size=27 uncompressed=19
[4c81b6ba][datafile]: loading data index=2 size=22 uncompressed=14
[4c81b6ba][datafile]: loading data index=3 size=18 uncompressed=10
[4c81b6ba][datafile]: loading data index=4 size=18 uncompressed=10
[4c81b6ba][datafile]: loading data index=5 size=18 uncompressed=10
[4c81b6ba][datafile]: loading data index=6 size=23 uncompressed=15
[4c81b6ba][datafile]: loading data index=8 size=72259 uncompressed=4194304
[4c81b6ba][chat]: *** Julia | Teddies entered and joined the blue team
[4c81b6ba][chat]: *** this server is running freeze-ng version 1.0.0
[4c81b6ba][chat]: *** for more info try #info or #about
[4c81b6bb][datafile]: loading data index=9 size=79 uncompressed=152
[4c81b6bb][datafile]: loading data index=10 size=340 uncompressed=1520
[4c81b6bb][datafile]: loading data index=11 size=241 uncompressed=1064
[4c81b6bb][chat]: BlueKitty [ET~R]: LOL
[4c81b6bc][chat]: :o: Pokemon ;D
[4c81b6bc][chat]: *** :o has left the game
[4c81b6c4][chat]: BlueKitty [ET~R]: mando
[4c81b6c6][chat]: Zenshi: Mando
[4c81b6c7][chat]: *** :o has left the game
[4c81b6c7][chat]: Julia | Teddies: hi again :(
[4c81b6c7][chat]: BlueKitty [ET~R]: hammer..
[4c81b6cb][chat]: BlueKitty [ET~R]: no gun
[4c81b6cd][chat]: *** :o entered and joined the blue team
[4c81b6ce][chat]: ManDo: yea?
[4c81b6cf][chat]: ManDo: yea?
[4c81b6d2][chat]: Zenshi: Wanna go Chat Call?
[4c81b6d4][chat]: aRkyAn@roOt: adorable hack
[4c81b6d6][chat]: *** :o has left the game
[4c81b6da][chat]: ManDo: but
[4c81b6dd][chat]: BlueKitty [ET~R]: xD
[4c81b6dd][chat]: ManDo: i will be kinda quiet
[4c81b6e1][chat]: Zenshi: Ok
[4c81b6e4][chat]: Zenshi: Well
[4c81b6e6][chat]: Zenshi: kinda sucks
[4c81b6e8][chat]: Zenshi: :/
*********************************WARN_ONCE*********************************
File radeon_dma.c function radeonReleaseDmaRegions line 344
Leaking dma buffer object!
***************************************************************************
*** glibc detected *** ./teeworlds: free(): invalid pointer: 0x08e63944 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x2fb591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0x2fcde8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x2ffecd]
/usr/lib/dri/r300_dri.so(_mesa_free+0x1d)[0x1044f4d]
/usr/lib/dri/r300_dri.so(radeonReleaseDmaRegions+0x107)[0xff0947]
/usr/lib/dri/r300_dri.so(rcommonFlushCmdBuf+0x25)[0xfed555]
/usr/lib/dri/r300_dri.so(radeonDestroyContext+0x63)[0xfec593]
/usr/lib/dri/r300_dri.so(+0x219f7)[0xfc89f7]
/usr/lib/mesa/libGL.so.1(+0x3d4b9)[0x4894b9]
/usr/lib/mesa/libGL.so.1(+0x17286)[0x463286]
/usr/lib/libSDL-1.2.so.0(+0x3afe6)[0xf53fe6]
/usr/lib/libSDL-1.2.so.0(+0x3f527)[0xf58527]
/usr/lib/libSDL-1.2.so.0(+0x3f739)[0xf58739]
/usr/lib/libSDL-1.2.so.0(SDL_VideoQuit+0x50)[0xf46d90]
/usr/lib/libSDL-1.2.so.0(SDL_QuitSubSystem+0x53)[0xf1e833]
/usr/lib/libSDL-1.2.so.0(SDL_Quit+0x1e)[0xf1e8ce]
/usr/lib/libSDL-1.2.so.0(+0x616f)[0xf1f16f]
[0xab0400]
/usr/lib/dri/r300_dri.so(rcommonFlushCmdBuf+0x25)[0xfed555]
/usr/lib/dri/r300_dri.so(rcommonEnsureCmdBufSpace+0x47)[0xfed607]
/usr/lib/dri/r300_dri.so(+0x3f708)[0xfe6708]
/usr/lib/dri/r300_dri.so(+0x41634)[0xfe8634]
/usr/lib/dri/r300_dri.so(+0xf1cb9)[0x1098cb9]
/usr/lib/dri/r300_dri.so(_tnl_run_pipeline+0x163)[0x108c9a3]
/usr/lib/dri/r300_dri.so(_tnl_draw_prims+0xc76)[0x108d6f6]
/usr/lib/dri/r300_dri.so(_tnl_vbo_draw_prims+0x79)[0x108db59]
/usr/lib/dri/r300_dri.so(+0xdc761)[0x1083761]
/usr/lib/dri/r300_dri.so(+0xd3447)[0x107a447]
./teeworlds[0x8088ca4]
./teeworlds[0x808a1e7]
./teeworlds[0x8088a7b]
./teeworlds[0x8088af8]
./teeworlds[0x8055fd9]
./teeworlds[0x8050767]
./teeworlds[0x8053ad9]
./teeworlds[0x808d82e]
./teeworlds[0x808fd89]
./teeworlds[0x8090495]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x2a6bd6]
./teeworlds[0x804ab71]
======= Memory map: ========
00110000-00128000 r-xp 00000000 08:01 2100027    /usr/lib/libxcb.so.1.1.0
00128000-00129000 r--p 00017000 08:01 2100027    /usr/lib/libxcb.so.1.1.0
00129000-0012a000 rw-p 00018000 08:01 2100027    /usr/lib/libxcb.so.1.1.0
0012a000-00138000 r-xp 00000000 08:01 2098978    /usr/lib/libXext.so.6.4.0
00138000-00139000 r--p 0000d000 08:01 2098978    /usr/lib/libXext.so.6.4.0
00139000-0013a000 rw-p 0000e000 08:01 2098978    /usr/lib/libXext.so.6.4.0
0013a000-0013c000 r-xp 00000000 08:01 2098974    /usr/lib/libXdamage.so.1.1.0
0013c000-0013d000 r--p 00001000 08:01 2098974    /usr/lib/libXdamage.so.1.1.0
0013d000-0013e000 rw-p 00002000 08:01 2098974    /usr/lib/libXdamage.so.1.1.0
0013e000-00145000 r-xp 00000000 08:01 526579     /lib/tls/i686/cmov/librt-2.11.1.so
00145000-00146000 r--p 00006000 08:01 526579     /lib/tls/i686/cmov/librt-2.11.1.so
00146000-00147000 rw-p 00007000 08:01 526579     /lib/tls/i686/cmov/librt-2.11.1.so
00147000-0014f000 r-xp 00000000 08:01 2099294    /usr/lib/libfusion-1.2.so.0.8.0
0014f000-00150000 r--p 00007000 08:01 2099294    /usr/lib/libfusion-1.2.so.0.8.0
00150000-00151000 rw-p 00008000 08:01 2099294    /usr/lib/libfusion-1.2.so.0.8.0
00151000-00165000 r-xp 00000000 08:01 2099191    /usr/lib/libdirect-1.2.so.0.8.0
00165000-00166000 r--p 00013000 08:01 2099191    /usr/lib/libdirect-1.2.so.0.8.0
00166000-00167000 rw-p 00014000 08:01 2099191    /usr/lib/libdirect-1.2.so.0.8.0
00167000-00169000 r-xp 00000000 08:01 2098965    /usr/lib/libXau.so.6.0.0
00169000-0016a000 r--p 00001000 08:01 2098965    /usr/lib/libXau.so.6.0.0
0016a000-0016b000 rw-p 00002000 08:01 2098965    /usr/lib/libXau.so.6.0.0
0016b000-0016f000 r-xp 00000000 08:01 2098976    /usr/lib/libXdmcp.so.6.0.0
0016f000-00170000 r--p 00003000 08:01 2098976    /usr/lib/libXdmcp.so.6.0.0
00170000-00171000 rw-p 00004000 08:01 2098976    /usr/lib/libXdmcp.so.6.0.0
00171000-00179000 r-xp 00000000 08:01 2098972    /usr/lib/libXcursor.so.1.0.2
00179000-0017a000 r--p 00007000 08:01 2098972    /usr/lib/libXcursor.so.1.0.2
0017a000-0017b000 rw-p 00008000 08:01 2098972    /usr/lib/libXcursor.so.1.0.2
0017d000-00198000 r-xp 00000000 08:01 530380     /lib/ld-2.11.1.so
00198000-00199000 r--p 0001a000 08:01 530380     /lib/ld-2.11.1.so
00199000-0019a000 rw-p 0001b000 08:01 530380     /lib/ld-2.11.1.so
0019a000-00283000 r-xp 00000000 08:01 2099910    /usr/lib/libstdc++.so.6.0.13
00283000-00284000 ---p 000e9000 08:01 2099910    /usr/lib/libstdc++.so.6.0.13
00284000-00288000 r--p 000e9000 08:01 2099910    /usr/lib/libstdc++.so.6.0.13
00288000-00289000 rw-p 000ed000 08:01 2099910    /usr/lib/libstdc++.so.6.0.13
00289000-00290000 rw-p 00000000 00:00 0 
00290000-003e3000 r-xp 00000000 08:01 526456     /lib/tls/i686/cmov/libc-2.11.1.so
003e3000-003e4000 ---p 00153000 08:01 526456     /lib/tls/i686/cmov/libc-2.11.1.so
003e4000-003e6000 r--p 00153000 08:01 526456     /lib/tls/i686/cmov/libc-2.11.1.so
003e6000-003e7000 rw-p 00155000 08:01 526456     /lib/tls/i686/cmov/libc-2.11.1.so
003e7000-003ea000 rw-p 00000000 00:00 0 
003ea000-003f2000 r-xp 00000000 08:01 2099000    /usr/lib/libXrender.so.1.3.0
003f2000-003f3000 r--p 00007000 08:01 2099000    /usr/lib/libXrender.so.1.3.0
003f3000-003f4000 rw-p 00008000 08:01 2099000    /usr/lib/libXrender.so.1.3.0
003f4000-003fa000 r-xp 00000000 08:01 526518     /lib/tls/i686/cmov/libnss_compat-2.11.1.so
003fa000-003fb000 r--p 00006000 08:01 526518     /lib/tls/i686/cmov/libnss_compat-2.11.1.so
003fb000-003fc000 rw-p 00007000 08:01 526518     /lib/tls/i686/cmov/libnss_compat-2.11.1.so
003fc000-0040f000 r-xp 00000000 08:01 526516     /lib/tls/i686/cmov/libnsl-2.11.1.so
0040f000-00410000 r--p 00012000 08:01 526516     /lib/tls/i686/cmov/libnsl-2.11.1.so
00410000-00411000 rw-p 00013000 08:01 526516     /lib/tls/i686/cmov/libnsl-2.11.1.so
00411000-00413000 rw-p 00000000 00:00 0 
00413000-0041b000 r-xp 00000000 08:01 526532     /lib/tls/i686/cmov/libnss_nis-2.11.1.so
0041b000-0041c000 r--p 00007000 08:01 526532     /lib/tls/i686/cmov/libnss_nis-2.11.1.so
0041c000-0041d000 rw-p 00008000 08:01 526532     /lib/tls/i686/cmov/libnss_nis-2.11.1.so
0041d000-00441000 r-xp 00000000 08:01 526480     /lib/libexpat.so.1.5.2
00441000-00443000 r--p 00024000 08:01 526480     /lib/libexpat.so.1.5.2
00443000-00444000 rw-p 00026000 08:01 526480     /lib/libexpat.so.1.5.2
00444000-00448000 r-xp 00000000 08:01 526520     /lib/tls/i686/cmov/libnss_dns-2.11.1.so
00448000-00449000 r--p 00004000 08:01 526520     /lib/tls/i686/cmov/libnss_dns-2.11.1.so
00449000-0044a000 rw-p 00005000 08:01 526520     /lib/tls/i686/cmov/libnss_dns-2.11.1.so
0044c000-004a6000 r-xp 00000000 08:01 2106962    /usr/lib/mesa/libGL.so.1.2
004a6000-004ab000 r--p 00059000 08:01 2106962    /usr/lib/mesa/libGL.so.1.2
004ab000-004b0000 rwxp 0005e000 08:01 2106962    /usr/lib/mesa/libGL.so.1.2
004b0000-004b1000 rwxp 00000000 00:00 0 
004b1000-00574000 r-xp 00000000 08:01 2099038    /usr/lib/libasound.so.2.0.0
00574000-00578000 r--p 000c2000 08:01 2099038    /usr/lib/libasound.so.2.0.0
00578000-00579000 rw-p 000c6000 08:01 2099038    /usr/lib/libasound.so.2.0.0
00583000-0058c000 r-xp 00000000 08:01 526470     /lib/libdrm.so.2.4.0
0058c000-0058d000 r--p 00008000 08:01 526470     /lib/libdrm.so.2.4.0
0058d000-0058e000 rw-p 00009000 08:01 526470     /lib/libdrm.so.2.4.0
0058e000-00601000 r-xp 00000000 08:01 2099193    /usr/lib/libdirectfb-1.2.so.0.8.0
00601000-00602000 ---p 00073000 08:01 2099193    /usr/lib/libdirectfb-1.2.so.0.8.0
00602000-00603000 r--p 00073000 08:01 2099193    /usr/lib/libdirectfb-1.2.so.0.8.0
00603000-00604000 rw-p 00074000 08:01 2099193    /usr/lib/libdirectfb-1.2.so.0.8.0
00604000-00605000 rw-p 00000000 00:00 0 
00605000-00615000 r-xp 00000000 08:01 526568     /lib/tls/i686/cmov/libresolv-2.11.1.so
00615000-00616000 r--p 00010000 08:01 526568     /lib/tls/i686/cmov/libresolv-2.11.1.so
00616000-00617000 rw-p 00011000 08:01 526568     /lib/tls/i686/cmov/libresolv-2.11.1.so
00617000-00619000 rw-p 00000000 00:00 0 
00690000-006b4000 r-xp 00000000 08:01 526505     /lib/tls/i686/cmov/libm-2.11.1.so
006b4000-006b5000 r--p 00023000 08:01 526505     /lib/tls/i686/cmov/libm-2.11.1.so
006b5000-006b6000 rw-p 00024000 08:01 526505     /lib/tls/i686/cmov/libm-2.11.1.so
006e7000-006eb000 r-xp 00000000 08:01 2098980    /usr/lib/libXfixes.so.3.1.0
006eb000-006ec000 r--p 00003000 08:01 2098980    /usr/lib/libXfixes.so.3.1.0Aborted

2

Re: Teeworlds Crash

Recompile it as debug version:
../bam-0.2.0/src/bam debug

Then run it inside gdb (sudo aptitude gdb):
gdb teeworlds_d

Wait for it to crash and when it has crashed, type "backtrace" in gdb and give us the output.

3

Re: Teeworlds Crash

That looks like a graphics driver crash. Not really anything we can do there, and recompiling in debug won't help since there is a backtrace there already.

Languages shapes the way we think, or don't.