#50397 [NEW]: PHP CLI core dumped when curl extension enabled
| From: | ABOCb at yandex dot ru | Date: | Mon, 07 Dec 2009 11:36:01 +0000 |
| Subject: | #50397 [NEW]: PHP CLI core dumped when curl extension enabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-145473@lists.php.net to get a copy of this message | ||
From: ABOCb at yandex dot ru
Operating system: FreeBSD 7.2
PHP version: 5.2.11
PHP Bug Type: cURL related
Bug description: PHP CLI core dumped when curl extension enabled
Description:
------------
PHP 5.2.1, compiled from ports. Extensions allowed: session, ctype, iconv,
mbstring, gd, zlib, pcre, mysql, simplexml, xml, spl.
Work correctly as Apache module as CLI. After allowing curl extension, got
a segmentation fault:
$ php -v
PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Dec 7 2009 17:13:42)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Segmentation fault: 11 (core dumped)
GDB backtrace:
$ gdb /usr/local/bin/php php.core
GNU gdb 6.1.1 [FreeBSD]
...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libm.so.5...(no debugging symbols
found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols
found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x28cc5410 in ?? ()
(gdb) where
#0 0x28cc5410 in ?? ()
#1 0x285a15eb in pthread_once () from /lib/libc.so.7
#2 0x28347162 in xmlIsMainThread () from /usr/local/lib/libxml2.so.5
#3 0x28346717 in __xmlLastError () from /usr/local/lib/libxml2.so.5
#4 0x282d2847 in xmlResetLastError () from /usr/local/lib/libxml2.so.5
#5 0x282d98df in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
#6 0x0808475b in php_libxml_shutdown ()
#7 0x0808478b in zm_shutdown_libxml ()
#8 0x0814bc3e in module_destructor ()
#9 0x08151fa4 in zend_hash_apply_deleter ()
#10 0x081521e8 in zend_hash_graceful_reverse_destroy ()
#11 0x081484be in zend_shutdown ()
#12 0x081061df in php_module_shutdown ()
#13 0x081c54a0 in main ()
--
Edit bug report at http://bugs.php.net/?id=50397&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50397&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50397&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50397&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50397&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50397&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50397&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50397&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50397&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50397&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50397&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50397&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50397&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50397&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50397&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50397&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50397&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50397&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50397&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50397&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50397&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50397&r=mysqlcfg