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

CONNECT Engine crashes with signal 7 with JSON table type

    XMLWordPrintable

Details

    Description

      A user using the CONNECT engine with JSON table types is seeing the following crash:

      170508 21:25:20 [ERROR] mysqld got signal 7 ;
      This could be because you hit a bug. It is also possible that this binary
      or one of the libraries it was linked against is corrupt, improperly built,
      or misconfigured. This error can also be caused by malfunctioning hardware.
       
      To report this bug, see https://mariadb.com/kb/en/reporting-bugs
       
      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed, 
      something is definitely wrong and this may fail.
       
      Server version: 10.1.20-MariaDB
      key_buffer_size=1048576
      read_buffer_size=262144
      max_used_connections=280
      max_threads=502
      thread_count=223
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 653874 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x0x7fd5151af008
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 0x7fd18509bd40 thread_stack 0x3c000
      /usr/sbin/mysqld(my_print_stacktrace+0x2b)[0x7fd7bdb2e5cb]
      /usr/sbin/mysqld(handle_fatal_signal+0x4d5)[0x7fd7bd687375]
      /lib64/libpthread.so.0(+0xf7e0)[0x7fd7bcc887e0]
      /usr/lib64/mysql/plugin/ha_connect.so(_Z11ParseStringP7_globalRiR4STRG+0x67)[0x7fd7b7531947]
      /usr/lib64/mysql/plugin/ha_connect.so(_Z10ParseValueP7_globalRiR4STRGPb+0x226)[0x7fd7b7532d96]
      /usr/lib64/mysql/plugin/ha_connect.so(_Z11ParseObjectP7_globalRiR4STRGPb+0x287)[0x7fd7b7533127]
      /usr/lib64/mysql/plugin/ha_connect.so(_Z10ParseValueP7_globalRiR4STRGPb+0xdc)[0x7fd7b7532c4c]
      /usr/lib64/mysql/plugin/ha_connect.so(_Z10ParseArrayP7_globalRiR4STRGPb+0xc9)[0x7fd7b7532929]
      /usr/lib64/mysql/plugin/ha_connect.so(_Z9ParseJsonP7_globalPciPiPb+0x280)[0x7fd7b7533480]
      /usr/lib64/mysql/plugin/ha_connect.so(_ZN7TDBJSON12MakeDocumentEP7_global+0xa6)[0x7fd7b755aaa6]
      /usr/lib64/mysql/plugin/ha_connect.so(_ZN7TDBJSON11CardinalityEP7_global+0x36)[0x7fd7b755b196]
      /usr/lib64/mysql/plugin/ha_connect.so(_Z7CntInfoP7_globalP3TDBP6_xinfo+0xfc)[0x7fd7b750d03c]
      /usr/lib64/mysql/plugin/ha_connect.so(_ZN10ha_connect4infoEj+0x2c4)[0x7fd7b7501154]
      /usr/sbin/mysqld(+0x4c1c69)[0x7fd7bd57ac69]
      /usr/sbin/mysqld(+0x4b5147)[0x7fd7bd56e147]
      /usr/sbin/mysqld(_Z14get_all_tablesP3THDP10TABLE_LISTP4Item+0x81e)[0x7fd7bd58357e]
      /usr/sbin/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x28e)[0x7fd7bd5810ce]
      /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0x6b5)[0x7fd7bd568d85]
      /usr/sbin/mysqld(_ZN4JOIN4execEv+0x5d)[0x7fd7bd56b19d]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x12a)[0x7fd7bd567b6a]
      /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x25d)[0x7fd7bd56b47d]
      /usr/sbin/mysqld(+0x451e32)[0x7fd7bd50ae32]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x5d8c)[0x7fd7bd5170fc]
      /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x334)[0x7fd7bd51a6b4]
      /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x2293)[0x7fd7bd51d183]
      /usr/sbin/mysqld(_Z10do_commandP3THD+0x16b)[0x7fd7bd51d71b]
      /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x17f)[0x7fd7bd5dbfff]
      /usr/sbin/mysqld(handle_one_connection+0x47)[0x7fd7bd5dc157]
      /lib64/libpthread.so.0(+0x7aa1)[0x7fd7bcc80aa1]
      /lib64/libc.so.6(clone+0x6d)[0x7fd7bb164bcd]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7fd513f83020): is an invalid pointer
      Connection ID (thread ID): 62694
      Status: NOT_KILLED
       
      Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=off
      

      Attachments

        Activity

          People

            bertrandop Olivier Bertrand
            GeoffMontee Geoff Montee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.