From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: starbugs@qq.com
Subject: BUG #16187: The usage of undefined value in parallel.c
Date: Mon, 06 Jan 2020 03:02:20 +0000
Message-ID: <16187-11eb1f173582b451@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16187
Logged by: Jian Zhang
Email address: starbugs@qq.com
PostgreSQL version: 12.1
Operating system: Linux
Description:
We checked the code in file “parallel.c” and there is one error occurring in
line 1606. This error is caused by the usage of variable with undefined
value. The code in this line is “FD_SET(pstate->parallelSlot[i].pipeRead,
&workerset);”. The pointer “pstate” is an input parameter of function
“getMessageFromWorker” and has never changed before line 1606. The program
should check the effectiveness of input parameter “pstate” to avoid this
error.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, starbugs@qq.com
Subject: Re: BUG #16187: The usage of undefined value in parallel.c
In-Reply-To: <16187-11eb1f173582b451@postgresql.org>
References: <16187-11eb1f173582b451@postgresql.org>
* 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