[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core file



HI

is there a way to run a core file ( continue where it stopped ) ?

this is usfull when i want to suspend a process with kill+core, then reboot, then
continue, or continue in another computer ;-)


regards
erez.
guy keren wrote:

> 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

--
This message is for the designated recipient only, and will self destruct in 5
seconds,
Please Duck beforehand.



=================================================================
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