9.0 - core dump - plpgsql - #option dump
9.0 - core dump - plpgsql - #option dump
От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
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 the request.
The connection to the server was lost. Attempting reset: Failed.
!
Program terminated with signal 11, Segmentation fault.
#0 0x00007ffa5c92b9f3 in dump_expr (expr=) 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=) at pl_funcs.c:999
#1 dump_fori (expr=) at pl_funcs.c:548
#2 0x00007ffa5c92b190 in dump_stmt (stmt=) at pl_funcs.c:332
#3 dump_stmts (stmt=) 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=, hashkey=, function=, procTup=, fcinfo=) at pl_comp.c:699
#7 plpgsql_compile (forValidator=, hashkey=, function=, procTup=, fcinfo=) at pl_comp.c:220
#8 0x00007ffa5c91eed2 in plpgsql_validator (fcinfo=) at pl_handler.c:292
Regards
Pavel Stehule