use signal handling stack via sigaltstack to improve behavior on stack overflow

XMLWordPrintableJSON

    • Fully Compatible
    • v4.2, v4.0
    • Dev Tools 2019-08-26, Dev Tools 2019-09-09, Dev Tools 2019-09-23, Dev Tools 2019-10-07, Dev Tools 2019-10-21, Dev Tools 2019-11-04
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In case of stack overflow mongod may not be able to produce a stack trace in the log because the signal handler has no stack space to run in, significantly hampering diagnosis. Servicability could be improved by using sigaltstack to establish a separate signal-handling stack, allowing stack traces to be produced in case of stack overflow.

        1. stacktrace-writeup.txt
          9 kB
          Billy Donahue

            Assignee:
            Billy Donahue
            Reporter:
            Bruce Lucas (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: