[PECL-BUG] Bug #17700 [NEW]: Segmentation Fault when memcached.so in php.ini is present

[email protected] ("stadnicki at gmail dot com") 8 Jul 2010 11:31:05 -0000
Newsgroups php.pear.doc
Message-ID <[email protected]>
From:             stadnicki at gmail dot com
Operating system: FreeBSD 7.3 [amd64]
Package version:  
PHP version:      5.2.13
Package:          Documentation
Bug Type:         Bug
Bug description:  Segmentation Fault when memcached.so in php.ini is present

Description:
------------
FreeBSD 7.3 compiled as adm64.
libmemcached-0.40 (from /usr/ports)
libxml2-2.7.7 (from /usr/ports patched and not patched)
PHP-5.2.13 (from source code)
trying memcached-1.0.0, memcached-1.0.1 and memcached-1.0.2 (from source
code and from /usr/ports)

PHP ./configure
'--prefix=/usr/local/php-5.2.13' '--target=i686-pc-freebsd'
'--disable-debug' '--enable-exif' '--enable-libxml' '--enable-soap'
'--with-iconv' '--with-zlib' '--enable-cli' '--with-curl'
'--enable-mbstring=all' '--with-gettext'
'--with-apxs2=/usr/local/apache/bin/apxs' '--with-gd' '--with-openssl'
'--with-freetype-dir=/home/www' '--with-jpeg-dir'
'--with-pear=/usr/local/php/lib/php' '--with-freetype-dir=/home/www/'
'--with-mysql=/usr/local/mysql' '--with-mssql' '--with-mcrypt'

PHP modules (via `php -m'):
[PHP Modules]
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gpassmode
hash
iconv
ionCube Loader
json
libxml
mbstring
mcrypt
mssql
mysql
openssl
pcre
pdf
PDO
pdo_mysql
pdo_sqlite
posix
rc4
Reflection
rst_sql
session
SimpleXML
soap
SPL
SQLite
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
Xdebug
the ionCube PHP Loader

PHP modules via extension in php.ini:
extension=pdf.so
extension=rst_sql.so
extension=gpassmode.so
extension=pdo_mysql.so
extension=fileinfo.so
extension=rc4.so

installing memcached.so via /usr/ports (as a module for PHP 5.3.2) - OK
installing memcached.so from source code (source from pecl.php.net,
phpize) - OK

When added in php.ini:
extension=memcached.so
then run `php -m', PHP is dumping core "Segmentation fault: 11 (core
dumped)"


dmesg: pid 54936 (php), uid 0: exited on signal 11 (core dumped)



Reproduce code:
---------------
in php.ini:
extension=memcached.so

Expected result:
----------------
in shell:
[ root@fbsd73 ~]# php -m
[PHP Modules]
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gpassmode
hash
iconv
ionCube Loader
json
libxml
mbstring
mcrypt
memcached
mssql
mysql
openssl
pcre
pdf
PDO
pdo_mysql
pdo_sqlite
posix
rc4
Reflection
rst_sql
session
SimpleXML
soap
SPL
SQLite
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
Xdebug
the ionCube PHP Loader

Actual result:
--------------
[PHP Modules]
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gpassmode
hash
iconv
ionCube Loader
json
libxml
mbstring
mcrypt
memcached
mssql
mysql
openssl
pcre
pdf
PDO
pdo_mysql
pdo_sqlite
posix
rc4
Reflection
rst_sql
session
SimpleXML
soap
SPL
SQLite
standard
tokenizer
xdebug
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
Xdebug
the ionCube PHP Loader

Segmentation fault: 11 (core dumped)

-- 
Edit bug report at http://pecl.php.net/bugs/bug.php?id=17700&edit=1
--