You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Daniel Grunblatt <da...@infonegocio.com.ar> on 2000/10/03 17:55:22 UTC

Segmentation faults

This has been happening for a while:

$ tail -44 server_log
[Fri Sep 22 14:51:12 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24
configured -- resuming normal operations
[Tue Sep 26 18:20:13 2000] [notice] child pid 533 exit signal Segmentation
fault (11)
[Tue Sep 26 18:24:58 2000] [notice] child pid 1119 exit signal
Segmentation fault (11)
[Wed Sep 27 15:49:08 2000] [notice] caught SIGTERM, shutting down
[Wed Sep 27 15:49:11 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24
configured -- resuming normal operations
[Thu Sep 28 15:53:14 2000] [notice] child pid 8479 exit signal
Segmentation fault (11)
[Thu Sep 28 15:57:25 2000] [notice] child pid 8088 exit signal
Segmentation fault (11)
[Thu Sep 28 17:03:23 2000] [notice] child pid 8471 exit signal
Segmentation fault (11)
[Thu Sep 28 18:03:31 2000] [notice] child pid 8083 exit signal
Segmentation fault (11)
[Thu Sep 28 18:14:37 2000] [notice] child pid 8094 exit signal
Segmentation fault (11)
[Thu Sep 28 18:15:42 2000] [notice] child pid 8071 exit signal
Segmentation fault (11)
[Fri Sep 29 00:53:45 2000] [notice] child pid 8104 exit signal
Segmentation fault (11)
[Fri Sep 29 01:31:48 2000] [notice] child pid 8089 exit signal
Segmentation fault (11)
[Fri Sep 29 02:49:13 2000] [notice] child pid 17170 exit signal
Segmentation fault (11)
[Fri Sep 29 03:29:35 2000] [notice] child pid 8109 exit signal
Segmentation fault (11)
[Fri Sep 29 03:30:05 2000] [notice] child pid 8077 exit signal
Segmentation fault (11)
[Fri Sep 29 05:09:48 2000] [notice] child pid 8106 exit signal
Segmentation fault (11)
[Fri Sep 29 05:20:06 2000] [notice] child pid 17214 exit signal
Segmentation fault (11)
[Fri Sep 29 17:35:10 2000] [notice] child pid 8096 exit signal
Segmentation fault (11)
[Fri Sep 29 17:50:40 2000] [notice] child pid 8065 exit signal
Segmentation fault (11)
[Fri Sep 29 19:38:05 2000] [notice] child pid 8108 exit signal
Segmentation fault (11)
[Sat Sep 30 09:58:18 2000] [notice] child pid 8482 exit signal
Segmentation fault (11)
[Sat Sep 30 10:50:06 2000] [notice] child pid 17216 exit signal
Segmentation fault (11)
[Sat Sep 30 10:50:21 2000] [notice] child pid 8101 exit signal
Segmentation fault (11)
[Sat Sep 30 10:50:30 2000] [notice] child pid 8484 exit signal
Segmentation fault (11)
[Sun Oct  1 03:03:53 2000] [notice] child pid 8072 exit signal
Segmentation fault (11)
[Sun Oct  1 03:04:44 2000] [notice] child pid 8478 exit signal
Segmentation fault (11)
[Mon Oct  2 08:37:34 2000] [notice] child pid 8470 exit signal
Segmentation fault (11)
[Mon Oct  2 13:10:04 2000] [notice] child pid 8075 exit signal
Segmentation fault (11)
[Mon Oct  2 13:11:19 2000] [notice] child pid 27077 exit signal
Segmentation fault (11)
[Mon Oct  2 13:50:37 2000] [notice] child pid 8480 exit signal
Segmentation fault (11)
[Mon Oct  2 16:04:08 2000] [notice] child pid 8080 exit signal
Segmentation fault (11)
[Mon Oct  2 16:10:28 2000] [notice] child pid 8081 exit signal
Segmentation fault (11)
[Mon Oct  2 16:11:00 2000] [notice] child pid 8473 exit signal
Segmentation fault (11)
[Mon Oct  2 16:28:38 2000] [notice] child pid 8074 exit signal
Segmentation fault (11)
[Mon Oct  2 16:30:51 2000] [notice] child pid 8097 exit signal
Segmentation fault (11)
[Mon Oct  2 19:34:32 2000] [notice] child pid 8068 exit signal
Segmentation fault (11)
[Mon Oct  2 19:34:55 2000] [notice] child pid 8082 exit signal
Segmentation fault (11)
[Mon Oct  2 19:40:20 2000] [notice] child pid 28724 exit signal
Segmentation fault (11)
[Mon Oct  2 19:40:53 2000] [notice] child pid 8066 exit signal
Segmentation fault (11)
[Tue Oct  3 10:36:46 2000] [notice] child pid 29379 exit signal
Segmentation fault (11)
[Tue Oct  3 11:02:39 2000] [notice] child pid 8485 exit signal
Segmentation fault (11)
[Tue Oct  3 12:12:48 2000] [notice] caught SIGTERM, shutting down
[Tue Oct  3 12:12:51 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24
configured -- resuming normal operations
$ uname -a
Linux produccion 2.2.17 #6 SMP Fri Sep 22 13:58:25 ART 2000 i686 unknown

Here are the most important things in my httpd.conf:

ServerType standalone
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
ExtendedStatus On
MinSpareServers 32
MaxSpareServers 64
StartServers 32
MaxClients 256
MaxRequestsPerChild 10000
---cut---
ServerRoot "/xxx/"
Listen xxx.xxx.xxx.xxx:xx
ServerName www.xxx.com.ar
NameVirtualHost xxx.xxx.xxx.xxx
<VirtualHost www.xxx.com.ar>
    ServerName www.xxx.com.ar
    ServerAdmin xxx@xxx.com.ar

    PerlSetEnv  SESSION_DBI_DATASOURCE  dbi:mysql:xxx:xxx
    PerlSetEnv  SESSION_DBI_USERNAME    xxx
    PerlSetEnv  SESSION_DBI_PASSWORD    xxx
    PerlSetEnv  PerlChildInitHandler    xxx::xxx::init()
    PerlSetEnv  PerlChildExitHandler    xxx::xxx::cleanup()

    ErrorLog /xxx/logs/error_log
    CustomLog /xxx/logs/access_log combined

    DocumentRoot /xxx/htdocs

    <Location />
        Options ExecCGI
        AllowOverride None
        SetHandler perl-script
        PerlHandler HTML::Embperl
    </Location>
---cut---
I'm using embperl 1.3b5.
The machine is a dual Pentium III 600 with 1Gb of ram, and a 100Gb disk
array.

Another strange thing is this:

$ tail -500 access_log |grep 500
xxx.xxx.xxx.xxx - - [03/Oct/2000:12:06:27 -0300] "GET / HTTP/1.0" 500 536
"-" "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)"
xxx.xxx.xxx.xxx - - [03/Oct/2000:12:07:38 -0300] "GET / HTTP/1.0" 500 536
"-" "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)"

and in the error_log: 

$ tail error_log
[Tue Oct  3 11:19:16 2000] [error] [client xxx.xxx.xxx.xxx] File does not
exist: setup.exe
[Tue Oct  3 11:19:22 2000] [error] [client xxx.xxx.xxx.xxx] File does not
exist: setup.exe
[8062]ERR:  30: Line 1: Not found images
[8062]ERR:  30: Line 1: Not found images
[Tue Oct  3 11:29:59 2000] [error] [client xxx.xxx.xxx.xxx] File does not
exist: setup.exe
[8062]ERR:  30: Line 1: Not found images
[8062]ERR:  30: Line 1: Not found images
[8062]ERR:  30: Line 1: Not found www.babylon.com
[8062]ERR:  30: Line 1: Not found www.babylon.com
[8062]ERR:  30: Line 1: Not found www.babylon.com

As you can see there is nothing in the error log related to the
internal server error entry in the access_log.

If anyone have an idea of what is happening I'd appreciate any help.

Thanks.
Daniel.-




Re: Segmentation faults

Posted by Daniel Grunblatt <da...@infonegocio.com.ar>.
We always had that, but I guess I solved it, it was the
MaxRequestsPerChild directive on apache's httpd.conf , I set it to 10 and
the problem was gone, may be it was because the childs grown up too much,
up to 26M, now the max grow up size is 7M.

Thanks anyway.

--------------------------------------------------------------

Daniel Alejandro Grunblatt
Jefe de Operaciones.
Portal InfoNegocio.
Tel: 4332-3332.
Dir: Tucuman 1 piso 5.
CP:  C1049AAA.

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 6.5.1i

mQGiBDnbPQ4RBADACXb8fSQa+RsVutdoGBV4ki/t26jD20k8e1D4rIvtHAxU8wbf
ubnTMJ28rqp005l6I0InB8CrHrfgkzxtyD6xpxV1hYpdJRGGl3bwbawuYxT/Kl+1
3ss2nv4NoFE08vB73i6fsYjIhafYDeq3QYWZA3UKXdt1rr/iCEpo7aTzhQCg/6Q6
ZWWyACsnCP3z0RdSmXBBMQED/iCPPM4eNlyUjt+ijH4LVgMsTzUqNIOnb/mDrtHl
wMYIoJqMvQ44wnxYxfQbMPkvETLM0/cVUA9CNf3KDNBBQ/lqbJxR7d5DdYrErGn+
AMtJv7pC732HswY956FpNK3wKB1NSODo8EDTIhyU/r1CZNKR0d5rkO+SxRT8Q82c
f7DeBACU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F/tZruFU
w/RMgFcTq+XpmNObij1ulgdBzzVdrgfj2VBlJ/AyxklnrfyAyeyfY2UWBRG9YY9s
S4kARgQYEQIABgUCOeyQmQAKCRAM4a5IVVK1a7PbAJ48LMu4RElR3Te1ROIYcBHa
bjRxaQCeM5P96uhA8DDnMrLGKXHVg7GdusI=
=4f4N
-----END PGP PUBLIC KEY BLOCK-----

On Sun, 15 Oct 2000, Gerald Richter wrote:

> To your httpd.conf add a
> 
> PerlModule HTML::Embperl
> 
> >
> >     <Location />
> >         Options ExecCGI
> >         AllowOverride None
> >         SetHandler perl-script
> >         PerlHandler HTML::Embperl
> >     </Location>
> 
> this should normaly solve this problem. If not let me know and we try to
> track it down further
> 
> Gerald
> 
> 
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
> 
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 
> 
> 


Re: Segmentation faults

Posted by Gerald Richter <ri...@ecos.de>.
To your httpd.conf add a

PerlModule HTML::Embperl

>
>     <Location />
>         Options ExecCGI
>         AllowOverride None
>         SetHandler perl-script
>         PerlHandler HTML::Embperl
>     </Location>

this should normaly solve this problem. If not let me know and we try to
track it down further

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------