[Bug 418897] Re: Segfaults in apache2 with libapache2-mod-php5 installed
pawciobiel
pawciobiel at gmail.com
Wed Jan 13 22:34:04 GMT 2010
Just to confirm, I got the same issue but it looks like it is not
related to php5-suhosin.
$ dpkg -l | grep apache
ii apache2 2.2.12-1ubuntu2.1
Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.12-1ubuntu2.1
Apache HTTP Server - traditional non-threade
ii apache2-utils 2.2.12-1ubuntu2.1
utility programs for webservers
ii apache2.2-bin 2.2.12-1ubuntu2.1
Apache HTTP Server common binary files
ii apache2.2-common 2.2.12-1ubuntu2.1
Apache HTTP Server common files
rc libapache2-mod-perl2 2.0.4-5ubuntu1
Integration of perl with the Apache2 web ser
ii libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.3
server-side, HTML-embedded scripting languag
======================================================
$apache2 -e debug
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
actions_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
alias_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
auth_basic_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
authn_file_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
authz_default_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
authz_groupfile_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
authz_host_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
authz_user_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
autoindex_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
cgi_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
dir_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
env_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
include_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
mime_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
negotiation_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
php5_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
setenvif_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
status_module
[Wed Jan 13 08:26:59 2010] [debug] mod_so.c(246): loaded module
vhost_alias_module
=========================================================
$/usr/sbin/apache2 -X
Segmentation fault
=========================================================
$uname -a
Linux pc1477 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC
2009 i686 GNU/Linux
=======================================================
$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
==========================================================
$ldd /usr/sbin/apache2
linux-gate.so.1 => (0x00852000)
libpcre.so.3 => /lib/libpcre.so.3 (0x00878000)
libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x00d13000)
libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x004f2000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00a1a000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00b50000)
libuuid.so.1 => /lib/libuuid.so.1 (0x003ff000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00b09000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0x00d81000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00a08000)
libexpat.so.1 => /lib/libexpat.so.1 (0x00110000)
/lib/ld-linux.so.2 (0x00969000)
=============================================================
$ldd /usr/lib/apache2/modules/libphp5.so
linux-gate.so.1 => (0x00185000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0x00110000)
libz.so.1 => /lib/libz.so.1 (0x00f39000)
libssl.so.0.9.8 => /lib/i686/cmov/libssl.so.0.9.8 (0x00724000)
libdb-4.7.so => /usr/lib/libdb-4.7.so (0x00887000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00160000)
libpcre.so.3 => /lib/libpcre.so.3 (0x00c8d000)
libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0x00142000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00a00000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00efd000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0x006ad000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x006c4000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x0076e000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x006ee000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00156000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00a26000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00cbe000)
libcrypto.so.0.9.8 => /lib/i686/cmov/libcrypto.so.0.9.8 (0x00f4f000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00e53000)
/lib/ld-linux.so.2 (0x00b88000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00172000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x0015a000)
=======================================================
$apache2 -V
Server version: Apache/2.2.12 (Ubuntu)
Server built: Nov 12 2009 22:49:46
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
=========================================================
$apache2 -f ./apache2.conf -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
include_module (shared)
mime_module (shared)
negotiation_module (shared)
php5_module (shared)
setenvif_module (shared)
status_module (shared)
vhost_alias_module (shared)
Syntax OK
==========================================================
$gdb /usr/sbin/apache2
GNU gdb (GDB) 7.0-ubuntu
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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/apache2...(no debugging symbols
found)...done.
(gdb) run -X
Starting program: /usr/sbin/apache2 -X
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0xb7b9cf21 in ?? () from /usr/lib/apache2/modules/libphp5.so
========================================================
(gdb) bt
#0 0xb7b9cf21 in ?? () from /usr/lib/apache2/modules/libphp5.so
#1 0xb7ae5c5c in sapi_getenv ()
from /usr/lib/apache2/modules/libphp5.so
#2 0xb7b08083 in zend_ini_get_var ()
from /usr/lib/apache2/modules/libphp5.so
#3 0xb7b08a9d in ini_parse () from /usr/lib/apache2/modules/libphp5.so
#4 0xb7b08c9a in zend_parse_ini_file ()
from /usr/lib/apache2/modules/libphp5.so
#5 0xb7ae5107 in php_init_config ()
from /usr/lib/apache2/modules/libphp5.so
#6 0xb7add742 in php_module_startup ()
from /usr/lib/apache2/modules/libphp5.so
#7 0xb7b9d31f in ?? () from /usr/lib/apache2/modules/libphp5.so
#8 0xb7b9de0a in ?? () from /usr/lib/apache2/modules/libphp5.so
#9 0x0020fd9e in ap_run_post_config () from /usr/sbin/apache2
#10 0x001faa65 in main () from /usr/sbin/apache2
==============================================================
I will add more info about php5 and its installed modules as soon as I can.
--
Segfaults in apache2 with libapache2-mod-php5 installed
https://bugs.launchpad.net/bugs/418897
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list