You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The crash apparently happened in irc.go:124 where CptHook tries to join a new Channel. This happens in a different thread, while the first thread is still trying to reconnect to the IRC network. Which is the reason for the segmentation violation because there is no client object.
The girc library doesn't appear to be thread safe, because we already had the same problem when CptHook tries to send a message during the reconnect (See lrstanley/girc#14 )
My idea would be to implement some kind of locking myself to prevent CptHook from using the irc client object durring reconnect
This is probably a follow-up to #6. After a few failed reconnects the program crahses with a segmentation fault…
All the reconnects before
2018-12-14
were successful (at some point). The bot timed out a few minutes before the program crashed :/.The text was updated successfully, but these errors were encountered: