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

promote_first_timestamp_column: Conditional jump or move depends on uninitialised value

    XMLWordPrintable

Details

    Description

      Run with --valgrind-mysqld

      CREATE TABLE t1 (f TIMESTAMP DEFAULT '2000-01-01 00:00:00');
      ALTER TABLE t1 ALTER COLUMN f DROP DEFAULT;
       
      # Cleanup
      DROP TABLE t1;
      

      10.4 fb01193c Valgrind

      ==31285== Conditional jump or move depends on uninitialised value(s)
      ==31285==    at 0x96B434: promote_first_timestamp_column(List<Create_field>*) (sql_table.cc:3019)
      ==31285==    by 0x97E3AA: mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) (sql_table.cc:9619)
      ==31285==    by 0xA116FF: Sql_cmd_alter_table::execute(THD*) (sql_alter.cc:499)
      ==31285==    by 0x89C20D: mysql_execute_command(THD*) (sql_parse.cc:6346)
      ==31285==    by 0x8A13B5: mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) (sql_parse.cc:8157)
      ==31285==    by 0x88C957: dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) (sql_parse.cc:1829)
      ==31285==    by 0x88B12B: do_command(THD*) (sql_parse.cc:1358)
      ==31285==    by 0xA0AD7A: do_handle_one_connection(CONNECT*) (sql_connect.cc:1399)
      ==31285==    by 0xA0AAEB: handle_one_connection (sql_connect.cc:1302)
      ==31285==    by 0xF25A54: pfs_spawn_thread (pfs.cc:1862)
      ==31285==    by 0x4E3F493: start_thread (pthread_create.c:333)
      ==31285==    by 0x6A9A93E: clone (clone.S:97)
      

      Not reproducible on 10.3.

      Attachments

        Activity

          People

            bar Alexander Barkov
            elenst Elena Stepanova
            Votes:
            0 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.