Bug #76267 [NEW]: pg_escape_string, pg_send_query will cause a segfault in some rare cases
| From: | nick dot ilyin at oracle dot com | Date: | Wed, 25 Apr 2018 14:34:12 +0000 |
| Subject: | Bug #76267 [NEW]: pg_escape_string, pg_send_query will cause a segfault in some rare cases | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-214888@lists.php.net to get a copy of this message | ||
From: nick dot ilyin at oracle dot com
Operating system: Ubuntu 16.04.4 LTS
PHP version: 7.1.16
Package: PDO PgSQL
Bug Type: Bug
Bug description:pg_escape_string, pg_send_query will cause a segfault in some rare cases
Description:
------------
In some rare cases both pg_escape_string and pg_send_query cause a
segfault in Apache/2.4.18. Unfortunately it happens in cases where I
cannot replicate outside of our stack with a test script. However, I
have a test machine up where I can replicate the issue consistently so I
can provide whatever information is necessary from there.
I can provide whatever output is needed.
Test script:
---------------
Unable to provide given the nature of not knowing how to reproduce the
issue in a simple test script. This issue is fully reproducible in a
brand new machine built on our stack and is reproducible on brand new
Ubuntu 16.04.4 machines using PHP 7.1.16.
Expected result:
----------------
No segmentation fault.
Actual result:
--------------
In the error log: [Wed Apr 25 10:32:28.271689 2018] [core:notice] [pid
32568] AH00052: child pid 12510 exit signal Segmentation fault (11)
--
Edit bug report at https://bugs.php.net/bug.php?id=76267&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76267&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76267&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76267&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76267&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76267&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76267&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76267&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76267&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76267&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76267&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76267&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76267&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76267&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76267&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76267&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76267&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76267&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76267&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76267&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76267&r=mysqlcfg