I have a Qt program which displays the data it receives over UDP.
It works fine for around 30 seconds but after a while it gives Segmentation Fault and crashes. This 30 seconds is also not fixed.
I used the debugger and got this:
Program received signal SIGSEGV, Segmentation fault.
0x003c6fd4 in ?? () from /usr/lib/libQtGui.so.4
Can anyone tell me where the error might be?
It means your program has tried to access memory that doesn’t belong to it. Basically, you have a pointer that contains an invalid value somewhere in your code – a common source of this error is dereferencing a NULL pointer.