This behavior is only noticeable on log-out. Killing gnome-shell works. I am using the 0001-apport-Write-coredump-at-beginning-and-quit.patch with a delay of 0.005s:
```
$ killall -11 gnome-shell
$ tail /var/log/apport.log
ERROR: apport (pid 15107) 2023-04-19 13:53:03,089: called for pid 14206, signal 11, core limit 0, dump mode 1
WARNING: apport (pid 15107) 2023-04-19 13:53:57,167: Wrote 639,475,712 bytes of core to /var/lib/apport/coredump/core._usr_bin_gnome-shell.1000.af6fdb2c-b9ba-4eeb-8727-683ac2247576.14206.5881189
$ gdb /usr/bin/gnome-shell /var/lib/apport/coredump/core._usr_bin_gnome-shell.1000.*
```
The 639 MB were successful written and that took 54 seconds.
This behavior is only noticeable on log-out. Killing gnome-shell works. I am using the 0001-apport- Write-coredump- at-beginning- and-quit. patch with a delay of 0.005s:
``` apport/ coredump/ core._usr_ bin_gnome- shell.1000. af6fdb2c- b9ba-4eeb- 8727-683ac22475 76.14206. 5881189 gnome-shell /var/lib/ apport/ coredump/ core._usr_ bin_gnome- shell.1000. *
$ killall -11 gnome-shell
$ tail /var/log/apport.log
ERROR: apport (pid 15107) 2023-04-19 13:53:03,089: called for pid 14206, signal 11, core limit 0, dump mode 1
WARNING: apport (pid 15107) 2023-04-19 13:53:57,167: Wrote 639,475,712 bytes of core to /var/lib/
$ gdb /usr/bin/
```
The 639 MB were successful written and that took 54 seconds.