Bug #12018: curl_exec() kills script
| From: | colin at easydns dot com | Date: | Tue, 10 Jul 2001 15:45:56 +0000 |
| Subject: | Bug #12018: curl_exec() kills script | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59563@lists.php.net to get a copy of this message | ||
From: colin@easydns.com
Operating system: Debian (2.4.5)
PHP version: 4.0.6
PHP Bug Type: cURL related
Bug description: curl_exec() kills script
Every script I have that uses cURL never makes it past the curl_exec()
line. Apache just seems to die at that point. Apache error log shows:
[Tue Jul 10 11:43:40 2001] [notice] child pid 27769 exit signal
Segmentation fault (11)
[Tue Jul 10 11:43:40 2001] [notice] child pid 27768 exit signal
Segmentation fault (11)
This is with PHP-4.0.6 Release, and cURL 7.8 final, on Debian (2.4.5-pre3).
cURL is configured:
configure --with-ssl
PHP is:
./configure \
--with-mysql=/usr/local \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars \
--disable-magic-quotes \
--disable-debug \
--enable-ftp \
--with-gettext \
--with-xml \
--with-dom \
--enable-wddx \
--with-curl \
--with-pgsql \
--with-zlib \
--enable-versioning \
--enable-sockets \
--with-openssl \
--with-snmp \
--with-mcrypt
I was able to determine the following:
I have one script that cURL-posts to another URL on the same server, and
that script then cURL-posts to a URL outside. In this case, the first
script dies.
I have another script that directly cURL-posts to the outside URL. This
script works fine.
So it only seems to die if there are 2 cURL processes running on the same
server simultaneously (?). This would explain the 2 segfaults in the
Apache log.
Let me know what other info I can give to help track down the problem.
- Colin
--
Edit bug report at: http://bugs.php.net/?id=12018&edit=1