|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39246 Segmentation fault
Submitted: 2006-10-24 11:32 UTC Modified: 2006-11-01 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: zhangshun dot net at gmail dot com Assigned:
Status: No Feedback Package: cURL related
PHP Version: 5.1.6 OS: Linux
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.
Block user comment
Status: Assign to:
Bug Type:
From: zhangshun dot net at gmail dot com
New email:
PHP Version: OS:


 [2006-10-24 11:32 UTC] zhangshun dot net at gmail dot com
It's happened when I want to work under https

Segmentation fault 

*** glibc detected *** double free or corruption (fasttop): 0x09149758 *** Aborted

But in win32, It's ok.

Reproduce code:
   $url = '';
   $params = "name=your_name&";
   $user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";

   $ch = curl_init();
   curl_setopt($ch, CURLOPT_POST,1);
   curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
   curl_setopt($ch, CURLOPT_URL,$url);
   curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2);
   curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
   $result=curl_exec ($ch);
   curl_close ($ch);

   echo("Results: <br>".$result);

Expected result:
Get https's result.

Actual result:
But get error string.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-24 11:45 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-11-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jun 05 20:03:39 2023 UTC