Re: problem with fnord-1.9 and wget
Thilo Bangert <[email protected]> Wed, 28 Sep 2005 20:51:39 +0800
| Newsgroups | gmane.comp.web.fnord |
|---|---|
| Message-ID | <[email protected]> |
--Boundary-00=_bHpODUBeUyEvc3s
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
Am Mittwoch 28 September 2005 17:29 schrieben Sie:
> Hi,
> when you can reproduce it with telnet, why should it be wget related?
Good question. I was trying to point out that my problem, among other
situations, appears when using fnord with wget...
>
> Can fnord read the contents of the file it's supposed to send out?
It sure can. In fact many other connections are served fine.
Looking at the attached trace I would assume, something weird happening in
sendfile, but i am no expert on this.
Again - fnord-1.8 works fine (and looking at that strace, I find it is not
using sendfile...)
Felix: sorry - this the real thing...
BTW - is there supposed to be a copy of /etc/localtime in the chroot ?
>
> best regards,
> Erich Schubert
recent gentoo
glibc 2.3.5-r1
gcc 3.3.6
thank you!
regards
Thilo
--Boundary-00=_bHpODUBeUyEvc3s
Content-Type: text/x-log;
charset="iso-8859-15";
name="strace-fnord-1.9.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="strace-fnord-1.9.log"
execve("/usr/bin/fnord", ["/usr/bin/fnord"], [/* 29 vars */]) = 0
uname({sys="Linux", node="idefix", ...}) = 0
brk(0) = 0x8053000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23376, ...}) = 0
mmap2(NULL, 23376, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f53000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0iQ\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1217880, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f52000
mmap2(NULL, 1125564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e3f000
mprotect(0xb7f4b000, 27836, PROT_NONE) = 0
mmap2(0xb7f4c000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10c) = 0xb7f4c000
mmap2(0xb7f50000, 7356, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f50000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e3e000
mprotect(0xb7f4c000, 4096, PROT_READ) = 0
mprotect(0xb7f6e000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e3e6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f53000, 23376) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\302\7\260m", 4) = 4
close(3) = 0
chroot(".") = 0
chdir("/") = 0
setgroups32(1, [1050]) = 0
setuid32(101) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
time([1127910198]) = 1127910198
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(0, "GET /vietnam/fansipa1.zip HTTP/1"..., 8187) = 36
time(NULL) = 1127910210
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(0, "Host: static.fizzelpark.com\r\n", 8151) = 29
time(NULL) = 1127910223
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(0, "\r\n", 8122) = 2
time(NULL) = 1127910225
chdir("static.fizzelpark.com:80") = 0
open("vietnam/fansipa1.zip", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=9999033, ...}) = 0
write(2, "213.133.101.110 200 9999033 stat"..., 82) = 82
brk(0) = 0x8053000
brk(0x8074000) = 0x8074000
open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory)
setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0
write(1, "HTTP/1.0 200 OK\r\nServer: fnord/1"..., 140) = 140
sendfile64(1, 3, [0], 2147483648) = -1 EINVAL (Invalid argument)
setsockopt(1, SOL_TCP, TCP_CORK, [0], 4) = 0
exit_group(0) = ?
--Boundary-00=_bHpODUBeUyEvc3s
Content-Type: text/x-log;
charset="iso-8859-15";
name="strace-fnord-1.8.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="strace-fnord-1.8.log"
execve("/usr/bin/fnord", ["/usr/bin/fnord"], [/* 29 vars */]) = 0
uname({sys="Linux", node="idefix", ...}) = 0
brk(0) = 0x8053000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23376, ...}) = 0
mmap2(NULL, 23376, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8d000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0iQ\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1217880, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8c000
mmap2(NULL, 1125564, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e79000
mprotect(0xb7f85000, 27836, PROT_NONE) = 0
mmap2(0xb7f86000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10c) = 0xb7f86000
mmap2(0xb7f8a000, 7356, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f8a000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e78000
mprotect(0xb7f86000, 4096, PROT_READ) = 0
mprotect(0xb7fa8000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e786c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f8d000, 23376) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\207pK\273", 4) = 4
close(3) = 0
chroot(".") = 0
chdir("/") = 0
setgroups32(1, [1050]) = 0
setuid32(101) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
time([1127910050]) = 1127910050
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(0, "GET /vietnam/fansipa1.zip HTTP/1"..., 8187) = 36
time(NULL) = 1127910066
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(0, "Host: static.fizzelpark.com\r\n", 8151) = 29
time(NULL) = 1127910076
poll([{fd=0, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(0, "\r\n", 8122) = 2
time(NULL) = 1127910078
chdir("static.fizzelpark.com:80") = 0
open("vietnam/fansipa1.zip", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=9999033, ...}) = 0
write(2, "213.133.101.110 200 9999033 stat"..., 82) = 82
brk(0) = 0x8053000
brk(0x8074000) = 0x8074000
open("/etc/localtime", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1, "HTTP/1.0 200 OK\r\nServer: fnord/1"..., 135) = 135
setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0
mmap2(NULL, 9999033, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb74ee000
time([1127910078]) = 1127910078
poll([{fd=1, events=POLLOUT, revents=POLLOUT}], 1, 20000) = 1
write(1, "PK\3\4\24\0\0\0\10\0\305\25223\254\230J\355\307N\v\0<i"..., 9999033) = 9999033
time([1127910089]) = 1127910089
munmap(0xb74ee000, 9999033) = 0
setsockopt(1, SOL_TCP, TCP_CORK, [0], 4) = 0
exit_group(0) = ?
--Boundary-00=_bHpODUBeUyEvc3s--