php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43620 PHP 5.2.5 crashes with call to curl 7.16.2
Submitted: 2007-12-18 08:01 UTC Modified: 2007-12-18 13:48 UTC
From: erica at erica dot biz Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.2.5 OS: CentOS 4.4
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: erica at erica dot biz
New email:
PHP Version: OS:

 

 [2007-12-18 08:01 UTC] erica at erica dot biz
Description:
------------
PHP 5.2.5 is crashing (segfault) when PHP programs call to curl 7.16.2. Upgrading to curl 7.17.1 fixes the problem, but this should not be a crash issue.

Reproduce code:
---------------
WP-openid (Wordpress OpenID plugin -- calls to curl)

Expected result:
----------------
Should give a PHP error message, not a segfault

Actual result:
--------------
bt using gdb:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209010496 (LWP 26155)]
0x012319be in add_assoc_string_ex (arg=0xb6e756e4, key=0x12f82db "libz_version", 
    key_len=13, str=0x0, duplicate=1)
    at /usr/local/directadmin/customapache/php-5.2.5/Zend/zend_API.c:1032
1032            ZVAL_STRING(tmp, str, duplicate);
(gdb) bt
#0  0x012319be in add_assoc_string_ex (arg=0xb6e756e4, key=0x12f82db "libz_version", 
    key_len=13, str=0x0, duplicate=1)
    at /usr/local/directadmin/customapache/php-5.2.5/Zend/zend_API.c:1032
#1  0x01038bb2 in zif_curl_version (ht=0, return_value=0xb6e756e4, return_value_ptr=0x0, 
    this_ptr=0x0, return_value_used=1)
    at /usr/local/directadmin/customapache/php-5.2.5/ext/curl/interface.c:1045
#2  0x0708af6b in get_module ()
   from /usr/local/Zend/lib/Optimizer-3.2.8/php-5.2.x/ZendOptimizer.so
#3  0x00000000 in ?? ()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-18 13:48 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC