Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

regarding core dump

1 view
Skip to first unread message

invincible

unread,
Apr 5, 2005, 9:29:52 AM4/5/05
to
hi, assume my program is running , is there a way I can dump its core
in solaris, in linux i think u can use gcore

Mohan


Måns Rullgård

unread,
Apr 5, 2005, 9:34:10 AM4/5/05
to
"invincible" <mohan....@in.bosch.com> writes:

> hi, assume my program is running , is there a way I can dump its core
> in solaris, in linux i think u can use gcore

kill -QUIT pid

--
Måns Rullgård
m...@inprovide.com

Peter T. Breuer

unread,
Apr 5, 2005, 9:37:09 AM4/5/05
to
invincible <mohan....@in.bosch.com> wrote:
> hi, assume my program is running , is there a way I can dump its core
> in solaris, in linux i think u can use gcore

Send it a signal that will cause it to dump core (and hope that you have
enabled coredumps via ulimit). Man 7 signal for the default situation.
"C" signifies dump core. You or someone else may have modified the
defaults, of course.

Peter

invincible

unread,
Apr 5, 2005, 9:43:00 AM4/5/05
to
thanks
i used kill -6 pid

Mohan
"Peter T. Breuer" <p...@lab.it.uc3m.es> wrote in message
news:5tgai2-...@news.it.uc3m.es...

Kasper Dupont

unread,
Apr 5, 2005, 12:14:01 PM4/5/05
to
invincible wrote:
>
> hi, assume my program is running , is there a way I can dump its core
> in solaris, in linux i think u can use gcore

Those Linux and Solaris systems I have access to
all have a gcore command. On Fedora Core it is a
script that calls gdb and let gdb do the hard
work.

--
Kasper Dupont

Kasper Dupont

unread,
Apr 5, 2005, 12:26:02 PM4/5/05
to
I have updated the FAQ so it now mentions gcore.

http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#sigabrt

Thank you for pointing out that that possibility
exists.

--
Kasper Dupont

Zeljko Vrba

unread,
Apr 6, 2005, 2:38:17 AM4/6/05
to
On 2005-04-06, Zeljko Vrba <mo....@fly.srk.fer.hr> wrote:

> On 2005-04-05, invincible <mohan....@in.bosch.com> wrote:
>> hi, assume my program is running , is there a way I can dump its core
>> in solaris, in linux i think u can use gcore
>>
> Maybe you are looking for this:
> http://libsigsegv.sourceforge.net/
>
Oops, wrong thread :0

Zeljko Vrba

unread,
Apr 6, 2005, 2:37:04 AM4/6/05
to
On 2005-04-05, invincible <mohan....@in.bosch.com> wrote:
> hi, assume my program is running , is there a way I can dump its core
> in solaris, in linux i think u can use gcore
>
0 new messages