Bug #14142 Updated: curl_exec called twice crash

From: Date: Mon, 31 Dec 2001 15:42:26 +0000
Subject: Bug #14142 Updated: curl_exec called twice crash
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75433@lists.php.net to get a copy of this message
ID: 14142 Updated by: sterling Reported By: chassaing@domisys.com Old Status: Open Status: Closed Bug Type: cURL related Operating System: FreeBSD 4.1 PHP Version: 4.1.0RC2 New Comment: fixed in 4.1.* Previous Comments: ------------------------------------------------------------------------ [2001-11-20 06:47:29] chassaing@domisys.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-11-20 06:43:36] chassaing@domisys.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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14142&edit=1

« previous php.dev (#75433) next »