From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16817 invoked by alias); 24 Feb 2009 02:33:00 -0000 Received: (qmail 16808 invoked by uid 22791); 24 Feb 2009 02:33:00 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Feb 2009 02:32:54 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 97BBE105BE; Tue, 24 Feb 2009 02:32:52 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 82690105B6; Tue, 24 Feb 2009 02:32:52 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Lbn6J-0005kY-H0; Mon, 23 Feb 2009 21:32:51 -0500 Date: Tue, 24 Feb 2009 02:33:00 -0000 From: Daniel Jacobowitz To: Brendan Miller Cc: gdb@sourceware.org Subject: Re: problem remote debugging Message-ID: <20090224023251.GA22085@caradoc.them.org> Mail-Followup-To: Brendan Miller , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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 X-SW-Source: 2009-02/txt/msg00148.txt.bz2 On Mon, Feb 23, 2009 at 04:59:48PM -0800, Brendan Miller wrote: > I'm having a problem with remote debugging where when debugging > locally I will launch fine, but when remotely debugging my program > will fail to open a certain text file, then segfault. > > Both the host and client are running x86 RHEL4. The gdb version is > 6.3.0.0-1.153.el4rh. A frequent cause of this problem is different patch levels of libraries installed on the two systems. If they don't exactly match, you need a copy on the host of the target's libraries, and to use set sysroot. Otherwise GDB may place internal breakpoints in the wrong locations, leading to mayhem. Also, this is a very old GDB - I always recommend trying the latest (GDB and gdbserver). -- Daniel Jacobowitz CodeSourcery