develooper Front page | perl.perl5.porters | Postings from November 2010

Re: "perl: utf8.c:1997: Perl_swash_fetch: Assertion `klen <=sizeof(PL_last_swash_key)' failed." [5.12.1]

Thread Previous | Thread Next
From:
Chip Salzenberg
Date:
November 25, 2010 19:55
Subject:
Re: "perl: utf8.c:1997: Perl_swash_fetch: Assertion `klen <=sizeof(PL_last_swash_key)' failed." [5.12.1]
Message ID:
AANLkTimRfdnwE2EbPjkYVKknUEZi3VL8U5ms8iVGiG5r@mail.gmail.com
On Thu, Nov 25, 2010 at 7:47 PM, Chip Salzenberg <rev.chip@gmail.com> wrote:
> I've uncovered the string that's causing this problem.  When the
> attached string has the utf8 bit enabled and a regex is applied, Perl
> dies with the above exception.  Fortunately, utf8::valid() returns
> false....

I attached the wrong string.  That one was the one that Encode::Guess
misinterpreted.  This one, though, is the one that crashes Perl.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About