** Description changed:

+ [Impact]
+ 
+ When using an interactive bind9 tool, such as nslookup or nsupdate, and
+ exiting abruptly with SIGINT/ctrl + c, the terminal output breaks and
+ further command inputs are no longer visible.
+ 
+ The fix should be added to stable releases to fix the result of the
+ common situation of exiting with SIGINT.
+ 
+ This is fixed by using libedit's readline terminal cleanup function
+ prior to exiting in the case of an interactive blocked SIGINT.
+ 
+ [Test Plan]
+ 
+ The fix can be tested by installing bind9, running nslookup or nsupdate
+ with no arguments, then pressing ctrl + c. With the fix in place, the
+ terminal will function normally afterward.
+ 
+ [Where problems could occur]
+ 
+ The fix involves linking against libedit in the bind9 main library,
+ which could change behavior. Issues could also occur if the terminal
+ reset were to run at an unexpected time, wherever there is a blocked out
+ section in bind9 tools that allow for SIGINT to be used.
+ 
+ [Other Info]
+  
+ This is already fixed in bind 9.20.x through major refactors to user input 
overall. This fix is unrelated and more minimal. It will be included alongside 
the update to 9.18.37 - LP: #2112520
+ Upstream also did not fix this issue intentionally - 
https://gitlab.isc.org/isc-projects/bind9/-/issues/839
+ 
+ [Original Description]
+ 
  When a nslookup command is issued and quit, the gnome-terminal do not
  show what is typed, but command are accepted and output is displayed.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: gnome-terminal 3.52.0-1ubuntu2
  ProcVersionSignature: Ubuntu 6.11.0-26.26~24.04.1-generic 6.11.11
  Uname: Linux 6.11.0-26-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.6
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
- Date: Sun Jun  1 12:47:55 2025
+ Date: Sun Jun 1 12:47:55 2025
  InstallationDate: Installed on 2025-05-31 (1 days ago)
  InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 
(20250215)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: gnome-terminal
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2112278

Title:
  shell error typing after nslookup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/2112278/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to