pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15435: Infinite-recursive SQL procedure can crash a database server
3+ messages / 3 participants
[nested] [flat]
* BUG #15435: Infinite-recursive SQL procedure can crash a database server
@ 2018-10-17 06:18 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: PG Bug reporting form @ 2018-10-17 06:18 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: emuser20140816@gmail.com
The following bug has been logged on the website:
Bug reference: 15435
Logged by: rlbxku1r
Email address: emuser20140816@gmail.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();
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15435: Infinite-recursive SQL procedure can crash a database server
@ 2018-10-17 14:12 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2018-10-17 14:12 UTC (permalink / raw)
To: emuser20140816@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> CREATE PROCEDURE proc1() LANGUAGE sql AS 'CALL proc1();';
> CALL proc1(); -- crash
Works for me in 11.0, no doubt as a result of this last-minute fix:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=db9034bf7653fa527e2531e1a713dbbd3...
=# CALL proc1();
ERROR: stack depth limit exceeded
HINT: Increase the configuration parameter "max_stack_depth" (currently 2048kB), after ensuring the platform's stack depth limit is adequate.
CONTEXT: SQL function "proc1" statement 1
SQL function "proc1" statement 1
SQL function "proc1" statement 1
SQL function "proc1" statement 1
SQL function "proc1" statement 1
SQL function "proc1" statement 1
... lots more ...
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15435: Infinite-recursive SQL procedure can crash a database server
@ 2018-10-17 14:30 fn ln <emuser20140816@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: fn ln @ 2018-10-17 14:30 UTC (permalink / raw)
To: tgl@sss.pgh.pa.us; +Cc: pgsql-bugs@lists.postgresql.org
I had missed it. Thanks.
2018年10月17日(水) 23:12 Tom Lane <tgl@sss.pgh.pa.us>:
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> > CREATE PROCEDURE proc1() LANGUAGE sql AS 'CALL proc1();';
> > CALL proc1(); -- crash
>
> Works for me in 11.0, no doubt as a result of this last-minute fix:
>
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=db9034bf7653fa527e2531e1a713dbbd3...
>
> =# CALL proc1();
> ERROR: stack depth limit exceeded
> HINT: Increase the configuration parameter "max_stack_depth" (currently
> 2048kB), after ensuring the platform's stack depth limit is adequate.
> CONTEXT: SQL function "proc1" statement 1
> SQL function "proc1" statement 1
> SQL function "proc1" statement 1
> SQL function "proc1" statement 1
> SQL function "proc1" statement 1
> SQL function "proc1" statement 1
> ... lots more ...
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-10-17 14:30 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 06:18 BUG #15435: Infinite-recursive SQL procedure can crash a database server PG Bug reporting form <noreply@postgresql.org>
2018-10-17 14:12 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-10-17 14:30 ` fn ln <emuser20140816@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox