Improve toolchain GDB for use in tests

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • DevProd Build
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Resmoke depends on GDB to produce core dumps when a test times out. I would like to be able to use the toolchain's GDB, and to be able to do so hermetically so that Resmoke tests can be executed remotely.

       

      To do so currently, I need to add an extra library dependency for libsframe.so.1 and append to LD_LIBRARY_PATH in the test itself. A hacky, minimal example of a py_test rule that uses the toolchain's GDB: https://github.com/10gen/mongo/compare/master...sleaux/hermetic_with_gdb

      Could it be enhanced so that a dependency like "@gdb_v5//:gdb_binary" is all that is needed, and can be invoked without adjusting LD_LIBRARY_PATH?

            Assignee:
            Unassigned
            Reporter:
            Sean Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: