From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18913 invoked by alias); 26 Jun 2007 11:22:02 -0000 Received: (qmail 18903 invoked by uid 22791); 26 Jun 2007 11:22:01 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 26 Jun 2007 11:21:59 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9162F9829A; Tue, 26 Jun 2007 11:21:57 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 6DE8E98299; Tue, 26 Jun 2007 11:21:57 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1I396s-0005As-CY; Tue, 26 Jun 2007 07:21:26 -0400 Date: Tue, 26 Jun 2007 11:22:00 -0000 From: Daniel Jacobowitz To: Bram Kuijper Cc: gdb@sourceware.org Subject: Re: "failed to find valid object file", but which object file? (using static libraries) Message-ID: <20070626112126.GA19752@caradoc.them.org> Mail-Followup-To: Bram Kuijper , gdb@sourceware.org References: <4680D290.8020303@rug.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4680D290.8020303@rug.nl> User-Agent: Mutt/1.5.15 (2007-04-09) 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: 2007-06/txt/msg00295.txt.bz2 On Tue, Jun 26, 2007 at 10:47:12AM +0200, Bram Kuijper wrote: > Hi all, > > as a newbie, I am debugging a program which uses a number of self-made static > libraries. When running (gdb) start, the first message I get is: > > Failed to read a valid object file image from memory. > 0x08048d15 in main () > > Is there any way to find _which_ object file has failed to be read in? One from memory, not from disk. Usually this will be linux-gate.so.1 or something like that; a virtual DSO provided by the kernel. I'm not sure why it would fail. What platform and kernel version? -- Daniel Jacobowitz CodeSourcery