[Bug 328285] [NEW] joe truncates files and segfaults when out of disk space

Jean-Paul Calderone exarkun at twistedmatrix.com
Wed Feb 11 22:20:36 UTC 2009


Public bug reported:

Binary package hint: joe

Description:    Ubuntu 8.04.2
Release:        8.04

joe:
  Installed: 3.5-1.1
  Candidate: 3.5-1.1
  Version table:
 *** 3.5-1.1 0
        500 http://archive.ubuntu.com hardy/universe Packages
        500 http://us.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

When trying to save a file when the target filesystem is full (ie,
returning ENOSPC from I/O calls), joe will first truncate the file to
zero bytes and then segfault.

Instead, it should report that there is no space left and leave the
existing contents of the file alone.  Causing data loss in this
situation is extremely (like, catastrophically) poor behavior.

** Affects: joe (Ubuntu)
     Importance: Undecided
         Status: New

-- 
joe truncates files and segfaults when out of disk space
https://bugs.launchpad.net/bugs/328285
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list