php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14142 curl_exec called twice crash
Submitted: 2001-11-20 06:43 UTC Modified: 2001-12-31 10:42 UTC
From: chassaing at domisys dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 4.1.0RC2 OS: FreeBSD 4.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chassaing at domisys dot com
New email:
PHP Version: OS:

 

 [2001-11-20 06:43 UTC] chassaing at domisys dot com
When calling curl_exec twice with RETURNTRANSFER option there's a (reproductible) core dump. Here's a test case :

$ch=curl_init();
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_URL,'http://www.yahoo.com');
curl_exec($ch);
echo('this text is displayed');
curl_exec($ch);
echo('this text is not displayed (core dump instead)');

The problem shows up in 4.1.0RC1 AND 4.1.0RC2 (but not 4.0.6). If you remove the RETURNTRANSFER option then it works fine. I'm affraid I don't have the knowledge to compile a debug version and give more infos.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-20 06:47 UTC] chassaing at domisys dot com
Forgot the compile options :

 './configure' '--with-gd=/usr/home/domi4/src/gd-1.8.4' '--enable-exif' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--enable-gd-native-ttf' '--with-mysql=/usr/local' '--disable-pear' '--with-config-file-path=/usr/home/domi4/etc' '--enable-debug=no' '--enable-force-cgi-redirect=yes' '--with-zlib' '--with-openssl=/usr/local/ssl' '--with-curl=/usr/home/domi4/src/curl-7.9' '--with-dom=/usr/home/domi4/'
 [2001-12-31 10:42 UTC] sterling@php.net
fixed in 4.1.*
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 17:01:30 2025 UTC