[Bug 1813403] Re: Better kernel core dump defaults [switch to systemd-coredump]

2024-05-27 Thread Benjamin Drung
As of Ubuntu 24.04 (noble) you can install Apport and systemd-coredump
in parallel. See https://discourse.ubuntu.com/t/apport-2-28-0-gained-
systemd-coredump-integration/44910 for details.

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

Title:
  Better kernel core dump defaults [switch to systemd-coredump]

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1813403] Re: Better kernel core dump defaults [switch to systemd-coredump]

2019-04-19 Thread Prasanna V. Loganathar
** Summary changed:

- Better kernel core dump defaults
+ Better kernel core dump defaults [switch to systemd-coredump]

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

Title:
  Better kernel core dump defaults [switch to systemd-coredump]

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1813403] Re: Better kernel core dump defaults

2019-02-01 Thread Prasanna V. Loganathar
** Description changed:

  Currently,
  
  `$ sysctl kernel.core_pattern`
  
  gives
  
  `kernel.core_pattern = |/usr/share/apport/apport %p %s %c %d %P`
  
- This should be considered a bug, since a minimal version of ubuntu
- (server, core etc) and more notoriously when run from containers, this
- will just error out, with no core dump being produced, due to the
- absence of apport. Adding to the problem, is with container where you
- can't just change it per container, and should be changed from the host.
- I think using apport (a non essential package) as a default without
- thought as to it's absence is not robust design.
+ This is usually fine, however, when run from containers or lxc this will
+ just error out, with no core dump being produced, due to it being
+ disabled. Adding to the problem: with container or lxc, you can't just
+ change it per container, and should be changed on the host. And it's not
+ reasonable to expect apport in all containers either. Since, this is a
+ common problem, I think it's important to consider a change in the
+ default handling.
  
  There are multiple options to deal with this:
  
- 1. Drop apport as default and switch to a simple file in either
- /var/crash (this requires creating /var/crash as a part of the
- installation as it's currently created by apport), or /tmp
+ 1. Drop apport as default core_pattern handler and switch to a simple
+ file in either /var/crash (this requires creating /var/crash as a part
+ of the installation as it's currently created by apport), or /tmp and
+ let apport handle the core dump after the fact, and report it.
  
  2. Switch to systemd-coredump, and default to it, since it already does
  this very well and provides "coredumpctl" which is much nicer to work
  with. systemd-coredump also is a part of the systemd suite of utils and
  doesn't pull in a larger dependency as apport -- which to date, isn't as
  robust (I still have "core" files being left all over the place due to
  the fact that apport reset's itself and crashes during startup aren't
  handled properly). This also has a nice advantage of unifying the OSS
  community in terms of coredump handler. apport can handle things from
  the core dumps that systemd generates, further on desktops.
  
  3. Employ a tiny helper script, as the default core dump handler, which
  looks for specified programs such as "apport", "abrt", systemd-coredump"
  and pipes to them, or pipes it to /var/crash, or /tmp during it's
  absence. This does have the disadvantage of growing with it's own
  config, rather quickly.
  
  That being said, I highly suggest option 2 be used in the upcoming
  versions, and apport be a layer sitting on top of the coredumps
  generated by systemd-coredumps by either hooking into it, or by watching
- it's folders. I've started to remove apport and switch to systemd-
- coredump in all my server images as well, as apport seems to mostly be
- more of a nuisance. However, this also makes it difficult to report to
- launchpad, as apport currently cannot readily take an existing core dump
- file and do the reporting (though I suppose this should be possible
- providing the right arguments?).
+ it's folders.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
  Uname: Linux 4.18.0-13-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Sat Jan 26 20:33:55 2019
  InstallationDate: Installed on 2019-01-01 (25 days ago)
  InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.3)
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.apport.crashdb.conf: [modified]
  mtime.conffile..etc.apport.crashdb.conf: 2019-01-15T04:51:59.517661

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

Title:
  Better kernel core dump defaults

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1813403] Re: Better kernel core dump defaults

2019-02-01 Thread Prasanna V. Loganathar
** Description changed:

  Currently,
  
  `$ sysctl kernel.core_pattern`
  
  gives
  
  `kernel.core_pattern = |/usr/share/apport/apport %p %s %c %d %P`
  
  This should be considered a bug, since a minimal version of ubuntu
  (server, core etc) and more notoriously when run from containers, this
  will just error out, with no core dump being produced, due to the
  absence of apport. Adding to the problem, is with container where you
  can't just change it per container, and should be changed from the host.
  I think using apport (a non essential package) as a default without
  thought as to it's absence is not robust design.
  
  There are multiple options to deal with this:
  
