[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
Indeed, it seems to be gone/fixed in 18.04. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: Fix Released Status in gnome-terminal package in Ubuntu: Invalid Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
Fixed in Ubuntu 18.04 ** Changed in: bash (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: Fix Released Status in gnome-terminal package in Ubuntu: Invalid Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
Caused by a bash bug/crash ** Changed in: gnome-terminal (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: Fix Released Status in gnome-terminal package in Ubuntu: Invalid Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
18.04 Bionic, to be released tomorrow, ships bash-4.4.19. So if Kieran's guess is correct then it should no longer crash there; Simon could you please check this once you upgrade your system? -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: Confirmed Status in gnome-terminal package in Ubuntu: Confirmed Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
Possibly what I encountered and reported to BASH (with my other email address) Apply this patch https://ftp.gnu.org/gnu/bash/bash-4.4-patches/bash44-019 Or try building from git, bash 4.4.19. I'll quote report description: "With certain values for PS1, especially those that wrap onto three or more lines, readline will miscalculate the number of invisible characters, leading to crashes and core dumps." -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: Confirmed Status in gnome-terminal package in Ubuntu: Confirmed Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: bash (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: Confirmed Status in gnome-terminal package in Ubuntu: Confirmed Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gnome-terminal (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: Confirmed Status in gnome-terminal package in Ubuntu: Confirmed Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
My locale is as follows: $ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=de_DE.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_ALL= Using “unset PROMPT_COMMAND” had no effect at all (and seems to be empty for me, anyway?). This is pretty much a fresh install, so I’m using Ubuntu’s default value of PS1: $ echo "'$PS1'" '\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' However, when I change that to PS1='\[\033[01;34m\]\w\[\033[00m\]\$ ' there seems to be no more crashing. So it seems that certain values of PS1 do indeed trigger this bug. I have also tried the bash development version, as suggested. Even with the default value of PS1, I haven’t been able to cause a crash there. However, this version goes REALLY crazy with the input prompt (junk characters, erratically printing parts of the history or working directory path to the terminal when pressing the arrow keys, invisible text input etc.) for long working directory paths (with or without Unicode characters), making input all but impossible. So whatever the difference between the two versions is, it’s not an improvement. Anyway, thanks a lot for the help so far. Since I’m not seeing the crash in the newer version, I’m assuming it will be gone when Ubuntu updates (with the weird behavior for long paths hopefully due to different compiler flags or something like that). As a workaround, modifying PS1 seems to work. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: New Status in gnome-terminal package in Ubuntu: New Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1745273] Re: Cannot open terminal with long working directory name containing Unicode characters
Hi, The bash bug I linked indeed seems to be a different one; however, it might give some clues about what might going on. E.g. your locale, PS1, PROMPT_COMMAND etc. _might_ be relevant. (I cannot reproduce your problem, although I can see the prompt incorrectly showing parts of color changing escape sequences. I have a custom PS1, though. Allegedly work-in-progress bash-4.5 is going to contain yet another bunch of related fixes.) Could you try for example to “unset PROMPT_COMMAND” at the last line of your .bashrc, or change to a much simpler PS1, does it still crash then? Could you please try with bash development version? git clone https://git.savannah.gnu.org/git/bash.git cd bash git checkout devel ./configure make DEBUG= MALLOC_DEBUG= ./bash If this one is still buggy, it would the best if you could raise this issue with upstream bash maintainers. There's a "bashbug" tool that collects the information required by developers. (Since I don't have cmdline email sending set up, I just see which file it opens for me to edit, open the same file in gedit and copy-paste to my favorite email client (this way long lines don't get chopped).) If the devel version is okay then Ubuntu will also be fixed whenever bash-4.5 is released and then Ubuntu upgrades to that, which might still take quite a while. I'm sorry but I won't be able to help backporting the fix to Ubuntu, I'm not an Ubuntu developer, just lurking around here keeping an eye on gnome-terminal :) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to bash in Ubuntu. https://bugs.launchpad.net/bugs/1745273 Title: Cannot open terminal with long working directory name containing Unicode characters Status in bash package in Ubuntu: New Status in gnome-terminal package in Ubuntu: New Bug description: 1) The release of Ubuntu you are using: Ubuntu 17.10 2) The version of the package you are using: gnome-terminal version 3.24.2-0ubuntu4; bash version 4.4-5ubuntu1 3) What you expected to happen: When opening a terminal window with a long working directory path containing Unicode characters (such as “/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789” in a 80×24 window), gnome-terminal opens normally. 4) What happened instead: gnome-terminal closes immediately, both when opened using gnome-terminal --working-directory=/home/test/01234567890123456789/01234567890123456789/ä/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789 and when changing to this directory using “cd”. There is no output on stderr or anywhere else, the window just closes. It seems that gnome-terminal closes because bash crashes with a segmentation fault, see https://bugs.launchpad.net/ubuntu/+source /gnome-terminal/+bug/1745273/comments/4. This makes it impossible to use the shell for many directories with long paths. This did NOT happen in Ubuntu 16.04. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1745273/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp