From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20874 invoked by alias); 4 Jul 2011 22:21:03 -0000 Received: (qmail 20866 invoked by uid 22791); 4 Jul 2011 22:21:02 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,TW_BJ,TW_LV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jul 2011 22:20:43 +0000 Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p64MKfBY009308 for ; Mon, 4 Jul 2011 15:20:41 -0700 Received: from gyf3 (gyf3.prod.google.com [10.243.50.67]) by hpaq11.eem.corp.google.com with ESMTP id p64MKcVf023921 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 4 Jul 2011 15:20:40 -0700 Received: by gyf3 with SMTP id 3so2642187gyf.41 for ; Mon, 04 Jul 2011 15:20:38 -0700 (PDT) Received: by 10.150.113.21 with SMTP id l21mr5745512ybc.259.1309818038344; Mon, 04 Jul 2011 15:20:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.7.14 with HTTP; Mon, 4 Jul 2011 15:20:08 -0700 (PDT) In-Reply-To: <20110704214654.GA21844@host1.jankratochvil.net> References: <4E0FAB8D.2070709@rawbw.com> <20110704214654.GA21844@host1.jankratochvil.net> From: Paul Pluzhnikov Date: Tue, 05 Jul 2011 02:26:00 -0000 Message-ID: Subject: Re: [patch,7.3] Fix JIT clang-lli gdb-7.3 regression Re: [gdb-7.3] Error in gdb-llvm integration: Unable to read JIT descriptor from remote memory! To: Jan Kratochvil Cc: gdb-patches@sourceware.org, Yuri Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00129.txt.bz2 On Mon, Jul 4, 2011 at 2:46 PM, Jan Kratochvil wrote: > On Sun, 03 Jul 2011 01:36:45 +0200, Yuri wrote: >> I tried the upcoming gdb-7.3 and the message "Unable to read JIT descrip= tor >> from remote memory!" is back when llvm::JITEmitDebugInfo is set when >> libLLVM-3.0.so is loaded dynamically. >> gdb-7.1 was broken this way, gdb-7.2 works, now gdb-7.3 code is broken >> again. Sorry about the breakage ... > 739571cc3151651f49f7171cfd98275d983bfaaa is the first bad commit > commit 739571cc3151651f49f7171cfd98275d983bfaaa > Author: Paul Pluzhnikov > Date: =A0 Mon Jan 31 21:37:00 2011 +0000 > Re: [patch] Fix leak of bp_jit_event breakpoints > http://sourceware.org/ml/gdb-patches/2011-01/msg00556.html > > I expect Paul had /usr/bin/lli linked statically; /usr/bin/lli uses > libLLVM-2.8.so at least on Fedora 15. Rather, I didn't test with lli (I don't even know what it is). > I have mostly reverted that part of the Paul's patch FWIW, I don't believe reverting the patch is the right fix. Certainly using a single global to guard against recursive invocation can not possibly work correctly in multi-inferior GDB. > there is no "reduced" > reinitialization on a new objfile load as it can be the first successful > initialization at all. It's been a while since I looked at that code, but it sounds to me that we should keep the jit_inferior_data per-objfile, and not per-inferior. This might even allow GDB to work with multiple JITers in the same inferior ;-) I'll see if I can work up a patch tomorrow. Thanks, --=20 Paul Pluzhnikov