From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,c7f75e58f02a5880 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: "Michael Paoli" Newsgroups: comp.unix.tru64 Subject: Re: Something is killing my process - how to find out what it is Date: 29 Oct 2005 22:27:23 -0700 Organization: http://groups.google.com Message-ID: <1130650043.459249.303960@g47g2000cwa.googlegroups.com> References: NNTP-Posting-Host: 198.144.194.236 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1130650048 6080 127.0.0.1 (30 Oct 2005 05:27:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 30 Oct 2005 05:27:28 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=198.144.194.236; posting-account=TV2Faw0AAADFXel6s7v6f3aip6ZLwfOk Xref: g2news1.google.com comp.unix.tru64:397 Gather some information and start narrowing the possibilities. Capture the exit value of the process that's presumably getting signaled. If the process isn't capturing the signal, or is using that signal in setting its exit value, the exit value may help determine what "signal" caused the process to be terminated. If it appears to be a signal that could be generated automagically by the system on certain program errors (e.g. SIGSEGV), then it may be a but in the program, rather than some other process signaling it (e.g. the kernel is zapping it when it tries to do something illegal). If the timing is rather predictable, gather some information on processes running around that time. With suitable triggering on capturing the exit value of the process, it should be possible to grab a snapshot of processes right after the process exits. If you're running process accounting, you should also be able to determine what processes may have exited shortly before that (e.g. in case one of them signaled it). Look for likely suspect processes - if the process is getting signaled, the signal would come from a process (possibly including itself) with the same EUID, or EUID of 0. Check the documentation for the details on RUID/EUID/SSUID and signaling capabilities if necessary. If you have and enable audit capabilities you may be able to determine precisely what signaled it and when. If you have utilities truss, strace, tusc, or equivalent, you may be able to run a relevant trace to determine exactly why the process exited, and to potentially trace suspect processes that may be signaling it. banzai wrote: > Any ideas on the best way to monitor a daemon/process 'A' that is being > killed by another process 'B' which is unknown ? > I have v4.0f with collect utility and the process A dies at approximately > the same time each day - the process A does not die itself - i'm quite sure > it is receiving a signal from something (on the same system i.e. not > remotely/rexec/rsh etc) else - process B. But it happens so quickly I can't > trap/find out what is going on. Collect doesn't seem to be able to track > this (from what I have seen).