From: Tom Lane <tgl@sss.pgh.pa.us>
To: zhitelev.ivan@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16680: Crash database with sefault 11
Date: Wed, 21 Oct 2020 10:21:27 -0400
Message-ID: <728718.1603290087@sss.pgh.pa.us> (raw)
In-Reply-To: <16680-ffe81c53d7013bfe@postgresql.org>
References: <16680-ffe81c53d7013bfe@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> PostgreSQL version: 10.5
> Operating system: Debian stretch 9.11. Core version: 4.9.0-11-amd64
> Core was generated by `postgres: apipy pgapp 10.10.24.20(370'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0 0x00007fb9b5d7a303 in epoll_wait () at
> ../sysdeps/unix/syscall-template.S:84
> 84 ../sysdeps/unix/syscall-template.S: No such file or directory.
> (gdb) bt
> #0 0x00007fb9b5d7a303 in epoll_wait () at
> ../sysdeps/unix/syscall-template.S:84
> #1 0x000056501737c618 in WaitEventSetWait ()
> #2 0x00005650172a6687 in secure_read ()
> #3 0x00005650172b0310 in ?? ()
> #4 0x00005650172b1155 in pq_getbyte ()
> #5 0x000056501739d537 in PostgresMain ()
> #6 0x00005650170fc9b5 in ?? ()
> #7 0x0000565017333d1c in PostmasterMain ()
> #8 0x00005650170fdda1 in main ()
That's a mighty interesting backtrace; I don't recall having seen any
reports of crashes in epoll_wait() before. (Well, there's [1],
but I have my doubts about whether that reported backtrace can be
trusted at all.)
The thing is that it's hard to see how a crash in epoll_wait() would
be our bug and not glibc's. Maybe a wild value of the events pointer
could cause that rather than the expected EFAULT result, but it's
fairly clear from the WaitEventSet code that it can't pass a wild
pointer. nevents has to be constant 1, too, given this stack trace.
So I'm suspecting an OS bug. The fact that you're running an EOL'd
Debian branch doesn't inspire much confidence that that's impossible.
I suggest an OS update. While you're at it, update Postgres too ---
10.5 is nine quarterly releases out of date.
regards, tom lane
[1] https://www.postgresql.org/message-id/flat/16094-8fb7061e5370fb00%40postgresql.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, zhitelev.ivan@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16680: Crash database with sefault 11
In-Reply-To: <728718.1603290087@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox