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

Make internal symbols externally visible

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT2.9.3, 3.2.14, 3.4.5, 3.5.9
    • None
    • 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

              alexander.gorrod@mongodb.com Alexander Gorrod
              alexander.gorrod@mongodb.com Alexander Gorrod
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: