Re: 'Bad file descriptor: dup2( 1, 2 )' error on MacOS CI tasks - Mailing list pgsql-hackers

From Andres Freund
Subject Re: 'Bad file descriptor: dup2( 1, 2 )' error on MacOS CI tasks
Date
Msg-id tueyz2cz6tbnnxxnku7buhhy3y4eg5uteozlqcs6fesawxc2un@6puizckwlwg6
Whole thread
In response to Re: 'Bad file descriptor: dup2( 1, 2 )' error on MacOS CI tasks  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

On 2026-04-01 10:26:54 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.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)

I think that means you have the old version. The new, broken, version appears
to be p5.34-io-tty @ 1.240.0

The problematic version was just released two days ago, so if you last did a
port update on the 22nd, it'd make sense that you don't have the problematic
version yet.

The macports change was:
https://github.com/macports/macports-ports/commit/7aafb014a1204e7bef28d5ec5b907bd2b0dee018

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andreas Karlsson
Date:
Subject: Re: [PATCH] Add fx exchange support to money type
Next
From: Melanie Plageman
Date:
Subject: Re: AIO / read stream heuristics adjustments for index prefetching