pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mario Emmenlauer <mario@emmenlauer.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
Date: Mon, 05 Oct 2020 10:35:22 -0400
Message-ID: <1720575.1601908522@sss.pgh.pa.us> (raw)
In-Reply-To: <48bafc63-c30f-3962-2ded-f2e985d93e86@emmenlauer.de>
References: <48bafc63-c30f-3962-2ded-f2e985d93e86@emmenlauer.de>

Mario Emmenlauer <mario@emmenlauer.de> writes:
> I get reproducibly the error:
> 2020-10-05 11:48:19.720 CEST [84731] WARNING:  dup(0) failed after 0 successes: Bad file descriptor

Hmph.  That code loop assumes that stdin exists to be duplicated,
but maybe if it had been closed, you'd get this error.

However, that logic hasn't changed in decades, and we've not heard
complaints about it before.  Are you starting the server in some
unusual way?

			regards, tom lane





view thread (10+ messages)  latest in thread

Message-ID: <1720575.1601908522@sss.pgh.pa.us>
Permalink:  ../1720575.1601908522@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1720575.1601908522@sss.pgh.pa.us

 · 

reply

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mario@emmenlauer.de
  Subject: Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
  In-Reply-To: <1720575.1601908522@sss.pgh.pa.us>
  References: <48bafc63-c30f-3962-2ded-f2e985d93e86@emmenlauer.de> <1720575.1601908522@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