Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-30242

MTR fails to report stack traces of all threads by default

    XMLWordPrintable

Details

    Description

      MDEV-28931 implemented a change that made it impossible by default to diagnose many race conditions or hangs based on output that is available from CI systems. MDEV-30084 is an example of that: A test would fail rarely, and we had no idea about the root cause until the insufficient GDB command bt (short for backtrace) was replaced with the more appropriate thread apply all backtrace, so that the stack traces of all active threads were displayed.

      It may be more convenient for interactive users of the test script if the crash reports are as short as possible, because interactive users usually can access core dumps or rerun failed tests afterwards. That is not possible on CI systems.

      It is easier for individual users to adapt the way how they invoke the regression test suite than for all CI systems out there to be adjusted, to "opt in" for more detailed reporting of crashes.

      Let us re-enable the output of stack traces all threads by default. Users who do not like verbose output can set the environment variable MTR_PRINT_CORE=small or invoke ./mtr --skip-core-file or similar.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.