Tip: my notes on 28's new core dump

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

 



Hi All,

   Fedora changed the way core dumps are generated.
These are my notes:

-T


Fedora 28+ core dumps:

As of Fedora 28, core dumps have to be extracted by the administrator (root):

These commands will give you a list of core dumps

        # coredumpctl --reverse list
        # ls -l /var/lib/systemd/coredump/

You need the PID of the core dumps parent to create a coe dump:

coredumpctl has a PID column. "--reverse" puts the youngest at the top:

    # coredumpctl --reverse list
    TIME                            PID   UID   GID SIG COREFILE  EXE
Wed 2018-02-21 12:00:46 PST 20759 0 0 6 missing /opt/Cimcor/CimTrak/CimT


    # ls -l /var/lib/systemd/coredump/
-rw-r-----. 1 root root 1622777 May 31 03:04 core.CimTrakServer\x2eb.0.a91f9e4dc86f4e7ea65bd7dbd7eb5429.28086.1527761078000000.lz4

    The second to last set of numbers (28086 above) is the PID


To find a particular program's youngest pid (sub program name for "CimTrak"): # coredumpctl --reverse list | perl6 -e 'my $x=slurp(); for split "\n", $x -> $Line {if $Line ~~ / CimTrak / { say $Line.words[4]; last } };'
    9405



To extract a core dump:

   # coredumpctl dump {PID} --output /tmp/{PID}.core
   This will place the Core file will be located in /tmp/

   For example:
        # coredumpctl dump 9405 --output /tmp/9405.core



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



[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