🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4885

Bug#1154253: jline4: JNI terminal hangs on ppc64el, wrong termios constants

#4885
From: Juan Manuel Méndez Rey
Date: Tue, 17 Nov 2026 21:40
23 lines
2662 bytes
Package: libjline4-java
Version: 4.0.14+ds2-1
Severity: important
Tags: patch
User: debian-powerpc@lists.debian.org
Usertags: ppc64el

The readline autopkgtest times out on ppc64el and passes on the other
architectures, which blocks migration:
https://ci.debian.net/packages/j/jline4/testing/ppc64el/77889897/

It hangs when it opens a system terminal with the JNI provider on a pty.
LinuxNativePty hard-codes the x86 Linux termios values. Linux on powerpc
has another layout: VMIN is 5 and VTIME is 7 (6 and 5 on x86), ICANON is
0x100 and ISIG is 0x80 (0x2 and 0x1), and 54 more constants differ. So on
ppc64el JLine sets wrong terminal attributes and a read can block for ever.

Reproduced under qemu with a ppc64el unstable chroot: the test times out
after 3600 s. With the powerpc values from glibc's termios.h the same test
passes in 15 s. The fix is ready in 4.0.14+ds2-2.

Upstream master (4.7.0) has the same problem in LinuxTermiosMapping.java;
I am sending them the fix.
Technical Details
Message-ID: <O0z4d-cwQC-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Juan Manuel Méndez Rey <juan.mendezr@proton.me>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154253: jline4: JNI terminal hangs on ppc64el, wrong termios constants
Date: Tue, 17 Nov 2026 22:40:01 +0100
Message-ID: <O0z4d-cwQC-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 17 21:31:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Juan Manuel Méndez Rey <juan.mendezr@proton.me>, 1154253@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-java-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1154253
X-Debian-Pr-Package: libjline4-java
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: jline4
Feedback-ID: 176548819:user:proton
X-Pm-Message-ID: ef830c8a8100bbef68dcbe21d134a6f287353fe9
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003197
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 23
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 17 Nov 2026 21:28:58 +0000
X-Original-Message-ID: <db191969924534d47e521591619438d1@proton.me>