为debug命令指定调试器。 如果没有指定此选项,并且也没有设置$SYSTEMD_DEBUGGER环境变量,那么将会使用默认的gdb(1)调试器。 -DDIR,--directory=DIR¶ 仅使用指定的DIR目录中的日志。 -q,--quiet¶ 安静模式, 也就是不显示任何例如无权访问日志文件、内存转储正在保存中之类的警告信息与提示信息。
4. Invoke debugger using the last core dump of a program: # coredumpctl debug program 5. Extract the last core dump of a program to a file: # coredumpctl --output=path/to/file dump program
#2 0x0000562fc1420fa2 in mount_autofs_direct (ap=0x562fc21d9fb0) at /usr/src/debug/autofs-5.1.7-36.el9.x86_64/daemon/direct.c:508 __clframe = {__cancel_routine = <optimized out>, __cancel_arg = 0x562fc21d6670, __do_it = 1, __cancel_type = <optimized out>} timeout ...
# coredumpctl info PID 4. Invoke debugger using the last core dump of a program: # coredumpctl debug program 5. Extract the last core dump of a program to a file: # coredumpctl --output=path/to/file dump program