Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-93481

Use faster readelf in gdb scripts

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • v8.0, v7.0
    • Programmability 2024-08-19, Programmability 2024-09-02

      For some reason the versions of readelf in our v4 toolchain and in ubuntu 22.04 take a very long time (tens of seconds to over a minute) to open our statically linked binaries (at least on arm, untested on x86). This issue does not reproduce with the latest version of readelf from binutils 2.43 or with llvm-readelf in our v4 toolchain, both of which run in milliseconds. This code in our gdb scripts tries to invoke readelf to determine which version of gcc was used to compile the binary. This adds significant time to gdb startup when launched from within a checkout. We should instead try to run the llvm-readelf from the v4 toolchain.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: