Topic: causing a segmentation fault in 0.5.0
There is a way to produce a segmentation fault on the server and no reaction on client.
1. Joining the server and login at rcon.
2. command "sv_gametype ctf"
3. command "sv_map ctf2"
4. disconnect from the server -> server crashes.
5. tab out of the client.
6. focus the client again -> no reaction of the client.
Config file of the server:
sv_name .:scosu.de - TEST:.
sv_map dm1
sv_maprotation dm1 dm2
sv_scorelimit 20
sv_timelimit 5
sv_gametype tdm
sv_port 8303
sv_rcon_password 1
sv_register 0
sv_powerups 1
sv_high_bandwidth 0
sv_max_clients 12
sv_spectator_slots 0
Log of the server:
[48e899d3][engine]: running on unix-linux-amd64
[48e899d3][engine]: arch is little endian
[48e899d3][console]: executing 'srv.cfg'
[48e899d3][console]: failed to open '/home/scosu/.teeworlds/autoexec.cfg'
[48e899d3][engine/datadir]: using 'data'
[48e899d3][datafile]: datafile loading. filename='maps/dm1.map'
[48e899d3][server]: maps/dm1.map crc is e6991fb3
[48e899d3][server]: server name is '.:scosu.de - TEST:.'
[48e899d3][]: 0 = 0
[48e899d3][]: 1 = 40
[48e899d3][]: 2 = 24
[48e899d3][]: 3 = 20
[48e899d3][]: 4 = 16
[48e899d3][]: 5 = 16
[48e899d3][]: 6 = 48
[48e899d3][]: 7 = 60
[48e899d3][]: 8 = 88
[48e899d3][]: 9 = 24
[48e899d3][]: 10 = 8
[48e899d3][]: 11 = 8
[48e899d3][]: 12 = 8
[48e899d3][]: 13 = 12
[48e899d3][]: 14 = 8
[48e899d3][]: 15 = 12
[48e899d3][]: 16 = 12
[48e899d3][]: 17 = 12
[48e899d3][datafile]: loading data index=10 size=325
[48e899d3][server]: version 0.5 186f1807a5f1c0fa
[48e899e6][server]: player is ready. cid=0
[48e899e6][game]: Team is balanced (red=1 blue=0)
[48e899e6][server]: player as entered the game. cid=0
[48e899e6][game]: join player='0:segfault'
[48e899e6][chat]: *** segfault entered and joined the red team
[48e899e6][game]: team_join player='0:segfault' team=0
[48e899e9][server]: cid=0 authed
[48e899f2][server]: cid=0 rcon='sv_gametype ctf'
[48e899fb][server]: cid=0 rcon='sv_map ctf2'
[48e899fb][datafile]: datafile loading. filename='maps/ctf2.map'
[48e899fb][server]: maps/ctf2.map crc is fc049ac4
[48e899fb][]: 0 = 0
[48e899fb][]: 1 = 40
[48e899fb][]: 2 = 24
[48e899fb][]: 3 = 20
[48e899fb][]: 4 = 16
[48e899fb][]: 5 = 16
[48e899fb][]: 6 = 48
[48e899fb][]: 7 = 60
[48e899fb][]: 8 = 88
[48e899fb][]: 9 = 24
[48e899fb][]: 10 = 8
[48e899fb][]: 11 = 8
[48e899fb][]: 12 = 8
[48e899fb][]: 13 = 12
[48e899fb][]: 14 = 8
[48e899fb][]: 15 = 12
[48e899fb][]: 16 = 12
[48e899fb][]: 17 = 12
[48e899fb][datafile]: loading data index=10 size=1031
[48e899fb][server]: player is ready. cid=0
[48e899fb][game]: Team is balanced (red=1 blue=0)
[48e899fb][server]: player as entered the game. cid=0
[48e899fb][game]: join player='0:segfault'
[48e899fb][chat]: *** segfault entered and joined the red team
[48e899fb][game]: team_join player='0:segfault' team=0
[48e89a01][net_server]: client dropped. cid=0 reason=""
[1] 8903 segmentation fault (core dumped) ./teeworlds_srv -f srv.cfg