- 1. Drop apport as default and switch to a simple file in either /var/crash 
(this requires creating /var/crash as a part of the installation as it's 
currently created by apport), or /tmp
- 2. Switch to systemd-coredump, and default to it, since it already does this 
very well and provides "coredumpctl" which is much nicer to work with. 
systemd-coredump also is a part of the systemd suite of utils and doesn't pull 
in a larger dependency as apport -- which to date, isn't as robust (I still 
have "core" files being left all over the place by apport, mostly in my home 
folder). This also has a nice advantage of unifying the OSS community in terms 
of coredump handler. apport can handle things from the core dumps that systemd 
generates, further on desktops.
- 3. Employ a tiny helper script, as the default core dump handler, which looks 
for specified programs such as "apport", "abrt", systemd-coredump" and pipes to 
them, or pipes it to /var/crash, or /tmp during it's absence. This does have 
the disadvantage of growing with it's own config, rather quickly.
+ 1. Drop apport as default and switch to a simple file in either
+ /var/crash (this requires creating /var/crash as a part of the
+ installation as it's currently created by apport), or /tmp
  
+ 2. Switch to systemd-coredump, and default to it, since it already does
+ this very well and provides "coredumpctl" which is much nicer to work
+ with. systemd-coredump also is a part of the systemd suite of utils and
+ doesn't pull in a larger dependency as apport -- which to date, isn't as
+ robust (I still have "core" files being left all over the place due to
+ the fact that apport reset's itself and crashes during startup aren't
+ handled properly). This also has a nice advantage of unifying the OSS
+ community in terms of coredump handler. apport can handle things from
+ the core dumps that systemd generates, further on desktops.
+ 
+ 3. Employ a tiny helper script, as the default core dump handler, which
+ looks for specified programs such as "apport", "abrt", systemd-coredump"
+ and pipes to them, or pipes it to /var/crash, or /tmp during it's
+ absence. This does have the disadvantage of growing with it's own
+ config, rather quickly.
+ 
+ That being said, I highly suggest option 2 be used in the upcoming
+ versions, and apport be a layer sitting on top of the coredumps
+ generated by systemd-coredumps by either hooking into it, or by watching
+ it's folders. I've started to remove apport and switch to systemd-
+ coredump in all my server images as well, as apport seems to mostly be
+ more of a nuisance. However, this also makes it difficult to report to
+ launchpad, as apport currently cannot readily take an existing core dump
+ file and do the reporting (though I suppose this should be possible
+ providing the right arguments?).
  
  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
  Uname: Linux 4.18.0-13-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Sat Jan 26 20:33:55 2019
  InstallationDate: Installed on 2019-01-01 (25 days ago)
  InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.3)
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.apport.crashdb.conf: [modified]
  mtime.conffile..etc.apport.crashdb.conf: 2019-01-15T04:51:59.517661

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

Title:
  Better kernel core dump defaults

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1813403] Re: Better kernel core dump defaults

2019-01-26 Thread Prasanna V. Loganathar
** Package changed: procps (Ubuntu) => ubuntu

** Description changed:

  Currently,
  
  `$ sysctl kernel.core_pattern`
  
  gives
  
  `kernel.core_pattern = |/usr/share/apport/apport %p %s %c %d %P`
  
  This should be considered a bug, since a minimal version of ubuntu
  (server, core etc) and more notoriously when run from containers, this
  will just error out, with no core dump being produced, due to the
  absence of apport. Adding to the problem, is with container where you
  can't just change it per container, and should be changed from the host.
  I think using apport (a non essential package) as a default without
  thought as to it's absence is not robust design.
  
  There are multiple options to deal with this:
  
  1. Drop apport as default and switch to a simple file in either /var/crash 
