Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3293

Make internal symbols externally visible

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.3, 3.2.14, 3.4.5, 3.5.9
    • Component/s: None
    • Labels:
      None

      Description

      WiredTiger currently marks symbols that aren't expected to be used outside of the library with the visibility("hidden") GCC attribute. That attribute effectively strips the symbols from the library, so external tools aren't able to decode stack traces into symbols.

      MongoDB likes to decode stacks into symbols to enhance debugability both during unexpected shutdown and in special code to track memory allocation patterns.

      We should remove the hidden attribute from our functions so that external utilities can decode stack traces.

      The particular pair of tools most commonly use for this are backtrace and dladdr

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alexander.gorrod Alexander Gorrod
                Reporter:
                alexander.gorrod Alexander Gorrod
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: