Your message dated Thu, 28 Aug 2025 13:43:51 +0000
with message-id <[email protected]>
and subject line Bug#1111639: fixed in readline 8.3-2
has caused the Debian Bug report #1111639,
regarding readline event-hook may hang while waiting on input
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1111639: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111639
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Subject: readline event-hook may hang while waiting on input
Package: libreadline8t64
Source: readline
X-Debbugs-Cc: [email protected]
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)
-- 
-----------------------
Dr. John Chittum
Engineering Manager, Canonical, Debcrafters

*************************************


Readline-Release: 8.3
Patch-ID: readline83-001
Bug-Reported-by:      Dmitri A. Sergatskov <[email protected]>
Bug-Reference-ID:      <CAO+XyQ+ipUzFiXvRrDbTstfm1heZrerjvZGVaC60y=
[email protected]>
Description: If an application uses readline's event hook, it is called
while waiting for
  input. There is a bug in the function that waits for available input that
  causes it not to read that input under certain circumstances, resulting in
  a loop where the event hook continues to be called, but there is no input
  to stop it.
From: Chet Ramey <[email protected]>
Origin: https://ftp.gnu.org/gnu/readline/readline-8.3-patches/readline83-001
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/readline/+bug/2118818
Reviewed-by: John Chittum <[email protected]>

--- 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

--- End Message ---
--- Begin Message ---
Source: readline
Source-Version: 8.3-2
Done: Matthias Klose <[email protected]>

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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 <[email protected]>
Changed-By: Matthias Klose <[email protected]>
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-----

Attachment: pgpMMsk2r2yhS.pgp
Description: PGP signature


--- End Message ---

Reply via email to