This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: put a QUIT in DWARF expression evaluator


tromey wrote:

> Today I wondered what would happen if I modified pr10770.c to fail,
> causing an infinite loop while evaluating a DWARF expression.  The
> answer is that gdb hangs and I had to kill it from the shell.
> [...]
> FWIW, as far as I know, no such DWARF has ever been found in the wild.

But perhaps other non-interactive services that rely on gdb to do
backtraces (pstack?)  could be tricked into looping indefinitely.  To
what extent is gdb vulnerable to specially crafted target memory state
causing indefinitely-long processing?

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]