Bug #68937 [Opn->Csd]: Segfault in curl_multi_exec

From: Date: Fri, 30 Jan 2015 05:13:24 +0000
Subject: Bug #68937 [Opn->Csd]: Segfault in curl_multi_exec
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190339@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68937&edit=1 ID: 68937 Updated by: laruence@php.net Reported by: danack@php.net Summary: Segfault in curl_multi_exec -Status: Open +Status: Closed Type: Bug Package: cURL related Operating System: Centos 64bit PHP Version: master-Git-2015-01-28 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=73288bbea498351a3123bb60d1ebafe477bd12a3 Log: Fixed bug #68937 (Segfault in curl_multi_exec) Previous Comments: ------------------------------------------------------------------------ [2015-01-30 04:01:52] laruence@php.net damned, composer is blocked in china.... ------------------------------------------------------------------------ [2015-01-29 12:55:13] danack@php.net mbeccati, > Also, with 5.6 curl_read is called with: > "PUT /rpm.example.com/LICENSE.md HTTP/1.1\r\nHost: s3-eu-..." > > whereas master's curl_read gets "PUT / HTTP/1.1\r\nHost: s3-eu-..." That would explain the large number of errors related to URLs that occur when running the test suite for the AWS sdk. The test suite for the AWS sdk is in that repo, but is only available if you 'git clone' it, as the zip archive has the test suite excluded, and is run with 'make test'. It has no errors on 5.6 and lots of seemingly related ones in 7. ------------------------------------------------------------------------ [2015-01-29 12:49:55] danack@php.net Hi Laruence, No, I'm not able to reduce it to a simple script. This is testing the Amazon AWS SDK, which is massive and I don't think it would be trivial to reproduce this bug outside of that SDK. However there are instructions on how to setup the example in the test script: // Download https://github.com/aws/aws-sdk-php and stick this file // in the root directory and do a composer update. ------------------------------------------------------------------------ [2015-01-29 11:38:24] laruence@php.net are you able to refine it to a simple script? I can not find the "autoload.php" in your example thanks ------------------------------------------------------------------------ [2015-01-29 09:24:38] mbeccati@php.net It looks like ch->handlers->read->res is NULL inside curl_read Also, with 5.6 curl_read is called with: "PUT /rpm.example.com/LICENSE.md HTTP/1.1\r\nHost: s3-eu-..." whereas master's curl_read gets "PUT / HTTP/1.1\r\nHost: s3-eu-..." ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=68937 -- Edit this bug report at https://bugs.php.net/bug.php?id=68937&edit=1

« previous php.bugs (#190339) next »