I have a plugin that is sending TCP packets with rate of average 1 packet per 2 seconds to a remote server. After the server & plugin is started, it takes few hours for it to be crashed with the message 'Segmentation Fault'.
I reckon it could be a problem with a TCP socket that is repeatedly sending data (buffer size 512). However, i have no real evidence to guide me to towards the real problem.
Since i don't get any additional info about the crash, all i have is 'Segmentation Fault' as an indicator to the problem. What is the way to approach such an error, how can i debug this?
If anyone had any experience with Segmentation Fault and could provide some info about how they dealt with this issue, i would be very thankful.