php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59803 Segmentation Fault with PHP 5.3.5 and Apache 2.2.17
Submitted: 2011-06-06 09:19 UTC Modified: 2011-06-09 10:02 UTC
From: fjbejarano at gmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.3.5 OS: CentOS 5.6 64 Bits
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fjbejarano at gmail dot com
New email:
PHP Version: OS:

 

 [2011-06-06 09:19 UTC] fjbejarano at gmail dot com
Description:
------------
I have instaled PHP 5.3.5 from source code in CentOS 5.6 with this result.

php -i | head
phpinfo()
PHP Version => 5.3.5

System => Linux MYHOST 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64
Build Date => Jun  6 2011 10:01:10
Configure Command =>  './configure'  '--with-libdir=lib64' '--prefix=/usr/local/php' '--sysconfdir=/etc' '--with-config-file-path=/etc' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-mysqli' '--enable-cli' '--with-libxml-dir' '--with-openssl' '--with-zlib' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-zlib-dir' '--with-xpm-dir' '--with-freetype-dir' '--with-t1lib' '--with-mhash' '--with-ldap' '--with-ldap-sasl' '--enable-pdo' '--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' '--enable-mbstring' '--with-mcrypt' '--with-readline' '--enable-sockets' '--with-tidy' '--enable-zip' '--with-pear' '--with-xsl' '--enable-gd-native-ttf' '--enable-soap' '--enable-phar'
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

Then, I run

pecl install apc

This install apc 3.1.9 with no errors but when I restart apache and enable apc in /etc/php.ini with this line

extension=apc.so

I have a segmentation fault error (in CLI and apache) If I comment extension=apc.so in php.ini I run php CLI and apache ok.

My GDB is

# gdb  /usr/local/php/lib/php/extensions/no-debug-zts-20090626/apc.so
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/php/lib/php/extensions/no-debug-zts-20090626/apc.so...done.
(gdb) run
Starting program: /usr/local/php/lib/php/extensions/no-debug-zts-20090626/apc.so 
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaacd000

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000001 in ?? ()
(gdb) bt
#0  0x0000000000000001 in ?? ()
#1  0x00007fffffffeb82 in ?? ()
#2  0x0000000000000000 in ?? ()
(gdb) 

My /var/log/message errors

Jun  6 14:29:40 localhost kernel: php[30230]: segfault at 0000000000000069 rip 0000000000432dcd rsp 00007fff08620530 error 4
Jun  6 15:14:59 localhost kernel: apc.so[3084]: segfault at 0000000000000001 rip 0000000000000001 rsp 00007fffda14b048 error 14








Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-09 10:01 UTC] fjbejarano at gmail dot com
There was an error on config in /etc/php.ini

This line is bad

extension=apc.so

This line is ok

extension="/usr/local/php/lib/php/extensions/no-debug-zts-20090626/apc.so"


# php -i | grep apc
apc
MMAP File Mask => /tmp/apc.XXXXXX
apc.cache_by_default => On => On
apc.canonicalize => On => On
apc.coredump_unmap => Off => Off
apc.enable_cli => Off => Off
apc.enabled => On => On
apc.file_md5 => Off => Off
apc.file_update_protection => 2 => 2
...

I close the bug
 [2011-06-09 10:02 UTC] fjbejarano at gmail dot com
I close the bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 06:01:33 2024 UTC