Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

php5-fpm: free(): invalid pointer: 0x00007f74c8c5bb00 #58

Closed
iGuy5 opened this issue Jul 1, 2014 · 4 comments
Closed

php5-fpm: free(): invalid pointer: 0x00007f74c8c5bb00 #58

iGuy5 opened this issue Jul 1, 2014 · 4 comments

Comments

@iGuy5
Copy link

iGuy5 commented Jul 1, 2014

The issue that that when restarting or starting php5-fpm I'm receiving this:
http://pastebin.com/p4XVr7T3

-OS: Debian 7 Wheezy
-Architecture: amd64
-Which SAPI: CGI PHP

-sources.list
deb http://debian.mirrors.ovh.net/debian/ wheezy main
deb-src http://debian.mirrors.ovh.net/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all

deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all

deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx

sources.list.d is empty.

root@server:# dpkg -l 'php*' | grep '^.i'
ii php-pear 5.5.14-1
dotdeb.1 all PEAR - PHP Extension and Application Repository
ii php5 5.5.14-1dotdeb.1 all server-side, HTML-embedded scripting language (metapackage)
ii php5-cgi 5.5.14-1
dotdeb.1 amd64 server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.5.14-1dotdeb.1 amd64 command-line interpreter for the php5 scripting language
ii php5-common 5.5.14-1
dotdeb.1 amd64 Common files for packages built from the php5 source
ii php5-curl 5.5.14-1dotdeb.1 amd64 CURL module for php5
ii php5-dev 5.5.14-1
dotdeb.1 amd64 Files for PHP5 module development
ii php5-fpm 5.5.14-1dotdeb.1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-gd 5.5.14-1
dotdeb.1 amd64 GD module for php5
ii php5-geoip 5.5.14-1dotdeb.1 amd64 geoip module for php5
ii php5-imagick 5.5.14-1
dotdeb.1 amd64 imagick module for php5
ii php5-imap 5.5.14-1dotdeb.1 amd64 IMAP module for php5
ii php5-mcrypt 5.5.14-1
dotdeb.1 amd64 MCrypt module for php5
ii php5-memcache 5.5.14-1dotdeb.1 amd64 memcache module for php5
ii php5-mysqlnd 5.5.14-1
dotdeb.1 amd64 MySQL module for php5 (Native Driver)
ii php5-pspell 5.5.14-1dotdeb.1 amd64 pspell module for php5
ii php5-readline 5.5.14-1
dotdeb.1 amd64 Readline module for php5
ii php5-recode 5.5.14-1dotdeb.1 amd64 recode module for php5
ii php5-snmp 5.5.14-1
dotdeb.1 amd64 SNMP module for php5
ii php5-sqlite 5.5.14-1dotdeb.1 amd64 SQLite module for php5
ii php5-tidy 5.5.14-1
dotdeb.1 amd64 tidy module for php5
ii php5-xmlrpc 5.5.14-1dotdeb.1 amd64 XML-RPC module for php5
ii php5-xsl 5.5.14-1
dotdeb.1 amd64 XSL module for php5
root@server:~#

@rraptorr
Copy link

rraptorr commented Jul 1, 2014

Ensure that you have PHP 'opcache' module enabled exactly once in /etc/php5/fpm. PHP really does not like to have two instances of opcache and throws various similar errors.

@iGuy5
Copy link
Author

iGuy5 commented Jul 1, 2014

Interesting. I removed opcache.ini and restarted php5-fpm and I did not receive the error. Re-enabled opcache.ini and I received the error again. inside opcache.ini I have the following

; configuration for php ZendOpcache module
; priority=05
zend_extension=opcache.so

opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.fast_shutdown=1

I looked inside /etc/php5/fpm/php.ini and while I see opcache all lines are disabled...

any insight on what I'm doing wrong here ?

@rraptorr
Copy link

rraptorr commented Jul 1, 2014

You have enabled opcache twice or more. Simply grep your entire configuration and ensure that you have only one zend_extension line.

@iGuy5
Copy link
Author

iGuy5 commented Jul 1, 2014

Thank you sir. I had

/etc/php5/fpm/conf.d/20-opcache.ini
and
/etc/php5/fpm/conf.d/5-opcache.ini

All fixed now. Again thank you kindly for helping.

@gplessis gplessis closed this as completed Jul 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants