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

+d,-d may break consistent state of DEBUG_DBUG

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • 10.2(EOL)
    • None

    Description

      There're few issues around using +d,-d with the intent to increment and restore the former
      state of DEBUG_DBUG variable.
      In particular when +d, keyword adds the very first keyword and by thus activates the state
      for the specified keyword the following -d,keyword does remove the keyword but leaves the active state for everything, including pollution of the server error log.

      There a patch

      ommit 0b9400d1f54f4ae9b84decf53352850171880f1e
      Author: Thayumanavar <thayumanavar.x.sachithanantha@oracle.com>
      Date:   Thu May 2 16:22:57 2013 +0530
       
          BUG#11765644: DEBUG 'D' LIST SHOULD STAY EMPTY AFTER SET
                        DEBUG="+D,<SYMBOL>"
          PROBLEM AND FIX:
          When the debug 'd' flag has been set to empty, then all
          DBUG_ macros are enabled. But if one then sets debug="
          +d,foo" then only foo, all others are turned off. The
          expected/intended behaviour should be to add debug for
          'symbol' in addition to whatever was enabled before.
          The fix adds keyword to the stack of active keyword list
          if debug was not enabled for all symbols. Also turn debug
          off if the last keyword is removed from the stack of
          keywords. NOTE: This shall require a change in the docs
          to reflect the changed behaviour in this bug
      

      that addresses that and few more use cases.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              Elkin Andrei Elkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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