I had wrote a multi-chat server with commonc++.
But it has a strange problem,when the client close the connection, some times the server will crash.
I don't know why,please check my code,and tell me the bug I had,thanks
blacktrace told me that the code dump frame just like this(sorry,I had delete the core file,and the crash didn't appear now....but I haven't change any code! :( )
...
buildin_free() malloc.c
~Socket()
~SocketPort()
~ChatUser()
...
I had wrote a multi-chat server with commonc++.
But it has a strange problem,when the client close the connection, some times the server will crash.
I don't know why,please check my code,and tell me the bug I had,thanks
blacktrace told me that the code dump frame just like this(sorry,I had delete the core file,and the crash didn't appear now....but I haven't change any code! :( )
...
buildin_free() malloc.c
~Socket()
~SocketPort()
~ChatUser()
...
source code:
http://hunter.gnuchina.org/mt_chat.tgz
My linux box is slackware 8.0
using CommonC++ 1.9.7