This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB Crashes with V8 & JIT debugging
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Wilfried Goesgens <w dot goesgens at arangodb dot org>
- Cc: gdb at sourceware dot org
- Date: Wed, 22 Oct 2014 21:08:23 +0200
- Subject: Re: GDB Crashes with V8 & JIT debugging
- Authentication-results: sourceware.org; auth=none
- References: <5447741A dot 9000000 at arangodb dot org>
On Wed, 22 Oct 2014 11:08:42 +0200, Wilfried Goesgens wrote:
> https://code.google.com/p/v8/wiki/GDBJITInterface
[...]
> Dwarf Error: Could not find abbrev number 118 [in module <in-memory>]
> Dwarf Error: Could not find abbrev number 267968 [in module <in-memory>]
> Dwarf Error: Could not find abbrev number 58 [in module <in-memory>]
> Dwarf Error: Could not find abbrev number 112 [in module <in-memory>]
> <many similar errors>
> Segmentation fault (core dumped)
GDB dwarf2read.c is not safe against invalid DWARF, it can easily overrun the
input buffers and crash - a sort of DoS. The JIT DWARF generator is probably
buggy (which suggest also the "Could not find abbrev" messages above), for GDB
it is (*) sort-of not a bug.
(*) probably; GDB could have some DWARF reading bug but I find it improbable
for this case.
Jan