joe truncates files and segfaults when out of disk space

Bug #328285 reported by Jean-Paul Calderone on 2009-02-11
Affects Status Importance Assigned to Milestone
joe (Ubuntu)

Bug Description

Binary package hint: joe

Description: Ubuntu 8.04.2
Release: 8.04

  Installed: 3.5-1.1
  Candidate: 3.5-1.1
  Version table:
 *** 3.5-1.1 0
        500 hardy/universe Packages
        500 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  Edit
Everyone can see this information.

Other bug subscribers