[OpenAFS-devel] fetchmail lock file in afs-space

Valentin v. Seggern vvs@germanistik.fu-berlin.de
Mon, 29 Oct 2001 22:07:56 +0100


--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Hello openafs-hackers,

I have a problem with running fetchmail in afs space.
I do fetchmail -v in my home directory (in afs-space) and it gives
me: 

luisxiv@aleph:[~] fetchmail -v  
fetchmail: removing stale lockfile 
Segmentation fault

I run kernel 2.4.13 and openafs-1.2.2. My fetchmail Version is:

luisxiv@aleph:[~] fetchmail --version | head -n3
This is fetchmail release 5.9.0+NTLM+SDPS+NLS
Linux aleph 2.4.13 #1 Fri Oct 26 14:14:49 CEST 2001 i686 unknown
Taking options from command line and /afs/.vseggern/home/luisxiv/.fetchmailrc

I can remove .fetchmail.pid but this doesn't change anything.

I don't know if this is an afs or a fetchmail problem, but since
this came after switching to afs I suppose it must have to do with
afs.

Oh yes... I have the necessary rights to lock files in my
home-directory:

luisxiv@aleph:[~] fs listacl .
Access list for . is
Normal rights:
  system:administrators rl
  luisxiv rlidwka
               ^
and I own a token for luisxiv.

I hope you can enlighten me. I attached the strace of fetchmail.

Thank you,

Valentin

-- 
 .~.  http://www.germanistik.fu-berlin.de/~luisxiv/       .~.
 /v\  "Wahlen ändern nix - Sonst wären sie verboten"      /v\
