Re: I need help understanding /proc/sys/kernel/core_pattern

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/11/19 6:01 PM, Sam Varshavchik wrote:
ToddAndMargo via users writes:

Hi All,

I have no idea what this tells me

    $ cat /proc/sys/kernel/core_pattern
|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e

Does anyone know of a list somewhere?

Would you believe the proc manual page, which directs you to the core manual page?

And why does it send out a pipe symbol?

To indicate that the core file is an external program.


What does this do?

     # echo core > /proc/sys/kernel/core_pattern

Will "core" turn on core dumps?

The core dumps are already turned on, except that they are fed to abrt, which stashes them away. This will, instead, create a plain file called "core" in the executable's directory.

And if so, how do I turn it back off after testing it?

And will it wipe out "%P %u %g %s %t %c %h %e"?

Set it back to what it was.

echo '|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e' >/proc/sys/kernel/core_pattern

Now, if you really want a core file, you don't really have to do any of that. You can leave core_pattern at its default value, and just pull the core file down, upon demand. I have a small shell script in my $HOME/bin directory:

$ cat ~/bin/core
#!/bin/bash

exec coredumpctl -o core dump

And after something dumps core, I just execute "core", and the core file appears in my current directory.

Thank you!

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux