Bug #66313 [Com]: php-fpm segmentation fault with php_recode
| From: | sebastian at wolfgarten dot com | Date: | Wed, 21 Oct 2015 20:20:31 +0000 |
| Subject: | Bug #66313 [Com]: php-fpm segmentation fault with php_recode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196732@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66313&edit=1
ID: 66313
Comment by: sebastian at wolfgarten dot com
Reported by: agapov dot slava at mail dot ru
Summary: php-fpm segmentation fault with php_recode
Status: Suspended
Type: Bug
Package: Recode related
Operating System: Freebsd 10
PHP Version: 5.5.7
Block user comment: N
Private report: N
New Comment:
Hi,
please also remove the recode.so from PHP extensions.ini file. Took me hours to figure this one out.
Without the file being commented out, PHP segfaults on startup.
Best regards
Sebastian
Previous Comments:
------------------------------------------------------------------------
[2015-08-31 18:01:42] pavel at paxana dot net
very thanks.
------------------------------------------------------------------------
[2015-06-05 23:27:42] cmb@php.net
Gee! This extension certainly has been missed for
<https://wiki.php.net/rfc/removal_of_dead_sapis_and_exts>.
------------------------------------------------------------------------
[2014-01-31 07:55:04] bjori@php.net
Missed the doc link explaining this: http://www.php.net/recode.installation
------------------------------------------------------------------------
[2014-01-31 07:54:01] bjori@php.net
That... Sucks.
I don't know why we still bundle it. The lib hasn't been updated for 6 years so noone
really cares...
Anyway. Nothing we can do really :(
------------------------------------------------------------------------
[2013-12-17 23:33:34] agapov dot slava at mail dot ru
Description:
------------
uname -a
FreeBSD freebsd.redwebstudio.ru 10.0-RC1 FreeBSD 10.0-RC1 #0 r259068: Sat Dec 7 17:45:20 UTC 2013
root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
php55-5.5.7 PHP Scripting Language
php55-recode-5.5.7 The recode shared extension for php
/usr/local/etc/rc.d/php-fpm onestart
Starting php_fpm.
Segmentation fault (core dumped)
#0 hash_lookup (hashtab=0x810014650, key=0x7fffffffb1e0 "ä�\f\b") at misc.c:349
349 for (ret = hashtab->table[hash_index (hashtab,key)]; ret; ret = ret->next)
[New Thread 802806400 (LWP 100391/php-fpm)]
(gdb) bt
#0 hash_lookup (hashtab=0x810014650, key=0x7fffffffb1e0 "ä�\f\b") at misc.c:349
#1 0x000000080cefdd75 in find_alias () from /usr/local/lib/librecode.so.3
#2 0x000000080ceff98b in recode_new_outer () from /usr/local/lib/librecode.so.3
#3 0x000000080cc72f0a in zm_startup_recode () from /usr/local/lib/php/20121212-debug/recode.so
#4 0x00000000007201e1 in zend_startup_module_ex (module=0x802989ec0) at zend_API.c:1759
#5 0x000000000072fdf6 in zend_hash_apply (ht=0xb6b788, apply_func=0x71ffe0
<zend_startup_module_ex>) at zend_hash.c:716
#6 0x0000000000720677 in zend_startup_modules () at zend_API.c:1886
#7 0x000000000066b0c5 in php_module_startup (sf=0xb50570, additional_modules=0xb506a0,
num_additional_modules=1) at main.c:2212
#8 0x00000000007f3e32 in php_cgi_startup (sapi_module=0xb50570) at
/usr/ports/lang/php55/work/php-5.5.7/sapi/fpm/fpm/fpm_main.c:856
#9 0x00000000007f1964 in main (argc=1, argv=0x7fffffffdb00) at
/usr/ports/lang/php55/work/php-5.5.7/sapi/fpm/fpm/fpm_main.c:1776
Current language: auto; currently minimal
After remove php55-recode-5.5.7 that's problem was solved.
# pkg delete php55-recode
[1/1] Deleting php55-recode-5.5.7... done
# /usr/local/etc/rc.d/php-fpm onestart
Starting php_fpm.
Created directory: /var/net-snmp
Created directory: /var/net-snmp/mib_indexes
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66313&edit=1