From: erica at erica dot biz
Operating system: CentOS 4.4
PHP version: 5.2.5
PHP Bug Type: Reproducible crash
Bug description: PHP 5.2.5 crashes with call to curl 7.16.2
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 ?? ()
--
Edit bug report at http://bugs.php.net/?id=43620&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43620&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43620&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43620&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43620&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43620&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43620&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43620&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43620&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43620&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43620&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43620&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43620&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43620&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43620&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43620&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43620&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43620&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43620&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43620&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43620&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43620&r=mysqlcfg