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 unexpectedly
This probably means the server terminated abnormally
before 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=<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=<value optimized 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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedFeb 16, '10 at 3:25p
activeFeb 16, '10 at 3:25p
posts1
users1
websitepostgresql.org...
irc#postgresql

1 user in discussion

Pavel Stehule: 1 post

People

Translate

site design / logo © 2021 Grokbase