I have a GTK program running on Ubuntu 10.04 that hangs in an interrupt state and I would like to understand the strace output. In particular, I have this line:
read(5, 0x2ba9ac4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
I suspect that 5 is a file descriptor, 0x2ba9ac4 address in this file to read, and 4096 amount of data to read. Can you confirm? More importantly, how do you determine the file that the program is trying to read? This file descriptor does not exist in /proc/pid/fd (which is probably why the program freezes).
source share