php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66313 php-fpm segmentation fault with php_recode
Submitted: 2013-12-17 23:33 UTC Modified: 2015-06-05 23:27 UTC
From: agapov dot slava at mail dot ru Assigned:
Status: Suspended Package: Recode related
PHP Version: 5.5.7 OS: Freebsd 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: agapov dot slava at mail dot ru
New email:
PHP Version: OS:

 

 [2013-12-17 23:33 UTC] 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




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-31 07:54 UTC] bjori@php.net
-Status: Open +Status: Suspended
 [2014-01-31 07:54 UTC] 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 :(
 [2014-01-31 07:55 UTC] bjori@php.net
Missed the doc link explaining this: http://www.php.net/recode.installation
 [2015-06-05 23:27 UTC] cmb@php.net
Gee! This extension certainly has been missed for
<https://wiki.php.net/rfc/removal_of_dead_sapis_and_exts>.
 [2015-08-31 18:01 UTC] pavel at paxana dot net
very thanks.
 [2015-10-21 20:20 UTC] sebastian at wolfgarten dot com
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC