Reduces to: $ perl -e '$a = ""; utf8::upgrade($a); ord($a)' perl: utf8.c:1418: Perl_utf8n_to_uvchr_error: Assertion `0' failed. zsh: abort LD_LIBRARY_PATH=$PWD LD_PRELOAD=$PWD/libperl.so ./perl -e -zefram