Re: 'Bad file descriptor: dup2( 1, 2 )' error on MacOS CI tasks

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Noah Misch <noah(at)leadboat(dot)com>
Subject: Re: 'Bad file descriptor: dup2( 1, 2 )' error on MacOS CI tasks
Date: 2026-04-01 14:26:54
Message-ID: 2901836.1775053614@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)anarazel(dot)de> writes:
> On 2026-04-01 16:28:21 +0300, Nazir Bilal Yavuz wrote:
>> My current hypothesis is that all of these three tests use 'IO::Pty'.
>> On MacOS CI, we install this via MacPorts using the 'p5.34-io-tty'
>> package [2], which was updated about 2.5 days ago. I am not sure if is
>> relevant but it has a known issue on Darwin [3]:

> This presumably means that every macports user (e.g. Tom), will see this as
> well after installing the latest updates.

There must be some other factor involved. indri has been using
p5.34-io-tty since I last did "port update" there, which looks
to have been 22 March. And it's not failing. My laptop is
also okay with these tests, and it likewise has

$ port installed | grep io-.ty
p5.34-io-tty @1.200.0_0 (active)

indri and laptop are both on latest macOS Tahoe, maybe the
problem only manifests on older releases?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2026-04-01 14:27:18 Re: table AM option passing
Previous Message Andrew Dunstan 2026-04-01 14:19:32 Re: pg_waldump: support decoding of WAL inside tarfile