https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162022-10-26T19:05:55ZpfSense bugtrackerpfSense - Regression #13598: fcgicli can output garbage for stdout/stderr read back from php-fpmhttps://redmine.pfsense.org/issues/13598?journal_id=634482022-10-26T19:05:55ZReid Linnemann
<ul><li><strong>Subject</strong> changed from <i>Firewall gets tired during boot</i> to <i>fcgicli can output garbage for stdout/stderr read back from php-fpm</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul><p>Many scripts, including rc.start_packages, use fcgicli to instruct php-fpm to load and execute a script rather than spin up a new interpreter instance and run the script directly. The fcgicli command prints out the stderr/stdout sent back to it by php-fpm by recv'ing fastcgi packets and spitting the buffers out. It appears that in some cases when an output packet arrives for text that is exactly 32 bytes (or perhaps modulos of 32), sans the terminating NUL, fcgicli only allocates a 32 byte buffer for the non-terminated string and subsequently uninitialized memory can be output. In this case, that memory has a marker value of 0x5a in every byte, which corresponds to ASCII 'Z'. This is easy enough to correct by ensuring the buffer is always one byte larger than the content length, and ensuring that final byte is NUL.</p> pfSense - Regression #13598: fcgicli can output garbage for stdout/stderr read back from php-fpmhttps://redmine.pfsense.org/issues/13598?journal_id=634662022-10-27T16:53:55ZReid Linnemann
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Private</strong> changed from <i>Yes</i> to <i>No</i></li></ul><p>Fixed in change <a href="https://github.com/pfsense/FreeBSD-ports/commit/240e1907727eaba6a1d677e631a464d751198aa7" class="external">240e1907727eaba6a1d677e631a464d751198aa7</a></p> pfSense - Regression #13598: fcgicli can output garbage for stdout/stderr read back from php-fpmhttps://redmine.pfsense.org/issues/13598?journal_id=634932022-10-29T18:09:57ZKris Phillips
<ul></ul><p>Looks good here and no longer seeing the garbage output when running the above commands.</p> pfSense - Regression #13598: fcgicli can output garbage for stdout/stderr read back from php-fpmhttps://redmine.pfsense.org/issues/13598?journal_id=647972022-12-22T10:57:59ZJim Pingle
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Regression</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>2.7.0</i></li><li><strong>Plus Target Version</strong> set to <i>23.01</i></li><li><strong>Release Notes</strong> changed from <i>Default</i> to <i>Force Exclusion</i></li></ul>