joe truncates files and segfaults when out of disk space

Bug #328285 reported by Jean-Paul Calderone
2
Affects Status Importance Assigned to Milestone
joe (Ubuntu)
New
Undecided
Unassigned

Bug Description

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.

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.