Ubuntu

joe truncates files and segfaults when out of disk space

Reported by Jean-Paul Calderone on 2009-02-11
2
Affects Status Importance Assigned to Milestone
joe (Ubuntu)
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  Edit
Everyone can see this information.

Other bug subscribers