← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2128675] Re: Terminal crashes when detaching tab created when in "sudo -i" state

 

(upstream gnome-terminal co-developer here, unaffiliated with Ubuntu)

I cannot reproduce the problem.

I can think of three possible causes:

1. As per lp:2049923, a downstream Ubuntu patch is known to cause crash
when detaching a tab. Ubuntu hasn't worked on fixing that known crash
for almost 2 years now, no comment from me on this.

Can you please try if the workaround (disabling scrollbar) solves it for
you? Although I can't see how this could relate to the directory not
being accessible.

2. Ubuntu still carries super legacy Provide-fallback-for-reading-
current-directory-if-OS.patch, rather than making sure that gnome-
terminal's superior solution (report the directory using the OSC 7
escape sequence) is configured to work correctly; despite us upstream
developers clearly having asked Ubuntu to do this. Maybe there's
something wrong with that patch as it tries to access the inaccessible
directory.

Can you please check if OSC 7 directory reporting is working for you? It
should work if you `source /etc/profile.d/vte-2.91.sh` in your
`.bashrc`. One way to verify: what is your $PROMPT_COMMAND? Another way:
cd into a directory which is a symlink, e.g. `cd /bin`, open a new tab,
does it show in your prompt (or the `pwd` command) the same symlinked
location (e.g. `/bin` - good) or the resolved canonical location (e.g.
`/usr/bin` - bad)? If it's the bad one, add source'ing the
aforementioned file in .bashrc, confirm that it switch to the good
behavior; does this eliminate the crash?

3. Could, of course, be an upstream gnome-terminal, but I honestly find
it quite unlikely.

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/2128675

Title:
  Terminal crashes when detaching tab created when in "sudo -i" state

Status in gnome-terminal package in Ubuntu:
  New

Bug description:
  Repro steps that cause crash 100% of the time

  1) Open new terminal window
  2) sudo -i
  3) cd into a directory that only root has access to. a
  4) Hit The + to create a new tab
  5) Right click on the new tab and choose "detach"

  Immediate crash


  Release info:

  Description:	Ubuntu 24.04.3 LTS
  Release:	24.04

  Package info:

  apt list --installed | grep terminal

  gnome-terminal-data/noble,noble,now 3.52.0-1ubuntu2 all [installed,automatic]
  gnome-terminal/noble,now 3.52.0-1ubuntu2 amd64 [installed,automatic]
  nautilus-extension-gnome-terminal/noble,now 3.52.0-1ubuntu2 amd64 [installed,automatic]

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: gnome-terminal 3.52.0-1ubuntu2
  ProcVersionSignature: Ubuntu 6.8.0-85.85-generic 6.8.12
  Uname: Linux 6.8.0-85-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.8
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Oct 16 19:20:22 2025
  InstallationDate: Installed on 2023-04-26 (904 days ago)
  InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
  SourcePackage: gnome-terminal
  UpgradeStatus: Upgraded to noble on 2024-09-27 (385 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/2128675/+subscriptions



References