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

Implement Boolean debug build option debug_assert

    Details

      Description

      MariaDB Server 10.3.1 introduced the compiler flag (not cmake option) DBUG_ASSERT_AS_PRINTF that converts DBUG_ASSERT in non-debug builds into printouts.

      For debug builds, it would be useful to be able to convert DBUG_ASSERT into a warning or error printout, to allow execution to continue. This would allow debug builds to be used for reproducing hard failures that occur with release builds.

      My proposal for the option name would be debug_assert, because we already have debug_assert_on_error and debug_assert_if_crashed_table. Typical usage could be like this:

      ./mtr --mysqld=--skip-debug-assert some_crashing_test
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marko Marko Mäkelä
                Reporter:
                marko Marko Mäkelä
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: