top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Error: segmentation fault (core dumped) in linux, Can some one please help here?

0 votes
391 views
Error: segmentation fault (core dumped) in linux, Can some one please help here?
posted Feb 26, 2015 by Amit Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
 
Best answer
  1. Run the following command if core file is not getting generated and run the program again
    $ ulimit -c unlimited
  2. Once you have the core the task is to analyse it use the following method -
    $ gdb -c -e
  3. Now in the gdb mode run the bt to get the back trace.
    gdb> bt

There can be many reason for the segmentation fault most common reason is the invalid pointer access, I dont have access to the code so cant comment on it.

answer Feb 26, 2015 by Salil Agrawal
...