in reply to Segmentation fault on concat

Perl should never segfault(*). If you can reduce it to a small standalone program that exhibits the segfault, and if it still segfaults using 5.8.5, then report it using perlbug.

Dave.

(*) ignoring of course: deeply recursive regexes, foreach loops that modify the loop array, functions that delete variables used by the caller in the arglist, anything involving /(?{...})/, and of course anything with the slightest whiff of XS.

Replies are listed 'Best First'.
Re^2: Segmentation fault on concat
by pg (Canon) on Nov 18, 2004 at 02:22 UTC

    "Perl should never segfault(*). "

    Why ;-?

    It might make sense to say that it is not really up to the OP to cause seg fault, unless he is directly doing some c code through Perl. But Perl seg faults, as what inside is c, and c seg faults.

    Does't matter whether his code is bad or good. If Perl seg faults when run his code, it is still a bug in Perl.

    Update:

    After read gaal's reply, and also some private chat with her, I think that I might have misunderstood dave_the_m's intention, and actually he meant the same thing as what I put in my reply.

      I believe dave_the_m meant that perl isn't supposed to segfault, and that if it does it's a bug in perl -- not to claim the OP was lying :)
        I believe dave_the_m meant that perl isn't supposed to segfault
        yeah, I meant that, just didn't phrase it well. Apologies to the OP!

        Dave.

Re^2: Segmentation fault on concat
by Cody Pendant (Prior) on Nov 18, 2004 at 03:01 UTC
    anything involving /(?{...})/

    Care to elaborate on that? I don't know what problem you're referring to.



    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print
      Care to elaborate on that? I don't know what problem you're referring to
      I can't remember the exact details off the top of my head, but I seem to remember that trying to clone an anon sub within an re_eval is bad news. I'm currently in the process of rewriting the (?{...}) implementation for 5.10.0 to avoid such problems.

      Dave.