iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
114 stars 32 forks source link

Server crash when trying to disconnect someone #71

Closed iamgreaser closed 11 years ago

iamgreaser commented 11 years ago

file request: 07 pmf "pkg/br/smg//smg.pmf" hook_file: 3 pmf pkg/br/smg//smg.pmf Adding default permissions for user Defero200 joined team -1. KICK: -3 "Connection axed." disconnect: 3 true Connection axed. Disconnected: player on neth 3 Lua Server Error (tick): pkg/base/obj_intent.lua:179: attempt to index local 'plr' (a nil value)

Program received signal SIGSEGV, Segmentation fault. enet_peer_disconnect (peer=0x7ffff7ee5010, data=0) at peer.c:529 529 peer -> state == ENET_PEER_STATE_DISCONNECTED || (gdb) bt 0 enet_peer_disconnect (peer=0x7ffff7ee5010, data=0) at peer.c:529 1 0x000000000040fb90 in net_deinit_client (cli=0x3e62da0) at src/network.c:365 2 0x000000000040fbdf in net_deinit () at src/network.c:1992 3 0x00000000004034be in main_dbghelper (argc=, argv=0x7fffffffe1b8) at src/main.c:716 4 0x00007ffff6faec8d in __libc_start_main () from /lib/libc.so.6 5 0x0000000000402fd9 in _start () (gdb)

iamgreaser commented 11 years ago

(gdb) bt full

0 enet_peer_disconnect (peer=0x7ffff7ee5010, data=0) at peer.c:529

    command = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, acknowledge = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, 
        receivedReliableSequenceNumber = 0, receivedSentTime = 0}, connect = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, outgoingPeerID = 0, incomingSessionID = 0 '\000', 
        outgoingSessionID = 0 '\000', mtu = 272816, windowSize = 0, channelCount = 74705632, incomingBandwidth = 0, outgoingBandwidth = 0, packetThrottleInterval = 0, packetThrottleAcceleration = 65416608, 
        packetThrottleDeceleration = 0, connectID = 4147043904, data = 32767}, verifyConnect = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, outgoingPeerID = 0, 
        incomingSessionID = 0 '\000', outgoingSessionID = 0 '\000', mtu = 272816, windowSize = 0, channelCount = 74705632, incomingBandwidth = 0, outgoingBandwidth = 0, packetThrottleInterval = 0, 
        packetThrottleAcceleration = 65416608, packetThrottleDeceleration = 0, connectID = 4147043904}, disconnect = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, data = 0}, ping = {
        header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}}, sendReliable = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, dataLength = 0}, 
      sendUnreliable = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, unreliableSequenceNumber = 0, dataLength = 0}, sendUnsequenced = {header = {command = 176 '\260', 
          channelID = 41 ')', reliableSequenceNumber = 4}, unsequencedGroup = 0, dataLength = 0}, sendFragment = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, 
        startSequenceNumber = 0, dataLength = 0, fragmentCount = 272816, fragmentNumber = 0, totalLength = 74705632, fragmentOffset = 0}, bandwidthLimit = {header = {command = 176 '\260', channelID = 41 ')', 
          reliableSequenceNumber = 4}, incomingBandwidth = 0, outgoingBandwidth = 272816}, throttleConfigure = {header = {command = 176 '\260', channelID = 41 ')', reliableSequenceNumber = 4}, 
        packetThrottleInterval = 0, packetThrottleAcceleration = 272816, packetThrottleDeceleration = 0}}

1 0x000000000040fb90 in net_deinit_client (cli=0x3e62da0) at src/network.c:365 No locals. 2 0x000000000040fbdf in net_deinit () at src/network.c:1992 No locals. 3 0x00000000004034be in main_dbghelper (argc=, argv=0x7fffffffe1b8) at src/main.c:716 No locals. 4 0x00007ffff6faec8d in __libc_start_main () from /lib/libc.so.6 No symbol table info available. 5 0x0000000000402fd9 in _start () No symbol table info available.

iamgreaser commented 11 years ago

Fuck markdown here's a pastebin: https://gist.github.com/iamgreaser/5893719

iamgreaser commented 11 years ago

Only occurs when the Lua code is fucked. Closing for now.