From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Cc: | n(dot)kalinin(at)postgrespro(dot)ru |
Subject: | BUG #18944: Assertion Failure in psql with idle_session_timeout Set |
Date: | 2025-06-02 06:34:12 |
Message-ID: | 18944-8a926c30f68387dd@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: 18944
Logged by: Nikita Kalinin
Email address: n(dot)kalinin(at)postgrespro(dot)ru
PostgreSQL version: 18beta1
Operating system: ubuntu 22.04
Description:
Hello! When I execute the following query:
psql <<EOF
CREATE TABLE psql_pipeline(a INTEGER PRIMARY KEY, s TEXT);
\startpipeline
COPY psql_pipeline FROM STDIN;
\syncpipeline
\endpipeline
EOF
with `idle_session_timeout` set to, for example, 10000, I get the following
error:
FATAL: terminating connection due to idle-session timeout
psql: common.c:1501: discardAbortedPipelineResults: Assertion
`pset.available_results > 0' failed.
[1] 1747708 abort (core dumped) psql <<<''
Coredump:
#0 __pthread_kill_implementation (threadid=278301224788256,
signo=signo(at)entry=6, no_tid=no_tid(at)entry=0) at ./nptl/pthread_kill.c:44
#1 0x0000fd1d0d757670 in __pthread_kill_internal (signo=6,
threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 0x0000fd1d0d70cb3c in __GI_raise (sig=sig(at)entry=6) at
../sysdeps/posix/raise.c:26
#3 0x0000fd1d0d6f7e00 in __GI_abort () at ./stdlib/abort.c:79
#4 0x0000fd1d0d705cc0 in __assert_fail_base (fmt=0xfd1d0d82c770 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n",
assertion=assertion(at)entry=0xb9a5a2d96080 "pset.available_results > 0",
file=file(at)entry=0xb9a5a2d95fa0 "common.c", line=line(at)entry=1501,
function=function(at)entry=0xb9a5a2dc4138 <__PRETTY_FUNCTION__.3>
"discardAbortedPipelineResults") at ./assert/assert.c:96
#5 0x0000fd1d0d705d30 in __assert_fail
(assertion=assertion(at)entry=0xb9a5a2d96080 "pset.available_results > 0",
file=file(at)entry=0xb9a5a2d95fa0 "common.c", line=line(at)entry=1501,
function=function(at)entry=0xb9a5a2dc4138 <__PRETTY_FUNCTION__.3>
"discardAbortedPipelineResults") at ./assert/assert.c:105
#6 0x0000b9a5a2d3ec10 in discardAbortedPipelineResults () at common.c:1501
#7 ExecQueryAndProcessResults (query=query(at)entry=0xb9a5bfbe5690 "COPY
psql_pipeline FROM STDIN;",
elapsed_msec=elapsed_msec(at)entry=0xffffe844e8a0,
svpt_gone_p=svpt_gone_p(at)entry=0xffffe844e89f, is_watch=is_watch(at)entry=false,
min_rows=min_rows(at)entry=0, opt=opt(at)entry=0x0,
printQueryFout=printQueryFout(at)entry=0x0) at common.c:1828
#8 0x0000b9a5a2d3cc20 in SendQuery (query=0xb9a5bfbe5690 "COPY
psql_pipeline FROM STDIN;") at common.c:1212
#9 0x0000b9a5a2d52c14 in MainLoop (source=source(at)entry=0xfd1d0d880880
<_IO_2_1_stdin_>) at mainloop.c:515
#10 0x0000b9a5a2d375b0 in process_file (filename=0x0,
use_relative_path=use_relative_path(at)entry=false) at command.c:4870
#11 0x0000b9a5a2d31bc4 in main (argc=<optimized out>, argv=<optimized out>)
at startup.c:420
It appears to be a continuation of this thread:
https://www.postgresql.org/message-id/ebf6ce77-b180-4d6b-8eab-71f641499ddf@postgrespro.ru
--
Nikita Kalinin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
From | Date | Subject | |
---|---|---|---|
Next Message | Duncan Sands | 2025-06-02 07:12:50 | Re: Logical replication 'invalid memory alloc request size 1585837200' after upgrading to 17.5 |
Previous Message | Michael Paquier | 2025-06-02 05:21:24 | Re: BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL |