In libreoffice 4.2.8 on Ubuntu 14.04, when the program crashes (or is
made to crash with pkill -11), apport kicks in. At the next libreoffice
run, it offers the user to try and recover the document that was being
worked on when the crash occurred.

In contrast, in libreoffice 5.1.6 on Ubuntu 16.04, when the program
crashes, its built-in document recovery handler kicks in, offering the
user to recover the document immediately. In that case, the built-in
handler is hooked to a SIGSEGV handler that prevents the creation of a
core file.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1537566

Title:
  LibreOffice crashed but apport didn't log a crash file in /var/crash
  despite being enabled

Status in apport package in Ubuntu:
  New
Status in libreoffice package in Ubuntu:
  Triaged

Bug description:
  What is expected to happen is when LibreOffice crashes, a crash report
  is created in the /var/crash folder.

  What happened instead is LibreOffice crashed but apport didn't create
  a crash file in the /var/crash folder, despite running and being
  enabled. Apport creating crash files in /var/crash used to happen in
  Xenial, and in prior releases. Other programs that crash are picked up
  by apport so appears LO+apport issue.

  LibreOffice has reference to placing crash files as per:
  cat /etc/libreoffice/sofficerc | grep crash
  CrashDirectory=${$BRAND_BASE_DIR/program/bootstraprc:UserInstallation}/crash

  I don't have any 3rd party LO plugins installed.

  apt-show-versions -r libreoffice*
  libreoffice-avmedia-backend-gstreamer:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-avmedia-backend-gstreamer:i386 not installed
  libreoffice-base-core:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-base-core:i386 not installed
  libreoffice-calc:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-calc:i386 not installed
  libreoffice-common:all/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-core:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-core:i386 not installed
  libreoffice-dev:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-dev:i386 not installed
  libreoffice-draw:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-draw:i386 not installed
  libreoffice-gnome:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-gnome:i386 not installed
  libreoffice-gtk:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-gtk:i386 not installed
  libreoffice-help-en-us:all/xenial 1:5.0.2-0ubuntu4 uptodate
  libreoffice-impress:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-impress:i386 not installed
  libreoffice-java-common:all/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-math:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-math:i386 not installed
  libreoffice-ogltrans:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-ogltrans:i386 not installed
  libreoffice-pdfimport:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-pdfimport:i386 not installed
  libreoffice-style-breeze:all/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-style-galaxy:all/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-style-human:all/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-writer:amd64/xenial 1:5.0.2-0ubuntu7 uptodate
  libreoffice-writer:i386 not installed

  cat /etc/default/apport
  # set this to 0 to disable apport, or to 1 to enable it
  # you can temporarily override this with
  # sudo service apport start force_start=1
  enabled=1

  cat /etc/apport/crashdb.conf
  # map crash database names to CrashDatabase implementations and URLs

  default = 'ubuntu'

  def get_oem_project():
      '''Determine OEM project name from Distribution Channel Descriptor

      Return None if it cannot be determined or does not exist.
      '''
      try:
          dcd = open('/var/lib/ubuntu_dist_channel').read()
          if dcd.startswith('canonical-oem-'):
              return dcd.split('-')[2]
      except IOError:
          return None

  databases = {
      'ubuntu': {
          'impl': 'launchpad',
          'bug_pattern_url': 
'http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml',
          'dupdb_url': 
'http://people.canonical.com/~ubuntu-archive/apport-duplicates',
          'distro': 'ubuntu',
          'problem_types': ['Bug', 'Package'],
          'escalation_tag': 'bugpattern-needed',
          'escalated_tag': 'bugpattern-written',
      },
      'canonical-oem': {
          'impl': 'launchpad',
          'bug_pattern_url': 
'http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml',
          'project': get_oem_project(),
      },
      'debug': {
          # for debugging
          'impl': 'memory',
          'bug_pattern_url': '/tmp/bugpatterns.xml',
          'distro': 'debug'
      },
  }
  mo

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: libreoffice-calc 1:5.0.2-0ubuntu7
  ProcVersionSignature: Ubuntu 4.3.0-6.17-generic 4.3.3
  Uname: Linux 4.3.0-6-generic x86_64
  ApportVersion: 2.19.3-0ubuntu3
  Architecture: amd64
  CurrentDesktop: GNOME-Flashback:Unity
  Date: Sun Jan 24 17:03:37 2016
  InstallationDate: Installed on 2015-12-18 (37 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  SourcePackage: libreoffice
  UpgradeStatus: Upgraded to xenial on 2016-01-20 (4 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1537566/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to