You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Martin Moss <ma...@btopenworld.com> on 2004/12/13 19:39:03 UTC
HTML::Embperl + mod_perl + segfault
All,
I'm getting segfaults on every page request I make to
a mod_perl handler thats running under
HTML::Embedperl. We're trying to migrate away from
Embperl as fast as possible, but whenever I call
HTML::Embperl::Execute in my code more than 4 or 5
times.... I get seg faults..
perl 5.6, apache 1.3.33...
I realise that this is one of those 'needle in a
haystack emails' but I was wondering if anybody has
any experience running HTML::Embperl who may have
seen this sort of thing before.. I know that the code
I'm using doesn't segfault when I ran it on a
different machine - one I'd built myself and it was
running under perl 5.8.5.
[Mon Dec 13 18:25:16 2004] [notice] child pid 24141
exit signal Segmentation Fault (11)
We can't upgrade to perl 5.8 as some of the legacy
code we have just breaks - (think code written 5 years
ago, without the concept of use strict).
I've tried looking at the embedperl scripts that are
being called, and no matter which ones I comment
out,(remove possibility that it's some component
within the embperl thats causing it) it's always the
5th or 6th script being run that causes the segfault..
Marty
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
RE: HTML::Embperl + mod_perl + segfault
Posted by Gerald Richter <ri...@ecos.de>.
>
> I upgraded to the latest version of Embedperl
Which 1.3.6 or 2.0rc2 ?
> and ran the
> same code from my previous post.
I don't see the code from your preivious post, sorry. The problem is
somewhere in the file $file. Could you post it?
Gerald
P.S. It's not related to the problem you quoted from the Embperl list
>IT no longer segfaults but I
> get the following error...
>
> Embperl::Execute({
> req_rec=>$r,
> inputfile=>$file,
> param =>[$params],
> output => \$html
> });
>
>
> and I get the following error:-
>
---------------------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
---------------------------------------------------------------------------
ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: HTML::Embperl + mod_perl + segfault
Posted by Martin Moss <ma...@btopenworld.com>.
I upgraded to the latest version of Embedperl and ran
the same code from my previous post. IT no longer
segfaults but I get the following error...
Embperl::Execute({
req_rec=>$r,
inputfile=>$file,
param =>[$params],
output => \$html
});
and I get the following error:-
Error in Perl code: Can't call method "headers_in" on
an undefined value at
Which is $req_rec.
It's undef.
I tried this without the req_rec=>$r too and it made
no difference.
Any ideas? Is it related to
http://www.gossamer-threads.com/lists/modperl/embperl/14815#14815
Regards
Marty
--- Gerald Richter <ri...@ecos.de> wrote:
> >I'm getting segfaults on every page request I make
> to a mod_perl handler
> thats running under >HTML::Embedperl. We're trying
> to migrate away from
> Embperl as fast as possible, but whenever >I call
> HTML::Embperl::Execute in
> my code more than 4 or 5 times.... I get seg
> faults..
>
>
> Embperl has no problems with mod_perl 1 and Perl
> 5.6. It seems like the
> versions you use are not fit together.
>
> Make sure that Perl, mod_perl, Embperl and Apache
> are build with the same
> compiler and the same settings.
>
> Such problem will occur if you have compiled Embperl
> (or mod_perl) with
> differnet compiler settings or for a different Perl
> binary, than the one you
> are actually using.
>
> Gerald
>
>
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info:
> http://perl.apache.org/maillist/modperl.html
> List etiquette:
> http://perl.apache.org/maillist/email-etiquette.html
>
>
___________________________________________________________
Win a castle for NYE with your mates and Yahoo! Messenger
http://uk.messenger.yahoo.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
HTML::Embperl + mod_perl + segfault
Posted by Gerald Richter <ri...@ecos.de>.
>I'm getting segfaults on every page request I make to a mod_perl handler
thats running under >HTML::Embedperl. We're trying to migrate away from
Embperl as fast as possible, but whenever >I call HTML::Embperl::Execute in
my code more than 4 or 5 times.... I get seg faults..
Embperl has no problems with mod_perl 1 and Perl 5.6. It seems like the
versions you use are not fit together.
Make sure that Perl, mod_perl, Embperl and Apache are build with the same
compiler and the same settings.
Such problem will occur if you have compiled Embperl (or mod_perl) with
differnet compiler settings or for a different Perl binary, than the one you
are actually using.
Gerald
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html