[Bug 1189194] Re: Core file not created on SIGSEGV

Marcus Tomlinson marcus.tomlinson at canonical.com
Thu Mar 5 13:08:21 UTC 2020


This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.

** Changed in: apport (Ubuntu)
       Status: New => Incomplete

-- 
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/1189194

Title:
  Core file not created on SIGSEGV

Status in apport package in Ubuntu:
  Incomplete

Bug description:
  Ref.: https://answers.launchpad.net/ubuntu/+question/230416

  I just playing with the c++ programming, I made a mistake(I know what
  is the mistake) and I am expecting core file should generate on
  Segmentation fault. But the program exit with the following but I
  didn't found the core file

        Segmentation fault (core dumped)

  My program is very simple, and no directory change. I didn't found
  core file on either the current directory(where it was executed) and
  in the program location(where the binary was there) or the user's home
  directory.

  jj at jjux64:010_InnerClasses$ ulimit -c
  102400
  jj at jjux64:010_InnerClasses$ echo $USER
  jj
  jj at jjux64:010_InnerClasses$ grep $USER /etc/security/limits.conf
  jj soft core 102400
  jj at jjux64:010_InnerClasses$ cat /proc/sys/kernel/core_pattern
  |/usr/share/apport/apport %p %s %c
  jj at jjux64:010_InnerClasses$ grep VERSION /etc/os-release
  VERSION="13.04, Raring Ringtail"
  VERSION_ID="13.04"

  with "ulimit -c unlimited" also core file is not generating.

  overwriting the core pattern temporarily resolve the issue but if we
  rebooted again its overwritten to default value.

           sudo bash -c 'echo core.%e.%p >
  /proc/sys/kernel/core_pattern'

  after the above core file is generated. But every reboot I have to run
  above for getting core file automatically.

  Any idea "/usr/share/apport/apport %p %s %c" is not generating core
  dump on Segmentation fault ?

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



More information about the foundations-bugs mailing list