1753501 Members
4601 Online
108794 Solutions
New Discussion

GDB error

 
ayelet_1
Occasional Contributor

GDB error

Hi All,

Iâ m receiving error message when running GDB.

Does someone know these errors? (Please donâ t recommend to work with WDB...)

(gdb)Program terminated with signal SIGKILL, Killed.
The program no longer exists.
You can't do that without a process to debug.


Thanks in advanced,
Ayelet
4 REPLIES 4
Olivier Drouin
Trusted Contributor

Re: GDB error

the program you're trying to grab crashed.

find the core file then:

gdb -c core_file /path/to/binary
ayelet_1
Occasional Contributor

Re: GDB error

There is no core file...

Ayelet
ranganath ramachandra
Esteemed Contributor

Re: GDB error

(i am not very sure about this, but ...)

if you are getting this message as soon as you run gdb (perhaps even without any arguments), please check what exists in your .gdbinit or ~/.gdbinit file. also post your gdb command.

the message is telling you that the program being debugged was killed due to a SIGKILL signal - as if someone did a 'kill -9' on it.
this is possible if
1. you are trying to attach to an already running process which got killed by itself some other process
2. you started the process from within gdb but the process killed itself

if yours is the first case, try starting the process from within gdb. if it is the second case, try setting a breakpoint early in the process (say on "main" if you can).

perhaps we can make out more from the output of chatr on the executable and the tusc trace of the process.
 
--
ranga
[i work for hpe]

Accept or Kudo

Elmar P. Kolkman
Honored Contributor

Re: GDB error

One other possibility, though not very likely: some other session removed the executable and replaced it with a new one.

This might happen if you're not the only one working on it, for instance.

You can check this by looking at the timestamp of the executable after this happens.

Perhaps copying the executable and running gdb on this copy could help.
Every problem has at least one solution. Only some solutions are harder to find.