#!/usr/bin/env python """Script and library for symbolizing MongoDB stack traces. To use as a script, paste the JSON object on the line after ----- BEGIN BACKTRACE ----- into the standard input of this script. There are numerous caveats. In the default mode, you need to pass in the path to the executable being symbolized, and if you want shared library stack traces, you must be on the same system. There is largely untested support for extracting debug information from S3 buckets. This work is experimental. Sample usage: mongosymb.py --symbolizer-path=/path/to/llvm-symbolizer /path/to/executable