There was an error in the patch I just sent, here is the correct one Gerald
------------------------------------------------------------------------ -- Gerald Richter ECOS electronic communication services GmbH ******************* SECURING YOUR NETWORK ******************** Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] 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: Gerald Richter > Sent: Friday, June 29, 2007 10:00 PM > To: embperl@perl.apache.org; [EMAIL PROTECTED] > Subject: RE: RE: Re: seg fault from foreach loop > > 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: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > ** Virus checked by BB-5000 Mailfilter ** > > !DSPAM:416,466858dc131481836612849! > > > > > > > ** Virus checked by BB-5000 Mailfilter ** > > ** Virus checked by BB-5000 Mailfilter ** > !DSPAM:416,4685667a68761951844734! > > ** Virus checked by BB-5000 Mailfilter **
ep.diff
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]