Ilpo Nyyssönen
iny at iki.fi
Tue Jul 4 21:21:57 EST 2000
On Tue, 4 Jul 2000, Gregory Trubetskoy wrote: > > Ilpo - > > The code below worked for me without a hinch. This is on FreeBSD 4.0 > Stable, Apache 1.3.12. > > Anyone else on this list experiences this problem? > > Grisha > > On 4 Jul 2000, Ilpo Nyyssönen wrote: > > > > > I tried to use urllib to retrieve some pictures dynamically, but the > > child dies with segmentation fault. This happens also with httplib, > > for example with the code below. The dying seems to happen when > > closing the connection. I forgot to mention that I have Apache 1.3.12 (this was just upgraded) in Linux 2.2.13 (Red Hat). I also attached a strace that I took few weeks ago. -- Ilpo Nyyssönen # biny /* :-) */ -------------- next part -------------- socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6 connect(6, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("130.233.224.1")}, 16) = 0 send(6, "Z\355\1\0\0\1\0\0\0\0\0\0\3www\3"..., 28, 0) = 28 SYS_168(0xbfffd9b8, 0x1, 0x1388, 0x1388, 0xbfffd9b8) = 1 recvfrom(6, "Z\355\205\200\0\1\0\1\0\3\0\3\3w"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("130.233.224.1")}, [16]) = 167 close(6) = 0 connect(5, {sin_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("130.233.220.31")}, 16) = 0 send(5, "GET / HTTP/1.0\r\n", 16, 0) = 16 send(5, "Host: www.hut.fi\r\n", 18, 0) = 18 send(5, "User-agent: Python-urllib/1.10\r"..., 32, 0) = 32 send(5, "\r\n", 2, 0) = 2 dup(5) = 6 fcntl(6, F_GETFL) = 0x2 (flags O_RDWR) fstat(6, {st_mode=033526, st_size=0, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40615000 _llseek(0x6, 0, 0, 0xbffff1e4, 0x1) = -1 ESPIPE (Illegal seek) read(6, "HTTP/1.1 200 OK\r\nDate: Mon, 19"..., 1024) = 1024 close(5) = 0 connect(-1073745952, {...}, 1075363008) = 23 getpid() = 28286 open("/usr/tmp/@28286.test", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 fstat(5, {st_mode=S_IFDIR|S_ISUID|0606, st_size=0, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40618000 write(5, "blat", 4) = 4 close(5) = 0 munmap(0x40618000, 4096) = 0 unlink("/usr/tmp/@28286.test") = 0 getpid() = 28286 stat("/usr/tmp/@28286.1", 0xbffff318) = -1 ENOENT (No such file or directory) open("/usr/tmp/@28286.1", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 brk(0x81a5000) = 0x81a5000 read(6, " href=\"http://www.hut.fi/Ajanko"..., 1024) = 875 read(6, "", 1024) = 0 fstat(5, {st_mode=S_IFDIR|S_ISUID|0606, st_size=0, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40618000 read(6, "", 1024) = 0 close(6) = 0 munmap(0x40615000, 4096) = 0 --- SIGSEGV (Segmentation fault) --- chdir("/tmp") = 0 SYS_174(0xb, 0xbffff0bc, 0xbffff030, 0x8, 0xb) = 0 getpid() = 28286 kill(28286, SIGSEGV) = 0 sigreturn() = ? (mask now []) --- SIGSEGV (Segmentation fault) ---
|