Package: nmh
Version: 1.2-1+b1

Some commands in recent versions of nmh are segfaulting on my machine.
It showed up with a recent upgrade to latest unstable, but I was only
maybe a month or two out of date.

working: scan, forw, inc, dist
segfault: show, repl

after running show, my terminal is messed up and typed characters are
not printed on the screen and a reset(1) is needed to fix it.

I was able to repeat this on a totally new unstable install that didn't
have a preexisting .mh_profile or ~/Mail/ dir.

I tried installing older versions, but the previous versions depended on
libsasl2 and my unstable system has transitioned to libsasl2-2.

I grabbed 1.2-1 and 1.1-release-4 source from snapshot.debian.net and
tried rebuilding on current unstable (in order to use libsasl2-2). The
rebuilt versions both failed in the same way as current unstable. Maybe
the bug is in how nmh is using some dependency?

Using strace doesn't reveal much. Here's the last few lines,

strace repl
========================================================================
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=826, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7dca000
_llseek(5, 0, [0], SEEK_CUR)            = 0
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=94, ...}) = 0
open("/etc/resolv.conf", O_RDONLY)      = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=94, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7dc9000
read(6, "search home.bogus lackof.org\nnam"..., 4096) = 94
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0xb7dc9000, 4096)                = 0
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=94, ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 6
fcntl64(6, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(6, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
poll([{fd=6, events=POLLOUT|POLLERR|POLLHUP, revents=POLLOUT}], 1, 5000) = 1
send(6, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0\n\10", 20, MSG_NOSIGNAL) = 20
poll([{fd=6, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN|POLLERR|POLLHUP}], 
1, 5000) = 1
recvmsg(6, 0xbfc09764, 0)               = -1 ECONNRESET (Connection reset by 
peer)
close(6)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 6
fcntl64(6, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(6, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
poll([{fd=6, events=POLLOUT|POLLERR|POLLHUP, revents=POLLOUT}], 1, 5000) = 1
writev(6, [{"\2\0\0\0\4\0\0\0\6\0\0\0", 12}, {"cyrix\0", 6}], 2) = 18
poll([{fd=6, events=POLLIN|POLLERR|POLLHUP, revents=POLLIN}], 1, 5000) = 1
read(6, "\2\0\0\0\377\377\377\377\0\0\0\0\0\0\0\0\377\377\377\377"..., 32) = 32
close(6)                                = 0
open("/etc/host.conf", O_RDONLY)        = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7dc9000
read(6, "multi on\n", 4096)             = 9
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0xb7dc9000, 4096)                = 0
_llseek(5, 0, [0], SEEK_SET)            = 0
read(5, "127.0.0.1\tlocalhost\n192.168.1.3\t"..., 4096) = 826
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0xb7dca000, 4096)                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
========================================================================

strace show
========================================================================
access("/home/taggart/Mail/mhl.format", R_OK) = -1 ENOENT (No such file or 
directory)
access("/etc/nmh/mhl.format", R_OK)     = 0
open("/etc/nmh/mhl.format", O_RDONLY)   = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=379, ...}) = 0
ioctl(2, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(2, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=379, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f58000
read(3, "; mhl.format\n;\n; default message"..., 4096) = 379
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f58000, 4096)                = 0
open("2568", O_RDONLY)                  = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=4538, ...}) = 0
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f51000
read(3, "From [EMAIL PROTECTED]"..., 32768) = 4538
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
========================================================================

I don't know if this is related to #399271 or #420653.

The etch version of nmh works fine. I haven't tried to start with an
etch system and gradually upgrade it to see what breaks.

-- 
Matt Taggart
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to