Bug #77747 [Opn->Fbk]: Segmentation fault with curl
| From: | danack@php.net | Date: | Fri, 15 Mar 2019 15:41:03 +0000 |
| Subject: | Bug #77747 [Opn->Fbk]: Segmentation fault with curl | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219978@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77747&edit=1
ID: 77747
Updated by: danack@php.net
Reported by: anthony dot martin at sensiolabs dot com
Summary: Segmentation fault with curl
-Status: Open
+Status: Feedback
Type: Bug
Package: cURL related
Operating System: Ubuntu 18.10
PHP Version: 7.2.16
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Please provide the backtrace if you have this happening in front of you
Previous Comments:
------------------------------------------------------------------------
[2019-03-15 15:35:02] anthony dot martin at sensiolabs dot com
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 this bug report at https://bugs.php.net/bug.php?id=77747&edit=1