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

ASAN reports "stack use after return" in Wsrep_schema_impl::open_table

Details

    Description

      Wsrep_schema_impl::open_table() has a TABLE_LIST object on the stack and returns TABLE_LIST::table to the caller.

      ASAN report:

      Address 0x7f173ecfb498 is located in stack of thread T39 at offset 1176 in frame
          #0 0x5627fe37f1df in Wsrep_schema_impl::open_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, thr_lock_type, TABLE**) /mariadb/10.4/sql/wsrep_schema.cc:252
       
        This frame has 2 object(s):
          [32, 40) 'prelocking_strategy.i'
          [64, 1840) 'tables' (line 258) <== Memory access at offset 1176 is inside this variable
      HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
            (longjmp and C++ exceptions *are* supported)
      Thread T39 created by T0 here:
          #0 0x5627fc21666e in pthread_create (/dev/shm/10.4/sql/mysqld+0x301666e) (BuildId: afe830840ad49150)
          #1 0x5627fe1c8b64 in spawn_thread_v1(unsigned int, unsigned long*, pthread_attr_t const*, void* (*)(void*), void*) /mariadb/10.4/storage/perfschema/pfs.cc:1919:15
      

      Attachments

        Activity

          sciascid Daniele Sciascia created issue -
          sciascid Daniele Sciascia made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          sciascid Daniele Sciascia made changes -
          Assignee Daniele Sciascia [ sciascid ] Julius Goryavsky [ sysprg ]
          Status In Progress [ 3 ] In Review [ 10002 ]
          sysprg Julius Goryavsky made changes -
          Status In Review [ 10002 ] Stalled [ 10000 ]
          sysprg Julius Goryavsky made changes -
          Fix Version/s 10.4.34 [ 29625 ]
          Fix Version/s 10.4 [ 22408 ]
          Resolution Fixed [ 1 ]
          Status Stalled [ 10000 ] Closed [ 6 ]
          JIraAutomate JiraAutomate made changes -
          Fix Version/s 10.5.25 [ 29626 ]
          Fix Version/s 10.6.18 [ 29627 ]
          Fix Version/s 10.11.8 [ 29630 ]
          Fix Version/s 11.0.6 [ 29628 ]
          Fix Version/s 11.1.5 [ 29629 ]
          Fix Version/s 11.2.4 [ 29631 ]

          People

            sysprg Julius Goryavsky
            sciascid Daniele Sciascia
            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.