php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60371 Curl request making Segmentation Fault
Submitted: 2011-11-24 09:02 UTC Modified: 2011-11-29 13:20 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:5 (100.0%)
From: sirshurf at yahoo dot com Assigned:
Status: Not a bug Package: OpenSSL related
PHP Version: 5.3.8 OS: Ubuntu Server 11.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sirshurf at yahoo dot com
New email:
PHP Version: OS:

 

 [2011-11-24 09:02 UTC] sirshurf at yahoo dot com
Description:
------------
Simple php code (in the text string)

Ubuntu Server 11.10
Using PHP 5.3.8 via Zend Server 5.5.0
Apache 2
OpenSSL 1.0.0e (installed default with 11.10 no other options exists...)

Getting Segmentation fault in apache.

Additional info:

Works on Ubuntu Desktop with openSSL 1.0.0e
Works via CLI
Only failing with curl on SSL requests.

No changes using different clippers

Found a bug report on launchpad:
https://bugs.launchpad.net/ubuntu/+source/curl/+bug/880756


Test script:
---------------
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://redsvn.ef.technion.ac.il');
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,15);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT,30);
echo(curl_exec($ch));
curl_close($ch);

Expected result:
----------------
Curl Result

Actual result:
--------------
Segmentation Fault (11)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-29 13:20 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

According to valgrind the code appears to trigger errors inside openssl, I 
suspect the memory corruptions caused by it is what is causing PHP to crash in 
Apache environment.
 [2011-11-29 13:20 UTC] iliaa@php.net
-Status: Open +Status: Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC