[TAG] Diagnosing a "hung" process

Thomas Adam thomas_adam16 at yahoo.com
Fri Oct 14 23:59:18 MSD 2005


--- Neil Youngman <ny at youngman.org.uk> wrote:

> There is a program that has mostly worked for years, but occasionally
> it 
> exhibits some very odd behaviour. 

Out of interest, what language is it written in?

> The program monitors a "drop directory" and when files matching
> certain 
> criteria are dropped in, it processes and deletes them. Occasionally
> this 
> process has been seen to stop processing the files for no apparent
> reason. If 
> strace is attached to the process using "strace -p pid" the process
> resumes 
> normal activity.

I would use "ddd" (or "gdb") and run it through that, which would log
eveverything, rather than logging the process from the point it hung at
--- which won't capture the error.

-- Thomas Adam


		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com





More information about the TAG mailing list