Thank you for taking the time to report this bug and contributing to
Ubuntu.

I can reproduce this issue on Ubuntu 25.04 (plucky) by running `ubuntu-
bug /bin/true` on a deleted directory.

Note: The getcwd() error message comes from bash itself (not from
Apport):

```
sh: 0: getcwd() failed: No such file or directory
```

** Changed in: apport (Ubuntu)
       Status: New => Triaged

** Changed in: apport (Ubuntu)
   Importance: Undecided => Medium

** Summary changed:

- Ubuntu-bug or apport not working if running it from terminal in just removed 
directory. Why it needs directory?
+ ubuntu-bug/apport not working if running it from terminal in just removed 
directory

** Also affects: apport
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2110684

Title:
  ubuntu-bug/apport not working if running it from terminal in just
  removed directory

Status in Apport:
  New
Status in apport package in Ubuntu:
  Triaged

Bug description:
  Ubuntu-bug or apport not working if running it from terminal in just
  removed directory. Why it needs directory?

  mkdir ~/1
  cd ~/1
  rmdir ~/1
  ubuntu-bug apport

  ubuntu-bug -w
  sh: 0: getcwd() failed: No such file or directory
  Fontconfig error: "/etc/fonts/fonts.conf", line 86: out of memory
  Fontconfig error: "/etc/fonts/fonts.conf", line 91: out of memory
  Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
  ^C
  user@pc:~/Pictures/000 Instagram Archive 2025$ ^C
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug -w
  sh: 0: getcwd() failed: No such file or directory
  Fontconfig error: "/etc/fonts/fonts.conf", line 86: out of memory
  Fontconfig error: "/etc/fonts/fonts.conf", line 91: out of memory
  Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
  sh: 0: getcwd() failed: No such file or directory
  shell-init: error retrieving current directory: getcwd: cannot access parent 
directories: No such file or directory
  Fontconfig error: "/etc/fonts/fonts.conf", line 86: out of memory
  Fontconfig error: "/etc/fonts/fonts.conf", line 91: out of memory
  Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
  
[211138:211138:0514/171631.307333:ERROR:chrome/browser/process_singleton_posix.cc:340]
 Failed to create /home/user/.config/google-chrome/SingletonLock: File exists 
(17)
  
[211138:211138:0514/171631.307540:ERROR:chrome/app/chrome_main_delegate.cc:531] 
Failed to create a ProcessSingleton for your profile directory. This means that 
running multiple instances would start multiple browser processes rather than 
opening a new window in the existing process. Aborting now to avoid profile 
corruption.
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubu
  ubuntu-advantage        ubuntu-distro-info      ubuntu-security-status
  ubuntu-bug              ubuntu-drivers          
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug spec
  spectemu-common           spectools                 spectrum-roms
  spectemu-x11              spectre-meltdown-checker  spectrwm
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug spect
  spectemu-common           spectools                 spectrum-roms
  spectemu-x11              spectre-meltdown-checker  spectrwm
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug spect
  spectemu-common           spectools                 spectrum-roms
  spectemu-x11              spectre-meltdown-checker  spectrwm
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug spect
  spectemu-common           spectools                 spectrum-roms
  spectemu-x11              spectre-meltdown-checker  spectrwm
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug spect
  spectemu-common           spectools                 spectrum-roms
  spectemu-x11              spectre-meltdown-checker  spectrwm
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug -w
  sh: 0: getcwd() failed: No such file or directory
  Fontconfig error: "/etc/fonts/fonts.conf", line 86: out of memory
  Fontconfig error: "/etc/fonts/fonts.conf", line 91: out of memory
  Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
  sh: 0: getcwd() failed: No such file or directory
  shell-init: error retrieving current directory: getcwd: cannot access parent 
directories: No such file or directory
  Fontconfig error: "/etc/fonts/fonts.conf", line 86: out of memory
  Fontconfig error: "/etc/fonts/fonts.conf", line 91: out of memory
  Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
  
[212088:212088:0514/171710.866639:ERROR:chrome/browser/process_singleton_posix.cc:340]
 Failed to create /home/user/.config/google-chrome/SingletonLock: File exists 
(17)
  
[212088:212088:0514/171710.866780:ERROR:chrome/app/chrome_main_delegate.cc:531] 
Failed to create a ProcessSingleton for your profile directory. This means that 
running multiple instances would start multiple browser processes rather than 
opening a new window in the existing process. Aborting now to avoid profile 
corruption.
  user@pc:~/Pictures/000 Instagram Archive 2025$ ^C
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug apport
  sh: 0: getcwd() failed: No such file or directory
  Fontconfig error: "/etc/fonts/fonts.conf", line 86: out of memory
  Fontconfig error: "/etc/fonts/fonts.conf", line 91: out of memory
  Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
  user@pc:~/Pictures/000 Instagram Archive 2025$ pwd
  /home/user/Pictures/000 Instagram Archive 2025
  user@pc:~/Pictures/000 Instagram Archive 2025$ [A^C
  user@pc:~/Pictures/000 Instagram Archive 2025$ ubuntu-bug apport
  sh: 0: getcwd() failed: No such file or directory
  Fontconfig error: "/etc/fonts/fonts.conf", line 86: out of memory
  Fontconfig error: "/etc/fonts/fonts.conf", line 91: out of memory
  Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
  user@pc:~/Pictures/000 Instagram Archive 2025$

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: apport 2.28.1-0ubuntu3.5
  ProcVersionSignature: Ubuntu 6.8.0-59.61-generic 6.8.12
  Uname: Linux 6.8.0-59-generic x86_64
  ApportLog:
   INFO: apport (pid 161204) 2025-05-14 16:08:19,392: called for pid 149733, 
signal 5, core limit 0, dump mode 1
   ERROR: apport (pid 161204) 2025-05-14 16:08:19,393: is_closing_session(): no 
DBUS_SESSION_BUS_ADDRESS in environment
   INFO: apport (pid 161204) 2025-05-14 16:08:19,396: executable: 
/opt/google/chrome/chrome (command line "/opt/google/chrome/chrome")
   INFO: apport (pid 161204) 2025-05-14 16:08:43,536: wrote report 
/var/crash/_opt_google_chrome_chrome.1000.crash
  ApportVersion: 2.28.1-0ubuntu3.5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: KDE
  Date: Wed May 14 17:22:12 2025
  InstallationDate: Installed on 2024-01-05 (496 days ago)
  InstallationMedia: Kubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 
(20230807.1)
  PackageArchitecture: all
  SourcePackage: apport
  UpgradeStatus: Upgraded to noble on 2024-08-30 (257 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2110684/+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

Reply via email to