I am using scientific linux. In the directory
user/project/Build
, after I ran 'make' to compile and link all the cpp files,I had no problems. But then, when I went to directory
user/run/run.sh
, which runs the project binary in
user/project/Build/bin/project
, I get a segmentation fault error. In the directory user/run, I enter 'gdb' in the command prompt and get the message
*** No targets specified and no makefile found. Stop.
I then set the size limit of core files by
ulimit -c 75000
But when I enter
gdb /user/project/Build/bin/project core
I get
gdb /user/project/Build/core: No such file or directory.
When I enter "bt", I get
No stack
When I then use the command prompt to go into directory
/user/project/Build/bin
and then type
gdb project
and then "run", I get
Thread debugging using libthread_db enabled.. Program exited with code 01.Missing separate debuginfos,
use: debuginfo-install glibc-2.12-1.149.el6_6.4.x86_64 libICE-1.0.6-1.el6.x86_64 .
What am I supposed to do to detect the segmentation fault?