[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ftp mget hangs
>>>>> "Assar" == Assar Westerlund <assar@sics.se> writes:
Assar> Can you try to see what happens to the ftpd? It seems it
Assar> closes its end of the connection (thus the EOF).
Maybe the following will mean something to you?
Everything looks OK to me.
Not sure though why it reads from "ls" while reading one "MIC"
command, then it outputs the results during the next "MIC" command.
read(0, "MIC YDMGCSqGSIb3EgECAgIBAAD/////"..., 1024) = 78
alarm(0) = 900
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
alarm(0) = 900
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
brk(0x8062000) = 0x8062000
pipe([7, 8]) = 0
open("/etc/passwd", O_RDONLY) = 9
fcntl(9, F_GETFD) = 0
fcntl(9, F_SETFD, FD_CLOEXEC) = 0
fstat(9, {st_mode=S_IFREG|0644, st_size=2434, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000
lseek(9, 0, SEEK_CUR) = 0
read(9, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 2434
close(9) = 0
munmap(0x40024000, 4096) = 0
open("/etc/shadow", O_RDONLY) = -1 EACCES (Permission denied)
access("/home/ftp//bin/ls", X_OK) = -1 ENOENT (No such file or directory)
lstat("-la", 0xbfff9f20) = -1 ENOENT (No such file or directory)
lstat(".", {st_mode=S_IFDIR|0700, st_size=1024, ...}) = 0
fork() = 30794
fcntl(7, F_GETFL) = 0 (flags O_RDONLY)
fstat(7, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000
lseek(7, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
close(8) = 0
setreuid(4294967295, 0) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(8, {sin_family=AF_INET, sin_port=htons(7999), sin_addr=inet_addr("202.12.87.129")}, 16) = 0
setreuid(4294967295, 1003) = 0
setsockopt(8, SOL_IP, IP_TOS, [8], 4) = 0
fcntl(8, F_GETFL) = 0x2 (flags O_RDWR)
fstat(8, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4018e000
lseek(8, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
connect(8, {sin_family=AF_INET, sin_port=htons(3758), sin_addr=inet_addr("202.12.87.129")}, 16) = 0
write(1, "631 YGMGCSqGSIb3EgECAgIBAAD/////"..., 142) = 142
setsockopt(8, SOL_SOCKET, SO_SNDBUF, [4194304], 4) = 0
read(7, "total 7\ndrwx------ 3 bam "..., 4096) = 185
write(8, "\0\0\0=", 4) = 4
write(8, "`;\6\t*\206H\206\367\22\1\2\2\2\1"..., 61) = 61
write(8, "\0\0\0m", 4) = 4
write(8, "`k\6\t*\206H\206\367\22\1\2\2\2\1"..., 109) = 109
write(8, "\0\0\0m", 4) = 4
write(8, "`k\6\t*\206H\206\367\22\1\2\2\2\1"..., 109) = 109
write(8, "\0\0\0m", 4) = 4
write(8, "`k\6\t*\206H\206\367\22\1\2\2\2\1"..., 109) = 109
read(7, "", 4096) = 0
--- SIGCHLD (Child exited) ---
write(8, "\0\0\0005", 4) = 4
write(8, "`3\6\t*\206H\206\367\22\1\2\2\2\1"..., 53) = 53
write(1, "631 YEsGCSqGSIb3EgECAgIBAAD/////"..., 110) = 110
close(8) = 0
munmap(0x4018e000, 4096) = 0
close(7) = 0
munmap(0x40024000, 4096) = 0
sigprocmask(SIG_BLOCK, [HUP INT QUIT], []) = 0
wait4(30794, 0xbfffcd60, 0, NULL) = -1 ECHILD (No child processes)
sigprocmask(SIG_SETMASK, [], NULL) = 0
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
read(0, "MIC YEsGCSqGSIb3EgECAgIBAAD/////"..., 1024) = 110
alarm(0) = 894
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
alarm(0) = 900
write(1, "631 YEsGCSqGSIb3EgECAgIBAAD/////"..., 110) = 110
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
read(0, "MIC YDMGCSqGSIb3EgECAgIBAAD/////"..., 1024) = 78
alarm(0) = 900
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
alarm(0) = 900
stat(".", {st_mode=S_IFDIR|0700, st_size=1024, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK) = 7
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
lseek(7, 0, SEEK_CUR) = 0
getdents(7, /* 3 entries */, 3933) = 48
lstat("debian", {st_mode=S_IFDIR|0700, st_size=1024, ...}) = 0
lseek(7, 0, SEEK_CUR) = 1024
getdents(7, /* 0 entries */, 3933) = 0
close(7) = 0
stat("debian", {st_mode=S_IFDIR|0700, st_size=1024, ...}) = 0
stat("debian", {st_mode=S_IFDIR|0700, st_size=1024, ...}) = 0
open("debian", O_RDONLY|O_NONBLOCK) = 7
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
lseek(7, 0, SEEK_CUR) = 0
getdents(7, /* 3 entries */, 3933) = 64
stat("debian/heimdal_0.2i.orig.tar.gz", {st_mode=S_IFREG|0600, st_size=2068340, ...}) = 0
setreuid(4294967295, 0) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
setsockopt(8, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(8, {sin_family=AF_INET, sin_port=htons(7999), sin_addr=inet_addr("202.12.87.129")}, 16) = 0
setreuid(4294967295, 1003) = 0
setsockopt(8, SOL_IP, IP_TOS, [8], 4) = 0
fcntl(8, F_GETFL) = 0x2 (flags O_RDWR)
fstat(8, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000
lseek(8, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
connect(8, {sin_family=AF_INET, sin_port=htons(3759), sin_addr=inet_addr("202.12.87.129")}, 16) = 0
write(1, "631 YGsGCSqGSIb3EgECAgIBAAD/////"..., 154) = 154
write(8, "\0\0\0U", 4) = 4
write(8, "`S\6\t*\206H\206\367\22\1\2\2\2\1"..., 85) = 85
lseek(7, 0, SEEK_CUR) = 1024
getdents(7, /* 0 entries */, 3933) = 0
close(7) = 0
write(1, "631 YEsGCSqGSIb3EgECAgIBAAD/////"..., 110) = 110
close(8) = 0
munmap(0x40024000, 4096) = 0
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
ftp server hangs on next line:
read(0, 0x40014000, 1024) = ? ERESTARTSYS (To be restarted)
--- SIGURG (Urgent I/O condition) ---
sigreturn() = ? (mask now [])
read(0, "\377\364", 1024) = 2
read(0, "\377", 1024) = 1
read(0, "\362ABOR\r\n", 1024) = 7
alarm(0) = 868
write(1, "631 YEsGCSqGSIb3EgECAgIBAAD/////"..., 110) = 110
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
read(0, "MIC YDMGCSqGSIb3EgECAgIBAAD/////"..., 1024) = 78
alarm(0) = 899
sigaction(SIGALRM, {0x804c090, [], SA_INTERRUPT}, {0x804c090, [], SA_INTERRUPT}) = 0
alarm(900) = 0
alarm(0) = 900
write(1, "631 YDsGCSqGSIb3EgECAgIBAAD/////"..., 90) = 90
setreuid(4294967295, 0) = 0
getpid() = 30792
time(NULL) = 946246774
write(5, "\10\0\0\0Hx\0\0ftp30792\0\0\0\0\0"..., 384) = 384
_exit(0) = ?
Assar> /assar
--
Brian May <bmay@csse.monash.edu.au>