Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-17644

[RFE] Add ability to easily get heap summary statistics from coredump

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.4
    • glibc
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • fdf
    • All
    • None

      What were you trying to do that didn't work?

      Obtaining heap statistics from coredump is very difficult for application developers. Only expert with in-depth knowledge of allocator internals can obtain information like that provided by malloc_stats() from coredump.

      Please provide the package NVR for which bug is seen:

      glibc-2.34-82.el9.x86_64

      How reproducible:

      always

      Steps to reproduce

      1. Install gdb
      2. gcore 1
      3. Get information like "Total in use bytes" from the coredump

      Expected results

      It would be great if glibc provided a gdb script that I could source during the debugging session and would be able to easily get this information.

      Actual results

      No easy way to figure this out w/o looking into glibc internals.

              glibc-bugzilla Platform Tools - Libraries Bot
              msekleta@redhat.com Michal Sekletar
              Platform Tools - Libraries Bot Platform Tools - Libraries Bot
              qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: