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

UBSAN: mf_keycache.c:5950:11: runtime error: call to function init_simple_key_cache

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.11.8, 10.5
    • N/A
    • Compiling

    Description

      clang-18

      10.5

      /source/mysys/mf_keycache.c:5950:11: runtime error: call to function init_simple_key_cache through pointer to incorrect function type 'int (*)(void *, unsigned int, unsigned long, unsigned int, unsigned int, unsigned int)'
      /source/mysys/mf_keycache.c:480: note: init_simple_key_cache defined here
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/mysys/mf_keycache.c:5950:11 
      

      And

      /source/mysys/mf_keycache.c:6152:5: runtime error: call to function end_simple_key_cache through pointer to incorrect function type 'void (*)(void *, char)'
      /source/mysys/mf_keycache.c:957: note: end_simple_key_cache defined here
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/mysys/mf_keycache.c:6152:5 
      

      Attachments

        Issue Links

          Activity

            danblack Daniel Black created issue -
            danblack Daniel Black made changes -
            Field Original Value New Value
            danblack Daniel Black made changes -
            Description
            clang-18
            {noformat:title=10.5}
            /source/mysys/mf_keycache.c:5950:11: runtime error: call to function init_simple_key_cache through pointer to incorrect function type 'int (*)(void *, unsigned int, unsigned long, unsigned int, unsigned int, unsigned int)'
            /source/mysys/mf_keycache.c:480: note: init_simple_key_cache defined here
            SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/mysys/mf_keycache.c:5950:11
            {noformat}
            clang-18
            {noformat:title=10.5}
            /source/mysys/mf_keycache.c:5950:11: runtime error: call to function init_simple_key_cache through pointer to incorrect function type 'int (*)(void *, unsigned int, unsigned long, unsigned int, unsigned int, unsigned int)'
            /source/mysys/mf_keycache.c:480: note: init_simple_key_cache defined here
            SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/mysys/mf_keycache.c:5950:11
            {noformat}

            And
            {noformat}
            /source/mysys/mf_keycache.c:6152:5: runtime error: call to function end_simple_key_cache through pointer to incorrect function type 'void (*)(void *, char)'
            /source/mysys/mf_keycache.c:957: note: end_simple_key_cache defined here
            SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /source/mysys/mf_keycache.c:6152:5
            {noformat}
            danblack Daniel Black made changes -
            Assignee Daniel Black [ danblack ]
            danblack Daniel Black made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            danblack Daniel Black made changes -
            JIraAutomate JiraAutomate made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            danblack Daniel Black made changes -
            danblack Daniel Black made changes -
            Fix Version/s N/A [ 14700 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.11 [ 27614 ]
            Resolution Duplicate [ 3 ]
            Status Stalled [ 10000 ] Closed [ 6 ]

            People

              danblack Daniel Black
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.