MailScanner / v5

MailScanner v5
GNU General Public License v2.0
188 stars 60 forks source link

Process name too long (trailing spaces) #528

Closed mikaku closed 2 years ago

mikaku commented 3 years ago

Hello,

I've discovered that the MailScanner processes have a lot of trailing spaces in the process name:

# ps -edaf | grep MailScanner
root        7803       1  0 Jan30 ?        00:00:00 MailScanner: starting child                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
root      881656    7803  0 07:35 ?        00:00:03 MailScanner: waiting for messages                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
root      891186    7803  0 08:10 ?        00:00:03 MailScanner: waiting for messages                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
root      898477    7803  0 08:35 ?        00:00:02 MailScanner: waiting for messages                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
root      901260    7803  0 08:44 ?        00:00:01 MailScanner: waiting for messages                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
root      936255    7803  1 08:50 ?        00:00:01 MailScanner: waiting for messages                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

(look at the horizontal scroll bar)

I've checked each PID and the results are the following:

# cat /proc/7803/cmdline | wc
      0       3     764
# cat /proc/881656/cmdline | wc
      0       4     764
# cat /proc/891186/cmdline | wc
      0       4     764
# cat /proc/898477/cmdline | wc
      0       4     764
# cat /proc/901260/cmdline | wc
      0       4     764
# cat /proc/936255/cmdline | wc
      0       4     764

As you can see, all the process names have a length of 764 characters.

OS: CentOS Linux release 8.3.2011 MailScanner: MailScanner-5.3.4-2.rhel.noarch

github-actions[bot] commented 3 years ago

Thank you for submitting your first issue to MailScanner! We will respond to you soon!

msapiro commented 3 years ago

Here's what I see

root@mail:~# ps -edaf | grep MailScanner
root      1508  1491  0 08:04 pts/0    00:00:00 grep --color=auto MailScanner
postfix  31134     1  0 06:25 ?        00:00:00 MailScanner: master process sleeping
postfix  31135 31134  0 06:25 ?        00:00:02 MailScanner: waiting for messages
root@mail:~# wc /proc/31134/cmdline
0 4 36 /proc/31134/cmdline
root@mail:~# wc /proc/31135/cmdline
0 4 33 /proc/31135/cmdline

I.e., no trailing spaces. Ubuntu 18.04.5 MailScanner 5.4.1-1beta

mikaku commented 3 years ago

OK, perhaps this was fixed some where between 5.3.4-2 and 5.4.1-1beta. Feel free to close this issue if you cannot reproduce it, and sorry for the noise.

msapiro commented 3 years ago

I doubt that this issue existed for me in older versions. I think I would have noticed. I suspect it has something to do with either the RHEL version or your specific environment.

mikaku commented 3 years ago

Well, that same happens in two different genuine CentOS 8.3 servers. Yeah, perhaps is an issue specific in the RHEL installation. I don't know.

I'd like to know if other RHEL users experienced the same.

shawniverson commented 3 years ago

I am seeing this behavior as well specifically on CentOS/RHEL 8x

shawniverson commented 2 years ago

Problem is with the ps command on RHEL 8 style boxes, not a MailScanner problem, happens to other daemons as well.