The following bug has been logged on the website:
Bug reference: 15435
Logged by: rlbxku1r
Email address: emuser20140816(at)gmail(dot)com
PostgreSQL version: 11rc1
Operating system: Windows
Description:
CREATE PROCEDURE proc1() LANGUAGE sql AS 'CALL proc1();';
CALL proc1(); -- crash
I've also tried the minimum max_stack_depth, but it has no effect:
SET max_stack_depth TO '100kB';
CALL proc1();