List Info

Thread: Re: "failed to find valid object file", but which object file? (using static libraries)




Re: "failed to find valid object file", but which object file? (using static libraries)
country flaguser name
United States
2007-06-26 06:21:26
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

Re: "failed to find valid object file", but which object file? (using static libraries)
country flaguser name
Netherlands
2007-06-26 06:32:23
Daniel Jacobowitz wrote:
> On Tue, Jun 26, 2007 at 10:47:12AM +0200, Bram Kuijper
wrote:
>> 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?
> 

Ubuntu Gutsy Gibbon, 2.6.22-6-generic i686 GNU/Linux.

Since Gutsy Gibbon is still in beta, it might be indeed the
cause of all 
trouble. Should I downgrade to a previous kernel version or
is there any 
other solution?

by the way,
ldd ./program gives:
         linux-gate.so.1 =>  (0xffffe000)
         libstdc++.so.6 => /usr/lib/libstdc++.so.6
(0xb7de1000)
         libm.so.6 => /lib/tls/i686/cmov/libm.so.6
(0xb7dba000)
         libgcc_s.so.1 => /lib/libgcc_s.so.1
(0xb7dae000)
         libc.so.6 => /lib/tls/i686/cmov/libc.so.6
(0xb7c6a000)
         /lib/ld-linux.so.2 (0xb7eec000)


thanks,
Bram

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )