Bug #77044 [NEW]: Process Name has lots of null appended
| From: | d28b312d at opayq dot com | Date: | Sun, 21 Oct 2018 22:10:42 +0000 |
| Subject: | Bug #77044 [NEW]: Process Name has lots of null appended | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217643@lists.php.net to get a copy of this message | ||
From: d28b312d at opayq dot com
Operating system: CentOS
PHP version: Irrelevant
Package: FPM related
Bug Type: Bug
Bug description:Process Name has lots of null appended
Description:
------------
When php-fpm starts it seems to set a wild command line which causes
problems with tools such as
pgrep -xf.
Using: cat /proc/<procid>/cmdline | hexdump -C
For example, most normal tools:
00000000 2f 75 73 72 2f 6c 69 62 2f 70 6f 6c 6b 69 74 2d
|/usr/lib/polkit-|
00000010 31 2f 70 6f 6c 6b 69 74 64 00 2d 2d 6e 6f 2d 64
|1/polkitd.--no-d|
00000020 65 62 75 67 00 |ebug.|
But php-fpm processes:
00000000 70 68 70 2d 66 70 6d 3a 20 6d 61 73 74 65 72 20 |php-fpm:
master |
00000010 70 72 6f 63 65 73 73 20 28 2f 65 74 63 2f 70 68 |process
(/etc/ph|
00000020 70 2d 66 70 6d 2e 63 6f 6e 66 29 00 00 00 00 00
|p-fpm.conf).....|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|...............|
This applies to all php-fpm processes, and so far, _no_ other processes
on my system , which leads me to believe it's a bug in php-fpm.
Expected result:
----------------
00000000 70 68 70 2d 66 70 6d 3a 20 6d 61 73 74 65 72 20 |php-fpm:
master |
00000010 70 72 6f 63 65 73 73 20 28 2f 65 74 63 2f 70 68 |process
(/etc/ph|
00000020 70 2d 66 70 6d 2e 63 6f 6e 66 29 00
|p-fpm.conf).|
Actual result:
--------------
00000000 70 68 70 2d 66 70 6d 3a 20 6d 61 73 74 65 72 20 |php-fpm:
master |
00000010 70 72 6f 63 65 73 73 20 28 2f 65 74 63 2f 70 68 |process
(/etc/ph|
00000020 70 2d 66 70 6d 2e 63 6f 6e 66 29 00 00 00 00 00
|p-fpm.conf).....|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|...............|
--
Edit bug report at https://bugs.php.net/bug.php?id=77044&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77044&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77044&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77044&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77044&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77044&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77044&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77044&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77044&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77044&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77044&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77044&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77044&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77044&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77044&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77044&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77044&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77044&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77044&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77044&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77044&r=mysqlcfg