in reply to Re^2: Segmentation fault with threads and binmode utf-8
in thread Segmentation fault with threads and binmode utf-8

How dependent is "PerlIO::encoding" on perl version? Can it be dual-lived module?

As is, it cannot, you'll encounter encoding.o:encoding.c:(.text+0x91d): undefined reference to `Perl_PerlIO_save_errno' , Perl_PerlIO_save_errno is only available in the newest perls