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

main.json_normalize and main.json_equals fail with UBSAN runtime error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.7
    • 10.7.5, 10.8.2
    • JSON, Tests

    Description

      The tests only exist in 10.7+. I have no information whether the root cause affects earlier versions.

      10.7 9f2a6bbe

      main.json_equals                         [ fail ]  Found warnings/errors in server log file!
              Test ended at 2022-01-03 18:03:07
      line
      /data/src/10.7/strings/json_lib.c:844:25: runtime error: index 200 out of bounds for type 'json_string_char_classes [128]'
      /data/src/10.7/strings/json_lib.c:844:25: runtime error: load of address 0x564204a58e20 with insufficient space for an object of type 'json_string_char_classes'
      ^ Found warnings in /mnt8t/bld/10.7-ubsan-nightly/mysql-test/var/log/mysqld.1.err
      ok
       
      /data/src/10.7/strings/json_lib.c:844:25: runtime error: index 200 out of bounds for type 'json_string_char_classes [128]'
      /data/src/10.7/strings/json_lib.c:844:25: runtime error: load of address 0x55ffc5b46e20 with insufficient space for an object of type 'json_string_char_classes'
      0x55ffc5b46e20: note: pointer points here
       0c 00 00 00  0c 00 00 00 0c 00 00 00  0c 00 00 00 0c 00 00 00  0c 00 00 00 0c 00 00 00  0c 00 00 00
                    ^ 
      

      Also happens on 10.8 branch.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            elenst Elena Stepanova
            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.