Bug #77747 [NEW]: Segmentation fault with curl

From: Date: Fri, 15 Mar 2019 15:35:02 +0000
Subject: Bug #77747 [NEW]: Segmentation fault with curl
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219977@lists.php.net to get a copy of this message
From: anthony dot martin at sensiolabs dot com Operating system: Ubuntu 18.10 PHP version: 7.2.16 Package: cURL related Bug Type: Bug Bug description:Segmentation fault with curl Description: ------------ A segmentation fault error occcurs, only, when I try to unit test some experimental feature in the Symfony Framework. I've tried with different version of curl. PHP version : PHP 7.2.15-0ubuntu0.18.10.1 (cli) (built: Feb 8 2019 14:54:22) ( NTS ) Zend Engine v3.2.0 with Zend OPcache v7.2.15-0ubuntu0.18.10.1 with Xdebug v2.6.0 Curl version : curl 7.63.0 (x86_64-pc-linux-gnu) libcurl/7.61.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) nghttp2/1.32.1 librtmp/2.3 Release-Date: 2018-12-12 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL Test script: --------------- How to reproduce (You will need composer) : 1- Fork the Symfony repository at : https://github.com/symfony/symfony 2- Be sure to be on the master branch. 3- Run inside the repository, the following command : `composer install` 4- Run inside the repository, the following command : `./phpunit src/Symfony/Component/HttpClient/Tests/` 5- You should see the segmentation fault error. More info : If you comment the lines 78 to 80 in the src/Symfony/Component/HttpClient/CurlHttpClient.php and re-run the previous phpunit command, the segmentation fault disappear. Expected result: ---------------- #!/usr/bin/env php PHPUnit 6.5.14 by Sebastian Bergmann and contributors. Testing src/Symfony/Component/HttpClient/Tests/ ............................................................... 63 / 199 ( 31%) ............................................................... 126 / 199 ( 63%) ............................................................... 189 / 199 ( 94%) .......... 199 / 199 (100%) Time: 12.74 seconds, Memory: 8.00MB OK (199 tests, 423 assertions) Actual result: -------------- #!/usr/bin/env php PHPUnit 6.5.14 by Sebastian Bergmann and contributors. Testing src/Symfony/Component/HttpClient/Tests/ Erreur de segmentation -- Edit bug report at https://bugs.php.net/bug.php?id=77747&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77747&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77747&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77747&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77747&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77747&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77747&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77747&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77747&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77747&r=support Expected behavior: https://bugs.php.net/fix.php?id=77747&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77747&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77747&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77747&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77747&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77747&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77747&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77747&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77747&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77747&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77747&r=mysqlcfg

« previous php.bugs (#219977) next »