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

cpimport crashes with long command strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.4
    • Fix Version/s: 5.6.1
    • Component/s: cpimport
    • 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.

        Attachments

          Activity

            People

            Assignee:
            drrtuy Roman
            Reporter:
            drrtuy Roman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration