How to collect a coredump of a running process without killing the process

Solution Verified - Updated -

Issue

  • I want to collect a coredump of a running process without killing the process

  • I use gcore to collect the coredump but buildids and libraries are not available through executing eu-unstrip command

    # gcore <pid>
    [...]
    Saved corefile core.<pid>
    
    # eu-unstrip -n --core=core.<pid> | grep -c "/lib64/"
    0
    

Environment

  • Red Hat Enterprise Linux 7 (RHEL 7)
  • Red Hat Enterprise Linux 8 (RHEL 8)
    • gcore
    • eu-unstrip

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content