Thread: GDB X Postgresql 8 - Failed to read a valid object file image from memory

GDB X Postgresql 8 - Failed to read a valid object file image from memory

From
"Ana Carolina Brito de Almeida"
Date:
Hi!
 
I tried to use GDB with postgresql 8 and I didnt have success.
Can you help me?
I tried like as I did in postgresql 7.4
I run configure like this: ./configure --prefix=/usr/local/pgsql8 --enable-debug --enable-cassert --enable-depend
After, I run "make", "make install", "initdb"
After this, I tried run gdb, but I dont enter in backend.
See this:
postgres@debian:/home/anacrl$ gdb postgres
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run
Starting program: /usr/local/pgsql8/bin/postgres
Failed to read a valid object file image from memory.
LOG:  database system was shut down at 2008-05-01 22:56:41 BRT
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started

So, I think that have something wrong (Failed to read a valid object file image from memory).
Can you help me?
I tried run psql and attached process pid too, but no success. :-(
 
Thanks,
Ana Carolina
 

Re: GDB X Postgresql 8 - Failed to read a valid object file image from memory

From
tomas@tuxteam.de
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, May 01, 2008 at 11:02:17PM -0300, Ana Carolina Brito de Almeida wrote:
> Hi!
> 
> I tried to use GDB with postgresql 8 and I didnt have success.
> Can you help me?
> So, I think that have something wrong (Failed to read a valid object file

[...]

> image from memory).
> Can you help me?
> I tried run psql and attached process pid too, but no success. :-(

You didn't per chance stumble upon this:

<http://www.nabble.com/Failed-to-read-a-valid-object-file-image-from-memory-%28gdb_6_6-branch%2C--kernel-2.6.20-rc6%29-td8671963.html>

Happens on Linux 2.6.20-ish.

HTH
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFIGqvzBcgs9XrR2kYRAlkhAJ90/HM4KeigvYMQmQNvnQybp+wpawCfSzC7
pkOXPDEcIjOjCQAjDac+seY=
=xwBy
-----END PGP SIGNATURE-----