mercredi 30 décembre 2020

New to using GDB

can someone guide me a bit. i'm working a program, but it fails every time i use the browser to "talk" to it. Being new to using GDB, i have no idea what i'm reading. Except for the possible error in the sockethandler.cpp. And yes, i did research Segmentation fault. this is what GDB returned.

Program received signal SIGSEGV, Segmentation fault.
e0x00007ffff7eb2da3 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /lib/x86_64-linux-gnu/libstdc++.so.6
#0  0x00007ffff7eb2da3 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x000055555558a30f in std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, Socket*> >::operator++ (this=0x7fffffffe380) at /usr/include/c++/10/bits/stl_tree.h:287
#2  0x000055555558a075 in SocketHandler::runLoop () at SocketHandler.cpp:75
#3  0x000055555557bdbc in run_aureleys_ai () at Main.cpp:281
#4  0x000055555557addc in main (argc=1, argv=0x7fffffffe518) at Main.cpp:92
#0  0x00007ffff7eb2da3 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#1  0x000055555558a30f in std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const, Socket*> >::operator++ (this=0x7fffffffe380) 
at /usr/include/c++/10/bits/stl_tree.h:287 
No locals
#2  0x000055555558a075 in SocketHandler::runLoop () at SocketHandler.cpp:75
        s = {first = <error: Cannot access memory at address 0x1>, second = 0x0}
        input_sockets = {fds_bits = {16, 0 <repeats 15 times>}}
        timeout = {tv_sec = 2, tv_usec = 424901}
        sock = 0x0
        socket = -1
        result = 1
#3  0x000055555557bdbc in run_aureleys_ai () at Main.cpp:281
# No locals.
#4  0x000055555557addc in main (argc=1, argv=0x7fffffffe518) at Main.cpp:92
# No locals.
Thread 1 (process 2829 "aureleys_ai"):
#0  0x00007ffff7eb2da3 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#1  0x000055555558a30f in std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const, Socket*> >::operator++ (this=0x7fffffffe380) 
at /usr/include/c++/10/bits/stl_tree.h:287
No locals.
#2  0x000055555558a075 in SocketHandler::runLoop () at SocketHandler.cpp:75
        s = {first = <error: Cannot access memory at address 0x1>, second = 0x0}
        input_sockets = {fds_bits = {16, 0 <repeats 15 times>}}
        timeout = {tv_sec = 2, tv_usec = 424901}
        sock = 0x0
        socket = -1
        result = 1
#3  0x000055555557bdbc in run_aureleys_ai () at Main.cpp:281
No locals.
#4  0x000055555557addc in main (argc=1, argv=0x7fffffffe518) at Main.cpp:92
No locals.

Aucun commentaire:

Enregistrer un commentaire