Reputation: 11
Running a piece of C code from inside Netbeans 6.8 causes a Segmentation Fault. But the problem doesn't appear when running in debugging mode or from shell. Tried both in external terminal and output window of Netbeans.
The process is threaded, and uses an itimer that sends a signal, which I am masking with pthread_sigmask for threads that are irrelevant.
I saw some things about bugs hiding in debugging mode, but why could they also be hidden when running in shell?
Upvotes: 1
Views: 77
Reputation: 28892
When your program exhibits any undefined behaviour, any change in the operating environment can cause the application to behave differently. This different behaviour may or may not be a crash.
If the application is multithreaded, you may have some race conditions. Best bet is to take the core dump and investigate.
Upvotes: 1