- Package:
- src:readline
- Source:
- src:readline
- Submitter:
- John Chittum
- Date:
- 2025-08-28 13:45:03 UTC
- Severity:
- normal
- Tags:
Subject: readline event-hook may hang while waiting on input Package: libreadline8t64 Source: readline X-Debbugs-Cc: john.chittum@canonical.com Version: 8.3-1 Severity: important Tags: patch readline 8.3 contains a bug, identified upstream, with the event-hook leading to complete hang waiting for input. https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00012.html upstream patch at : https://ftp.gnu.org/gnu/readline/readline-8.3-patches/readline83-001 This affects packages such as octave. Reproducible: * apt install octave * octave --no-gui * attempt input. Tracked in Ubuntu at : https://bugs.launchpad.net/ubuntu/+source/readline/+bug/2118818 attached is a unified diff version with *somewhat* close to dep3 headers (i make no promises)--- a/input.c +++ b/input.c @@ -261,13 +261,16 @@ input = 0; tty = fileno (rl_instream); · - /* Move this up here to give it first shot, but it can't set chars_avail */ + /* Move this up here to give it first shot, but it can't set chars_avail, + so we assume a single character is available. */ /* XXX - need rl_chars_available_hook? */ if (rl_input_available_hook) { result = (*rl_input_available_hook) (); if (result == 0) result = -1; + else + chars_avail = 1; } · #if defined (HAVE_PSELECT) || defined (HAVE_SELECT) @@ -285,6 +288,7 @@ #endif if (result <= 0) »······return 0;»······/* Nothing to read. */ + result = -1;»····/* there is something, so check how many chars below */ } #endif · --- a/patchlevel +++ b/patchlevel @@ -1,3 +1,3 @@ # Do not edit -- exists only for use by patch · -0 +1
We believe that the bug you reported is fixed in the latest version of readline, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1111639@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthias Klose <doko@debian.org> (supplier of updated readline package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Thu, 28 Aug 2025 15:09:37 +0200 Source: readline Architecture: source Version: 8.3-2 Distribution: unstable Urgency: medium Maintainer: Matthias Klose <doko@debian.org> Changed-By: Matthias Klose <doko@debian.org> Closes: 1097778 1111639 Changes: readline (8.3-2) unstable; urgency=medium . * Apply upstream patches 001. Closes: #1111639. * Builds with GCC 15. Closes: #1097778. Checksums-Sha1: 99395b745a46e25ced7ba033ee27326798762664 2817 readline_8.3-2.dsc 347d568f5b42d9cd3c9747f8133e62dd91bbe832 33952 readline_8.3-2.debian.tar.xz a3b62720745970a9a6a76f5260ce5e71b59f32ac 7388 readline_8.3-2_source.buildinfo Checksums-Sha256: 699fd659d495733f83d2aef90bb7a24e669ac1f3700d8a1ed7485559d8f260f0 2817 readline_8.3-2.dsc 3d89bc7de3d691306862fefdc8a5b96cdbec5b7f8adbb9c9f5229a158991291d 33952 readline_8.3-2.debian.tar.xz 6f937fd8e24ff1e730d0a90cca98137b26b214402923152d63873ede0fbf2c9b 7388 readline_8.3-2_source.buildinfo Files: d8990a4caf96191898ce21a16233d7f1 2817 libs optional readline_8.3-2.dsc 529fc9be5e9b00190444a115293d6316 33952 libs optional readline_8.3-2.debian.tar.xz 9ca5bd20336e1b5251abb3ea2d9507c3 7388 libs optional readline_8.3-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmiwVboQHGRva29AZGVi aWFuLm9yZwAKCRC9fqpgd4+m9es+D/sFYrOibHE1XbLPoxwtoiNzEEvudiATPaKg 0d4nGo8/QQJUTfJuZwGM4w0D1IuXZnq6gUJJ9A/ooZJk6CoRMoJ3lOJKQcizXhhx mLQvlhMq1k8Xk3Z9VSbrb5cZCsLMy4Y+4s/avKClbTd85HS60HS1QZkvWu44Pi2c JYn5+kCfSl3gfodBgRnJdT6F+lwWg3mZOcKBunAsxjmiV+XL4YFmRerJm9rn7zcI dCTXimQbWiA0fMAqqR4Ow9XpgOBi0aA8o4kERAfICa+iJ/A0ak7FEh746OPZVov+ bJlFfiKdKpUccjNBpC2YLuCKcBA3egt3eB0x5NCw3sWFDRv2j4nhBICP3IXFlvtf YXTRUOq80YmMQYToV++9N4MgxkZQj183pulc4f8piGF7/uAoq4/7GSV1crm4MG/j tM7cHRI8fkwG7Kw4ltHhaHaZKcHS50x1XfDLSN2ti9rN+9U6FfHdDFjSycg8LQqZ 1y93a59TK9DOJ75fONDQIRUJOOKBZFKVmOR2X/ROPaKpdR47ueY1mRdMHMChgYCt 4U57FLnTiez1rH+1xkaBB08XMI1DVSiHTACvSnMnZAfHpzAQXkV4CJPIrpfuUqhY aO5DGbtXWK6R64Nu9CYgfy2EVLKRRV4kE30fYhH+hy1GYW0snEnkQ7RdhrqkLV4I JpAmOd3wiA== =4Vhs -----END PGP SIGNATURE-----