Bug #17782 Updated: Apache2 crashes on curl_exec()

From: Date: Sun, 16 Jun 2002 21:15:11 +0000
Subject: Bug #17782 Updated: Apache2 crashes on curl_exec()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10799@lists.php.net to get a copy of this message
ID: 17782 Updated by: erik@nflare.com Reported By: erik@nflare.com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: WinXP PHP Version: 4.2.1 New Comment: Derick, I went to that page, but I couldn't find any information on how to run the backtrace in Windows. Looked like all unix commands to me. Could you please help me? Thanks. Previous Comments: ------------------------------------------------------------------------ [2002-06-16 09:46:41] derick@php.net 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 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. ------------------------------------------------------------------------ [2002-06-16 09:09:27] erik@nflare.com Heres the error.log entry for the crash: [Sun Jun 16 09:07:20 2002] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Sun Jun 16 09:07:21 2002] [notice] Parent: Created child process 2692 [Sun Jun 16 09:07:21 2002] [notice] Child 2692: Child process is running [Sun Jun 16 09:07:22 2002] [notice] Child 2692: Acquired the start mutex. [Sun Jun 16 09:07:22 2002] [notice] Child 2692: Starting 250 worker threads. ------------------------------------------------------------------------ [2002-06-16 09:00:38] erik@nflare.com The example script from the documentation causes the crash everytime: <?php $ch = curl_init ("http://www.erikmc.com/index.html"); $fp = fopen ("example_homepage.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); $fp1 = fopen ("example_homepage1.txt", "w"); curl_setopt ($ch, CURLOPT_HEADER, 0); $fp2 = fopen ("example_homepage2.txt", "w"); curl_exec ($ch); $fp3 = fopen ("example_homepage3.txt", "w"); curl_close ($ch); $fp4 = fopen ("example_homepage4.txt", "w"); fclose ($fp); $fp5 = fopen ("example_homepage5.txt", "w"); ?> I wrote all the fopens so I could see which statement it crashed on everytime. And that statement is this one: curl_exec ($ch); Whenever I run this script it says Apache2 has encountered an error and needs to be closed, but the ie windows doesnt close, and the Apache2 server is still running. Maybe thats WinXP handling an error quietly or something. The example_homepage.txt is still blank. I enabled ctype, curl, gd2, ming, printer, and zlib. I thank you for your time. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17782&edit=1

« previous php.bugs (#10799) next »