I was able to reduce it further to a standalone case: % cat lib/Unicode/EastAsianWidth.pm package Unicode::EastAsianWidth; use strict; use base 'Exporter'; our @EXPORT = qw(InFullwidth); sub InFullwidth { return <<END; END } 1; __END__ % perl -Ilib -e 'A::xx(); package A { use Unicode::EastAsianWidth; sub xx { split /[^\s\p{InFullwidth}]/, "x" } }' perl: util.c:1880: Perl_croak_no_modify: Assertion `0' failed. Aborted (core dumped) % Note that if the module is C<use>d before the package declaration, the assertion is not hit. Hugo --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=130010Thread Previous | Thread Next