Apport creating 0 byte crash files

Bug #942326 reported by penalvch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Martin Pitt
Precise
Fix Released
High
Martin Pitt

Bug Description

1) lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

2) apt-cache policy apport
apport:
  Installed: 1.93-0ubuntu2
  Candidate: 1.93-0ubuntu2
  Version table:
 *** 1.93-0ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

apt-cache policy libreoffice-calc
libreoffice-calc:
  Installed: 1:3.5.0-1ubuntu4
  Candidate: 1:3.5.0-1ubuntu4
  Version table:
 *** 1:3.5.0-1ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen in Calc via the Terminal:

cd ~/Desktop && wget -c https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/942005/+attachment/2788084/+files/Tableaux%20OK.ods -O example.ods && localc --nologo example.ods

copy the chart named "Produit de sortie AC" in the first sheet, Calc crashes, and apport creates a valid crash file in /var/crash.

4) What happens instead is apport consistently creates a 0 byte invalid crash file. When one attempts to report it one gets:

Invalid problem report
This problem report is damaged and cannot be processed.
ValueError('Report does not contain "Problem Type" filed',)

WORKAROUND: Install package whoopsie.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: apport 1.93-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic-pae 3.2.6
Uname: Linux 3.2.0-17-generic-pae i686
ApportVersion: 1.93-0ubuntu2
Architecture: i386
CrashReports: 0:0:0:0:2012-02-27 18:41:25.805307000 -0500:2012-02-27 18:42:21.641308274 -0500:/var/crash/_usr_lib_libreoffice_program_soffice.bin.1000.crash
Date: Mon Feb 27 18:43:22 2012
InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Alpha i386 (20120201.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
penalvch (penalvch) wrote :
Revision history for this message
Fabien Tassin (fta) wrote :

it's because apport expect whoopsie to be installed.

$ sh -c "kill -SEGV $$"

---------- 1 root root 0 Feb 28 12:22 _usr_bin_tcsh.1000.crash

/var/log/apport.log shows:

ERROR: apport (pid 12040) Tue Feb 28 12:22:16 2012: called for pid 12036, signal 11
ERROR: apport (pid 12040) Tue Feb 28 12:22:16 2012: executable: /usr/bin/tcsh (command line "-csh")
ERROR: apport (pid 12040) Tue Feb 28 12:22:16 2012: debug: session gdbus call: (true,)

ERROR: apport (pid 12040) Tue Feb 28 12:22:16 2012: Unhandled exception:
Traceback (most recent call last):
  File "/usr/share/apport/apport", line 349, in <module>
    whoopsie_gid = pwd.getpwnam('whoopsie')
KeyError: 'getpwnam(): name not found: whoopsie'
ERROR: apport (pid 12040) Tue Feb 28 12:22:16 2012: pid: 12040, uid: 0, gid: 1000, euid: 0, egid: 0
ERROR: apport (pid 12040) Tue Feb 28 12:22:16 2012: environment: {}

Martin Pitt (pitti)
Changed in apport (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
penalvch (penalvch)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in trunk r2184.

Changed in apport (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.5 KiB)

This bug was fixed in the package apport - 1.94-0ubuntu1

---------------
apport (1.94-0ubuntu1) precise; urgency=low

  [ Martin Pitt ]
  * New upstream release:
    - apport: Set the group of written reports to "whoopsie" if that group
      exists.
    - Fix tests to run properly against the system-installed modules and
      binaries.
    - test/run: Run under LC_MESSAGES=C to avoid test failures due to
      translated strings.
    - general-hooks/generic.py: Also attach xsession-errors for programs that
      link to libgtk-3.
    - launchpad.py: Properly handle "Expired" status, to avoid marking new
      bugs as duplicates of expired ones. (LP: #941854)
    - apport: Fix crash if the "whoopsie" group does not exist. (LP: #942326)
    - report.py, crash_signature(): Do not put "<module>" frames into Python
      crash signatures that happen outside of function/method calls. Fall back
      to the file/line number as a frame description instead. This will do a
      much better job at disambiguating e. g. different ImportError crashes.
      (LP: #920403)
    - Make "binary changed since the time of the crash" error message more
      comprehensible, thanks Paolo Rotolo. (LP: #942830)
    - crashdb.py, check_duplicate(): It can happen that a bug gets identified
      as being a duplicate of bug S by symbolic signatures and a duplicate of
      bug A by address signatures. Empirical evidence shows that this is due
      to the unavoidable jitter in stack traces (A and S not being identified
      as duplicates as their signatures differ slightly) and not a logic
      error. So instead of erroring out, duplicate all three bugs and keep the
      lowest number as the master ID. (LP: #943117)
    - Revert the usage of multiple nested threads during data collection, and
      switch back to only using one UI thread. The UI implementations can, and
      now do, decide between showing a spinner and showing a progress dialog
      in the ui_*_info_collection_progress() methods. This fixes libX11
      crashes when multiple UI threads do changes concurrently (LP: #901675),
      and also avoids multi-thread induced crashes in Pango (LP: #943661). The
      removal of the collect() method also fixes the new crashes in it.
      (LP: #942098, #939803)
    - ui.py, get_desktop_entry(): Fix crash on uninstalled package.
      (LP: #940984)
    - data/unkillable_shutdown: Fix crash on race condition when PID goes away
      while the report is created. (LP: #546369)
    - apport/hookutils.py, pci_devices(): Fix crash on unexpected lines from
      lspci. (LP: #904489)
    - Drop hardcoded "Ubuntu" words again which crept in with the whoopsie
      support merge. Use the DistroRelease: field.
    - apport-kde: Fix Home page URL in KApplication metadata.
    - apport-gtk: Fix resizability and size after hiding details.
      (LP: #405418)
    - test/run: Drop "local" argument. This now tests against the source tree
      when run in the source tree root, and against the system
      libraries/programs when run from anywhere else.
    - test/run: Consider command line arguments as test names and only run
      those when given. Also support just runni...

Read more...

Changed in apport (Ubuntu Precise):
status: Fix Committed → Fix Released
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.