[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: core file
- To: Ben-Nes Michael <miki(at-nospam)canaan.co.il>
- Subject: Re: core file
- From: guy keren <choo(at-nospam)actcom.co.il>
- Date: Fri, 20 Jul 2001 20:00:19 +0300 (EET DST)
- cc: linux ILUG <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <006201c110f2$41a13ae0$aa5796d4@canaan.co.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Fri, 20 Jul 2001, Ben-Nes Michael wrote:
> I have core file created by postgres and I was asked to retrieve information
> out of it.
>
> So I read man on gdb but it still not enough to understand how to query
> it...
you're out of luck, since (as i presume) postgresql is compiled with no
debug information, and thus a core file it generates would probably show a
stack of calls wthout function names or parameters.
if you _realy_ want to debug it, compile postgres with debug information,
run it, and then try to figure the code. you should be a good and stubborn
C programmer to be able to do that, with a code base of that size, that
you're (probably?) not familiar with.
just for some hints:
'file core' will tell you which program produced the core file.
gdb <binary> core - will let you see the contents of the core file (Adn
thus, of the memeory of the crashing program - when it crashed).
from here - you're on your own.
--
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il