Question on strace
Satish Kumar Tedla
satish.tedla at oracle.com
Wed Jun 25 13:59:04 UTC 2008
Hi Jan,
Thanks a lot for your immediate reply.
I am a beginner with these commands, so have a few more qtns.
What is systemtap? Do I have to install this separately?
>> # stap /tmp/kill.stp
>> START
>> ...
Is the stap an alias you are using for systemtap?
What exactly did you mean by START? Start my process that I was referring to?
>>bash (4599): kill (24688, sig 15) = 0
I was trying to kill my process using kill -TERM pid, what exactly are
you referring to in kill?
My questions may be quite obvious for you, but as I said I am still
learning...
Thanks for you patience,
Satish
Jan Kratochvil wrote:
> Hi Satish,
>
> On Wed, 25 Jun 2008 14:48:51 +0200, Satish Kumar Tedla wrote:
>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>>
>
> please send text/plain mails here.
>
>
>> I have an issue where my process is getting killed due to a SIGTERM issued by
>> an unknown process. Is there a way to trace the process which is sending
>> SIGTERM to my process?
>>
>
> You cannot use strace globally on all the processes - I would use systemtap for
> this purpose. Attached a script for it - it traces all the kill(2)s on the
> system. There may be some better one supplied in the systemtap examples.
>
> # stap /tmp/kill.stp
> START
> ...
> bash (4599): kill (24688, sig 15) = 0
>
>
> Regards,
> Jan
>
More information about the Strace-devel
mailing list