It is not possible to create coredumps with snaps

Bug #2038289 reported by Bugra Aydogar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Medium
Unassigned

Bug Description

Hi,

There is no official documentation on how to create coredumps using Ubuntu Core and Snaps.
I have found an old discussion in the forum. https://forum.snapcraft.io/t/core-dumps-in-snapd/920

As suggested; one should apply the following commands to create coredumps but it does not work.
```
ulimit -c unlimited
sudo sh -c 'echo 1 > /proc/sys/fs/suid_dumpable
sudo sh -c 'echo /home/<my-user>/snap/my-snap/core > /proc/sys/kernel/core_pattern'
```
I attached an example application to ease the reproducing effort.

Thanks,
Bugra

Revision history for this message
Bugra Aydogar (bugraaydogar) wrote :
description: updated
description: updated
Revision history for this message
Hugo Reyes (h481754) wrote :

To Canonical team, please could you start looking into this enablement of coredumps in the snap? Here at Honeywell there is the urgent need to have post-mortem analysis tools available for our application when running as a snap. Meanwhile, do you have another post-mortem analysis tools that can be used with snaps?

Revision history for this message
Bugra Aydogar (bugraaydogar) wrote :

Hi,

Here is an example of how to create core dumps with snaps.
https://github.com/snapcore/snapd/pull/13284/files

Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

Hi, thanks for raising it

Please use that test as a an example, we will work to include this in the documentation.

Changed in snapd:
status: New → Confirmed
importance: Undecided → Medium
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.