Memory errors, segfaults and thread safety #184
Labels
⬆️ high priority
High priority issues
good first issue
Good for newcomers
🐞 bug
Something isn't working
💰 bounty
Get paid by completing a task
Segmentation faults occur sometimes
map
query request andNode::map()
is called.Node::on_ping()
These segfaults tend to occur when the network grows to a large size like about 20+ nodes.
I generally suck at memory management and handling pointers so any help would be greatly appreciated!
And if its not a memory management issue then this may have to do with accessing the node from multiple threads simultaneously.
This segfault happens when closing the GUI while logged in, but it never occurs while not logged in yet and you are still at the main login page.
This may have to do with the code in a destructor in one of the classes.
wallet.cpp
is a suspect.Sometimes the error is not a Segfault but similar:
https://github.com/larteyoh/testshop/blob/main/src/core/protocol/p2p/node.cpp
https://github.com/larteyoh/testshop/blob/main/src/core/protocol/p2p/mapper.cpp
$20
The text was updated successfully, but these errors were encountered: