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

Make internal symbols externally visible

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

      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

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

              Created:
              Updated:
              Resolved: