2001-03-13 21:30:27

by Ian Stirling

[permalink] [raw]
Subject: Dumping memory of a running process?

Is there a way to dump the memory of any process without stopping, or
modifying it?

Obviously normally stopping it would be the right thing to do, but
is it possible, and if so, is there a handy tool?


2001-03-13 21:54:27

by Mike Harrold

[permalink] [raw]
Subject: Re: Dumping memory of a running process?

>
> Is there a way to dump the memory of any process without stopping, or
> modifying it?
>
> Obviously normally stopping it would be the right thing to do, but
> is it possible, and if so, is there a handy tool?

fork() and raise(SIGABRT) in the child does the trick. Of course this
only works if you have access to the source code.

/Mike