fetchmail (or maybe sendmail) problem in 2.1.126: Broken pipe

Robert Broughton (altnews@uniserve.com)
22 Jan 1999 09:29:10 GMT


The environment is:

2.1.126
fetchmail v4.6.5
sendmail v8.9.1a

Occasionally, when I download a large email with fetchmail, I get
a "broken pipe" message. The last part of the strace for fetchmail
looks like this:
-----

recv(3, "contained in S-13, he and other "..., 8191, MSG_PEEK) = 7222
read(3, "contained in S-13, he and other "..., 71) = 71
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={300, 0}}, NULL) = 0
recv(3, "Kenny\'s bill on procedural grou"..., 8191, MSG_PEEK) = 7151
read(3, "Kenny\'s bill on procedural grou"..., 37) = 37
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={300, 0}}, NULL) = 0
recv(3, "\r\nNow the health coalition is "..., 8191, MSG_PEEK) = 7114
read(3, "\r\n", 2) = 2
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={300, 0}}, NULL) = 0
recv(3, "Now the health coalition is tryi"..., 8191, MSG_PEEK) = 7112
read(3, "Now the health coalition is tryi"..., 74) = 74
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
write(5, "that exhort kids to do better an"..., 4096) = -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) ---
write(2, "fetchmail: ", 11fetchmail: ) = 11
write(2, "terminated with signal 13", 25terminated with signal 13) = 25
write(2, "\n", 1
) = 1
unlink("//.fetchids") = -1 ENOENT (No such file or directory)
unlink("/var/run/fetchmail.pid") = 0
write(5, "that exhort kids to do better an"..., 4096) = -1 EPIPE (Broken pipe)
munmap(0x400db000, 4096) = 0
_exit(0) = ?
-----

The last part of the strace for sendmail looks like this:
-----

read(7, "\"| /usr/local/bin/procmail -Yf-"..., 4096) = 53
read(7, "", 4096) = 0
close(7) = 0
munmap(0x400eb000, 4096) = 0
open("dfEAA02321", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 7
fstat(7, {st_mode=0, st_size=0, ...}) = 0
flock(7, LOCK_EX) = 0
fcntl(7, F_GETFL) = 0x1 (flags O_WRONLY)
fstat(7, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400eb000
lseek(7, 0, SEEK_CUR) = 0
fstat(7, {st_mode=0, st_size=0, ...}) = 0
fstat(0, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400ec000
read(0, "Return-path: <gborio@mindspring."..., 4096) = 4096
read(0, "\nda,\nit is that it will longer"..., 4096) = 4096
write(7, "\n\n\n\n**----------------------"..., 4096) = 4096
write(7, "sals released by Health Canada y"..., 2249) = 2249
fsync(7) = 0
close(7) = 0
munmap(0x400eb000, 4096) = 0
brk(0x80b8000) = 0x80b8000
brk(0x80bb000) = 0x80bb000
time([916892470]) = 916892470
getpid() = 2321
sigaction(SIGPIPE, {0x40099c90, [], 0}, {SIG_IGN}) = 0
socket(PF_UNIX, SOCK_DGRAM, 0) = 7
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
connect(7, {sun_family=AF_UNIX, sun_path="/dev/log"}, 16) = -1 EPROTOTYPE (Protocol wrong type for socket)
close(7) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 7
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
connect(7, {sun_family=AF_UNIX, sun_path="/dev/log"}, 16) = 0
send(7, "<22>Jan 21 04:21:10 sendmail[232"..., 162, 0) = 162
sigaction(SIGPIPE, {SIG_IGN}, NULL) = 0
open("dfEAA02321", O_RDONLY) = 8
open("/proc/loadavg", O_RDONLY) = 9
fstat(9, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400eb000
read(9, "0.04 0.01 0.00 2/36 2321\n", 1024) = 25
close(9) = 0
munmap(0x400eb000, 4096) = 0
write(3, "V2\nT916892470\nK0\nN0\nP37299\n"..., 1256) = 1256
fsync(3) = 0
fork() = 2322
close(5) = 0
munmap(0x400ea000, 4096) = 0
close(8) = 0
close(3) = 0
munmap(0x400e9000, 4096) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 2322
--- SIGCHLD (Child exited) ---
sigprocmask(SIG_BLOCK, NULL, []) = 0
setuid(0) = 0
lseek(0, -891, SEEK_CUR) = -1 ESPIPE (Illegal seek)
munmap(0x400ec000, 4096) = 0
_exit(0) = ?
-----

Any ideas on what the problem is here?

-- 
"I am a law abiding citizen, its the law that makes me a criminal!"
	-sschnurr@home.com

Bob Broughton mailto:roberb7@uniserve.com WWW: http://users.uniserve.com/~roberb7 Vancouver, BC, Canada

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/