I get this backtrace:
Program received signal SIGPIPE, Broken pipe.
0x00007ffff6d37812 in __libc_send (fd=<value optimized out>, buf=0x6388b0, n=6, flags=<value optimized out>)
at ../sysdeps/unix/sysv/linux/x86_64/send.c:28
28 ../sysdeps/unix/sysv/linux/x86_64/send.c: No such file or directory.
in ../sysdeps/unix/sysv/linux/x86_64/send.c
(gdb) bt
#0 0x00007ffff6d37812 in __libc_send (fd=<value optimized out>, buf=0x6388b0, n=6, flags=<value optimized out>)
at ../sysdeps/unix/sysv/linux/x86_64/send.c:28
#1 0x00007ffff7784a9c in sf::SocketTCP::Send(char const*, unsigned long) () from /usr/lib/libsfml-network.so.1.6
#2 0x00007ffff7784ba6 in sf::SocketTCP::Send(sf::Packet&) () from /usr/lib/libsfml-network.so.1.6
#3 0x0000000000413da9 in Packet::send(sf::SocketTCP) ()
#4 0x0000000000410ded in Client::update() ()
#5 0x0000000000413183 in Server::update() ()
#6 0x0000000000412c22 in main ()
When I close my client. When I try to send the next packet it crashes, even if I perform a SocketTCP::IsValid() check... it wasn't doing this earlier and I have no idea what I changed to make it not work...
Source code can be found here:
https://gitorious.org/plasma-game/plasmaserv/trees/master/src