Add information on how to get line numbers from stacktraces

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Programmability 2025-06-09
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      Given a particular stacktrace frame, it's not clear how to get the line number from it. We should clearly document how to do this, either with addr2line or any other tool.

      Example stacktrace frame that I would like to get the line number for:

      {"C": "mongo::repl::(anonymous namespace)::insertDocumentsSingleBatch(mongo::OperationContext*, mongo::NamespaceStringOrUUID const&, __gnu_cxx::__normal_iterator<mongo::InsertStatement const*, std::vector<mongo::InsertStatement, std::allocator<mongo::InsertStatement> > >, __gnu_cxx::__normal_iterator<mongo::InsertStatement const*, std::vector<mongo::InsertStatement, std::allocator<mongo::InsertStatement> > >)", "a": "5641092AC109", "b": "564106F44000", "o": "2368109", "s": "_ZN5mongo4repl12_GLOBAL__N_126insertDocumentsSingleBatchEPNS_16OperationContextERKNS_21NamespaceStringOrUUIDEN9__gnu_cxx17__normal_iteratorIPKNS_15InsertStatementESt6vectorIS9_SaIS9_EEEESF_", "s+": "239"}
      

            Assignee:
            James Bronsted
            Reporter:
            Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: