Process exists - Segmentation fault

Process exists - Segmentation fault

am 03.01.2008 04:59:16 von abhishek jain

------=_Part_9126_13940337.1199332756909
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
I am running modperl 2.x + embperl on centos 4.5
Now when i run on
MaxRequestsPerChild 1
the app. runs well
but as i increase its value after every third refresh of browser a blank
page appears, also the process size exceeds probably to 19M , and in
error_log segmentation fault error appears.
I believe the size exceeds some threshold.
Now is there a way to increase the value of MaxRequestsPerChild ?
Can i increase the threshold value of size of a process or so ?
Thanks,
Abhishek jain

------=_Part_9126_13940337.1199332756909
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I am running modperl 2.x + embperl on centos 4.5

Now when i run on

MaxRequestsPerChild 1

the app. runs well

but as i increase its value after every third refresh of browser a blank page appears, also the process size exceeds probably to 19M , and in error_log segmentation fault error appears.

I believe the size exceeds some threshold.

Now is there a way to increase the value of MaxRequestsPerChild ?

Can i increase the threshold value of size of a process or so ?

Thanks,

Abhishek jain

 


------=_Part_9126_13940337.1199332756909--

RE: Process exists - Segmentation fault

am 03.01.2008 07:43:17 von Gerald Richter

Hi,

Apache with mod_perl will always have this size or even more. This is=20
ok.

ulimit -a shows the process limits, but should normaly not a problem

The behaviour you describe occurs when you do _not_ have a LoadModule=20
_and_ a PerlModule statement for Embperl in your httpd.conf

Gerald


> -----Original Message-----
> From: abhishek jain [mailto:mail@ejain.com]=20
> Sent: Thursday, January 03, 2008 4:59 AM
> To: modperl@perl.apache.org
> Subject: Process exists - Segmentation fault
>=20
> Hi,
> I am running modperl 2.x + embperl on centos 4.5 Now when i=20
> run on MaxRequestsPerChild 1 the app. runs well but as i=20
> increase its value after every third refresh of browser a=20
> blank page appears, also the process size exceeds probably to=20
> 19M , and in error_log segmentation fault error appears.
> I believe the size exceeds some threshold.
> Now is there a way to increase the value of MaxRequestsPerChild ?
> Can i increase the threshold value of size of a process or so ?
> Thanks,
> Abhishek jain
> =20
>=20
>=20

** Virus checked by BB-5000 Mailfilter **

Re: Process exists - Segmentation fault

am 03.01.2008 08:40:45 von gozer

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2D09B87BB1D0847DB777C58A
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Gerald Richter - ECOS GmbH wrote:
> Hi,
>=20
> Apache with mod_perl will always have this size or even more. This is=20
> ok.
>=20
> ulimit -a shows the process limits, but should normaly not a problem
>=20
> The behaviour you describe occurs when you do _not_ have a LoadModule=20
> _and_ a PerlModule statement for Embperl in your httpd.conf

Really? Any ides what about that triggers a segmentation fault ?

--=20
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/


--------------enig2D09B87BB1D0847DB777C58A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfJF+yzKhB4jDpaURArOXAJ41KHcldma0+Y7R7+Yh64PXU74fEgCe OiDz
AbL5aLZdZJRhocoH5++JW6M=
=h/qi
-----END PGP SIGNATURE-----

--------------enig2D09B87BB1D0847DB777C58A--

Re: Process exists - Segmentation fault

am 03.01.2008 12:52:50 von abhishek jain

------=_Part_10130_18674325.1199361170082
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
I have the following statement in my httpd.conf

LoadModule embperl_module
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Embperl/Embperl.so

I do not have a related PerlModule just one for Apache::DBI .
Thanks,
Abhishek jain

On 1/3/08, Gerald Richter - ECOS GmbH wrote:
>
> Hi,
>
> Apache with mod_perl will always have this size or even more. This is
> ok.
>
> ulimit -a shows the process limits, but should normaly not a problem
>
> The behaviour you describe occurs when you do _not_ have a LoadModule
> _and_ a PerlModule statement for Embperl in your httpd.conf
>
> Gerald
>
>
> > -----Original Message-----
> > From: abhishek jain [mailto:mail@ejain.com]
> > Sent: Thursday, January 03, 2008 4:59 AM
> > To: modperl@perl.apache.org
> > Subject: Process exists - Segmentation fault
> >
> > Hi,
> > I am running modperl 2.x + embperl on centos 4.5 Now when i
> > run on MaxRequestsPerChild 1 the app. runs well but as i
> > increase its value after every third refresh of browser a
> > blank page appears, also the process size exceeds probably to
> > 19M , and in error_log segmentation fault error appears.
> > I believe the size exceeds some threshold.
> > Now is there a way to increase the value of MaxRequestsPerChild ?
> > Can i increase the threshold value of size of a process or so ?
> > Thanks,
> > Abhishek jain
> >
> >
> >
>
> ** Virus checked by BB-5000 Mailfilter **
>

------=_Part_10130_18674325.1199361170082
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I have the following statement in my httpd.conf

 

LoadModule  embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Embperl/Embperl.so
 

I do not have a related PerlModule just one for Apache::DBI .

Thanks,

Abhishek jain
 

On 1/3/08, Gerald Richter - ECOS GmbH <> wrote:
Hi,

Apache with mod_perl will always have this size or even more. This is
ok.

ulimit -a shows the process limits, but should normaly not a problem


The behaviour you describe occurs when you do _not_ have a LoadModule
_and_ a PerlModule statement for Embperl in your httpd.conf

Gerald


