Доброго дня.
Из под рута всё работает.
Из под юзера выводится сабж.
Запустил с strace:
strace -ff /usr/bin/printf "test\n" | /usr/bin/mutt -s "TEST2" email@domain.com
execve("/usr/bin/printf", ["/usr/bin/printf", "test\\n"], [/* 23 vars */]) = 0
brk(0) = 0x116b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f06cd3fb000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=57965, ...}) = 0
mmap(NULL, 57965, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f06cd3ec000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\355\201S2\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1918016, ...}) = 0
mmap(0x3253800000, 3741864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3253800000
mprotect(0x3253989000, 2093056, PROT_NONE) = 0
mmap(0x3253b88000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x188000) = 0x3253b88000
mmap(0x3253b8d000, 18600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3253b8d000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f06cd3eb000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f06cd3ea000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f06cd3e9000
arch_prctl(ARCH_SET_FS, 0x7f06cd3ea700) = 0
mprotect(0x3253b88000, 16384, PROT_READ) = 0
mprotect(0x325321f000, 4096, PROT_READ) = 0
munmap(0x7f06cd3ec000, 57965) = 0
brk(0) = 0x116b000
brk(0x118c000) = 0x118c000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=99158576, ...}) = 0
mmap(NULL, 99158576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f06c7558000
close(3) = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f06cd3fa000
write(1, "test\n", 5) = 5
close(1) = 0
munmap(0x7f06cd3fa000, 4096) = 0
close(2) = 0
exit_group(0) = ?
Segmentation fault (core dumped)
mutt[20171]: segfault at 10 ip 000000000043c766 sp 00007fff36d6fa70 error 6 in mutt[400000+bd000]
mutt[22006]: segfault at 10 ip 000000000043c766 sp 00007fff5e873020 error 6 in mutt[400000+bd000]
mutt[22089]: segfault at 10 ip 000000000043c766 sp 00007fffd08866f0 error 6 in mutt[400000+bd000]
mutt[23554]: segfault at 10 ip 000000000043c766 sp 00007fff4d7d1200 error 6 in mutt[400000+bd000]
Из под рута ведь работает.
доп.инфо:
OS: Red Hat Enterprise Linux Server release 6.3 (Santiago)
# ll /usr/bin/mutt
-rwxr-xr-x. 1 root root 818392 Jul 7 2011 /usr/bin/mutt