This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: put a QUIT in DWARF expression evaluator
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 08 Jul 2011 16:22:07 -0400
- Subject: Re: FYI: put a QUIT in DWARF expression evaluator
- References: <m37h7soj4v.fsf@fleche.redhat.com>
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