bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] mailx bug with fstat


From: Yves Réveillon - eurower.fr
Subject: [bug-mailutils] mailx bug with fstat
Date: Fri, 11 Oct 2013 18:36:45 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666

Hi,

I'm sorry to directly write to you, but I don't find any ML to report
this bug :


I'm using Mailx-12.5-1.fc14.x86_64 under 2 tests machines :

Machine A :
OpenVZ installation with a standard Fedora Core 14 guest from official.

Result of : echo "test" | mail -d -s "test" address@hidden
user = root, homedir = /root
Sendmail arguments: "send-mail" "-i" "address@hidden"

Ok, mail send, no problem !

Machine B :
Same OpenVZ installation with a custom build from Fedora Core 14 guest
(build with custom init but packages installed from official FC14).

All others applications (Apache, postfix, sendmail, build nagios etc ...
are ok)

But result of :  echo "test" | mail -d -s "test" address@hidden
user = root, homedir = /root
Null message body; hope that's ok
Sendmail arguments: "send-mail" "-i" "address@hidden"


The strace command give me :

(...)
open("/tmp/RsEXBzjk", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
fchmod(3, 0600)                         = 0
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7fb1ca35c000
lseek(3, 0, SEEK_CUR)                   = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
unlink("/tmp/RsEXBzjk")                 = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
fstat(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7fb1ca35b000
read(0, "test\n", 8192)                 = 5
read(0, "", 4096)                       = 0
read(0, "", 8192)                       = 0
write(3, "test\n", 5)                   = 5
lseek(3, 0, SEEK_SET)                   = 0
rt_sigprocmask(SIG_BLOCK, [HUP INT], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER|SA_RESTART,
0x7fb1c8fdd140}, {0x4113c0, [], SA_RESTORER|SA_RESTART, 0x7fb1c8fdd140},
8) = 0
rt_sigaction(SIGHUP, {SIG_DFL, [], SA_RESTORER|SA_RESTART,
0x7fb1c8fdd140}, {0x410ac0, [], SA_RESTORER|SA_RESTART, 0x7fb1c8fdd140},
8) = 0
rt_sigaction(SIGTSTP, {SIG_DFL, [], SA_RESTORER|SA_RESTART,
0x7fb1c8fdd140}, {0x411310, [], SA_RESTORER|SA_RESTART, 0x7fb1c8fdd140},
8) = 0
rt_sigaction(SIGTTOU, {SIG_DFL, [], SA_RESTORER|SA_RESTART,
0x7fb1c8fdd140}, {0x411310, [], SA_RESTORER|SA_RESTART, 0x7fb1c8fdd140},
8) = 0
rt_sigaction(SIGTTIN, {SIG_DFL, [], SA_RESTORER|SA_RESTART,
0x7fb1c8fdd140}, {0x411310, [], SA_RESTORER|SA_RESTART, 0x7fb1c8fdd140},
8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
fstat(3, 0x7fff9e4b32d0)                = -1 EPERM (Operation not permitted)
write(1, "Null message body; hope that's o"..., 34Null message body;
hope that's ok
) = 34
open("/tmp/RsBj0SIX", O_RDWR|O_CREAT|O_EXCL, 0600) = 4

(...)

As we can see, seem there's a problem with the ressource #3 (the tmp
file in /tmp ?) on the fstat = EPERM :

With compare strace on the 2 machines, only this is different, so I
think it's it, but impossible to understand why this error ...


Can you help me please ?

Thanks very much ...

Best regards,

Yves Reveillon





reply via email to

[Prev in Thread] Current Thread [Next in Thread]