9.0 - core dump - plpgsql - #option dump - Mailing list pgsql-hackers

From Pavel Stehule
Subject 9.0 - core dump - plpgsql - #option dump
Date
Msg-id 162867791002160722k2203e6bbvc0a42303bc7c428d@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hello

Server crash on code

postgres=# create or replace function f() returns void as $$#option
dump begin for i in 1..10 loop raise notice '%', i; end loop; return;
end $$ language plpgsql;
server closed the connection unexpectedlyThis probably means the server terminated abnormallybefore or while processing
therequest.
 
The connection to the server was lost. Attempting reset: Failed.
!

Program terminated with signal 11, Segmentation fault.
#0  0x00007ffa5c92b9f3 in dump_expr (expr=<value optimized out>)   at pl_funcs.c:999
999        printf("'%s'", expr->query);
Missing separate debuginfos, use: debuginfo-install glibc-2.10.2-1.x86_64
(gdb)

Missing separate debuginfos, use: debuginfo-install glibc-2.10.2-1.x86_64
(gdb) bt
#0  0x00007ffa5c92b9f3 in dump_expr (expr=<value optimized out>)   at pl_funcs.c:999
#1  dump_fori (expr=<value optimized out>) at pl_funcs.c:548
#2  0x00007ffa5c92b190 in dump_stmt (stmt=<value optimized out>)   at pl_funcs.c:332
#3  dump_stmts (stmt=<value optimized out>) at pl_funcs.c:392
#4  0x00007ffa5c92b5ae in dump_block (block=0x17d1758) at pl_funcs.c:409
#5  0x00007ffa5c92b77c in plpgsql_dumptree (func=0x1761a78)   at pl_funcs.c:1085
#6  0x00007ffa5c9226ed in do_compile (forValidator=<value optimized out>,   hashkey=<value optimized out>,
function=<valueoptimized out>,   procTup=<value optimized out>, fcinfo=<value optimized out>)   at pl_comp.c:699
 
#7  plpgsql_compile (forValidator=<value optimized out>,   hashkey=<value optimized out>, function=<value optimized
out>,  procTup=<value optimized out>, fcinfo=<value optimized out>)   at pl_comp.c:220
 
#8  0x00007ffa5c91eed2 in plpgsql_validator (fcinfo=<value optimized out>)   at pl_handler.c:292

Regards
Pavel Stehule


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: [COMMITTERS] pgsql: Remove old-style VACUUM FULL (which was known for a little while
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] possible bug with inheritance?