php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59299 Segmentation Fault when memcached.so in php.ini is present
Submitted: 2010-07-08 07:31 UTC Modified: 2013-02-18 00:35 UTC
From: stadnicki at gmail dot com Assigned:
Status: No Feedback Package: memcached (PECL)
PHP Version: 5.2.13 OS: FreeBSD 7.3 [amd64]
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-07-08 07:31 UTC] stadnicki at gmail dot com
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-05 17:05 UTC] johannes at schlueters dot de
memcached issue.

Please try to re-order your ini entries, this often helps on FreeBSD. Ifoyu can't get it sorted out please provide a stack trace.
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC