[MCOL-4473] Crash with LOAD DATA LOCAL INFILE Created: 2020-12-28  Updated: 2020-12-29  Resolved: 2020-12-29

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: 5.4.1
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: markus makela Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

CentOS 8, installed 10.5.8 packages from http://yum.mariadb.org/10.5/centos/8/x86_64/



 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



 Comments   
Comment by markus makela [ 2020-12-29 ]

Seems to already be fixed.

Generated at Thu Feb 08 02:50:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.