[Bug 1254804] Re: [wishlist] Apport doesn't log when a core dump is ignored because of the limit

Tjd 1254804 at bugs.launchpad.net
Mon Jan 9 22:15:47 UTC 2017


I got burned by this, too.

It is compounded by the fact that "Segmentation fault (core dumped)" is
written to stderr, which actually just means that the dump has been
collected and passed on to apport.

Since it is apport that is parsing the ulimit value and deciding whether
or not to write out the core file, luca's suggestion seems appropriate
and would have been helpful to me.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1254804

Title:
  [wishlist] Apport doesn't log when a core dump is ignored because of
  the limit

Status in apport package in Ubuntu:
  Confirmed

Bug description:
  When ulimit -c is 0, apport doesn't report any reason not to skip the dumping. For applications that are not packaged, the last message in /var/log/apport.log is:
  ERROR: apport (pid 4415) Mon Nov 25 17:52:11 2013: executable does not belong to a package, ignoring

  This makes very confusing diagnosing why the core was not generated,
  and is very hard to track down how the particular ulimit of the
  application was configured, so it would be better to add a message
  telling the core dump won't be generated because the limit is 0.

  Basically the suggested change is:

       if limit == '0':
  +        error_log('skipping core dump writing, current limit is 0')
           return

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: apport 2.0.1-0ubuntu17.6 [modified: usr/share/apport/apport]
  ProcVersionSignature: Ubuntu 3.5.0-41.64~precise1-generic 3.5.7.21
  Uname: Linux 3.5.0-41-generic x86_64
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: amd64
  CrashReports:
   664:1000:133:0:2013-11-25 11:26:18.943268131 +0100:2013-11-25 11:26:18.943268131 +0100:/var/crash/_usr_bin_pidgin.1000.upload
   640:1000:133:9780109:2013-11-25 11:26:16.687254000 +0100:2013-11-25 11:26:19.963279496 +0100:/var/crash/_usr_bin_pidgin.1000.crash
   600:122:133:0:2013-11-25 18:11:42.092417577 +0100:2013-10-16 17:18:00.112172935 +0200:/var/crash/_usr_bin_pidgin.1000.uploaded
  Date: Mon Nov 25 18:16:02 2013
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: apport
  UpgradeStatus: Upgraded to precise on 2012-05-24 (550 days ago)

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



More information about the foundations-bugs mailing list