root@selected-slug:~# machinectl pull-raw 
"http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"; 
noble
Enqueued transfer job 1. Press C-c to continue download in background.
Pulling 
'http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img', 
saving as 'noble'.
Downloading 453.0M for 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img.
HTTP request to 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.roothash.p7s
 failed with code 404.
Root hash signature file could not be retrieved, proceeding without.
HTTP request to 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.verity 
failed with code 404.
Verity integrity file could not be retrieved, proceeding without.
HTTP request to 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.nspawn 
failed with code 404.
Settings file could not be retrieved, proceeding without.
Downloading 833B for 
http://cloud-images.ubuntu.com/noble/current/SHA256SUMS.gpg.
Acquired 833B.
Download of http://cloud-images.ubuntu.com/noble/current/SHA256SUMS.gpg 
complete.
HTTP request to 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.roothash
 failed with code 404.
Root hash file could not be retrieved, proceeding without.
Downloading 6.9K for http://cloud-images.ubuntu.com/noble/current/SHA256SUMS.
Got 37% of http://cloud-images.ubuntu.com/noble/current/SHA256SUMS.
Acquired 6.9K.
Download of http://cloud-images.ubuntu.com/noble/current/SHA256SUMS complete.
Got 1% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
2min 13s left at 3.3M/s.
Got 5% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
41s left at 10.4M/s.
Got 11% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
26s left at 14.9M/s.
Got 16% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
21s left at 17.5M/s.
Got 22% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
18s left at 19.0M/s.
Got 28% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
16s left at 20.1M/s.
Got 33% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
14s left at 20.6M/s.
Got 39% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
13s left at 21.1M/s.
Got 44% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
11s left at 21.3M/s.
Got 50% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
10s left at 21.8M/s.
Got 53% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
9s left at 21.3M/s.
Got 58% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
8s left at 21.4M/s.
Got 64% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
7s left at 21.7M/s.
Got 69% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
6s left at 21.9M/s.
Got 75% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
4s left at 22.2M/s.
Got 81% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
3s left at 22.4M/s.
Got 87% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
2s left at 22.6M/s.
Got 93% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
1s left at 22.7M/s.
Got 98% of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img. 
306ms left at 22.8M/s.
Acquired 453.0M.
Download of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img 
complete.
SHA256 checksum of 
http://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img is 
valid.
gpg: Signature made Wed Apr 24 00:22:50 2024 UTC
gpg:                using RSA key D2EB44626FDDC30B513D5BB71A5D6C4C7DB87C81
gpg: Good signature from "UEC Image Automatic Signing Key <cdim...@ubuntu.com>" 
[unknown]
gpg: WARNING: Using untrusted key!
Signature verification succeeded.
Unpacking QCOW2 file.
Created new local image 'noble'.
Operation completed successfully.
Exiting.
root@selected-slug:~# machinectl start noble
root@selected-slug:~# machinectl shell noble
Connected to machine noble. Press ^] three times within 1s to exit session.

### In the container now ###

root@ubuntu:~# apt update && apt install systemd-coredump chaos-marmosets -y
Get:1 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [89.7 kB]        
      
Get:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease [90.8 kB]
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1403 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [15.5 MB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f 
Metadata [112 B]
Get:8 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 c-n-f 
Metadata [116 B]
Get:9 http://archive.ubuntu.com/ubuntu noble/universe Translation-en [5981 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble/universe amd64 Components [3871 
kB]
Get:11 http://archive.ubuntu.com/ubuntu noble/universe amd64 c-n-f Metadata 
[301 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [269 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble/multiverse Translation-en [118 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Components [35.0 
kB]
Get:15 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 c-n-f Metadata 
[8328 B]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f 
Metadata [112 B]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 c-n-f 
Metadata [116 B]
Get:18 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 c-n-f 
Metadata [112 B]
Get:19 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 c-n-f 
Metadata [116 B]
Get:20 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 c-n-f 
Metadata [116 B]
Get:21 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 c-n-f 
Metadata [116 B]
Fetched 28.0 MB in 4s (6612 kB/s)                              
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-zstandard
Suggested packages:
  python-zstandard-doc
The following packages will be REMOVED:
  apport-core-dump-handler
The following NEW packages will be installed:
  chaos-marmosets python3-zstandard systemd-coredump
0 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 440 kB of archives.
After this operation, 1542 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 python3-zstandard 
amd64 0.22.0-1build1 [360 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 systemd-coredump 
amd64 255.4-1ubuntu8 [71.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/universe amd64 chaos-marmosets 
amd64 0.1.2-2 [8808 B]
Fetched 440 kB in 0s (2015 kB/s)          
Selecting previously unselected package python3-zstandard.
(Reading database ... 66791 files and directories currently installed.)
Preparing to unpack .../python3-zstandard_0.22.0-1build1_amd64.deb ...
Unpacking python3-zstandard (0.22.0-1build1) ...
dpkg: apport-core-dump-handler: dependency problems, but removing anyway as you 
requested:
 apport depends on apport-core-dump-handler | python3-zstandard; however:
  Package apport-core-dump-handler is to be removed.
  Package python3-zstandard is not configured yet.
 apport depends on apport-core-dump-handler | systemd-coredump; however:
  Package apport-core-dump-handler is to be removed.
  Package systemd-coredump is not installed.
 apport depends on apport-core-dump-handler | python3-zstandard; however:
  Package apport-core-dump-handler is to be removed.
  Package python3-zstandard is not configured yet.
 apport depends on apport-core-dump-handler | systemd-coredump; however:
  Package apport-core-dump-handler is to be removed.
  Package systemd-coredump is not installed.

(Reading database ... 66807 files and directories currently installed.)
Removing apport-core-dump-handler (2.28.1-0ubuntu2) ...
Selecting previously unselected package systemd-coredump.
(Reading database ... 66803 files and directories currently installed.)
Preparing to unpack .../systemd-coredump_255.4-1ubuntu8_amd64.deb ...
Unpacking systemd-coredump (255.4-1ubuntu8) ...
Selecting previously unselected package chaos-marmosets.
Preparing to unpack .../chaos-marmosets_0.1.2-2_amd64.deb ...
Unpacking chaos-marmosets (0.1.2-2) ...
Setting up systemd-coredump (255.4-1ubuntu8) ...
Creating group 'systemd-coredump' with GID 988.
Creating user 'systemd-coredump' (systemd Core Dumper) with UID 988 and GID 988.
Setting up python3-zstandard (0.22.0-1build1) ...
Setting up chaos-marmosets (0.1.2-2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...                                                           
                                                    

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu:~# divide-by-zero 
Illegal instruction (core dumped)
root@ubuntu:~# coredumpctl 
TIME                        PID UID GID SIG    COREFILE EXE                     
 SIZE
Wed 2024-04-24 15:36:31 UTC 829   0   0 SIGILL present  /usr/bin/divide-by-zero 
16.3K
root@ubuntu:~# ls /var/crash/
_usr_bin_divide-by-zero.0.crash

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

Title:
  systemd-coredump handler does not forward the crash to the container

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


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

Reply via email to