[From nobody Sat Aug 29 03:37:07 2026
Received: (at submit) by bugs.debian.org; 25 Feb 2024 21:50:51 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,WEIRD_PORT,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 47; hammy, 150; neutral, 110; spammy,
 0. spammytokens: hammytokens:0.000-+--X-Debbugs-Cc,
 0.000-+--XDebbugsCc, 0.000-+--sk:taint_o, 0.000-+--sk:TAINT_O,
 0.000-+--trixie
Return-path: &lt;vpa1977@gmail.com&gt;
Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:54566)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.94.2) (envelope-from &lt;vpa1977@gmail.com&gt;) id 1reMOZ-009auf-D2
 for submit@bugs.debian.org; Sun, 25 Feb 2024 21:50:51 +0000
Received: by mail-pf1-x42e.google.com with SMTP id
 d2e1a72fcca58-6e4560664b5so1979530b3a.1
 for &lt;submit@bugs.debian.org&gt;; Sun, 25 Feb 2024 13:50:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1708897847; x=1709502647; darn=bugs.debian.org;
 h=date:message-id:subject:to:content-transfer-encoding:mime-version
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=3vxXkh8vo2RhsmDFYORtd4l5ezLgI4UooqnnD+YcKsw=;
 b=TOsKgvwdkHmnFFgxVlkUuiktpAS28NsvWoY4N/fcto+odWXDcx7ppC1EBPApTfmDOd
 ANIyKTdJa47OeZq+EPrkk+lhonLMjiYzNLKst5nRzAqfxcII/PMaHT1dHSWjxbE2oq6d
 vgskRcKvnhi+Mq4GrDtd2fp0z0QI3Pdwg4KGQ66UX2Idc7LmveIMW7wdgLQ2GluGMSv3
 VgN5CCB1Yil8iiucZ87xnG4qt3XMTHgTYaFtLIxjCVThift99g1mIxaHYa/Xm0Y7YNkG
 nOd+Iwh8kOcNJnKNX0wL7rW0c1PzBsNBPMEvCmfQdH6bJDngc8n4JhBdjBPXQnjx9Opo
 S1FQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1708897847; x=1709502647;
 h=date:message-id:subject:to:content-transfer-encoding:mime-version
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=3vxXkh8vo2RhsmDFYORtd4l5ezLgI4UooqnnD+YcKsw=;
 b=mbGFeCKxpQDEnl8qYZIHqKWpCJB5lTIU6hLmyDYEos0ZCGJinvyT/YqPGckx78+6qK
 Rmf5g5mcpeRQy06SsyDTs/5HMmlEsXqcarW8TtVwo868Gw4SOjrEiRJUKMx19gBjV2bw
 xQjecqwHX21CfHHAoosbATELIL5tqaXDi87nJ1btt1pei4BDo1dLbwn1aWXOxWtWStuw
 C0RJryxfyHFYoNB8O3J8tuxfnkjOS+zthnYeNqv/Tv8gfYZxWJOifzW+kMx0Xies0Ihl
 Ag9BJQpxQ6VWe7gSKW0pGVp4nTz85OSZ05sJq3oVar6MsQhkHFvQQCIcjhWx63i6tzqg
 Nvxg==
X-Gm-Message-State: AOJu0YyWtTemlb/BGxwDW4ZLCNuVli8ddvYMHzgi7gCtQFgwgKEgtKe3
 3arr4d9qUgY5G1kgTK48OSmLytuaft0GI53pD6ZtBCjZfvqwiDrCtdw+E/GLjzU=
X-Google-Smtp-Source: AGHT+IEHEEb3aodVCPLxIfW4cOFpD9toCqks4XVSb+xuuK+0eDw8Is/M+lflkUxsUfhw+ZdFBRkmvA==
X-Received: by 2002:a05:6a20:c90a:b0:1a0:ccf2:8f44 with SMTP id
 gx10-20020a056a20c90a00b001a0ccf28f44mr9274961pzb.21.1708897846828; 
 Sun, 25 Feb 2024 13:50:46 -0800 (PST)
Received: from [127.0.1.1] ([203.211.73.163]) by smtp.gmail.com with ESMTPSA id
 l64-20020a632543000000b005d3bae243bbsm2757268pgl.4.2024.02.25.13.50.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 25 Feb 2024 13:50:46 -0800 (PST)
From: Vladimir Petko &lt;vpa1977@gmail.com&gt;
X-Google-Original-From: Vladimir Petko &lt;vladimir.petko@canonical.com&gt;
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: jruby: mri-extra - flaky TestOpen3 pipe tests
Message-ID: &lt;170889783625.517259.15093394342984743458.reportbug@vladimirp&gt;
X-Mailer: reportbug 11.6.0+ubuntu2
Date: Mon, 26 Feb 2024 10:50:36 +1300
Delivered-To: submit@bugs.debian.org

Source: jruby
Version: 9.4.5.0+ds-1
Severity: normal
X-Debbugs-Cc: vladimir.petko@canonical.com

Dear Maintainer,

The autopkgtests for jruby fail `mri-extra` with the following errors:

  1) Failure:
TestOpen3#test_pipeline_start
[/tmp/autopkgtest.Dz4xQk/autopkgtest_tmp/test/mri/test_open3.rb:303]:
Failed assertion, no message given.

  2) Failure:
TestOpen3#test_pipeline_w
[/tmp/autopkgtest.Dz4xQk/autopkgtest_tmp/test/mri/test_open3.rb:288]:
&lt;true&gt; expected but was
&lt;false&gt;.

  3) Failure:
TestOpen3#test_capture3_flip
[/tmp/autopkgtest.Dz4xQk/autopkgtest_tmp/test/mri/test_open3.rb:190]:

The minimal reproducer of those:
----
require 'open3'

RUBY = 'jruby'
Open3.pipeline_r([RUBY, '-e', 'print &quot;1&quot;'],
                     [RUBY, '-e', 'print STDIN.read + &quot;2&quot;']) {|o,ts|
      print(o.read)
    }
---

executing the above sample results in the following output:
# jruby test.rb
12# jruby test.rb
12# jruby test.rb
12# jruby test.rb
12# jruby test.rb
2# jruby test.rb
12# jruby test.rb
2# jruby test.rb
12# jruby test.rb
2# jruby test.rb
2# jruby test.rb
2# jruby test.rb
2# jruby test.rb
12# jruby test.rb
12# jruby test.rb
2Errno::EPIPE: Broken pipe - &lt;STDOUT&gt;
   write at org/jruby/RubyIO.java:1569
   write at org/jruby/RubyIO.java:1458
   write at org/jruby/RubyIO.java:2829
   print at org/jruby/RubyIO.java:1831
   print at org/jruby/RubyKernel.java:649
  &lt;main&gt; at -e:1

Note: the failure occurs both with Java 17 and Java 21


-- System Information:
Debian Release: trixie/sid
  APT prefers mantic-updates
  APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-21-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
]