/( )\    - Simon Moon (Robert A. Wilson's "Illuminatus") /( )\
 ^-^                                                      ^-^

--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=fetchmail-strace

execve("/usr/bin/fetchmail", ["fetchmail"], [/* 38 vars */]) = 0
uname({sys="Linux", node="aleph", ...}) = 0
brk(0)                                  = 0x8079270
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0xbfffe8fc, 0xbfffe9b4)          = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0xbfffe8fc, 0xbfffe9b4)          = -1 ENOENT (No such file or directory)
open("/usr/lib/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0xbfffe8fc, 0xbfffe9b4)          = -1 ENOENT (No such file or directory)
open("/usr/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64(0xbfffe8fc, 0xbfffe9b4)          = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(0x3, 0xbfffe964)                = 0
old_mmap(NULL, 35468, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/lib/libcrypt.so.1", 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\0\240\20"..., 1024) = 1024
fstat64(0x3, 0xbfffe9ac)                = 0
old_mmap(NULL, 183740, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001f000
mprotect(0x40024000, 163260, PROT_NONE) = 0
old_mmap(0x40024000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x40024000
old_mmap(0x40025000, 159164, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40025000
close(3)                                = 0
open("/usr/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libresolv.so.2", 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\0\200*\0"..., 1024) = 1024
fstat64(0x3, 0xbfffe99c)                = 0
old_mmap(NULL, 67648, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4004c000
mprotect(0x40059000, 14400, PROT_NONE)  = 0
old_mmap(0x40059000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0x40059000
old_mmap(0x4005b000, 6208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4005b000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/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\0\270\327"..., 1024) = 1024
fstat64(0x3, 0xbfffe98c)                = 0
old_mmap(NULL, 1187712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005d000
mprotect(0x40175000, 40832, PROT_NONE)  = 0
old_mmap(0x40175000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x117000) = 0x40175000
old_mmap(0x4017b000, 16256, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4017b000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4017f000
munmap(0x40016000, 35468)               = 0
SYS_199(0x4017a058, 0, 0x4017ad60, 0x40177e70, 0xbffff634) = 1000
brk(0)                                  = 0x8079270
brk(0x8079688)                          = 0x8079688
brk(0x807a000)                          = 0x807a000
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sin_family=AF_UNIX, path="                                                                                       /var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(0x3, 0xbffff21c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
open("/usr/lib/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(0x3, 0xbfffeb1c)                = 0
old_mmap(NULL, 35468, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/lib/libnss_compat.so.2", 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\0\220\33"..., 1024) = 1024
fstat64(0x3, 0xbfffeb64)                = 0
old_mmap(NULL, 44688, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40180000
mprotect(0x4018a000, 3728, PROT_NONE)   = 0
old_mmap(0x4018a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0x4018a000
close(3)                                = 0
open("/usr/lib/libnsl.so.1", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", 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\0 B\0\000"..., 1024) = 1024
fstat64(0x3, 0xbfffe974)                = 0
old_mmap(NULL, 82716, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4018b000
mprotect(0x4019c000, 13084, PROT_NONE)  = 0
old_mmap(0x4019c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10000) = 0x4019c000
old_mmap(0x4019e000, 4892, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4019e000
close(3)                                = 0
brk(0x807b000)                          = 0x807b000
munmap(0x40016000, 35468)               = 0
uname({sys="Linux", node="aleph", ...}) = 0
open("/etc/passwd", O_RDONLY)           = 3
shmat(3, 0x8, 0x1ptrace: umoven: Input/output error
)                      = ?
shmat(3, 0x8, 0x2ptrace: umoven: Input/output error
)                      = ?
fstat64(0x3, 0xbffff10c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1374
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
open("/etc/passwd", O_RDONLY)           = 3
shmat(3, 0x4017ad60, 0x1ptrace: umoven: Input/output error
)               = ?
shmat(3, 0x4017ad60, 0x2ptrace: umoven: Input/output error
)               = ?
fstat64(0x3, 0xbffff11c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1374
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(0x3, 0xbfffb13c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
brk(0x807c000)                          = 0x807c000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40016000, 4096)                = 0
open("/usr/lib/locale/de_DE/LC_COLLATE", O_RDONLY) = 3
fstat64(0x3, 0xbffff35c)                = 0
old_mmap(NULL, 21499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/usr/lib/locale/de_DE/LC_CTYPE", O_RDONLY) = 3
fstat64(0x3, 0xbffff35c)                = 0
old_mmap(NULL, 201664, PROT_READ, MAP_PRIVATE, 3, 0) = 0x401a0000
close(3)                                = 0
stat64(0x807a470, 0xbffff29c)           = 0
lstat64(0x807a470, 0xbffff1dc)          = 0
semop(1075290200, 0x40177e70, 0)        = 1000
open("/afs/.vseggern/home/luisxiv/.fetchmailrc", O_RDONLY) = 3
brk(0x8081000)                          = 0x8081000
ioctl(3, TCGETS, 0xbfff6cf8)            = -1 EINVAL (Invalid argument)
fstat64(0x3, 0xbfff6c6c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
read(3, "# Configuration created Sat Sep "..., 8192) = 887
read(3, "", 4096)                       = 0
read(3, "", 8192)                       = 0
ioctl(3, TCGETS, 0xbfff6ce8)            = -1 EINVAL (Invalid argument)
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
open("/etc/passwd", O_RDONLY)           = 3
shmat(3, 0x4017ad60, 0x1ptrace: umoven: Input/output error
)               = ?
shmat(3, 0x4017ad60, 0x2ptrace: umoven: Input/output error
)               = ?
fstat64(0x3, 0xbfffef9c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1374
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
gettimeofday({1004389645, 623545}, NULL) = 0
getpid()                                = 1205
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat64(0x3, 0xbfffcfec)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
read(3, "nameserver 192.168.10.1\nnameserv"..., 4096) = 66
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sin_family=AF_UNIX, path="                                                                                       /var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/usr/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(0x3, 0xbfffe99c)                = 0
old_mmap(NULL, 35468, PROT_READ, MAP_PRIVATE, 3, 0) = 0x401d2000
close(3)                                = 0
open("/lib/libnss_files.so.2", 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\0\320\"\0"..., 1024) = 1024
fstat64(0x3, 0xbfffe9e4)                = 0
old_mmap(NULL, 37512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401db000
mprotect(0x401e3000, 4744, PROT_NONE)   = 0
old_mmap(0x401e3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x7000) = 0x401e3000
close(3)                                = 0
munmap(0x401d2000, 35468)               = 0
open("/etc/host.conf", O_RDONLY)        = 3
fstat64(0x3, 0xbfffef7c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
read(3, "order hosts,bind\nmulti on\n", 4096) = 26
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
open("/etc/hosts", O_RDONLY)            = 3
shmat(3, 0x1, 0x1ptrace: umoven: Input/output error
)                      = ?
shmat(3, 0x1, 0x2ptrace: umoven: Input/output error
)                      = ?
fstat64(0x3, 0xbfffefac)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
read(3, "127.0.0.1\taleph\t\t\t\t\tlocalhost\n16"..., 4096) = 412
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
open("/usr/lib/libnss_dns.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(0x3, 0xbfffe9cc)                = 0
old_mmap(NULL, 35468, PROT_READ, MAP_PRIVATE, 3, 0) = 0x401d2000
close(3)                                = 0
open("/lib/libnss_dns.so.2", 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\0p\16\0\000"..., 1024) = 1024
fstat64(0x3, 0xbfffea14)                = 0
old_mmap(NULL, 15328, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401e5000
mprotect(0x401e8000, 3040, PROT_NONE)   = 0
old_mmap(0x401e8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x401e8000
close(3)                                = 0
munmap(0x401d2000, 35468)               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.10.1")}}, 28) = 0
send(3, "B\2\1\0\0\1\0\0\0\0\0\0\3pop\3gmx\3net\0\0\1\0\1", 29, 0) = 29
gettimeofday({1004389645, 628211}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(3, "B\2\201\200\0\1\0\1\0\3\0\3\3pop\3gmx\3net\0\0\1\0\1\300"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.10.1")}}, [16]) = 156
close(3)                                = 0
open("/etc/passwd", O_RDONLY)           = 3
shmat(3, 0x4017ad60, 0x1ptrace: umoven: Input/output error
)               = ?
shmat(3, 0x4017ad60, 0x2ptrace: umoven: Input/output error
)               = ?
fstat64(0x3, 0xbfffef9c)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1374
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sin_family=AF_UNIX, path="                                                                                       /var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/hosts", O_RDONLY)            = 3
shmat(3, 0x1, 0x1ptrace: umoven: Input/output error
)                      = ?
shmat(3, 0x1, 0x2ptrace: umoven: Input/output error
)                      = ?
fstat64(0x3, 0xbfffefac)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
read(3, "127.0.0.1\taleph\t\t\t\t\tlocalhost\n16"..., 4096) = 412
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
lstat64(0x807b408, 0xbffff20c)          = -1 ENOENT (No such file or directory)
lstat64(0x807b408, 0xbfffefec)          = -1 ENOENT (No such file or directory)
open("/afs/.vseggern/home/luisxiv/.fetchids", O_RDONLY) = -1 ENOENT (No such file or directory)
SYS_199(0x4017a058, 0x2, 0x4017ad60, 0x40177e70, 0x8068ee9) = 1000
SYS_199(0x4017a058, 0x2, 0x4017ad60, 0x40177e70, 0xbfffff35) = 1000
getrlimit(0x4, 0xbffff524, 0xbfffff00, 0x4001534c, 0x4) = 0
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0
open("/afs/.vseggern/home/luisxiv/.netrc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/afs/.vseggern/home/luisxiv/.fetchmail.pid", O_RDONLY) = 3
fstat64(0x3, 0xbffff1fc)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
read(3, "1202", 4096)                   = 4
read(3, "", 4096)                       = 0
kill(1202, SIG_0)                       = -1 ESRCH (No such process)
write(2, "fetchmail: removing stale lockfi"..., 35fetchmail: removing stale lockfile
) = 35
unlink("/afs/.vseggern/home/luisxiv/.fetchmail.pid") = 0
close(3)                                = 0
munmap(0x4001c000, 4096)                = 0
rt_sigaction(SIGCHLD, {0x8054a80, [], SA_RESTART|SA_NOCLDSTOP|0x4000000}, NULL, 8) = 0
rt_sigaction(SIGPWR, {0x8054a80, [], SA_RESTART|SA_NOCLDSTOP|0x4000000}, NULL, 8) = 0
pipe([3, 4])                            = 0
vfork()                                 = 1206
close(4)                                = 0
fstat64(0x3, 0xbffff1fc)                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
read(3, 0x4001c000, 4096)               = ? ERESTARTSYS (To be restarted)
--- SIGCHLD (Child exited) ---
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG, NULL) = 1206
wait4(-1, 0xbfffef68, WNOHANG, NULL)    = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
read(3, "2.4.13\n", 4096)               = 7
close(3)                                = 0
wait4(1206, 0xbffff408, 0, NULL)        = -1 ECHILD (No child processes)
munmap(0x4001c000, 4096)                = 0
umask(077)                              = 022
rt_sigaction(SIGABRT, {0x8051988, [ABRT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8051988, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x8051988, [TERM], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGALRM, {0x8051988, [ALRM], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {0x8051988, [PIPE], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x8051988, [QUIT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
open("/afs/.vseggern/home/luisxiv/.fetchmail.pid", O_WRONLY|O_CREAT|O_EXCL|O_SYNC, 0666) = 3
getpid()                                = 1205
write(3, "1205", 4 <unfinished ...>
+++ killed by SIGSEGV +++

--zYM0uCDKw75PZbzx--