Hi,
Thanks for the report.
> ### Result
>
> The backend crashes during hstore conversion:
>
> ```text
> AddressSanitizer: SEGV
> plperl_to_hstore
> plperl_sv_to_datum
> plperl_func_handler
> server closed the connection unexpectedly
> ```
Yes, that's quite serious. I propose the attached patch.
--
Best regards,
Aleksander Alekseev