perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Embperl::Object::Execute segfault
Date Fri, 23 Sep 2005 21:30:16 GMT
Hi,

> 
> On Tue, Sep 13, 2005 at 08:56:20AM +0200, Gerald Richter wrote:
> > > Does that make sense Gerald? The corresponding code works 
> fine using 
> > > HTML::EmbperlObject::Execute.
> > 
> > Yes, this makes more sense.
> > 
> > Do you call this from the commandline or from within mod_perl?
> > 
> > If you do it from within mod_perl, can you try it from the 
> command line?
> 
> Yeah, it's from within mod_perl. Same behaviour from the commandline
> though:
> 
>   calix:~$ embpexec.pl execute.html
>   Segmentation fault
> 
> Attached is a tarball with a toy example that reproduces the 
> problem here - can you check whether it segfaults for you?
> 

The problem was caused because $r -> param -> filename was not correcly set
when you call a Embperl::Object page inside an Embperl page, which has lead
to an endless recursion.

The attached patch solves the problem

Gerald


 
** Virus checked by BB-5000 Mailfilter ** 

Mime
View raw message