> -----Original Message-----
> From: abhishek jain [mailto:

> Subject: Process exists - Segmentation fault

>
> Hi,
> I am running modperl 2.x + embperl on centos 4.5 Now when i
> run on MaxRequestsPerChild 1 the app. runs well but as i
> increase its value after every third refresh of browser a

> blank page appears, also the process size exceeds probably to
> 19M , and in error_log segmentation fault error appears.
> I believe the size exceeds some threshold.
> Now is there a way to increase the value of MaxRequestsPerChild ?

> Can i increase the threshold value of size of a process or so ?
> Thanks,
> Abhishek jain
>
>
>

** Virus checked by BB-5000 Mailfilter **



------=_Part_10130_18674325.1199361170082--

RE: Re: Process exists - Segmentation fault

am 03.01.2008 16:16:27 von Gerald Richter

Please add a=20

PerlModule Embperl

Somewhere _after_ the LoadModule

Gerald


> -----Original Message-----
> From: abhishek jain [mailto:mail@ejain.com]=20
> Sent: Thursday, January 03, 2008 12:53 PM
> To: Gerald Richter
> Cc: modperl@perl.apache.org
> Subject: Re: Process exists - Segmentation fault
>=20
> Hi,
> I have the following statement in my httpd.conf
> =20
> LoadModule embperl_module=20
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> bperl/Embperl.so
> =20
> I do not have a related PerlModule just one for Apache::DBI .
> Thanks,
> Abhishek jain
> =20
> On 1/3/08, Gerald Richter - ECOS GmbH wrote:=20
>=20
> Hi,
> =09
> Apache with mod_perl will always have this size or even=20
> more. This is
> ok.
> =09
> ulimit -a shows the process limits, but should normaly=20
> not a problem=20
> =09
> The behaviour you describe occurs when you do _not_=20
> have a LoadModule
> _and_ a PerlModule statement for Embperl in your httpd.conf
> =09
> Gerald
> =09
> =09
> > -----Original Message-----
> > From: abhishek jain [mailto: mail@ejain.com]
> > Sent: Thursday, January 03, 2008 4:59 AM
> > To: modperl@perl.apache.org
> > Subject: Process exists - Segmentation fault=20
> >
> > Hi,
> > I am running modperl 2.x + embperl on centos 4.5 Now when i
> > run on MaxRequestsPerChild 1 the app. runs well but as i
> > increase its value after every third refresh of browser a
> > blank page appears, also the process size exceeds probably to
> > 19M , and in error_log segmentation fault error appears.
> > I believe the size exceeds some threshold.
> > Now is there a way to increase the value of=20
> MaxRequestsPerChild ?=20
> > Can i increase the threshold value of size of a=20
> process or so ?
> > Thanks,
> > Abhishek jain
> >
> >
> >
> =09
> ** Virus checked by BB-5000 Mailfilter **
> =09
>=20
>=20
>=20

** Virus checked by BB-5000 Mailfilter **

Re: Re: Process exists - Segmentation fault

am 03.01.2008 20:20:28 von abhishek jain

------=_Part_11970_206384.1199388028799
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
Adding PerlModule Embperl did not solved the problem , infact it aggreviated
it. With this the page is not didsplaye at all.
My apache configuration is:

:80>
SuexecUserGroup "#" "#"
ServerName xxxxxxxxxxxxxxxxx
ServerAlias www.xxxxxxxxxxxxxxxxx
DocumentRoot
ErrorLog

/logs/error_log
CustomLog /logs/access_log combined
LoadModule embperl_module
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Embperl/Embperl.so
PerlModule Apache::DBI
PerlModule Embperl
>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All

$">
SetHandler perl-script
PerlHandler Embperl::Object
Options ExecCGI


Order allow,deny
Deny From all


Order allow,deny
Deny From all




>
allow from all

PerlSetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_OPTIONS 16
PerlSetEnv EMBPERL_MAILHOST
PerlSetEnv EMBPERL_OBJECT_BASE _base.epl
PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html
PerlSetEnv EMBPERL_DEBUG 0
PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl

Thanks,
Abhishek jain


On 1/3/08, Gerald Richter - ECOS GmbH wrote:
>
> Please add a
>
> PerlModule Embperl
>
> Somewhere _after_ the LoadModule
>
> Gerald
>
>
> > -----Original Message-----
> > From: abhishek jain [mailto:mail@ejain.com]
> > Sent: Thursday, January 03, 2008 12:53 PM
> > To: Gerald Richter
> > Cc: modperl@perl.apache.org
> > Subject: Re: Process exists - Segmentation fault
> >
> > Hi,
> > I have the following statement in my httpd.conf
> >
> > LoadModule embperl_module
> > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > bperl/Embperl.so
> >
> > I do not have a related PerlModule just one for Apache::DBI .
> > Thanks,
> > Abhishek jain
> >
> > On 1/3/08, Gerald Richter - ECOS GmbH wrote:
> >
> > Hi,
> >
> > Apache with mod_perl will always have this size or even
> > more. This is
> > ok.
> >
> > ulimit -a shows the process limits, but should normaly
> > not a problem
> >
> > The behaviour you describe occurs when you do _not_
> > have a LoadModule
> > _and_ a PerlModule statement for Embperl in your httpd.conf
> >
> > Gerald
> >
> >
> > > -----Original Message-----
> > > From: abhishek jain [mailto: mail@ejain.com]
> > > Sent: Thursday, January 03, 2008 4:59 AM
> > > To: modperl@perl.apache.org
> > > Subject: Process exists - Segmentation fault
> > >
> > > Hi,
> > > I am running modperl 2.x + embperl on centos 4.5 Now when i
> > > run on MaxRequestsPerChild 1 the app. runs well but as i
> > > increase its value after every third refresh of browser a
> > > blank page appears, also the process size exceeds probably to
> > > 19M , and in error_log segmentation fault error appears.
> > > I believe the size exceeds some threshold.
> > > Now is there a way to increase the value of
> > MaxRequestsPerChild ?
> > > Can i increase the threshold value of size of a
> > process or so ?
> > > Thanks,
> > > Abhishek jain
> > >
> > >
> > >
> >
> > ** Virus checked by BB-5000 Mailfilter **
> >
> >
> >
> >
>
> ** Virus checked by BB-5000 Mailfilter **
>

------=_Part_11970_206384.1199388028799
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

Adding PerlModule Embperl did not solved the problem , infact it aggreviated it. With this the page is not didsplaye at all.

My apache configuration is:

<VirtualHost <ip>:80>
SuexecUserGroup "#<id>" "#<id>"
ServerName xxxxxxxxxxxxxxxxx
ServerAlias www.xxxxxxxxxxxxxxxxx
DocumentRoot <public_html>
ErrorLog <dir>/logs/error_log

CustomLog <dir>/logs/access_log combined
LoadModule  embperl_module /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Embperl/Embperl.so
PerlModule Apache::DBI
PerlModule Embperl
<Directory <public_html dir>>

Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All


<FilesMatch "^<file_name>$">
                        SetHandler  perl-script
                        PerlHandler Embperl::Object
                        Options     ExecCGI
                </FilesMatch>

 <FilesMatch ".*\.epl$">
                        Order allow,deny
                        Deny From all
                </FilesMatch>
 <FilesMatch ".*\.pl$">
                        Order allow,deny

                        Deny From all
                </FilesMatch>



</Directory>
<Directory <cgi_dir>>
allow from all
</Directory>
                PerlSetEnv EMBPERL_ESCMODE 0
                PerlSetEnv EMBPERL_OPTIONS 16
                PerlSetEnv EMBPERL_MAILHOST <host>

                PerlSetEnv EMBPERL_OBJECT_BASE _base.epl
                PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html
                PerlSetEnv EMBPERL_DEBUG 0
                PerlSetEnv EMBPERL_OBJECT_APP
epwebapp.pl
</VirtualHost>


Thanks,

Abhishek jain

 

On 1/3/08, Gerald Richter - ECOS GmbH <> wrote:
Please add a

PerlModule Embperl

Somewhere _after_ the LoadModule

Gerald


> -----Original Message-----

> From: abhishek jain [mailto:]
> Sent: Thursday, January 03, 2008 12:53 PM
> To: Gerald Richter
> Cc: modperl@perl.apache.org

> Subject: Re: Process exists - Segmentation fault
>
> Hi,
> I have the following statement in my httpd.conf
>
> LoadModule  embperl_module
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em

> bperl/Embperl.so
>
> I do not have a related PerlModule just one for Apache::DBI .
> Thanks,
> Abhishek jain
>
> On 1/3/08, Gerald Richter - ECOS GmbH <
richter@ecos.de
> wrote:
>
>       Hi,
>
>       Apache with mod_perl will always have this size or even
> more. This is
>       ok.
>
>       ulimit -a shows the process limits, but should normaly

> not a problem
>
>       The behaviour you describe occurs when you do _not_
> have a LoadModule
>       _and_ a PerlModule statement for Embperl in your httpd.conf
>
>       Gerald

>
>
>       > -----Original Message-----
>       > From: abhishek jain [mailto: ]
>       > Sent: Thursday, January 03, 2008 4:59 AM

>       > To:
>       > Subject: Process exists - Segmentation fault
>       >
>       > Hi,
>       > I am running modperl
2.x + embperl on centos 4.5 Now when i
>       > run on MaxRequestsPerChild 1 the app. runs well but as i
>       > increase its value after every third refresh of browser a
>       > blank page appears, also the process size exceeds probably to

>       > 19M , and in error_log segmentation fault error appears.
>       > I believe the size exceeds some threshold.
>       > Now is there a way to increase the value of
> MaxRequestsPerChild ?

>       > Can i increase the threshold value of size of a
> process or so ?
>       > Thanks,
>       > Abhishek jain
>       >
>       >
>       >
>
>       ** Virus checked by BB-5000 Mailfilter **

>
>
>
>

** Virus checked by BB-5000 Mailfilter **



------=_Part_11970_206384.1199388028799--

RE: Re: Re: Process exists - Segmentation fault

am 04.01.2008 07:08:08 von Gerald Richter

Hi,

Not sure if it makes any difference, but the lines

LoadModule embperl_module=20
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Embperl/Embp
erl.so
PerlModule Apache::DBI
PerlModule Embperl

Should be outside of the VirtualHost block (they are global anyway)

The other thing that you should make sure, is that mod_perl is compiled=20
with the same Perl that Embperl is and both are using modules from the=20
path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi

If there is any version mismatch, things cannot run correctly.

Gerald
=20

> -----Original Message-----
> From: abhishek jain [mailto:mail@ejain.com]=20
> Sent: Thursday, January 03, 2008 8:20 PM
> To: Gerald Richter
> Cc: modperl@perl.apache.org
> Subject: Re: Re: Process exists - Segmentation fault
>=20
> Hi,
> Adding PerlModule Embperl did not solved the problem , infact=20
> it aggreviated it. With this the page is not didsplaye at all.
> My apache configuration is:
>=20
> :80>
> SuexecUserGroup "#" "#"
> ServerName xxxxxxxxxxxxxxxxx
> ServerAlias www.xxxxxxxxxxxxxxxxx=20
> DocumentRoot
> ErrorLog

/logs/error_log=20
> CustomLog /logs/access_log combined
> LoadModule embperl_module=20
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
bperl/Embperl.so
> PerlModule Apache::DBI
> PerlModule Embperl
> >=20
> Options Indexes IncludesNOEXEC FollowSymLinks
> allow from all
> AllowOverride All
>=20
> $">
> SetHandler perl-script
> PerlHandler Embperl::Object
> Options ExecCGI
>
=20
>
> Order allow,deny
> Deny From all
>

>
> Order allow,deny=20
> Deny From all
>

>=20
>=20
>

> >
> allow from all
>

> PerlSetEnv EMBPERL_ESCMODE 0
> PerlSetEnv EMBPERL_OPTIONS 16
> PerlSetEnv EMBPERL_MAILHOST =20
> PerlSetEnv EMBPERL_OBJECT_BASE _base.epl
> PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html
> PerlSetEnv EMBPERL_DEBUG 0
> PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl
>
>=20
>=20
> Thanks,
> Abhishek jain
>=20
> =20
> On 1/3/08, Gerald Richter - ECOS GmbH wrote:=20
>=20
> Please add a
> =09
> PerlModule Embperl
> =09
> Somewhere _after_ the LoadModule
> =09
> Gerald
> =09
> =09
> > -----Original Message-----=20
> > From: abhishek jain [mailto:mail@ejain.com]
> > Sent: Thursday, January 03, 2008 12:53 PM
> > To: Gerald Richter
> > Cc: modperl@perl.apache.org=20
> > Subject: Re: Process exists - Segmentation fault
> >
> > Hi,
> > I have the following statement in my httpd.conf
> >
> > LoadModule embperl_module
> >=20
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em=20
> > bperl/Embperl.so
> >
> > I do not have a related PerlModule just one for Apache::DBI .
> > Thanks,
> > Abhishek jain
> >
> > On 1/3/08, Gerald Richter - ECOS GmbH <=20
> richter@ecos.de > wrote:
> >
> > Hi,
> >
> > Apache with mod_perl will always have this size or even
> > more. This is
> > ok.
> >
> > ulimit -a shows the process limits, but should normaly=20
> > not a problem
> >
> > The behaviour you describe occurs when you do _not_
> > have a LoadModule
> > _and_ a PerlModule statement for Embperl in=20
> your httpd.conf
> >
> > Gerald=20
> >
> >
> > > -----Original Message-----
> > > From: abhishek jain [mailto: mail@ejain.com]
> > > Sent: Thursday, January 03, 2008 4:59 AM=20
> > > To: modperl@perl.apache.org
> > > Subject: Process exists - Segmentation fault
> > >
> > > Hi,
> > > I am running modperl 2.x + embperl on centos=20
> 4.5 Now when i
> > > run on MaxRequestsPerChild 1 the app. runs=20
> well but as i
> > > increase its value after every third refresh=20
> of browser a
> > > blank page appears, also the process size=20
> exceeds probably to=20
> > > 19M , and in error_log segmentation fault=20
> error appears.
> > > I believe the size exceeds some threshold.
> > > Now is there a way to increase the value of
> > MaxRequestsPerChild ?=20
> > > Can i increase the threshold value of size of a
> > process or so ?
> > > Thanks,
> > > Abhishek jain
> > >
> > >
> > >
> >
> > ** Virus checked by BB-5000 Mailfilter **=20
> >
> >
> >
> >
> =09
> ** Virus checked by BB-5000 Mailfilter **
> =09
>=20
>=20
>=20

** Virus checked by BB-5000 Mailfilter **

Re: Re: Re: Process exists - Segmentation fault

am 07.01.2008 02:59:01 von abhishek jain

------=_Part_6107_32657685.1199671141557
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Its me again,
But still the things are not working right.
I tried to recompile Embperl and put PerlModule Embperl after LoadModule
embperl_module ..............

Now i do not remember it was before or now but after i uncomment the
'PerlModule Embperl' line and things stop working i do not receieve
$r=shift; variable i mean $r = undef here.
Is it due to something i did during installation of embperl.
Also If i uncomment the line 'MaxRequestsPerChild 1' and comment 'PerlModule
Embperl ' then i recveive this line in error log
[Sun Jan 06 18:44:11 2008] [notice] child pid 30280 exit signal Segmentation
fault (11)

(May be error and page refreshes itself i mean the code produces output.)

and page appears , sometimes the same error appears twice and page does not
appears.

I am not sure have this error been encountered by someone else but things
are not working right for me . Also if someone wants i can mail the Embperl
logs to someone individually, i do not want to make the logs public.
Pl help. I am working on the site http://delhi.pm.org/ it is the delhi perl
mongers site and people in this group have limited knowledge of embperl but
this will push up the embperl in Delhi .
--
Thanks
Abhishek jain


On 1/4/08, Gerald Richter - ECOS GmbH wrote:
>
> Hi,
>
> Not sure if it makes any difference, but the lines
>
> LoadModule embperl_module
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Embperl/Embp
> erl.so
> PerlModule Apache::DBI
> PerlModule Embperl
>
> Should be outside of the VirtualHost block (they are global anyway)
>
> The other thing that you should make sure, is that mod_perl is compiled
> with the same Perl that Embperl is and both are using modules from the
> path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>
> If there is any version mismatch, things cannot run correctly.
>
> Gerald
>
>
> > -----Original Message-----
> > From: abhishek jain [mailto:mail@ejain.com]
> > Sent: Thursday, January 03, 2008 8:20 PM
> > To: Gerald Richter
> > Cc: modperl@perl.apache.org
> > Subject: Re: Re: Process exists - Segmentation fault
> >
> > Hi,
> > Adding PerlModule Embperl did not solved the problem , infact
> > it aggreviated it. With this the page is not didsplaye at all.
> > My apache configuration is:
> >
> > :80>
> > SuexecUserGroup "#" "#"
> > ServerName xxxxxxxxxxxxxxxxx
> > ServerAlias www.xxxxxxxxxxxxxxxxx
> > DocumentRoot
> > ErrorLog

/logs/error_log
> > CustomLog /logs/access_log combined
> > LoadModule embperl_module
> > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> bperl/Embperl.so
> > PerlModule Apache::DBI
> > PerlModule Embperl
> > >
> > Options Indexes IncludesNOEXEC FollowSymLinks
> > allow from all
> > AllowOverride All
> >
> > $">
> > SetHandler perl-script
> > PerlHandler Embperl::Object
> > Options ExecCGI
> >

> >
> > Order allow,deny
> > Deny From all
> >

> >
> > Order allow,deny
> > Deny From all
> >

> >
> >
> >

> > >
> > allow from all
> >

> > PerlSetEnv EMBPERL_ESCMODE 0
> > PerlSetEnv EMBPERL_OPTIONS 16
> > PerlSetEnv EMBPERL_MAILHOST
> > PerlSetEnv EMBPERL_OBJECT_BASE _base.epl
> > PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html
> > PerlSetEnv EMBPERL_DEBUG 0
> > PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl
> >
> >
> >
> > Thanks,
> > Abhishek jain
> >
> >
> > On 1/3/08, Gerald Richter - ECOS GmbH wrote:
> >
> > Please add a
> >
> > PerlModule Embperl
> >
> > Somewhere _after_ the LoadModule
> >
> > Gerald
> >
> >
> > > -----Original Message-----
> > > From: abhishek jain [mailto:mail@ejain.com]
> > > Sent: Thursday, January 03, 2008 12:53 PM
> > > To: Gerald Richter
> > > Cc: modperl@perl.apache.org
> > > Subject: Re: Process exists - Segmentation fault
> > >
> > > Hi,
> > > I have the following statement in my httpd.conf
> > >
> > > LoadModule embperl_module
> > >
> > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > > bperl/Embperl.so
> > >
> > > I do not have a related PerlModule just one for Apache::DBI .
> > > Thanks,
> > > Abhishek jain
> > >
> > > On 1/3/08, Gerald Richter - ECOS GmbH <
> > richter@ecos.de > wrote:
> > >
> > > Hi,
> > >
> > > Apache with mod_perl will always have this size or even
> > > more. This is
> > > ok.
> > >
> > > ulimit -a shows the process limits, but should normaly
> > > not a problem
> > >
> > > The behaviour you describe occurs when you do _not_
> > > have a LoadModule
> > > _and_ a PerlModule statement for Embperl in
> > your httpd.conf
> > >
> > > Gerald
> > >
> > >
> > > > -----Original Message-----
> > > > From: abhishek jain [mailto: mail@ejain.com]
> > > > Sent: Thursday, January 03, 2008 4:59 AM
> > > > To: modperl@perl.apache.org
> > > > Subject: Process exists - Segmentation fault
> > > >
> > > > Hi,
> > > > I am running modperl 2.x + embperl on centos
> > 4.5 Now when i
> > > > run on MaxRequestsPerChild 1 the app. runs
> > well but as i
> > > > increase its value after every third refresh
> > of browser a
> > > > blank page appears, also the process size
> > exceeds probably to
> > > > 19M , and in error_log segmentation fault
> > error appears.
> > > > I believe the size exceeds some threshold.
> > > > Now is there a way to increase the value of
> > > MaxRequestsPerChild ?
> > > > Can i increase the threshold value of size of a
> > > process or so ?
> > > > Thanks,
> > > > Abhishek jain
> > > >
> > > >
> > > >
> > >
> > > ** Virus checked by BB-5000 Mailfilter **
> > >
> > >
> > >
> > >
> >
> > ** Virus checked by BB-5000 Mailfilter **
> >
> >
> >
> >
>
> ** Virus checked by BB-5000 Mailfilter **
>

------=_Part_6107_32657685.1199671141557
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Its me again,

But still the things are not working right.

I tried to recompile Embperl and put PerlModule Embperl after LoadModule embperl_module ..............

 

Now i do not remember it was before or now but after i uncomment the 'PerlModule Embperl' line and things stop working i do not receieve $r=shift; variable i mean $r = undef here.

Is it due to something i did during installation of embperl.

Also If i uncomment the line 'MaxRequestsPerChild 1' and comment 'PerlModule Embperl ' then i recveive this line in error log

[Sun Jan 06 18:44:11 2008] [notice] child pid 30280 exit signal Segmentation fault (11)

 

(May be error and page refreshes itself i mean the code produces output.)

 

and page appears , sometimes the same error appears twice and page does not appears.

 

I am not sure have this error been encountered by someone else but things are not working right for me . Also if someone wants i can mail the Embperl logs to someone individually, i do not want to make the logs public.

Pl help. I am working on the site  it is the delhi perl mongers site and people in this group have limited knowledge of embperl but this will push up the embperl in Delhi .

--

Thanks

Abhishek jain

 

On 1/4/08, Gerald Richter - ECOS GmbH <> wrote:
Hi,

Not sure if it makes any difference, but the lines

LoadModule  embperl_module
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Embperl/Embp

erl.so
PerlModule Apache::DBI
PerlModule Embperl

Should be outside of the VirtualHost block (they are global anyway)

The other thing that you should make sure, is that mod_perl is compiled
with the same Perl that Embperl is and both are using modules from the

path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi

If there is any version mismatch, things cannot run correctly.

Gerald


> -----Original Message-----
> From: abhishek jain [mailto:

> Subject: Re: Re: Process exists - Segmentation fault

>
> Hi,
> Adding PerlModule Embperl did not solved the problem , infact
> it aggreviated it. With this the page is not didsplaye at all.
> My apache configuration is:
>
> <VirtualHost <ip>:80>

> SuexecUserGroup "#<id>" "#<id>"
> ServerName xxxxxxxxxxxxxxxxx
> ServerAlias www.xxxxxxxxxxxxxxxxx
> DocumentRoot <public_html>
> ErrorLog <dir>/logs/error_log

> CustomLog <dir>/logs/access_log combined
> LoadModule  embperl_module
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
bperl/Embperl.so
> PerlModule Apache::DBI
> PerlModule Embperl

> <Directory <public_html dir>>
> Options Indexes IncludesNOEXEC FollowSymLinks
> allow from all
> AllowOverride All
>
> <FilesMatch "^<file_name>$">

>                         SetHandler  perl-script
>                         PerlHandler Embperl::Object
>                         Options     ExecCGI
>                 </FilesMatch>
>  <FilesMatch ".*\.epl$">

>                         Order allow,deny
>                         Deny From all
>                 </FilesMatch>
>  <FilesMatch ".*\.pl$">
>                         Order allow,deny

>                         Deny From all
>                 </FilesMatch>
>
>
> </Directory>
> <Directory <cgi_dir>>
> allow from all
> </Directory>

>                 PerlSetEnv EMBPERL_ESCMODE 0
>                 PerlSetEnv EMBPERL_OPTIONS 16
>                 PerlSetEnv EMBPERL_MAILHOST <host>
>                 PerlSetEnv EMBPERL_OBJECT_BASE _base.epl

>                 PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html
>                 PerlSetEnv EMBPERL_DEBUG 0
>                 PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl
> </VirtualHost>

>
>
> Thanks,
> Abhishek jain
>
>
> On 1/3/08, Gerald Richter - ECOS GmbH <> wrote:
>
>       Please add a
>

>       PerlModule Embperl
>
>       Somewhere _after_ the LoadModule
>
>       Gerald
>
>
>       > -----Original Message-----
>       > From: abhishek jain [mailto:
]
>       > Sent: Thursday, January 03, 2008 12:53 PM
>       > To: Gerald Richter
>       > Cc: modperl@perl.apache.org

>       > Subject: Re: Process exists - Segmentation fault
>       >
>       > Hi,
>       > I have the following statement in my httpd.conf
>       >
>       > LoadModule  embperl_module

>       >
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
>       > bperl/Embperl.so
>       >
>       > I do not have a related PerlModule just one for Apache::DBI .

>       > Thanks,
>       > Abhishek jain
>       >
>       > On 1/3/08, Gerald Richter - ECOS GmbH <
> <mailto:
richter@ecos.de
> > wrote:
>       >
>       >       Hi,
>       >
>       >       Apache with mod_perl will always have this size or even
>       > more. This is
>       >       ok.

>       >
>       >       ulimit -a shows the process limits, but should normaly
>       > not a problem
>       >
>       >       The behaviour you describe occurs when you do _not_

>       > have a LoadModule
>       >       _and_ a PerlModule statement for Embperl in
> your httpd.conf
>       >
>       >       Gerald
>       >
>       >

>       >       > -----Original Message-----
>       >       > From: abhishek jain [mailto: ]
>       >       > Sent: Thursday, January 03, 2008 4:59 AM

>       >       > To:
>       >       > Subject: Process exists - Segmentation fault
>       >       >
>       >       > Hi,

>       >       > I am running modperl 2.x + embperl on centos
> 4.5 Now when i
>       >       > run on MaxRequestsPerChild 1 the app. runs
> well but as i
>       >       > increase its value after every third refresh

> of browser a
>       >       > blank page appears, also the process size
> exceeds probably to
>       >       > 19M , and in error_log segmentation fault
> error appears.
>       >       > I believe the size exceeds some threshold.

>       >       > Now is there a way to increase the value of
>       > MaxRequestsPerChild ?
>       >       > Can i increase the threshold value of size of a
>       > process or so ?

>       >       > Thanks,
>       >       > Abhishek jain
>       >       >
>       >       >
>       >       >
>       >
>       >       ** Virus checked by BB-5000 Mailfilter **

>       >
>       >
>       >
>       >
>
>       ** Virus checked by BB-5000 Mailfilter **
>
>
>
>

** Virus checked by BB-5000 Mailfilter **




------=_Part_6107_32657685.1199671141557--

RE: Re: Re: Re: Process exists - Segmentation fault

am 09.01.2008 14:56:30 von Gerald Richter

Hi,

Maybe we should go one step back:

Does "make test" works correctly for you?

Does it also test the mod_perl part?

Gerald
=20

> -----Original Message-----
> From: abhishek jain [mailto:mail@ejain.com]=20
> Sent: Monday, January 07, 2008 2:59 AM
> To: Gerald Richter
> Cc: modperl@perl.apache.org
> Subject: Re: Re: Re: Process exists - Segmentation fault
>=20
> Hi Its me again,
> But still the things are not working right.
> I tried to recompile Embperl and put PerlModule Embperl after=20
> LoadModule embperl_module ..............
> =20
> Now i do not remember it was before or now but after i=20
> uncomment the 'PerlModule Embperl' line and things stop=20
> working i do not receieve $r=3Dshift; variable i mean $r =3D undef here=

> Is it due to something i did during installation of embperl.
> Also If i uncomment the line 'MaxRequestsPerChild 1' and=20
> comment 'PerlModule Embperl ' then i recveive this line in=20
> error log [Sun Jan 06 18:44:11 2008] [notice] child pid 30280=20
> exit signal Segmentation fault (11)
> =20
> (May be error and page refreshes itself i mean the code=20
> produces output.)
> =20
> and page appears , sometimes the same error appears twice and=20
> page does not appears.
> =20
> I am not sure have this error been encountered by someone=20
> else but things are not working right for me . Also if=20
> someone wants i can mail the Embperl logs to someone=20
> individually, i do not want to make the logs public.=20
> Pl help. I am working on the site http://delhi.pm.org/ it is=20
> the delhi perl mongers site and people in this group have=20
> limited knowledge of embperl but this will push up the=20
> embperl in Delhi .=20
> --
> Thanks
> Abhishek jain
>=20
> =20
> On 1/4/08, Gerald Richter - ECOS GmbH wrote:=20
>=20
> Hi,
> =09
> Not sure if it makes any difference, but the lines
> =09
> LoadModule embperl_module
> =09
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> bperl/Embp=20
> erl.so
> PerlModule Apache::DBI
> PerlModule Embperl
> =09
> Should be outside of the VirtualHost block (they are=20
> global anyway)
> =09
> The other thing that you should make sure, is that=20
> mod_perl is compiled
> with the same Perl that Embperl is and both are using=20
> modules from the=20
> path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
> =09
> If there is any version mismatch, things cannot run correctly.
> =09
> Gerald
> =09
> =09
> > -----Original Message-----
> > From: abhishek jain [mailto: mail@ejain.com]
> > Sent: Thursday, January 03, 2008 8:20 PM
> > To: Gerald Richter
> > Cc: modperl@perl.apache.org
> > Subject: Re: Re: Process exists - Segmentation fault=20
> >
> > Hi,
> > Adding PerlModule Embperl did not solved the problem , infact
> > it aggreviated it. With this the page is not didsplaye at all.
> > My apache configuration is:
> >
> > :80>=20
> > SuexecUserGroup "#" "#"
> > ServerName xxxxxxxxxxxxxxxxx
> > ServerAlias www.xxxxxxxxxxxxxxxxx
> > DocumentRoot
> > ErrorLog

/logs/error_log=20
> > CustomLog /logs/access_log combined
> > LoadModule embperl_module
> > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> bperl/Embperl.so
> > PerlModule Apache::DBI
> > PerlModule Embperl=20
> > >
> > Options Indexes IncludesNOEXEC FollowSymLinks
> > allow from all
> > AllowOverride All
> >
> > $">
> > SetHandler perl-script
> > PerlHandler Embperl::Object
> > Options ExecCGI
> >

> > =20
> > Order allow,deny
> > Deny From all
> >

> >
> > Order allow,deny=20
> > Deny From all
> >

> >
> >
> >

> > >
> > allow from all
> >
=20
> > PerlSetEnv EMBPERL_ESCMODE 0
> > PerlSetEnv EMBPERL_OPTIONS 16
> > PerlSetEnv EMBPERL_MAILHOST
> > PerlSetEnv EMBPERL_OBJECT_BASE _base.epl=20
> > PerlSetEnv EMBPERL_OBJECT_FALLBACK=20
> notfound.html
> > PerlSetEnv EMBPERL_DEBUG 0
> > PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl
> >
> >
> >
> > Thanks,
> > Abhishek jain
> >
> >
> > On 1/3/08, Gerald Richter - ECOS GmbH wrote:
> >
> > Please add a
> >=20
> > PerlModule Embperl
> >
> > Somewhere _after_ the LoadModule
> >
> > Gerald
> >
> >
> > > -----Original Message-----
> > > From: abhishek jain [mailto: mail@ejain.com]
> > > Sent: Thursday, January 03, 2008 12:53 PM
> > > To: Gerald Richter
> > > Cc: modperl@perl.apache.org=20
> > > Subject: Re: Process exists - Segmentation fault
> > >
> > > Hi,
> > > I have the following statement in my httpd.conf
> > >
> > > LoadModule embperl_module=20
> > >
> > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > > bperl/Embperl.so
> > >
> > > I do not have a related PerlModule just one=20
> for Apache::DBI .=20
> > > Thanks,
> > > Abhishek jain
> > >
> > > On 1/3/08, Gerald Richter - ECOS GmbH <
> > richter@ecos.de > > > wrote:
> > >
> > > Hi,
> > >
> > > Apache with mod_perl will always have=20
> this size or even
> > > more. This is
> > > ok.=20
> > >
> > > ulimit -a shows the process limits, but=20
> should normaly
> > > not a problem
> > >
> > > The behaviour you describe occurs when=20
> you do _not_=20
> > > have a LoadModule
> > > _and_ a PerlModule statement for Embperl in
> > your httpd.conf
> > >
> > > Gerald
> > >
> > >
> > > > -----Original Message-----
> > > > From: abhishek jain [mailto: mail@ejain.com]
> > > > Sent: Thursday, January 03, 2008 4:59 AM=20
> > > > To: modperl@perl.apache.org
> > > > Subject: Process exists - Segmentation fault
> > > >
> > > > Hi,=20
> > > > I am running modperl 2.x + embperl on centos
> > 4.5 Now when i
> > > > run on MaxRequestsPerChild 1 the app. runs
> > well but as i
> > > > increase its value after every third refresh=20
> > of browser a
> > > > blank page appears, also the process size
> > exceeds probably to
> > > > 19M , and in error_log segmentation fault
> > error appears.
> > > > I believe the size exceeds some threshold.=20
> > > > Now is there a way to increase the value of
> > > MaxRequestsPerChild ?
> > > > Can i increase the threshold value of=20
> size of a
> > > process or so ?=20
> > > > Thanks,
> > > > Abhishek jain
> > > >
> > > >
> > > >
> > >
> > > ** Virus checked by BB-5000 Mailfilter **=20
> > >
> > >
> > >
> > >
> >
> > ** Virus checked by BB-5000 Mailfilter **
> >
> >
> >
> >
> =09
> ** Virus checked by BB-5000 Mailfilter **=20
> =09
>=20
>=20
>=20

** Virus checked by BB-5000 Mailfilter **

Re: Re: Re: Re: Process exists - Segmentation fault

am 15.01.2008 02:14:57 von abhishek jain

------=_Part_15558_13281452.1200359697964
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Gerald,
Sorry for a late reply ,
no make test did not worked correctly, it did tested the modperl part and
gave error like an error on line 21.
I will try to give the exact error later,
Thanks,
Abhishek jain


On 1/9/08, Gerald Richter - ECOS GmbH wrote:
>
> Hi,
>
> Maybe we should go one step back:
>
> Does "make test" works correctly for you?
>
> Does it also test the mod_perl part?
>
> Gerald
>
>
> > -----Original Message-----
> > From: abhishek jain [mailto:mail@ejain.com]
> > Sent: Monday, January 07, 2008 2:59 AM
> > To: Gerald Richter
> > Cc: modperl@perl.apache.org
> > Subject: Re: Re: Re: Process exists - Segmentation fault
> >
> > Hi Its me again,
> > But still the things are not working right.
> > I tried to recompile Embperl and put PerlModule Embperl after
> > LoadModule embperl_module ..............
> >
> > Now i do not remember it was before or now but after i
> > uncomment the 'PerlModule Embperl' line and things stop
> > working i do not receieve $r=shift; variable i mean $r = undef here.
> > Is it due to something i did during installation of embperl.
> > Also If i uncomment the line 'MaxRequestsPerChild 1' and
> > comment 'PerlModule Embperl ' then i recveive this line in
> > error log [Sun Jan 06 18:44:11 2008] [notice] child pid 30280
> > exit signal Segmentation fault (11)
> >
> > (May be error and page refreshes itself i mean the code
> > produces output.)
> >
> > and page appears , sometimes the same error appears twice and
> > page does not appears.
> >
> > I am not sure have this error been encountered by someone
> > else but things are not working right for me . Also if
> > someone wants i can mail the Embperl logs to someone
> > individually, i do not want to make the logs public.
> > Pl help. I am working on the site http://delhi.pm.org/ it is
> > the delhi perl mongers site and people in this group have
> > limited knowledge of embperl but this will push up the
> > embperl in Delhi .
> > --
> > Thanks
> > Abhishek jain
> >
> >
> > On 1/4/08, Gerald Richter - ECOS GmbH wrote:
> >
> > Hi,
> >
> > Not sure if it makes any difference, but the lines
> >
> > LoadModule embperl_module
> >
> > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > bperl/Embp
> > erl.so
> > PerlModule Apache::DBI
> > PerlModule Embperl
> >
> > Should be outside of the VirtualHost block (they are
> > global anyway)
> >
> > The other thing that you should make sure, is that
> > mod_perl is compiled
> > with the same Perl that Embperl is and both are using
> > modules from the
> > path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
> >
> > If there is any version mismatch, things cannot run correctly.
> >
> > Gerald
> >
> >
> > > -----Original Message-----
> > > From: abhishek jain [mailto: mail@ejain.com]
> > > Sent: Thursday, January 03, 2008 8:20 PM
> > > To: Gerald Richter
> > > Cc: modperl@perl.apache.org
> > > Subject: Re: Re: Process exists - Segmentation fault
> > >
> > > Hi,
> > > Adding PerlModule Embperl did not solved the problem , infact
> > > it aggreviated it. With this the page is not didsplaye at all.
> > > My apache configuration is:
> > >
> > > :80>
> > > SuexecUserGroup "#" "#"
> > > ServerName xxxxxxxxxxxxxxxxx
> > > ServerAlias www.xxxxxxxxxxxxxxxxx
> > > DocumentRoot
> > > ErrorLog

/logs/error_log
> > > CustomLog /logs/access_log combined
> > > LoadModule embperl_module
> > > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > bperl/Embperl.so
> > > PerlModule Apache::DBI
> > > PerlModule Embperl
> > > >
> > > Options Indexes IncludesNOEXEC FollowSymLinks
> > > allow from all
> > > AllowOverride All
> > >
> > > $">
> > > SetHandler perl-script
> > > PerlHandler Embperl::Object
> > > Options ExecCGI
> > >

> > >
> > > Order allow,deny
> > > Deny From all
> > >

> > >
> > > Order allow,deny
> > > Deny From all
> > >

> > >
> > >
> > >

> > > >
> > > allow from all
> > >

> > > PerlSetEnv EMBPERL_ESCMODE 0
> > > PerlSetEnv EMBPERL_OPTIONS 16
> > > PerlSetEnv EMBPERL_MAILHOST
> > > PerlSetEnv EMBPERL_OBJECT_BASE _base.epl
> > > PerlSetEnv EMBPERL_OBJECT_FALLBACK
> > notfound.html
> > > PerlSetEnv EMBPERL_DEBUG 0
> > > PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl
> > >
> > >
> > >
> > > Thanks,
> > > Abhishek jain
> > >
> > >
> > > On 1/3/08, Gerald Richter - ECOS GmbH wrote:
> > >
> > > Please add a
> > >
> > > PerlModule Embperl
> > >
> > > Somewhere _after_ the LoadModule
> > >
> > > Gerald
> > >
> > >
> > > > -----Original Message-----
> > > > From: abhishek jain [mailto: mail@ejain.com]
> > > > Sent: Thursday, January 03, 2008 12:53 PM
> > > > To: Gerald Richter
> > > > Cc: modperl@perl.apache.org
> > > > Subject: Re: Process exists - Segmentation fault
> > > >
> > > > Hi,
> > > > I have the following statement in my httpd.conf
> > > >
> > > > LoadModule embperl_module
> > > >
> > > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > > > bperl/Embperl.so
> > > >
> > > > I do not have a related PerlModule just one
> > for Apache::DBI .
> > > > Thanks,
> > > > Abhishek jain
> > > >
> > > > On 1/3/08, Gerald Richter - ECOS GmbH <
> > > richter@ecos.de > > > > wrote:
> > > >
> > > > Hi,
> > > >
> > > > Apache with mod_perl will always have
> > this size or even
> > > > more. This is
> > > > ok.
> > > >
> > > > ulimit -a shows the process limits, but
> > should normaly
> > > > not a problem
> > > >
> > > > The behaviour you describe occurs when
> > you do _not_
> > > > have a LoadModule
> > > > _and_ a PerlModule statement for Embperl in
> > > your httpd.conf
> > > >
> > > > Gerald
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: abhishek jain [mailto: mail@ejain.com]
> > > > > Sent: Thursday, January 03, 2008 4:59 AM
> > > > > To: modperl@perl.apache.org
> > > > > Subject: Process exists - Segmentation fault
> > > > >
> > > > > Hi,
> > > > > I am running modperl 2.x + embperl on centos
> > > 4.5 Now when i
> > > > > run on MaxRequestsPerChild 1 the app. runs
> > > well but as i
> > > > > increase its value after every third refresh
> > > of browser a
> > > > > blank page appears, also the process size
> > > exceeds probably to
> > > > > 19M , and in error_log segmentation fault
> > > error appears.
> > > > > I believe the size exceeds some threshold.
> > > > > Now is there a way to increase the value of
> > > > MaxRequestsPerChild ?
> > > > > Can i increase the threshold value of
> > size of a
> > > > process or so ?
> > > > > Thanks,
> > > > > Abhishek jain
> > > > >
> > > > >
> > > > >
> > > >
> > > > ** Virus checked by BB-5000 Mailfilter **
> > > >
> > > >
> > > >
> > > >
> > >
> > > ** Virus checked by BB-5000 Mailfilter **
> > >
> > >
> > >
> > >
> >
> > ** Virus checked by BB-5000 Mailfilter **
> >
> >
> >
> >
>
> ** Virus checked by BB-5000 Mailfilter **
>

------=_Part_15558_13281452.1200359697964
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Gerald,

Sorry for a late reply ,

no make test did not worked correctly, it did tested the modperl part and gave error like an error on line 21.

I will try to give the exact error later,

Thanks,

Abhishek jain

 

On 1/9/08, Gerald Richter - ECOS GmbH <> wrote:
Hi,

Maybe we should go one step back:

Does "make test" works correctly for you?


Does it also test the mod_perl part?

Gerald


> -----Original Message-----
> From: abhishek jain [mailto:]
> Sent: Monday, January 07, 2008 2:59 AM

> To: Gerald Richter
> Cc:
> Subject: Re: Re: Re: Process exists - Segmentation fault
>
> Hi Its me again,
> But still the things are not working right.

> I tried to recompile Embperl and put PerlModule Embperl after
> LoadModule embperl_module ..............
>
> Now i do not remember it was before or now but after i
> uncomment the 'PerlModule Embperl' line and things stop

> working i do not receieve $r=shift; variable i mean $r = undef here.
> Is it due to something i did during installation of embperl.
> Also If i uncomment the line 'MaxRequestsPerChild 1' and

> comment 'PerlModule Embperl ' then i recveive this line in
> error log [Sun Jan 06 18:44:11 2008] [notice] child pid 30280
> exit signal Segmentation fault (11)
>
> (May be error and page refreshes itself i mean the code

> produces output.)
>
> and page appears , sometimes the same error appears twice and
> page does not appears.
>
> I am not sure have this error been encountered by someone
> else but things are not working right for me . Also if

> someone wants i can mail the Embperl logs to someone
> individually, i do not want to make the logs public.
> Pl help. I am working on the site it is

> the delhi perl mongers site and people in this group have
> limited knowledge of embperl but this will push up the
> embperl in Delhi .
> --
> Thanks
> Abhishek jain
>
>

> On 1/4/08, Gerald Richter - ECOS GmbH <> wrote:
>
>       Hi,
>
>       Not sure if it makes any difference, but the lines
>

>       LoadModule  embperl_module
>
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> bperl/Embp
>       erl.so
>       PerlModule Apache::DBI
>       PerlModule Embperl

>
>       Should be outside of the VirtualHost block (they are
> global anyway)
>
>       The other thing that you should make sure, is that
> mod_perl is compiled
>       with the same Perl that Embperl is and both are using

> modules from the
>       path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>
>       If there is any version mismatch, things cannot run correctly.
>
>       Gerald
>

>
>       > -----Original Message-----
>       > From: abhishek jain [mailto: ]
>       > Sent: Thursday, January 03, 2008 8:20 PM
>       > To: Gerald Richter

>       > Cc:
>       > Subject: Re: Re: Process exists - Segmentation fault
>       >
>       > Hi,
>       > Adding PerlModule Embperl did not solved the problem , infact

>       > it aggreviated it. With this the page is not didsplaye at all.
>       > My apache configuration is:
>       >
>       > <VirtualHost <ip>:80>
>       > SuexecUserGroup "#<id>" "#<id>"

>       > ServerName xxxxxxxxxxxxxxxxx
>       > ServerAlias www.xxxxxxxxxxxxxxxxx
>       > DocumentRoot <public_html>
>       > ErrorLog <dir>/logs/error_log
>       > CustomLog <dir>/logs/access_log combined

>       > LoadModule  embperl_module
>       > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
>       bperl/Embperl.so
>       > PerlModule Apache::DBI
>       > PerlModule Embperl

>       > <Directory <public_html dir>>
>       > Options Indexes IncludesNOEXEC FollowSymLinks
>       > allow from all
>       > AllowOverride All
>       >
>       > <FilesMatch "^<file_name>$">

>       >                         SetHandler  perl-script
>       >                         PerlHandler Embperl::Object
>       >                         Options     ExecCGI
>       >           &nbs
p;     </FilesMatch>

>       >  <FilesMatch ".*\.epl$">
>       >                         Order allow,deny
>       >                         Deny From all
>       >                 </FilesMatch>

>       >  <FilesMatch ".*\.pl$">
>       >                         Order allow,deny
>       >                         Deny From all
>       >                 </FilesMatch>

>       >
>       >
>       > </Directory>
>       > <Directory <cgi_dir>>
>       > allow from all
>       > </Directory>
>       >                 PerlSetEnv EMBPERL_ESCMODE 0

>       >                 PerlSetEnv EMBPERL_OPTIONS 16
>       >                 PerlSetEnv EMBPERL_MAILHOST <host>
>       >                 PerlSetEnv EMBPERL_OBJECT_BASE _base.epl

>       >                 PerlSetEnv EMBPERL_OBJECT_FALLBACK
> notfound.html
>       >                 PerlSetEnv EMBPERL_DEBUG 0
>       >                 PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl

>       > </VirtualHost>
>       >
>       >
>       > Thanks,
>       > Abhishek jain
>       >
>       >
>       > On 1/3/08, Gerald Richter - ECOS GmbH <
> wrote:
>       >
>       >       Please add a
>       >
>       >       PerlModule Embperl
>       >
>       >       Somewhere _after_ the LoadModule

>       >
>       >       Gerald
>       >
>       >
>       >       > -----Original Message-----
>       >       > From: abhishek jain [mailto:
mail@ejain.com
]
>       >       > Sent: Thursday, January 03, 2008 12:53 PM
>       >       > To: Gerald Richter
>       >       > Cc: modperl@perl.apache.org

>       >       > Subject: Re: Process exists - Segmentation fault
>       >       >
>       >       > Hi,
>       >       > I have the following statement in my httpd.conf

>       >       >
>       >       > LoadModule  embperl_module
>       >       >
>       > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
>       >       > bperl/Embperl.so

>       >       >
>       >       > I do not have a related PerlModule just one
> for Apache::DBI .
>       >       > Thanks,
>       >       > Abhishek jain
>       >       >

>       >       > On 1/3/08, Gerald Richter - ECOS GmbH <
>       >
> <mailto:
> > > wrote:
>       >       >
>       >       >       Hi,
>       >       >
>       >       >       Apache with mod_perl will always have

> this size or even
>       >       > more. This is
>       >       >       ok.
>       >       >
>       >       >       ulimit -a shows the process limits, but
> should normaly

>       >       > not a problem
>       >       >
>       >       >       The behaviour you describe occurs when
> you do _not_
>       >       > have a LoadModule

>       >       >       _and_ a PerlModule statement for Embperl in
>       > your httpd.conf
>       >       >
>       >       >       Gerald
>       >       >
>       >       >

>       >       >       > -----Original Message-----
>       >       >       > From: abhishek jain [mailto: ]
>       >       >       > Sent: Thursday, January 03, 2008 4:59 AM

>       >       >       > To:
>       >       >       > Subject: Process exists - Segmentation fault
>       >       >       >

>       >       >       > Hi,
>       >       >       > I am running modperl 2.x + embperl on centos
>       > 4.5 Now when i
>       >       >       > run on MaxRequestsPerChild 1 the app. runs

>       > well but as i
>       >       >       > increase its value after every third refresh
>       > of browser a
>       >       >       > blank page appears, also the process size

>       > exceeds probably to
>       >       >       > 19M , and in error_log segmentation fault
>       > error appears.
>       >       >       > I believe the size exceeds some threshold.

>       >       >       > Now is there a way to increase the value of
>       >       > MaxRequestsPerChild ?
>       >       >       > Can i increase the threshold value of
> size of a

>       >       > process or so ?
>       >       >       > Thanks,
>       >       >       > Abhishek jain
>       >       >       >
>       >       >       >

>       >       >       >
>       >       >
>       >       >       ** Virus checked by BB-5000 Mailfilter **
>       >       >
>       >       >
>       >       >

>       >       >
>       >
>       >       ** Virus checked by BB-5000 Mailfilter **
>       >
>       >
>       >
>       >
>
>       ** Virus checked by BB-5000 Mailfilter **

>
>
>
>

** Virus checked by BB-5000 Mailfilter **



------=_Part_15558_13281452.1200359697964--

Re: Re: Re: Re: Process exists - Segmentation fault

am 15.01.2008 09:17:28 von calypso singer man

Hi,

I was getting some bizarre seg faults with embperl a month or two ago.
The site used to work fine, then it started segfaulting all over the
place after I did a new linux install. I started erasing huge blocks
of code until I found the code responsible: for some reason, having a
BEGIN {} block in my base.html, with a few use's and such in it, was
causing seg faults. I moved that code into startup.pl and it stopped
segfaulting.

I have no idea if this applies to you, Abhishek, but I just wanted to
share.

Greetings,

Allen


On Tue, Jan 15, 2008 at 01:14:57AM +0000, abhishek jain wrote:
> Hi Gerald,
> Sorry for a late reply ,
> no make test did not worked correctly, it did tested the modperl part and
> gave error like an error on line 21.
> I will try to give the exact error later,
> Thanks,
> Abhishek jain
>
>
> On 1/9/08, Gerald Richter - ECOS GmbH wrote:
> >
> > Hi,
> >
> > Maybe we should go one step back:
> >
> > Does "make test" works correctly for you?
> >
> > Does it also test the mod_perl part?
> >
> > Gerald
> >
> >
> > > -----Original Message-----
> > > From: abhishek jain [mailto:mail@ejain.com]
> > > Sent: Monday, January 07, 2008 2:59 AM
> > > To: Gerald Richter
> > > Cc: modperl@perl.apache.org
> > > Subject: Re: Re: Re: Process exists - Segmentation fault
> > >
> > > Hi Its me again,
> > > But still the things are not working right.
> > > I tried to recompile Embperl and put PerlModule Embperl after
> > > LoadModule embperl_module ..............
> > >
> > > Now i do not remember it was before or now but after i
> > > uncomment the 'PerlModule Embperl' line and things stop
> > > working i do not receieve $r=shift; variable i mean $r = undef here.
> > > Is it due to something i did during installation of embperl.
> > > Also If i uncomment the line 'MaxRequestsPerChild 1' and
> > > comment 'PerlModule Embperl ' then i recveive this line in
> > > error log [Sun Jan 06 18:44:11 2008] [notice] child pid 30280
> > > exit signal Segmentation fault (11)
> > >
> > > (May be error and page refreshes itself i mean the code
> > > produces output.)
> > >
> > > and page appears , sometimes the same error appears twice and
> > > page does not appears.
> > >
> > > I am not sure have this error been encountered by someone
> > > else but things are not working right for me . Also if
> > > someone wants i can mail the Embperl logs to someone
> > > individually, i do not want to make the logs public.
> > > Pl help. I am working on the site http://delhi.pm.org/ it is
> > > the delhi perl mongers site and people in this group have
> > > limited knowledge of embperl but this will push up the
> > > embperl in Delhi .
> > > --
> > > Thanks
> > > Abhishek jain
> > >
> > >
> > > On 1/4/08, Gerald Richter - ECOS GmbH wrote:
> > >
> > > Hi,
> > >
> > > Not sure if it makes any difference, but the lines
> > >
> > > LoadModule embperl_module
> > >
> > > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > > bperl/Embp
> > > erl.so
> > > PerlModule Apache::DBI
> > > PerlModule Embperl
> > >
> > > Should be outside of the VirtualHost block (they are
> > > global anyway)
> > >
> > > The other thing that you should make sure, is that
> > > mod_perl is compiled
> > > with the same Perl that Embperl is and both are using
> > > modules from the
> > > path /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
> > >
> > > If there is any version mismatch, things cannot run correctly.
> > >
> > > Gerald
> > >
> > >
> > > > -----Original Message-----
> > > > From: abhishek jain [mailto: mail@ejain.com]
> > > > Sent: Thursday, January 03, 2008 8:20 PM
> > > > To: Gerald Richter
> > > > Cc: modperl@perl.apache.org
> > > > Subject: Re: Re: Process exists - Segmentation fault
> > > >
> > > > Hi,
> > > > Adding PerlModule Embperl did not solved the problem , infact
> > > > it aggreviated it. With this the page is not didsplaye at all.
> > > > My apache configuration is:
> > > >
> > > > :80>
> > > > SuexecUserGroup "#" "#"
> > > > ServerName xxxxxxxxxxxxxxxxx
> > > > ServerAlias www.xxxxxxxxxxxxxxxxx
> > > > DocumentRoot
> > > > ErrorLog

/logs/error_log
> > > > CustomLog /logs/access_log combined
> > > > LoadModule embperl_module
> > > > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > > bperl/Embperl.so
> > > > PerlModule Apache::DBI
> > > > PerlModule Embperl
> > > > >
> > > > Options Indexes IncludesNOEXEC FollowSymLinks
> > > > allow from all
> > > > AllowOverride All
> > > >
> > > > $">
> > > > SetHandler perl-script
> > > > PerlHandler Embperl::Object
> > > > Options ExecCGI
> > > >

> > > >
> > > > Order allow,deny
> > > > Deny From all
> > > >

> > > >
> > > > Order allow,deny
> > > > Deny From all
> > > >

> > > >
> > > >
> > > >

> > > > >
> > > > allow from all
> > > >

> > > > PerlSetEnv EMBPERL_ESCMODE 0
> > > > PerlSetEnv EMBPERL_OPTIONS 16
> > > > PerlSetEnv EMBPERL_MAILHOST
> > > > PerlSetEnv EMBPERL_OBJECT_BASE _base.epl
> > > > PerlSetEnv EMBPERL_OBJECT_FALLBACK
> > > notfound.html
> > > > PerlSetEnv EMBPERL_DEBUG 0
> > > > PerlSetEnv EMBPERL_OBJECT_APP epwebapp.pl
> > > >
> > > >
> > > >
> > > > Thanks,
> > > > Abhishek jain
> > > >
> > > >
> > > > On 1/3/08, Gerald Richter - ECOS GmbH wrote:
> > > >
> > > > Please add a
> > > >
> > > > PerlModule Embperl
> > > >
> > > > Somewhere _after_ the LoadModule
> > > >
> > > > Gerald
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: abhishek jain [mailto: mail@ejain.com]
> > > > > Sent: Thursday, January 03, 2008 12:53 PM
> > > > > To: Gerald Richter
> > > > > Cc: modperl@perl.apache.org
> > > > > Subject: Re: Process exists - Segmentation fault
> > > > >
> > > > > Hi,
> > > > > I have the following statement in my httpd.conf
> > > > >
> > > > > LoadModule embperl_module
> > > > >
> > > > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/ Em
> > > > > bperl/Embperl.so
> > > > >
> > > > > I do not have a related PerlModule just one
> > > for Apache::DBI .
> > > > > Thanks,
> > > > > Abhishek jain
> > > > >
> > > > > On 1/3/08, Gerald Richter - ECOS GmbH <
> > > > richter@ecos.de > > > > > wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > Apache with mod_perl will always have
> > > this size or even
> > > > > more. This is
> > > > > ok.
> > > > >
> > > > > ulimit -a shows the process limits, but
> > > should normaly
> > > > > not a problem
> > > > >
> > > > > The behaviour you describe occurs when
> > > you do _not_
> > > > > have a LoadModule
> > > > > _and_ a PerlModule statement for Embperl in
> > > > your httpd.conf
> > > > >
> > > > > Gerald
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: abhishek jain [mailto: mail@ejain.com]
> > > > > > Sent: Thursday, January 03, 2008 4:59 AM
> > > > > > To: modperl@perl.apache.org
> > > > > > Subject: Process exists - Segmentation fault
> > > > > >
> > > > > > Hi,
> > > > > > I am running modperl 2.x + embperl on centos
> > > > 4.5 Now when i
> > > > > > run on MaxRequestsPerChild 1 the app. runs
> > > > well but as i
> > > > > > increase its value after every third refresh
> > > > of browser a
> > > > > > blank page appears, also the process size
> > > > exceeds probably to
> > > > > > 19M , and in error_log segmentation fault
> > > > error appears.
> > > > > > I believe the size exceeds some threshold.
> > > > > > Now is there a way to increase the value of
> > > > > MaxRequestsPerChild ?
> > > > > > Can i increase the threshold value of
> > > size of a
> > > > > process or so ?
> > > > > > Thanks,
> > > > > > Abhishek jain
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > ** Virus checked by BB-5000 Mailfilter **
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > ** Virus checked by BB-5000 Mailfilter **
> > > >
> > > >
> > > >
> > > >
> > >
> > > ** Virus checked by BB-5000 Mailfilter **
> > >
> > >
> > >
> > >
> >
> > ** Virus checked by BB-5000 Mailfilter **
> >

--



"I think it's interesting that other countries wonder why they would be
increasing their defense effort at the pace they are and yet not
acknowledging it", Rumsfeld said. "That is as interesting as the fact that
it's increasing as the pace it is."




************************************************************ *******
keep it between you and me: get my pgp key with
gpg --keyserver wwwkeys.nl.pgp.net --recv-keys DEDDEE19
key fingerprint: 68B5 83BA 42CE 3305 F274 3D9E 71BF 4E42 DEDD EE19
************************************************************ *******