Reputation: 14451
I am running a C program in NetBeans (cygwin on windows). Generally for all C programs I have run in the past, while debugging, it stops and shows the line number of segmentation fault. But for this particular program, it does not show the line number and just stops and in the output tab, it shows prog stopped by SIGSEGV. I have tried conditional breakpoint, but it is not stopping. What could be the other conditions for error?
If u want have a look at my program, here it is.http://codepad.org/cujYTIeg
and the in.txt file from where it reads the input. http://codepad.org/vNySA6uh
Upvotes: 0
Views: 1664
Reputation: 29490
Did you run the program in debug mode with debugging information enabled?
Try to set a normal breakpoint in your Appliocation. Does it stop there?
Upvotes: 1