perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter - ECOS GmbH" <rich...@ecos.de>
Subject RE: RE: Re: seg fault from foreach loop
Date Fri, 29 Jun 2007 20:00:07 GMT
Hi,

The attached patch will print an error message instead of segfaulting.

Gerald


------------------------------------------------------------------------
--
Gerald Richter       ECOS electronic communication services GmbH
*******************  SECURING YOUR NETWORK  ********************

Post:       Tulpenstrasse 5            D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de            Voice:   +49 6133 939-122
WWW:        http://www.BB-5000.info    Fax:     +49 6133 939-333

Sitz der Gesellschaft: Dienheim; AG Mainz HRB 6889; GF: W.Heck, 
G.Richter
------------------------------------------------------------------------
--
 
  

> -----Original Message-----
> From: Kato M Yoshiro [mailto:kato13@ameritech.net] 
> Sent: Thursday, June 07, 2007 9:06 PM
> To: embperl@perl.apache.org
> Subject: RE: Re: seg fault from foreach loop
> 
> 
> 
> 
> Hi,
> 
> > 
> > I found the error one of my input tags had a typo
> > 
> > <input type="text" name="date_sub" size="10" maxlength="10"
> > value="[+$date+]" class="formfield"'>
> > 
> > note the extra ' at the end of the input tag. That combined 
> with the 
> > foreach syntax described below caused the segmentation fault. If 
> > anyone wants to further debug this I will be happy to help out.
> > 
> 
> Great you found it.
> 
> In case you have a small test page that I can run here and 
> shows the segfault, I would like to try to fix it.
> 
> Gerald
> 
> 
> 
> 
> Here is as small as I can make it
> 
> 
> 
> <HTML>
> <body>
> <form>
> <input type="text" name="d" value=""'>
> [-
> $get_t->[0][0] = 1;
> $get_t->[1][0] = 2;
> -]
> [$foreach $single_t(@{$get_t})$]
> *
> [$endforeach$]
> </form>
> </body>
> </html>
> 
> 
> 
> If you remove either the erroneous  " ' " or the line  
> "$get_t->[1][0] = 2;"
> (reducing the foreach loop to one cycle) the page functions 
> normally. With both in it seg faults. Good luck in debugging 
> this and thanks for all your development work
> --
> View this message in context: 
> http://www.nabble.com/seg-fault-from-foreach-loop-tf3827298.ht
> ml#a11014267
> Sent from the Embperl mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 
> ** Virus checked by BB-5000 Mailfilter ** 
> !DSPAM:416,466858dc131481836612849!
> 
> 


** Virus checked by BB-5000 Mailfilter **
Mime
View raw message