Re: pltcl crashes due to a syntax error

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "a.kozhemyakin" <a.kozhemyakin@postgrespro.ru>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2024-06-01T18:18:59Z
Lists: pgsql-hackers
"a.kozhemyakin" <a.kozhemyakin@postgrespro.ru> writes:
> When executing the following query on master branch:

> CREATE EXTENSION pltcl;
> CREATE or replace PROCEDURE test_proc5(INOUT a text)
>          LANGUAGE pltcl
>          AS $$
>          set aa [concat $1 "+" $1]
>          return [list $aa $aa])
>          $$;

> CALL test_proc5('abc');
> CREATE EXTENSION
> CREATE PROCEDURE
> server closed the connection unexpectedly

Replicated here.  I'll look into it later if nobody beats me
to it.  Thanks for the report!

			regards, tom lane



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix pl/tcl's handling of errors from Tcl_ListObjGetElements().