[Bug 2048083] [NEW] [systemd-coredump] ProcessSizeMax setting does not seem to have any effect

Benjamin Drung 2048083 at bugs.launchpad.net
Thu Jan 4 13:45:01 UTC 2024


Public bug reported:

The systemd-coredump ProcessSizeMax setting does not seem to have any
effect. Steps to reproduce:

```
sudo apt install chaos-marmosets systemd-coredump
sudo mkdir /etc/systemd/coredump.conf.d/
printf "[Coredump]\nProcessSizeMax=10K\n" | sudo tee /etc/systemd/coredump.conf.d/limit.conf
divide-by-zero
```

Running `coredumpctl` shows that the dump was written in full size, but
the ProcessSizeMax should have caused the dump to be truncated.

```
TIME                           PID  UID  GID SIG    COREFILE EXE                      SIZE
Thu 2024-01-04 14:39:44 CET 427840 1000 1000 SIGILL present  /usr/bin/divide-by-zero 17.1K
```

DistroRelease: Ubuntu 23.10
Package: systemd-coredump 253.5-1ubuntu6.1

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  The systemd-coredump ProcessSizeMax setting does not seem to have any
  effect. Steps to reproduce:
  
  ```
  sudo apt install chaos-marmosets systemd-coredump
  sudo mkdir /etc/systemd/coredump.conf.d/
  printf "[Coredump]\nProcessSizeMax=10K\n" | sudo tee /etc/systemd/coredump.conf.d/limit.conf
  divide-by-zero
  ```
  
- Running `coredumpctl` shows that the dump was written in full size:
+ Running `coredumpctl` shows that the dump was written in full size, but
+ the ProcessSizeMax should have caused the dump to be truncated.
  
  ```
  TIME                           PID  UID  GID SIG    COREFILE EXE                      SIZE
  Thu 2024-01-04 14:39:44 CET 427840 1000 1000 SIGILL present  /usr/bin/divide-by-zero 17.1K
  ```
  
  DistroRelease: Ubuntu 23.10
  Package: systemd-coredump 253.5-1ubuntu6.1

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

Title:
  [systemd-coredump] ProcessSizeMax setting does not seem to have any
  effect

Status in systemd package in Ubuntu:
  New

Bug description:
  The systemd-coredump ProcessSizeMax setting does not seem to have any
  effect. Steps to reproduce:

  ```
  sudo apt install chaos-marmosets systemd-coredump
  sudo mkdir /etc/systemd/coredump.conf.d/
  printf "[Coredump]\nProcessSizeMax=10K\n" | sudo tee /etc/systemd/coredump.conf.d/limit.conf
  divide-by-zero
  ```

  Running `coredumpctl` shows that the dump was written in full size,
  but the ProcessSizeMax should have caused the dump to be truncated.

  ```
  TIME                           PID  UID  GID SIG    COREFILE EXE                      SIZE
  Thu 2024-01-04 14:39:44 CET 427840 1000 1000 SIGILL present  /usr/bin/divide-by-zero 17.1K
  ```

  DistroRelease: Ubuntu 23.10
  Package: systemd-coredump 253.5-1ubuntu6.1

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




More information about the foundations-bugs mailing list