Bug#944372: mailutils: "mail" command segfaults
(too old to reply)
Steve Newcomb
2019-11-08 17:10:02 UTC
Package: mailutils
Version: 1:3.5-3
Severity: important

Dear Maintainer,

* What led up to the situation?
I have configured Postfix and Dovecot, which are evidently working, but I can't read Maildir using the "mail" command.

191108 11:52 /tmp ***@vsv1% mail
"maildir:///home/srn/Maildir": 3 messages 3 new
Segmentation fault
191108 11:52 /tmp ***@vsv1%

-- System Information:
Debian Release: 10.1
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mailutils depends on:
ii guile-2.2-libs 2.2.4+1-2
ii libc6 2.28-10
ii libfribidi0 1.0.5-3.1+deb10u1
ii libgc1c2 1:7.6.4-0.4
ii libgnutls30 3.6.7-4
ii libgsasl7 1.8.0-8+b2
ii libkyotocabinet16v5 1.2.76-4.2+b1
ii libldap-2.4-2 2.4.47+dfsg-3+deb10u1
ii libmailutils5 1:3.5-3
ii libncurses6 6.1+20181013-2+deb10u1
ii libpam0g 1.3.1-5
ii libpython2.7 2.7.16-2
ii libreadline7 7.0-5
ii libtinfo6 6.1+20181013-2+deb10u1
ii libwrap0 7.6.q-28
ii mailutils-common 1:3.5-3

Versions of packages mailutils recommends:
ii postfix [mail-transport-agent] 3.4.5-1

Versions of packages mailutils suggests:
pn mailutils-doc <none>
pn mailutils-mh <none>

-- no debconf information
Steve Newcomb
2019-11-08 18:20:01 UTC
Post by Steve Newcomb
"maildir:///home/srn/Maildir": 3 messages 3 new
Segmentation fault
...and syslog receives the following entries:

Nov  8 11:52:42 vsv1 kernel: [ 3370.653281] mail[4906]: segfault at 0 ip
00007f4354c7f181 sp 00007ffde6656168 error 4 in
Nov  8 11:52:42 vsv1 kernel: [ 3370.653290] Code: 84 00 00 00 00 00 0f
1f 00 31 c0 c5 f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 89 f9 48 89 fa c5
f9 ef c0 83 e1 3f 83 f9 20 77 1f <c5> fd 74 0f c5 fd d7 c1 85 c0 0f 85
df 00 00 00 48 83 c7 20 83 e1
Bernhard Übelacker
2019-11-18 23:10:02 UTC
Hello Steve Newcomb,
I am not the mailutils maintainer, but just came across you report.

The information you supplied might not be enough
for the maintainer to track down the issue, and
it might be related to the content of your mail directory.

You supplied the dmesg output, but even when the crash shows up
in libc-2.28.so, the problem normally is the
application calling into libc.

Maybe you could install a core dump collector like 'systemd-coredump'?
That way you should receive a maybe helpfull backtrace
in the output of your journalctl.
When installing the debug symbols like described in [1] that
information should be even better.

Kind regards,

[1] https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols