BUG #14019: Security label TAB causes unexpected EOF and client session termination

Started by nummervet nummervetabout 10 years ago2 messagesbugs
Jump to latest
#1nummervet nummervet
nummervet@mail.ru

The following bug has been logged on the website:

Bug reference: 14019
Logged by: Security label TAB causes unexpected EOF and client session termination
Email address: nummervet@mail.ru
PostgreSQL version: 9.5.1
Operating system: Red Hat Enterprise Linux 6.4, 6.7, 7.2
Description:

Fresh installation of postgresql 9.5.1 from EDB wizard installer causes EOF
errors and client connection termination every time you enter SECURITY LABEL
command and start tabbing for options. The client receives error message:
/opt/PostgreSQL/9.5/bin/psql: line 27: 16163 Segmentation fault (core
dumped) LD_PRELOAD=$PLL LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PG_BIN_PATH/../lib
"$PG_BIN_PATH/psql.bin" "$@"

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: nummervet nummervet (#1)
Re: BUG #14019: Security label TAB causes unexpected EOF and client session termination

nummervet@mail.ru writes:

Fresh installation of postgresql 9.5.1 from EDB wizard installer causes EOF
errors and client connection termination every time you enter SECURITY LABEL
command and start tabbing for options. The client receives error message:
/opt/PostgreSQL/9.5/bin/psql: line 27: 16163 Segmentation fault (core
dumped) LD_PRELOAD=$PLL LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PG_BIN_PATH/../lib
"$PG_BIN_PATH/psql.bin" "$@"

Oh, interesting ... I don't get a crash, but I do get lots more words
offered than I should. Looks like list_SECURITY_LABEL_preposition[]
is missing a trailing NULL, and so you pick up whatever's next in memory.

Will fix, thanks for the report!

regards, tom lane

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs