Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4473

Crash with LOAD DATA LOCAL INFILE

    XMLWordPrintable

    Details

      Description

      The MariaDB process crashed with the following stacktrace when a LOAD DATA LOCAL INFILE query was executed. This does not happen with the latest 5.5.1 release.

      stack_bottom = 0x7ff6b813abd8 thread_stack 0x49000
      ??:0(my_print_stacktrace)[0x55ad6198f07e]
      ??:0(handle_fatal_signal)[0x55ad614245e5]
      sigaction.c:0(__restore_rt)[0x7ff6ddd00dd0]
      :0(__memmove_avx_unaligned_erms)[0x7ff6dbbc5db5]
      ??:0(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long))[0x7ff6dc2d959e]
      ??:0(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long))[0x7ff6dc2da4db]
      ??:0(ha_mcs_impl_write_batch_row_(unsigned char const*, TABLE*, cal_impl_if::cal_connection_info&))[0x7ff6cd474a6c]
      ??:0(ha_mcs_impl_write_row(unsigned char const*, TABLE*, unsigned long))[0x7ff6cd4516f8]
      ??:0(ha_mcs::write_row(unsigned char const*))[0x7ff6cd44a8fd]
      ??:0(handler::ha_write_row(unsigned char const*))[0x55ad61431e4f]
      ??:0(write_record(THD*, TABLE*, st_copy_info*, select_result*))[0x55ad611f90ed]
      ??:0(mysql_load(THD*, sql_exchange const*, TABLE_LIST*, List<Item>&, List<Item>&, List<Item>&, enum_duplicates, bool, bool))[0x55ad612256ca]
      ??:0(mysql_execute_command(THD*))[0x55ad612371c5]
      ??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55ad61227782]
      ??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55ad61232eab]
      ??:0(do_command(THD*))[0x55ad61233ff5]
      ??:0(do_handle_one_connection(CONNECT*, bool))[0x55ad61324bb1]
      ??:0(handle_one_connection)[0x55ad61324f4d]
      ??:0(MyCTX_nopad::finish(unsigned char*, unsigned int*))[0x55ad616445da]
      pthread_create.c:0(start_thread)[0x7ff6ddcf62de]
      :0(__GI___clone)[0x7ff6dbb63e83]
      

      The SQL that reproduces the crash:

      CREATE TABLE t1 (a text DEFAULT NULL) ENGINE=Columnstore DEFAULT CHARSET=utf8;
      load data local infile '/home/vagrant/data.txt' into table test.t1;
      

      The data was generated with:

      for ((i=0;i<100;i++)); do echo "hello $i" >> data.txt; done
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            markus makela markus makela
            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.