#44687 [Opn->Fbk]: curl_multi_* crashes apache randomly
| From: | scottmac@php.net | Date: | Sun, 13 Apr 2008 11:58:36 +0000 |
| Subject: | #44687 [Opn->Fbk]: curl_multi_* crashes apache randomly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124187@lists.php.net to get a copy of this message | ||
ID: 44687
Updated by: scottmac@php.net
Reported By: r_luca at tiscali dot it
-Status: Open
+Status: Feedback
Bug Type: cURL related
Operating System: windows vista
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
If the snapshot doesn't work can you give me a full reproduce script,
the code you put on the pastebin doesn't show how you use it.
When you say 100 requests is that from the one request or is it
multiple requests?
Previous Comments:
------------------------------------------------------------------------
[2008-04-13 06:06:15] r_luca at tiscali dot it
Sorry, bad English. What i meant is that the only backtrace that i'm
getting so far after few crashes is the one posted. DD set for php as
well as shown on the tutorial beside httpd.exe doesn't catch any
backtrace. I think the problem is apache.
------------------------------------------------------------------------
[2008-04-13 06:03:43] r_luca at tiscali dot it
Sorry but the only backtrace that i've got from the crash is only same
as the one that i've submitted. Php (set as well with debug diagnostics,
following your tutorial)monitoring doesn't report anything at all.
------------------------------------------------------------------------
[2008-04-11 08:47:27] scottmac@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
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
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.
------------------------------------------------------------------------
[2008-04-11 00:53:46] r_luca at tiscali dot it
Description:
------------
Using curl multi to send requests and retrieving the header with a
callback function, apache crashes randomly (sometimes after 100
requests, other times after 600 or 6000 or 25000, sometimes it doesn't).
Reproduce code:
---------------
http://www.pastebin.org/28896
Actual result:
--------------
Thread 70 - System ID 4680
Entry point msvcrt!_endthreadex+6f
Create time 10/04/2008 23.15.14
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0
Function Arg 1 Arg 2 Arg 3 Source
php_curl!get_module+17ed8 044d9748 00000000 11338e90
php_curl!get_module+11f51 044d9718 0e2e0888 044d9748
php_curl!get_module+b47d 11c30008 04256218 05aacbb8
php_curl!get_module+24d82 00000000 00000000 00000000
PHP_CURL!GET_MODULE+17ED8WARNING - DebugDiag was not able to locate
debug symbols for php_curl.dll, so the information below may be
incomplete.
In
httpd__PID__2004__Date__04_10_2008__Time_11_15_14PM__470__Second_Chance_Exception_C0000005.dmp
the assembly instruction at php_curl!get_module+17ed8 in
c:\php5\ext\php_curl.dll from The PHP Group has caused an access
violation exception (0xC0000005) when trying to read from memory
location 0x00000008 on thread 70
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44687&edit=1