Search notes:
/wsl-capture-crash
/wsl-capture-crash
is (by default?) mentioned in the
kernel parameter kernel.core_pattern
:
$ sysctl kernel.core_pattern
kernel.core_pattern = |/wsl-capture-crash %t %E %p %s
This executable is visible when opening a «debug shell»:
C:\> wsl --debug-shell
Welcome to CBL-Mariner 2.0.20240609 (x86_64) - Kernel 6.1.21.2-microsoft-standard-WSL2+ (hvc1)
DESKTOP-2E3UO35 login: root (automatic login)
root@tq84-host [ ~ ]# /wsl-capture-crash
Usage: /wsl-capture-crash<time> <executable> <pid> <signal>
/wsl-capture-crash
is a symbolic link to /init
:
root@tq84host [ ~ ]# ls -l /wsl-capture-crash
lrwxrwxrwx 1 root root 5 Jan 28 00:37 /wsl-capture-crash -> /init