This bug has disappeared with gcc-4.1.1/glibc-2.{4,5}. No idea why. I have a 
diff I took from perl-5.9.4 which may get rid of this bug with gcc-3.4.6, but 
I didn't test it:

--- Patch Begin ---
diff -Naur perl-5.8.8.orig/regexec.c perl-5.8.8/regexec.c
--- perl-5.8.8.orig/regexec.c   2006-01-08 20:59:30.000000000 +0000
+++ perl-5.8.8/regexec.c        2006-10-11 01:07:28.000000000 +0000
@@ -323,6 +323,7 @@
  * pregexec and friends
  */
 
+#ifndef PERL_IN_XSUB_RE
 /*
  - pregexec - match a regexp against a string
  */
@@ -338,18 +339,7 @@
        regexec_flags(prog, stringarg, strend, strbeg, minend, screamer, NULL,
                      nosave ? 0 : REXEC_COPY_STR);
 }
-
-STATIC void
-S_cache_re(pTHX_ regexp *prog)
-{
-    PL_regprecomp = prog->precomp;             /* Needed for FAIL. */
-#ifdef DEBUGGING
-    PL_regprogram = prog->program;
 #endif
-    PL_regnpar = prog->nparens;
-    PL_regdata = prog->data;
-    PL_reg_re = prog;
-}
 
 /*
  * Need to implement the following flags for reg_anch:
--- Patch End ---

robert

On Monday 01 August 2005 22:06, Robert Connolly wrote:
> Thank you :)
> I'll switch to using it later this week.
>
> On August 1, 2005 06:29 pm, Ned Ludd wrote:
> > On Fri, 2005-06-24 at 18:51 -0400, Robert Connolly wrote:
> > > Hi. Perl has an open bug for version 5.8.7 with propolice:
> > >
> > > http://[EMAIL PROTECTED]/rt3/index.html?q=36309
> > > http://www.mail-archive.com/perl5-porters%40perl.org/msg88161.html
> > >
> > > "When building perl 5.8.7 with the -fstack-protector patches for GCC,
> > > miniperl fails to build DynaLoader and segfaults. This didn't happen
> > > with 5.8.6."
> > >
> > > There is no fix yet. I think we should use
> > > CFLAGS="$CFLAGS -fno-stack-protector" for now rather than downgrading
> > > to 5.8.6.
> >
> > Robert,
> >
> > When I encountered this bug I traced it down to a recursive
> > regexp call. To temporarily work around without having to disable ssp
> > on the entire package I whipped up the following attached patch which
> > only disables it where needed.
> >
> > Hope it helps.

Attachment: pgpBohgcvJLCM.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to