Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ethan (3163)

  reversethis-{ed. ... rap.nov.olissat}

Being a 25-year old chap living in the western-most town of Germany. Stuying communication and information science and being a huge fan of XS-related things.

Journal of ethan (3163)

Thursday February 12, 2004
04:18 AM

Making progress error-wise

[ #17371 ]

There is a bug in perl that has been around for very long:

        sub f { $_[0] = 1; $_[0] = "a"; $_[0] = *FOO }
        my @a; f($a[0]);

It is consensus among the porters that fixing it in a proper way will require a new internal type: an lvalue-type that
is large enough to even hold a glob. Out of curiosity I tried to see whether I can possibly fix it. I now see an interesting
evolution in my attempts.

In the unfixed state, you get Can't upgrade that kind of scalar.... After the first stage, I was able to shift the error to segmentation fault. I have now improved it to Out of memory!. :-)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Maybe you can getthe whole system to reboot?
    (Yes, that has been known to be possible with few innocuous lines of Perl.)
    • I haven't yet figured out how to do that. I guess that makes debugging a pleasure when - just before the usual backtrace would appear - your system reboots. Ah, what a bad luck. :-)

      Meanwhile I was able to get rid of the out of memory thing (caused by a reidiculously high xlv_targlen value). After a while however you get to like such errors. Now I no longer get any errors but instead always get undef after assigning the glob. This is much harder to track down as I wont get any nice backtracks.

      Btw, Jarkko,
      • > I haven't yet figured out how to do that.

        That reboot was very system specific, take a look at README.irix.

        > Btw, Jarkko, you seem to have taken a break from the porters
        > lately. Making holidays?

        More like retirement.

        > How irresponsible that would be of you considering that others now have to do all the work! ;-)

        I have to let others to have fun, too.