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

3x WITH_UBSAN runtime error: null pointer passed on 10.5 normal startup in ctype-mb.c, mf_iocache.c (sporadic), and protocol.cc (on optimized builds)

    XMLWordPrintable

Details

    Description

      2020-04-28  6:06:55 0 [Note] /test/ASAN_MD210420-mariadb-10.5.3-linux-x86_64-dbg/bin/mysqld: ready for connections.
      Version: '10.5.3-MariaDB-debug'  socket: '/test/ASAN_MD210420-mariadb-10.5.3-linux-x86_64-dbg/socket.sock'  port: 13195  MariaDB Server
      /test/10.5_dbg/strings/ctype-mb.c:409:3: runtime error: null pointer passed as argument 2, which is declared to never be null
      /test/10.5_dbg/mysys/mf_iocache.c:825:3: runtime error: null pointer passed as argument 1, which is declared to never be null
      /test/10.5_dbg/sql/protocol.cc:61:9: runtime error: null pointer passed as argument 2, which is declared to never be null
      2020-04-28  6:07:05 0 [Note] /test/ASAN_MD210420-mariadb-10.5.3-linux-x86_64-dbg/bin/mysqld (initiated by: root[root] @ localhost []): Normal shutdown
      

      No other information returned. Same output on optimized build. The mf_iocache issue does not always show.

      Setup:

      Compiled with GCC >=7.5.0 and:
          -DWITH_ASAN=ON -DWITH_UBSAN=ON -DWITH_RAPID=OFF
      Set before execution:
          export ASAN_OPTIONS=quarantine_size_mb=512:atexit=true:detect_invalid_pointer_pairs=1:dump_instruction_bytes=true:abort_on_error=1
      

      Bug (used 'ctype-mb.c.* runtime error: null pointer passed as argument' as a generic search string) confirmed present in:
      MariaDB: 10.1.46 (dbg), 10.1.46 (opt), 10.2.33 (dbg), 10.2.33 (opt), 10.3.24 (dbg), 10.3.24 (opt), 10.4.14 (dbg), 10.4.14 (opt), 10.5.4 (dbg), 10.5.4 (opt)

      Attachments

        Activity

          People

            marko Marko Mäkelä
            Roel Roel Van de Paar
            Votes:
            1 Vote for this issue
            Watchers:
            5 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.