Re: [PATCH] Fix segmentation fault and infinite loop in jsonb_{plperl,plpython}

From: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] Fix segmentation fault and infinite loop in jsonb_{plperl,plpython}
Date: 2026-06-18 11:46:27
Message-ID: CAJ7c6TPM3b5A_0Qp0nwKawV-21bZxQVFY=2MF97PEmAF5_YbXQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Tom,

> Pushed with some comments added.

Thanks for applying the patch.

I looked around and found the same bug in hstore_plperl:

```
=# CREATE EXTENSION IF NOT EXISTS hstore_plperl CASCADE;
CREATE EXTENSION

=# CREATE OR REPLACE FUNCTION hstore_circular() RETURNS hstore
LANGUAGE plperl TRANSFORM FOR TYPE hstore AS $$
my $x;
$x = \$x;
return $x;
$$;
CREATE FUNCTION

=# SELECT hstore_circular();
^CCancel request sent
^CCancel request sent
^CCancel request sent
```

From what I can tell this is the last issue like this. Here is the patch.

Would you like to merge it as well or will it be better to start a new
thread for visibility?

--
Best regards,
Aleksander Alekseev

Attachment Content-Type Size
v1-0001-hstore_plperl-Add-CHECK_FOR_INTERRUPTS-in-referen.patch text/x-patch 1.7 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Jakub Wartak 2026-06-18 11:38:23 Re: proposal - queryid can be used as filter for auto_explain