Hello,
A long time ago, one of our users noticed his mailbox was making inc bad
with "Segmentation fault", on his Linux box.
We put this buggy mailbox on one side, and checked with each new nmh
release if the trouble was over.
With current version nmh-1.0.4, it still happens, on Linux boxes
(Linux 2.2.14 + Redhat 6.1). On the other hand, no trouble on Solaris
platforms was ever seen.
As this user no longer minds with making his mailbox available, we can
send it to you or leave somewhere if necessary.
Below some information:
# inc -version
inc -- nmh-1.0.4 [compiled on x at Wed Jul 19 15:02:15 MEST 2000]
# strace -f inc +Tmp -file /u/mailhost/var/mail/user.coredumped -notruncate
execve("/usr/local/bin/inc", ["inc", "+Tmp", "-file",
"/u/mailhost/var/mail/user.coredumped", "-notruncate"], [/* 75 vars */]) = 0
brk(0) = 0x8092aac
open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=12396, ...}) = 0
mmap(0, 12396, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aabe000
close(3)= 0
open("/lib/libdb.so.3", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=792313, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@<\0\000"..., 4096) = 4096
mmap(0, 235800, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aac2000
mprotect(0x2aafb000, 2328, PROT_NONE) = 0
mmap(0x2aafb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x38000) =
0x2aafb000
close(3)= 0
open("/lib/libtermcap.so.2", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=15001, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\v\0"..., 4096) = 4096
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aafc000
mmap(0, 13896, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aafd000
mprotect(0x2ab0, 1608, PROT_NONE) = 0
mmap(0x2ab0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) =
0x2ab0
close(3)= 0
open("/lib/libc.so.6", O_RDONLY)= 3
fstat(3, {st_mode=S_IFREG|0755, st_size=4118299, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\250\202"..., 4096) = 4096
mmap(0, 993500, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2ab01000
mprotect(0x2abec000, 30940, PROT_NONE) = 0
mmap(0x2abec000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xea000) =
0x2abec000
mmap(0x2abf, 14556, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1,
0) = 0x2abf
close(3)= 0
mprotect(0x2ab01000, 962560, PROT_READ|PROT_WRITE) = 0
mprotect(0x2ab01000, 962560, PROT_READ|PROT_EXEC) = 0
munmap(0x2aabe000, 12396) = 0
personality(0 /* PER_??? */)= 0
getpid()= 28842
brk(0) = 0x8092aac
brk(0x8092c4c) = 0x8092c4c
brk(0x8093000) = 0x8093000
open("/u/linuxbox/0/user/.mh_profile", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=153, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
read(3, "Path: Mail\nAliasfile: .mh_aliase"..., 4096) = 153
read(3, "", 4096) = 0
read(3, "", 4096) = 0
close(3)= 0
munmap(0x2aabe000, 4096)= 0
stat("/u/linuxbox/0/user/Mail", {st_mode=S_IFDIR|0710, st_size=2048, ...}) = 0
open("/u/linuxbox/0/user/Mail/context", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0640, st_size=69, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
read(3, "Current-Folder: Tmp\natr-cur-/u/c"..., 4096) = 69
read(3, "", 4096) = 0
read(3, "", 4096) = 0
close(3)= 0
munmap(0x2aabe000, 4096)= 0
open("/usr/local/nmh/etc/mts.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1000, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
read(3, "#\n# nmh mail transport interface"..., 4096) = 1000
brk(0x8094000) = 0x8094000
read(3, "", 4096) = 0
close(3)= 0
munmap(0x2aabe000, 4096)= 0
getuid()= 19006
setuid(19006) = 0
stat("/u/mailhost/var/mail/user.coredumped", {st_mode=S_IFREG|0660, st_size=47888,
...}) = 0
stat("/u/linuxbox/0/user/Mail/Tmp", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
chdir("/u/linuxbox/0/user/Mail/Tmp") = 0
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
open("/u/linuxbox/0/user/Mail/Tmp", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC)