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

Remove compile options for faking initialization under clang

Details

    • Sprint 7 (07.04.2025), Sprint 8 (21.04.2025), Sprint 9 (05.05.2025)

    Description

      There are a number of compiler defines that fake initialization LINT_INIT and UNINIT_VAR for example.

      With modern static analysers and the current usage, these are very shallow path to determine the initialisation did happen.

      Its better to catch these uninitialised values.

      Faking over the initialisation of variables in debug mode is likely to have a release build without the correct initialization.

      The UNINIT_VAR(x) x= x construct was causing UBSAN issues like:

      sql/sql_view.cc:1299:8: runtime error: load of value 16, which is not a valid value for type 'bool'
      

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Daniel Black made transition -
            Open In Progress
            3m 41s 1
            Daniel Black made transition -
            In Review Stalled
            4d 3h 21m 1
            Daniel Black made transition -
            Stalled In Progress
            13d 21h 4m 1
            Daniel Black made transition -
            In Progress In Review
            23h 44m 2

            People

              monty Michael Widenius
              danblack Daniel Black
              Votes:
              2 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.