[MCOL-3394] cpimport crashes with long command strings Created: 2019-06-26  Updated: 2021-04-23  Resolved: 2021-04-23

Status: Closed
Project: MariaDB ColumnStore
Component/s: cpimport
Affects Version/s: 1.2.4
Fix Version/s: 5.6.1

Type: Bug Priority: Minor
Reporter: Roman Assignee: Roman
Resolution: Fixed Votes: 0
Labels: None


 Description   

Here is the example of the command that make cpimport unhappy.

root@f7de54e609ac:/ext/ch-ds# cpimport -r10 -w10 -E'"' -c20000000 -b10  -e20000 -s',' test hits ./hits_partial_col_set.csv
/usr/include/c++/7/bits/stl_vector.h:797: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::reference = std::__cxx11::basic_string<char>&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.

Here is the stack trace:

(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007fe2651a6801 in __GI_abort () at abort.c:79
#2  0x0000560604579d4d in std::__replacement_assert (__condition=0x5606045b0688 "__builtin_expect(__n < this->size(), true)", __function=<synthetic pointer>, __line=797, __file=0x5606045b06b8 "/usr/include/c++/7/bits/stl_vector.h") at /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:472
#3  std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::operator[] (__n=20, this=<synthetic pointer>) at /usr/include/c++/7/bits/stl_vector.h:797
#4  WriteEngine::WESplitterApp::invokeCpimport (this=0x7ffc0bb87da0) at /data/buildbot/bb-worker/ubuntu18/mariadb-columnstore-engine/writeengine/splitter/we_splitterapp.cpp:495
#5  0x000056060457a211 in WriteEngine::WESplitterApp::WESplitterApp (this=0x7ffc0bb87da0, CmdArgs=...) at /data/buildbot/bb-worker/ubuntu18/mariadb-columnstore-engine/writeengine/splitter/we_splitterapp.cpp:80
#6  0x000056060456d4c0 in main (argc=<optimized out>, argv=0x7ffc0bb88b18) at /data/buildbot/bb-worker/ubuntu18/mariadb-columnstore-engine/writeengine/splitter/we_splitterapp.cpp:613

CS allocates 20 elements for the parameters in we_splitterapp.cpp around line 495 and then failed assertion causes SIGABORT to be sent to cpimport.



 Comments   
Comment by Roman [ 2021-04-23 ]

This issue had been fixed by Alexey

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