Bug #70295 [NEW]: Segmentation fault with setrawcookie

From: Date: Tue, 18 Aug 2015 22:52:12 +0000
Subject: Bug #70295 [NEW]: Segmentation fault with setrawcookie
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195312@lists.php.net to get a copy of this message
From: neclimdul at gmail dot com Operating system: linux PHP version: 7.0.0beta3 Package: *Network Functions Bug Type: Bug Bug description:Segmentation fault with setrawcookie Description: ------------ setrawcookie seems to be the cause of this bug but it actually requires a couple things to trigger. The rawurlencode and the PDO statement seem required. I'm not sure how to get gdb working right with php-fpm where I triggered this bug. Because of the cookie involved it obviously doesn't work from the command line though. Test script: --------------- <?php setrawcookie('cookie', rawurlencode('value'), $_SERVER['REQUEST_TIME'] + 31536000, '/'); $dbh = new PDO('mysql:host=localhost;dbname=data', 'root', ''); Expected result: ---------------- cookie is set Actual result: -------------- 502 response and SIGSEGV in log -- Edit bug report at https://bugs.php.net/bug.php?id=70295&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70295&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70295&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70295&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70295&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70295&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70295&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70295&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70295&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70295&r=support Expected behavior: https://bugs.php.net/fix.php?id=70295&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70295&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70295&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70295&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70295&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70295&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70295&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70295&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70295&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70295&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70295&r=mysqlcfg

« previous php.bugs (#195312) next »