PDA

View Full Version : removing segmentation faults



anon10320
10-10-2012, 05:57 PM
Sir
How to remove segmentation faults in a c-pointer code.As mentioned in the slide 17.5 segmentation faults and generating
core dumped in gdb but in this senario, how to remove this segmentation fault problem.


Thanks
anon10320

anup
10-10-2012, 06:04 PM
Anon10320,

There is no one method to removing a segmentation fault, it is like asking how to debug and fix an incorrect program. Segmentation faults occur due to illegal memory access and once you fix those, the faults will also go away.

Thanks,

Anup