(this requires creating /var/crash as a part of the installation as it's 
currently created by apport), or /tmp
- 2. Switch to systemd-coredump, and default to it, since it already does this 
very well and provides "coredumpctl" which is much nicer to work with. 
systemd-coredump also is a part of the systemd suite of utils and doesn't pull 
in a larger dependency as apport -- which to date, isn't as robust (I still 
have "core" files being left all over the place by apport, mostly in my home 
folder). This also has a nice advantage of unifying the OSS community in terms 
of coredump handler.
- 3. Employ a tiny helper script, as the default core dump handler, which looks 
for specified programs such as "apport", "abrt", systemd-coredump" and pipes to 
them, or pipes it to /var/crash, or /tmp during it's absence.
+ 2. Switch to systemd-coredump, and default to it, since it already does this 
very well and provides "coredumpctl" which is much nicer to work with. 
systemd-coredump also is a part of the systemd suite of utils and doesn't pull 
in a larger dependency as apport -- which to date, isn't as robust (I still 
have "core" files being left all over the place by apport, mostly in my home 
folder). This also has a nice advantage of unifying the OSS community in terms 
of coredump handler. apport can handle things from the core dumps that systemd 
generates, further on desktops.
+ 3. Employ a tiny helper script, as the default core dump handler, which looks 
for specified programs such as "apport", "abrt", systemd-coredump" and pipes to 
them, or pipes it to /var/crash, or /tmp during it's absence. This does have 
the disadvantage of growing with it's own config, rather quickly.
  
- And add a sysctl.d default rule here, or more cleanly a separate package
- that does exactly this on option 3.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
- Package: procps 2:3.3.15-2ubuntu1
  ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
  Uname: Linux 4.18.0-13-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Sat Jan 26 20:33:55 2019
  InstallationDate: Installed on 2019-01-01 (25 days ago)
  InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.3)
- SourcePackage: procps
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.apport.crashdb.conf: [modified]
  mtime.conffile..etc.apport.crashdb.conf: 2019-01-15T04:51:59.517661

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

Title:
  Better kernel core dump defaults

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1813403] Re: Better kernel core dump defaults

2019-01-26 Thread Prasanna V. Loganathar
** Description changed:

  Currently,
  
  `$ sysctl kernel.core_pattern`
  
  gives
  
  `kernel.core_pattern = |/usr/share/apport/apport %p %s %c %d %P`
  
- This should be considered a bug, since a minimal version of ubuntu or
- even debian, and more notoriously when run from containers, this will
- just error out, with no core dump being produced, due to the absence of
- apport. Adding to the problem, is with container where you can't just
- change it per container, and should be changed from the host. I think
- using apport (a non essential package) as a default without thought as
- to it's absence is not robust design.
+ This should be considered a bug, since a minimal version of ubuntu
+ (server, core etc) and more notoriously when run from containers, this
+ will just error out, with no core dump being produced, due to the
+ absence of apport. Adding to the problem, is with container where you
+ can't just change it per container, and should be changed from the host.
+ I think using apport (a non essential package) as a default without
+ thought as to it's absence is not robust design.
  
  There are multiple options to deal with this:
  
- 1. Drop apport as default and switch to a simple file in either /var/crash 
(this requires creating /var/crash as a part of the installation), or /tmp
- 2. Switch to systemd-coredump, and default to it, since it already does this 
very well and provides "coredumpctl" which is much nicer to work with. 
systemd-coredump also is a part of the systemd suite of utils and doesn't pull 
in a larger dependency as apport -- which to date, isn't as robust (I still 
have "core" files being left all over the place by apport, mostly in my home 
folder). This also has a nice advantage of unifying the OSS community in terms 
of coredump handler. 
+ 1. Drop apport as default and switch to a simple file in either /var/crash 
(this requires creating /var/crash as a part of the installation as it's 
currently created by apport), or /tmp
+ 2. Switch to systemd-coredump, and default to it, since it already does this 
very well and provides "coredumpctl" which is much nicer to work with. 
systemd-coredump also is a part of the systemd suite of utils and doesn't pull 
in a larger dependency as apport -- which to date, isn't as robust (I still 
have "core" files being left all over the place by apport, mostly in my home 
folder). This also has a nice advantage of unifying the OSS community in terms 
of coredump handler.
  3. Employ a tiny helper script, as the default core dump handler, which looks 
for specified programs such as "apport", "abrt", systemd-coredump" and pipes to 
them, or pipes it to /var/crash, or /tmp during it's absence.
+ 
+ And add a sysctl.d default rule here, or more cleanly a separate package
+ that does exactly this on option 3.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: procps 2:3.3.15-2ubuntu1
  ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
  Uname: Linux 4.18.0-13-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Sat Jan 26 20:33:55 2019
  InstallationDate: Installed on 2019-01-01 (25 days ago)
  InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.3)
  SourcePackage: procps
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.apport.crashdb.conf: [modified]
  mtime.conffile..etc.apport.crashdb.conf: 2019-01-15T04:51:59.517661

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

Title:
  Better kernel core dump defaults

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs