php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59500 Segmentation fault
Submitted: 2010-11-09 08:40 UTC Modified: 2010-11-24 20:48 UTC
From: karavan01 at yandex dot ru Assigned:
Status: Closed Package: memcached (PECL)
PHP Version: 5.3.3 OS: FreeBSD 7.3 (amd64)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 - 6 = ?
Subscribe to this entry?

 
 [2010-11-09 08:40 UTC] karavan01 at yandex dot ru
Description:
------------
I can't install pecl-memcached properly - after installation "php -v" outputs:
# php -v
PHP 5.3.3 with Suhosin-Patch (cli) (built: Nov  9 2010 10:39:37)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
Ошибка сегментации


"Ошибка сегментации" = Segmentation fault in russian.

All versions are up to date... php5_5.3.3_2, libmemcached-0.44, pecl-memcached-1.0.2

I've rebuilded php twice with "portupgrade -rf php5_5.3.3_2"
twice pecl-memcached and memcached database... also, reinstalled it with "make clean... deinstall... install"
nothing helps.

If I write "extension=memcached.so" before "extension=session.so" in extensions.ini, than I get:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/memcached.so' - /usr/local/lib/php/20090626/memcached.so: Undefined symbol "php_session_create_id" in Unknown on line 0

and if after it... segmentation fault without core dump. I can't find any hints to fix the problem....


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-21 14:33 UTC] karavan01 at yandex dot ru
I tried to install pecl-memcached on second machine:
FreeBSD someserver.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sat Jul 11 17:09:56 MSD 2009     a@someserver.com:/usr/obj/usr/src/sys/KERNEL  i386

but got segmentation fault too. Now I have core dump:

total 2774
-rw-r--r--  1 root  wheel     1186  7 jun 21:28 Makefile
-rw-r--r--  1 root  wheel      207  7 jun 21:28 distinfo
-rw-------  1 root  wheel  2813952 21 nov 22:13 php.core
-rw-r--r--  1 root  wheel      328  9 feb  2009 pkg-descr
# which php
/usr/local/bin/php
# gdb /usr/local/bin/php php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
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/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libpcre.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
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/libevent-1.4.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libevent-1.4.so.3
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librt.so.1
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 /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 /usr/local/lib/php/20090626/eaccelerator.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20090626/eaccelerator.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x291890a0 in ?? ()
(gdb) bt
#0  0x291890a0 in ?? ()
#1  0x28687234 in pthread_mutex_destroy () from /lib/libc.so.7
#2  0x2841efc8 in xmlFreeMutex () from /usr/local/lib/libxml2.so.5
#3  0x2841e844 in xmlCleanupGlobals () from /usr/local/lib/libxml2.so.5
#4  0x283b0a0a in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
#5  0x08093a2b in php_libxml_shutdown ()
#6  0x08093a5b in zm_shutdown_libxml ()
#7  0x0819d2ae in module_destructor ()
#8  0x081a4304 in zend_hash_apply_deleter ()
#9  0x081a4548 in zend_hash_graceful_reverse_destroy ()
#10 0x08198bfe in zend_shutdown ()
#11 0x08145d5a in php_module_shutdown ()
#12 0x0821b3c3 in main ()
#13 0x28706080 in ?? ()
#14 0x0829cd36 in mysqlnd_deps ()
#15 0x082bbb0e in labels.39742 ()
#16 0x082bbb05 in labels.39742 ()
#17 0x0826f612 in arginfo_sql_regcase ()
#18 0x2926e0c0 in ?? ()
#19 0x282c3b36 in dlopen () from /libexec/ld-elf.so.1
#20 0x0805aef9 in _start ()
#21 0x00000002 in ?? ()
(gdb)
 [2010-11-24 20:47 UTC] karavan01 at yandex dot ru
Problem solved after rebuilding php with option LINKTHR:
LINKTHR=off (default) "Link thread lib (for threaded extensions)"
pecl-memcached is threaded extension...
 [2010-11-24 20:48 UTC] karavan01 at yandex dot ru
so, ticket closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC