BUG #14490: psql and createdb crash with SIGSEGV

From: mr(at)marcelruff(dot)info
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14490: psql and createdb crash with SIGSEGV
Date: 2017-01-10 20:29:53
Message-ID: 20170110202953.24287.32435@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14490
Logged by: Marcel Ruff
Email address: mr(at)marcelruff(dot)info
PostgreSQL version: 9.6.1
Operating system: Debian GNU/Linux 8 (jessie) 3.18.44 x86_64
Description:

psql --version
psql (PostgreSQL) 9.6.1

psql
Speicherzugriffsfehler

ldd /usr/local/pgsql/bin/psql
linux-vdso.so.1 (0x00007ffeaf3ba000)
libpq.so.5 => /usr/local/pgsql/lib/libpq.so.5 (0x00007f0d74ba8000)
libreadline.so.6 => /lib/x86_64-linux-gnu/libreadline.so.6
(0x00007f0d74958000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0d74650000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0d742a0000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f0d74080000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5
(0x00007f0d73e50000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0d74dd8000)

strace pqsl
...
connect(3, {sa_family=AF_LOCAL, sun_path="/tmp/.s.PGSQL.5432"}, 110) = 0
getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
getsockname(3, {sa_family=AF_LOCAL, NULL}, [2]) = 0
poll([{fd=3, events=POLLOUT|POLLERR}], 1, 4294967295) = 1 ([{fd=3,
revents=POLLOUT}])
sendto(3, "\0\0\0R\0\3\0\0user\0watchee\0database\0wa"..., 82, MSG_NOSIGNAL,
NULL, 0) = 82
poll([{fd=3, events=POLLIN|POLLERR}], 1, 4294967295) = 1 ([{fd=3,
revents=POLLIN}])
recvfrom(3, "R\0\0\0\10\0\0\0\0E\0\0\0\\SFATAL\0VFATAL\0C3D0"..., 16384, 0,
NULL, NULL) = 102
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++

createdb xxxx
crashes with SIGSEGV as well

Compiled with
./configure --with-pam --with-libxml --with-libxslt

Thank you
Marcel

Note: The server has no DNS setup

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2017-01-11 00:47:31 Re: BUG #14490: psql and createdb crash with SIGSEGV
Previous Message spanu_andrea 2017-01-09 12:30:35 BUG #14489: PG_FUNCTION_INFO_V1(funcname) is not bomb proof