Package: libjline4-java Version: 4.0.14+ds2-1 Severity: important Tags: patch User: [email protected] 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.

