From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24123 invoked by alias); 22 Oct 2014 19:08:32 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 24111 invoked by uid 89); 22 Oct 2014 19:08:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 22 Oct 2014 19:08:31 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9MJ8Rcd019664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 22 Oct 2014 15:08:27 -0400 Received: from host2.jankratochvil.net (ovpn-116-79.ams2.redhat.com [10.36.116.79]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9MJ8Ni8008060 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 22 Oct 2014 15:08:26 -0400 Date: Wed, 22 Oct 2014 19:08:00 -0000 From: Jan Kratochvil To: Wilfried Goesgens Cc: gdb@sourceware.org Subject: Re: GDB Crashes with V8 & JIT debugging Message-ID: <20141022190823.GA7976@host2.jankratochvil.net> References: <5447741A.9000000@arangodb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5447741A.9000000@arangodb.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00090.txt.bz2 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 ] > Dwarf Error: Could not find abbrev number 267968 [in module ] > Dwarf Error: Could not find abbrev number 58 [in module ] > Dwarf Error: Could not find abbrev number 112 [in module ] > > 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