Gnome terminal can't get into parent directoy

Bug #1100806 reported by Travis Hoppe
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Confirmed
Undecided
Unassigned
gnome-terminal (Ubuntu)
New
Undecided
Unassigned

Bug Description

Open a terminal and run

     mkdir a1
     mkdir a1/a2
     mkdir a1/a2/a3
     mkdir a1/a2/a3/a4
     mkdir a1/a2/a3/a4/foo-bar
     cd a1/a2/a3/a4/foo-bar
     emasc a.cpp &

Note that is `emasc` misspelled intentionally. For some reason, this will close the terminal with no response. This has been confirmed for me on two separate computers. It _does not_ work on a separate shell screen `Control-Alt-F2` and _only_ with the default terminal `Control-Shift-T`. Is something going here that I don't know about?

This happens more often than I like, but this is the only sequence of commands that reproduces the crash(?) every time.

Navigating to the directory and running bash `getcwd()` fails (sometimes...)!

    cd ~/a1/a2/a3/a4/foo-bar
    bash

With the error:

    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    sh: 0: getcwd() failed: No such file or directory

Again, this only happens on Gnome terminal as far as I can tell.

    lsb_release -rd
    Description: Ubuntu 12.10
    Release: 12.10

Revision history for this message
Travis Hoppe (travis-hoppe+launchpad) wrote :
Revision history for this message
era (era) wrote :

Why was this filed against command-not-found? Please follow up with a rationale. In the meantime, I'm adding a task for the gnome-terminal which to the best of my understanding is also the terminal in Unity.

Unfortunately, the link to Ubuntu Forums is broken. Could you please fill in the information which used to be there, or find a new link?

Is this still reproducible in 14.10?

Changed in command-not-found (Ubuntu):
status: New → Incomplete
Revision history for this message
era (era) wrote :

http://meta.askubuntu.com/questions/12308/recover-a-removed-page-in-order-to-investigate-a-bug-report/ addresses the broken link, but apparently, it is simply a duplicate of this bug report.

era (era)
Changed in command-not-found (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.