On 9/5/07, Frank Ianella <[EMAIL PROTECTED]> wrote:
>
> Below is the last instance of 'open("/some/path", FLAGS) = 3' prior to
> the first failed read:
>
> ===========================================
> open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=4189360, ...}) = 0
> mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb5c91000
> close(3)                                = 0
> socket(PF_FILE, SOCK_STREAM, 0)         = 3
> connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 110) = 0
> getpeername(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, [20]) = 0
> uname({sys="Linux", node="workstation", ...}) = 0
> access("/root/.Xauthority", R_OK)       = 0
> open("/root/.Xauthority", O_RDONLY)     = 4
> fstat64(4, {st_mode=S_IFREG|0600, st_size=105, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7333000
> read(4, "\1\0\0\vworkstation\0\0010\0\22MIT-MAGIC-CO"..., 4096) = 105
> read(4, "", 4096)                       = 0
> close(4)                                = 0
> munmap(0xb7333000, 4096)                = 0
> fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
> fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
> select(4, [3], [3], NULL, NULL)         = 1 (out [3])
> writev(3, [{"l\0\v\0\0\0\22\0\20\0", 10}, {"\0\0", 2},
> {"MIT-MAGIC-COOKIE-1", 18}, {"\0\0", 2},
> {"\333f\36\360\234\24C\251G\243\200\267\207VgC", 16}, {"", 0}], 6) = 48
> read(3, "\1\0\v\0\0\0\231\0", 8)        = 8
> read(3, "\300*/\4\0\0\200\1\377\377\37\0\0\1\0\0\24\0\377\377\1"...,
> 612) = 612
> select(4, [3], [3], NULL, NULL)         = 1 (out [3])
> writev(3,
> [{"7\0\5\0\0\0\200\1\202\0\0\0\10\0\0\0\377\377\377\0b\0\5"..., 40}], 1)
> = 40
> select(4, [3], [], NULL, NULL)          = 1 (in [3])
> read(3, "\1\301\2\0\0\0\0\0\1\204\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 4096) = 32
> select(4, [3], [3], NULL, NULL)         = 1 (out [3])
> writev(3, [{"\204\0\1\0", 4}], 1)       = 4
> select(4, [3], [], NULL, NULL)          = 1 (in [3])
> read(3, "\1\333\3\0\0\0\0\0\377\377?\0\0\0\0\0\0\0\0\0\0\0\0\0\274"...,
> 4096) = 32
> select(4, [3], [3], NULL, NULL)         = 1 (out [3])
> writev(3,
> [{"\24\0\6\0\202\0\0\0\27\0\0\0\37\0\0\0\0\0\0\0\0\341\365"..., 24}], 1)
> = 24
> select(4, [3], [], NULL, NULL)          = 1 (in [3])
> read(3, "\1\10\4\0\305\r\0\0\37\0\0\0\0\0\0\0\0237\0\0\0\0\0\0\0"...,
> 4096) = 4096
> read(3, "SelectionBox.foreground:\t#000000"..., 10036) = 10036
> read(3, 0x8055c7c, 4096)                = -1 EAGAIN (Resource
> temporarily unavailable)

I could definitely be wrong, but I'm pretty sure that fd 3 is the
socket at /tmp/.X11-unix/X0, which is normal. So, it's trying to read
something from the xserver and going failing. Could you should the
strace output after the EAGAIN until the next EAGAIN? I'm curious what
it's trying to do after the read fails.

Could you actually just attach the whole strace log? Just let it run
till it hangs for a couple seconds and kill it.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to