|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-2041827 ] Segfault in http_output_auth w/ FORBID_REUSE (7.18.2)
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 07 Aug 2008 15:40:13 +0000
Bugs item #2041827, was opened at 2008-08-07 17:40
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
In my PHP application I do not receive a segmentation fault but a sig abort sent from glibc:
*** glibc detected *** double free or corruption (fasttop): 0x0879d1a0 ***
For my application is quite big I have tried to isolate the problem with a simpler script. Now I get segfaults instead of the sigabort, but that might be caused by the same problem.
I use the multi api to perform two requests to the same server at once. One of the requests receives a 200 response directly, the other has to follow one redirect to get the 200. Everything works fine until I set CURLOPT_FORBID_REUSE (= true). Then every now and then (more than 1 out of 10) the program segfaults with a backtrace ending in http_output_auth:
-------------------------------
As the client PHP script I have used the curl_multi_exec_example from http://de.php.net/manual/en/function.curl-multi-exec.php. Besides the URLs the only significant change is that I have CURLOPT_FORBID_REUSE set.
// create both cURL resources
// set URL and other appropriate options
curl_setopt($ch1, CURLOPT_FORBID_REUSE, true);
curl_setopt($ch2, CURLOPT_FOLLOWLOCATION, true);
/* from here on no changes to the example from http://de.php.net/manual/en/function.curl-multi-exec.php */
//create the multiple cURL handle
//add the two handles
$active = null;
while ($active && $mrc == CURLM_OK) {
//close the handles
As the server side script you can use s/th like this:
-------------------------------
I don't think it is http_output_auth's fault. That is probably just the first place where the error occurs.
The segfaults disapper when either
I use PHP-5.2.6, libcurl-7.18.2 on Debian etch.
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info