Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error " free(): invalid pointer " occur when opcache loaded @ php5.4.x #188

Closed
cosmicdusts opened this issue Jul 15, 2014 · 1 comment
Closed

Comments

@cosmicdusts
Copy link

php.5.4.28 & php.5.4.30
opcache 7.0.3 & opcache 7.0.2

[root@MYHOST ~]# /path/to/php-5.4/bin/php -i |fgrep opcache.
opcache.blacklist_filename => no value => no value
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => On => On
opcache.enable_file_override => Off => Off
opcache.error_log => /tmp/opcache.err => /tmp/opcache.err
opcache.fast_shutdown => 1 => 1
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.inherited_hack => On => On
opcache.interned_strings_buffer => 8 => 8
opcache.load_comments => 1 => 1
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 4000 => 4000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 128 => 128
opcache.optimization_level => 0xFFFFFFFF => 0xFFFFFFFF
opcache.preferred_memory_model => no value => no value
opcache.protect_memory => 0 => 0
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 60 => 60
opcache.revalidate_path => Off => Off
opcache.save_comments => 1 => 1
opcache.use_cwd => On => On
opcache.validate_timestamps => On => On
*** glibc detected *** /path/to/php-5.4/bin/php: free(): invalid pointer: 0x00007f55bb0fab00 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x76166)[0x7f55cd18f166]
/path/to/php-5.4/bin/php(php_module_shutdown+0x2a)[0x6f912a]
/path/to/php-5.4/bin/php[0x800e65]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f55cd137d1d]
/path/to/php-5.4/bin/php[0x42c3a9]

[root@MYHOST ~]# uname -a
Linux MYHOST 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[root@MYHOST ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)

@cosmicdusts cosmicdusts changed the title php5.4.x 加载opcache 出现问题 free(): invalid pointer error " free(): invalid pointer " occur when opcache loaded @ php5.4.x Jul 15, 2014
@cosmicdusts
Copy link
Author

sorry everyone,
that is not a bug,
I compiled PHP with two flags , --with-config-file-path and --with-config-file-scan-dir
but the two value are the same,
That led to load php.ini twice... so.. Something happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants