Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Using gdb to detect segmentation fault in sh?

$
0
0
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
Code:

user/run/run.sh
, which runs the project binary in
Code:

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
Code:

*** No targets specified and no makefile found.  Stop.
"

I then set the size limit of core files by

Code:

ulimit -c 75000
But when I enter

Code:

gdb /user/project/Build/bin/project core
I get

Code:

gdb /user/project/Build/core: No such file or directory.
When I enter
Code:

bt
, I get
Code:

No stack
When I then use the command prompt to go into directory

Code:

/user/project/Build/bin
and then type

Code:

gdb project
and then "run", I get

Code:

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?

Viewing all articles
Browse latest Browse all 16232

Trending Articles