You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Rodrigo Aliste P." <ra...@gmail.com> on 2009/09/11 17:51:58 UTC

[users@httpd] http problem

Hi

I know this is no a support forum, but I'm having troubles with Apache and I
don't know what could it be!

The problem is that sometimes the Httpd child pids start to segfault without
any reason, memory is good, cpu is good, is all good!
I've stacktraced a segfault and it shows me nothing. The only thing I get is
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_INTERRUPT}, {SIG_DFL, [],
SA_RESETHAND}, 8) = 0. I'm running the httpd under gdb to get more readable
detail when segfaults again. And I'll post the result here.

Any ideas?


The machine is a HP Proliant DL 320 G5 with Intel Xeon X3320 and 2GB Ram
with Centos 5 i386.
PHP 5.2.5 with Xcache
Mysql 5.0.45 (php-mysql api versions match)
Apache 2.2.3

# httpd -V
Server version: Apache/2.2.3
Server built:   Jul 14 2009 06:04:04
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
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="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

Loaded modules are http://pastebin.ca/1562241
-- 
Rodrigo Aliste P.

[users@httpd] Re: http problem

Posted by "Rodrigo Aliste P." <ra...@gmail.com>.
Another strace:

write(15, "/\0\0\0\3SELECT * FROM wp_users WHER"..., 51) = 51
read(15, "\1\0\0\1\f8\0\0\2\3def\16wp_taconeras_a\10wp_"..., 16384) = 1053
poll([{fd=15, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(15, "B\0\0\0\3SELECT meta_key, meta_value"..., 70) = 70
read(15, "\1\0\0\1\2J\0\0\2\3def\16wp_taconeras_a\vwp_"..., 16384) = 330
poll([{fd=15, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(15, "T\0\0\0\3SELECT meta_value FROM wp_s"..., 88) = 88
read(15, "\1\0\0\1\1N\0\0\2\3def\16wp_taconeras_a\vwp_"..., 16384) = 132
time(NULL)                              = 1252687225
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
chdir("/etc/httpd")                     = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_INTERRUPT}, {SIG_DFL, [],
SA_RESETHAND}, 8) = 0
kill(1946, SIGSEGV)                     = 0
sigreturn()                             = ? (mask now [])
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

2009/9/11 Rodrigo Aliste P. <ra...@gmail.com>

> Hi
>
> I know this is no a support forum, but I'm having troubles with Apache and
> I don't know what could it be!
>
> The problem is that sometimes the Httpd child pids start to segfault
> without any reason, memory is good, cpu is good, is all good!
> I've stacktraced a segfault and it shows me nothing. The only thing I get
> is rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_INTERRUPT}, {SIG_DFL, [],
> SA_RESETHAND}, 8) = 0. I'm running the httpd under gdb to get more readable
> detail when segfaults again. And I'll post the result here.
>
> Any ideas?
>
>
> The machine is a HP Proliant DL 320 G5 with Intel Xeon X3320 and 2GB Ram
> with Centos 5 i386.
> PHP 5.2.5 with Xcache
> Mysql 5.0.45 (php-mysql api versions match)
> Apache 2.2.3
>
> # httpd -V
> Server version: Apache/2.2.3
> Server built:   Jul 14 2009 06:04:04
> Server's Module Magic Number: 20051115:3
> Server loaded:  APR 1.2.7, APR-Util 1.2.7
> Compiled using: APR 1.2.7, APR-Util 1.2.7
> 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="/etc/httpd"
>  -D SUEXEC_BIN="/usr/sbin/suexec"
>  -D DEFAULT_PIDLOG="logs/httpd.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_LOCKFILE="logs/accept.lock"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
> Loaded modules are http://pastebin.ca/1562241
> --
> Rodrigo Aliste P.
>
>


-- 
Rodrigo Aliste P.

Re: [users@httpd] http problem

Posted by "Rodrigo Aliste P." <ra...@gmail.com>.
The problem was, finally, X-Cache! I disable it and everythig works fine
now.
It seems that xcache had problems managing the memory when there was a lot
of load.

thanks!

2009/9/11 Rodrigo Aliste P. <ra...@gmail.com>

>
>
> 2009/9/11 Eric Covener <co...@gmail.com>
>
>> On Fri, Sep 11, 2009 at 11:51 AM, Rodrigo Aliste P. <ra...@gmail.com>
>> wrote:
>> > Hi
>> >
>> > I know this is no a support forum, but I'm having troubles with Apache
>> and I
>> > don't know what could it be!
>>
>> This is a support forum!
>>
>
> Oh, so even better!!
>
>
>>
>> >
>> > The problem is that sometimes the Httpd child pids start to segfault
>> without
>> > any reason, memory is good, cpu is good, is all good!
>> > I've stacktraced a segfault and it shows me nothing. The only thing I
>> get is
>> > rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_INTERRUPT}, {SIG_DFL, [],
>> > SA_RESETHAND}, 8) = 0. I'm running the httpd under gdb to get more
>> readable
>> > detail when segfaults again. And I'll post the result here.
>>
>> The backtrace from gdb is what's needed.
>>
>
> I'm waiting for the gdb.
>
>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> --
> Rodrigo Aliste P.
>
>


-- 
Rodrigo Aliste P.

Re: [users@httpd] http problem

Posted by "Rodrigo Aliste P." <ra...@gmail.com>.
2009/9/11 Eric Covener <co...@gmail.com>

> On Fri, Sep 11, 2009 at 11:51 AM, Rodrigo Aliste P. <ra...@gmail.com>
> wrote:
> > Hi
> >
> > I know this is no a support forum, but I'm having troubles with Apache
> and I
> > don't know what could it be!
>
> This is a support forum!
>

Oh, so even better!!


>
> >
> > The problem is that sometimes the Httpd child pids start to segfault
> without
> > any reason, memory is good, cpu is good, is all good!
> > I've stacktraced a segfault and it shows me nothing. The only thing I get
> is
> > rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_INTERRUPT}, {SIG_DFL, [],
> > SA_RESETHAND}, 8) = 0. I'm running the httpd under gdb to get more
> readable
> > detail when segfaults again. And I'll post the result here.
>
> The backtrace from gdb is what's needed.
>

I'm waiting for the gdb.


> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Rodrigo Aliste P.

Re: [users@httpd] http problem

Posted by Eric Covener <co...@gmail.com>.
On Fri, Sep 11, 2009 at 11:51 AM, Rodrigo Aliste P. <ra...@gmail.com> wrote:
> Hi
>
> I know this is no a support forum, but I'm having troubles with Apache and I
> don't know what could it be!

This is a support forum!

>
> The problem is that sometimes the Httpd child pids start to segfault without
> any reason, memory is good, cpu is good, is all good!
> I've stacktraced a segfault and it shows me nothing. The only thing I get is
> rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_INTERRUPT}, {SIG_DFL, [],
> SA_RESETHAND}, 8) = 0. I'm running the httpd under gdb to get more readable
> detail when segfaults again. And I'll post the result here.

The backtrace from gdb is what's needed.
-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org