Program received signal SIGABRT, Aborted. 0x00002b8072498c9b in raise () from /lib/libc.so.6 (gdb) bt #0 0x00002b8072498c9b in raise () from /lib/libc.so.6 #1 0x00002b807249a650 in abort () from /lib/libc.so.6 #2 0x00002b80724d063b in ?? () from /lib/libc.so.6 #3 0x00002b80724d81a1 in ?? () from /lib/libc.so.6 #4 0x00002b80724d995d in malloc () from /lib/libc.so.6 #5 0x00002b8071d958fd in operator new () from /usr/lib/libstdc++.so.6 #6 0x0000000000402d6a in __gnu_cxx::new_allocator >::allocate (this=0x7fff38fef170, __n=1) at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h:88 #7 0x0000000000402d8e in std::_Rb_tree, std::less, std::allocator >::_M_get_node (this=0x7fff38fef170) at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:358 #8 0x0000000000402daa in std::_Rb_tree, std::less, std::allocator >::_M_create_node (this=0x7fff38fef170, __x=@0x7fff38fef088) at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:367 #9 0x0000000000402e61 in std::_Rb_tree, std::less, std::allocator >::_M_insert (this=0x7fff38fef170, __x=0x0, __p=0x605540, __v=@0x7fff38fef088) at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:819 #10 0x0000000000403046 in std::_Rb_tree, std::less, std::allocator >::insert_unique (this=0x7fff38fef170, __v=@0x7fff38fef088) at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:931 #11 0x00000000004030d1 in std::set, std::allocator >::insert (this=0x7fff38fef170, __x=@0x7fff38fef088) at /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_set.h:321 #12 0x0000000000401ca3 in client_accept (listen=5, client_array=@0x7fff38fef170) at my_net.h:80 #13 0x0000000000402455 in main () at server.cpp:57