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

[ERROR] mysqld got signal 11 (parent issue MDEV-19583)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.3.15
    • N/A
    • Server
    • GNU/Linux CentOS 7.6; Ram : 64 GB; Cpu : 8 core; Disco : 120GB ( rootvg + swap ) ;

    Description

      Hello,
      after installing new version of MariaDB columnstore 1,2,4 (as recommended in MDEV-19583) we have executed the query in attachment and we got the following error:

      190531 11:30:31 [ERROR] mysqld got signal 11 ;
      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.3.15-MariaDB-log
      key_buffer_size=536870912
      read_buffer_size=4194304
      max_used_connections=4
      max_threads=153
      thread_count=8
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1781080 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7fb2cc0008c8
      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 = 0x7fb334b37d98 thread_stack 0x80000
      /usr/local/mariadb/columnstore/mysql//bin/mysqld(my_print_stacktrace+0x29)[0x562e2f62ded9]
      mysys/stacktrace.c:270(my_print_stacktrace)[0x562e2f167a2f]
      sigaction.c:0(__restore_rt)[0x7fb368eca5d0]
      /usr/local/mariadb/columnstore/mysql//bin/mysqld(+0x6b2143)[0x562e2f0dc143]
      sql/sql_window.cc:435(compare_order_elements)[0x562e2f0dc38c]
      sql/sql_window.cc:588(compare_window_funcs_by_window_specs(Item_window_func*, Item_window_func*, void*))[0x562e2f0df629]
      sql/sql_list.h:589(bubble_sort<Item_window_func>)[0x562e2f0018c2]
      sql/sql_select.cc:3341(JOIN::make_aggr_tables_info())[0x562e2f008760]
      sql/sql_select.cc:2636(JOIN::optimize_stage2())[0x562e2f00a11e]
      sql/sql_select.cc:1935(JOIN::optimize_inner())[0x562e2f00ba3f]
      sql/sql_select.cc:1454(JOIN::optimize())[0x562e2ef860ee]
      sql/sql_derived.cc:907(mysql_derived_optimize(THD*, LEX*, TABLE_LIST*))[0x562e2ef85a0d]
      sql/sql_derived.cc:199(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x562e2f009724]
      sql/sql_select.cc:1728(JOIN::optimize_inner())[0x562e2f00ba3f]
      sql/sql_select.cc:1454(JOIN::optimize())[0x562e2ef860ee]
      sql/sql_derived.cc:907(mysql_derived_optimize(THD*, LEX*, TABLE_LIST*))[0x562e2ef85a0d]
      sql/sql_derived.cc:199(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x562e2f009724]
      sql/sql_select.cc:1728(JOIN::optimize_inner())[0x562e2f00ba3f]
      sql/sql_select.cc:1454(JOIN::optimize())[0x562e2f00d0b8]
      sql/sql_select.cc:4513(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x562e2f00dcfb]
      sql/sql_select.cc:385(handle_select(THD*, LEX*, select_result*, unsigned long))[0x562e2efbcfab]
      sql/sql_parse.cc:4336(mysql_execute_command(THD*))[0x562e2efbd6c2]
      sql/sql_parse.cc:8146(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x562e2efbe167]
      sql/sql_class.h:2885(THD::set_row_count_func(long long))[0x562e2efbfb08]
      sql/sql_parse.cc:10942(idb_vtable_process(THD*, unsigned long long, Statement*))[0x562e2efc2562]
      sql/sql_parse.cc:1875(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x562e2efc3fb8]
      sql/sql_parse.cc:1458(do_command(THD*))[0x562e2f08a9e4]
      sql/sql_connect.cc:1402(do_handle_one_connection(CONNECT*))[0x562e2f08aaa4]
      pthread_create.c:0(start_thread)[0x7fb368ec2dd5]
      /lib64/libc.so.6(clone+0x6d)[0x7fb366e6dead]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7fb2cc0dadb8): is an invalid pointer
      Connection ID (thread ID): 18
      Status: NOT_KILLED
       
      Optimizer switch: index_merge=off,index_merge_union=off,index_merge_sort_union=off,index_merge_intersection=off,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=off,derived_merge=off,derived_with_keys=off,firstmatch=off,loosescan=off,materialization=off,in_to_exists=on,semijoin=off,partial_match_rowid_merge=off,partial_match_table_scan=off,subquery_cache=off,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=off,join_cache_hashed=off,join_cache_bka=off,optimize_join_buffer_size=off,table_elimination=off,extended_keys=off,exists_to_in=on,orderby_uses_equalities=off,condition_pushdown_for_derived=on,split_materialized=off
       
      The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
      information that should help you find out what is causing the crash.
       
      We think the query pointer is invalid, but we will try to print it anyway. 
      Query: create temporary table infinidb_vtable.$vtable_18 engine = aria as WITH  `CNCTR_F0` AS      (     SELECT         `MVC`.`CNTRP_EMT_ID`,          `MVC`.`PRTFGL_ID`,          `MVC`.`INV`,          `MVC`.`PTRM_OGG`,          `MVC`.`PTRM_SOGG`,          `MVC`.`DT_ASSG`,          `MVC`.`DT_SCDN`,          `MVC`.`PIVA_SGR`,          `MVC`.`DT_INS`,          `MVC`.`DT_AGG`,          `MVC`.`STM_SRG`,          `MVC`.`CD_AMB`,          `MVC`.`NUMERO_DT_PERIODO`,          `MVC`.`RTNG_ID`,          `MVC`.`OICR_SOGG_ID`,          `MVC`.`OICR_OGG_ID`     FROM         `level2`.`cnctr_f` `MVC`,          `level2`.`security` `SEC`,          (         SELECT             MAX(`DT_SCDN`) AS `MAX_SCD`,              `PRTFGL_ID`         FROM             `level2`.`cnctr_f`          GROUP BY              `PRTFGL_ID`         ) `SCD`,          (         SELECT             MAX(`DT_ASSG`) AS `MAX_ASS`,              `PRTFGL_ID`         FROM             `level2`.`cnctr_f`          GROUP BY              `PRTFGL_ID`         ) `ASS`      WHERE          `SEC`.`SEC_TYPE` IN (              'SGR' ) AND         `SEC`.`USER_GROUP` IN (              'Amministratori Analytics',              'Amministratori di sistema',              'Cognos',              'Tutti',              'Tutti gli utenti autenticati',              'algorfin',              'cognosadm' ) AND                      CASE `SEC`.`SEC_TYPE`                 WHEN 'SGR' THEN `MVC`.`PIVA_SGR`                 ELSE '----'             END LIKE `SEC`.`SEC_FILTER` AND         `MVC`.`PRTFGL_ID` = `SCD`.`PRTFGL_ID` AND         `MVC`.`DT_SCDN` = `SCD`.`MAX_SCD` AND         `MVC`.`PRTFGL_ID` = `ASS`.`PRTFGL_ID` AND         `MVC`.`DT_ASSG` = `ASS`.`MAX_ASS`     ),  `CN_PARAM` AS      (     SELECT         `MVC`.`PIVA_SGR`,          `MVC`.`SGR_NM`,          `MVC`.`LMT_DS_1`,          `MVC`.`PERC_1`,          `MVC`.`LMT_DS_2`,          `MVC`.`PERC_2`,          `MVC`.`LMT_DS_3`,          `MVC`.`PERC_3`,          `MVC`.`LOGO_INT`,          `MVC`.`LOGO_EST_1`,          `MVC`.`LOGO_EST_2`     FROM         `level2`.`param` `MVC`,          `level2`.`security` `SEC`      WHERE          `SEC`.`SEC_TYPE` IN (              'SGR' ) AND         `SEC`.`USER_GROUP` IN (              'Amministratori Analytics',              'Amministratori di sistema',              'Cognos',              'Tutti',              'Tutti gli utenti autenticati',              'algorfin',              'cognosadm' ) AND                      CASE `SEC`.`SEC_TYPE`                 WHEN 'SGR' THEN `MVC`.`PIVA_SGR`                 ELSE '----'             END LIKE `SEC`.`SEC_FILTER`     ),  `CN_PRTFGL_D` AS      (     SELECT         `MVC`.`PRTFGL_ID`,          `MVC`.`PRTFGL_DT`,          `MVC`.`PRTFGL_STR_FNZ_SOGG_TCKR`,          `MVC`.`PRTFGL_STR_FNZ_SOGG_DS`,          `MVC`.`PRTFGL_STR_FNZ_SOGG_FULL_NAME`,          `MVC`.`PRTFGL_STR_FNZ_OGG_TCKR`,          `MVC`.`PRTFGL_STR_FNZ_OGG_DS`,          `MVC`.`PRTFGL_STR_FNZ_OGG_FULL_NAME`,          `MVC`.`PIVA_SGR`,          `MVC`.`DT_INS`,          `MVC`.`DT_AGG`,          `MVC`.`STM_SRG`,          `MVC`.`CD_AMB`     FROM         `level2`.`prtfgl_d` `MVC`,          `level2`.`security` `SEC`      WHERE          `SEC`.`SEC_TYPE` IN (              'SGR' ) AND         `SEC`.`USER_GROUP` IN (              'Amministratori Analytics',              'Amministratori di sistema',              'Cognos',              'Tutti',              'Tutti gli utenti autenticati',              'algorfin',              'cognosadm' ) AND                      CASE `SEC`.`SEC_TYPE`                 WHEN 'SGR' THEN `MVC`.`PIVA_SGR`                 ELSE '----'             END LIKE `SEC`.`SEC_FILTER`     ),  `CN_OICR_TRZ_D` AS      (     SELECT         `MVC`.`OICR_ID`,          `MVC`.`OICR_CD_FND`,          `MVC`.`OICR_ID_BB_UNQ`,          `MVC`.`OICR_CD_TTL`,          `MVC`.`OICR_ISIN`,          `MVC`.`OICR_TCKR`,          `MVC`.`OICR_DS`,          `MVC`.`OICR_FULL_NAME`,          `MVC`.`OICR_CNTRP_EMT_NM`,          `MVC`.`OICR_STT_ATT_ECNM_CD`,          `MVC`.`OICR_STT_ATT_ECNM_DS`,          `MVC`.`OICR_CD_BRS_CD`,          `MVC`.`OICR_CD_BRS_NM`,          `MVC`.`OICR_CTG_VAL_MOB_CD`,          `MVC`.`OICR_CTG_VAL_MOB_DS_`,          `MVC`.`OICR_DVS_CD`,          `MVC`.`OICR_DVS_DS`,          `MVC`.`OICR_MSTR_CNT_CD`,          `MVC`.`OICR_MSTR_CNT_DS`,          `MVC`.`OICR_STR_FNZ_TP`,          `MVC`.`OICR_IND_OICR`,          `MVC`.`OICR_TP_FND`,          `MVC`.`OICR_DT_FN_VLDT`,          `MVC`.`OICR_FLG_CNTR`,          `MVC`.`OICR_CLSSF_LVL_1`,          `MVC`.`OICR_CLSSF_LVL_2`,          `MVC`.`OICR_CLSSF_LVL_3`,          `MVC`.`OICR_CLSSF_LVL_4`,          `MVC`.`OICR_CLSSF_LVL_5`,          `MVC`.`OICR_CLSSF_LVL_6`,          `MVC`.`OICR_CLSSF_LVL_7`,          `MVC`.`OICR_CLSSF_LVL_8`,          `MVC`.`OICR_CLSSF_LVL_9`,          `MVC`.`OICR_CLSSF_LVL_10`,          `MVC`.`OICR_CLSSF_LVL_11`,          `MVC`.`OICR_CLSSF_LVL_12`,          `MVC`.`OICR_CLSSF_LVL_13`,          `MVC`.`OICR_CLSSF_LVL_14`,          `MVC`.`OICR_CLSSF_LVL_15`,          `MVC`.`OICR_PRP_POL_GST`,          `MVC`.`OICR_PRP_PRTFGL_MNGR`,          `MVC`.`OICR_TRZ_FLG_UNV_INVB`,          `MVC`.`PIVA_SGR`,          `MVC`.`DT_INS`,          `MVC`.`DT_AGG`,          `MVC`.`STM_SRG`,          `MVC`.`CD_AMB`     FROM         `level2`.`oicr_d` `MVC`,          `level2`.`security` `SEC`      WHERE          `MVC`.`OICR_IND_OICR` = 'TERZI' AND         `SEC`.`SEC_TYPE` IN (              'SGR' ) AND         `SEC`.`USER_GROUP` IN (              'Amministratori Analytics',              'Amministratori di sistema',              'Cognos',              'Tutti',              'Tutti gli utenti autenticati',              'algorfin',              'cognosadm' ) AND                      CASE `SEC`.`SEC_TYPE`                 WHEN 'SGR' THEN `MVC`.`PIVA_SGR`                 ELSE '----'             END LIKE `SEC`.`SEC_FILTER`     ),  `CN_RTNG_D` AS      (     SELECT         `MVC`.`RTNG_ID`,          `MVC`.`RTNG_NM`,          `MVC`.`RTNG_TP_DS`,          `MVC`.`DT_INIZIO_RIGA`,          `MVC`.`DT_FN_RIGA`,          `MVC`.`IND_CORRENTE`,          `MVC`.`RTNG_LMT_ID`,          `MVC`.`PIVA_SGR`,          `MVC`.`DT_INS`,          `MVC`.`DT_AGG`,          `MVC`.`STM_SRG`,          `MVC`.`CD_AMB`     FROM         `level2`.`rtng_d` `MVC`,          `level2`.`security` `SEC`      WHERE          `SEC`.`SEC_TYPE` IN (              'SGR' ) AND         `SEC`.`USER_GROUP` IN (              'Amministratori Analytics',              'Amministratori di sistema',              'Cognos',              'Tutti',              'Tutti gli utenti autenticati',              'algorfin',              'cognosadm' ) AND                      CASE `SEC`.`SEC_TYPE`                 WHEN 'SGR' THEN `MVC`.`PIVA_SGR`                 ELSE '----'             END LIKE `SEC`.`SEC_FILTER`     ),  `CN_RTNG_LMT` AS      (     SELECT         `MVC`.`RTNG_LMT_ID`,          `MVC`.`RTNG_NM`,          `MVC`.`POL_GST`,          `MVC`.`RTNG_TP_DS`,          `MVC`.`PERC`,          `MVC`.`DT_INIZIO`,          `MVC`.`DT_FN`,          `MVC`.`IND_CORRENTE`,          `MVC`.`PIVA_SGR`,          `MVC`.`DT_INS`,          `MVC`.`DT_AGG`,          `MVC`.`STM_SRG`,          `MVC`.`CD_AMB`     FROM         `level2`.`rtng_lmt` `MVC`,          `level2`.`security` `SEC`      WHERE          `SEC`.`SEC_TYPE` IN (              'SGR' ) AND         `SEC`.`USER_GROUP` IN (              'Amministratori Analytics',              'Amministratori di sistema',              'Cognos',              'Tutti',              'Tutti gli utenti autenticati',              'algorfin',              'cognosadm' ) AND                      CASE `SEC`.`SEC_TYPE`                 WHEN 'SGR' THEN `MVC`.`PIVA_SGR`                 ELSE '----'             END LIKE `SEC`.`SEC_FILTER`     ),  `CN_OICR_PRP_D` AS      (     SELECT         `MVC`.`OICR_ID`,          `MVC`.`OICR_CD_FND`,          `MVC`.`OICR_ID_BB_UNQ`,          `MVC`.`OICR_CD_TTL`,          `MVC`.`OICR_ISIN`,          `MVC`.`OICR_TCKR`,          `MVC`.`OICR_DS`,          `MVC`.`OICR_FULL_NAME`,          `MVC`.`OICR_CNTRP_EMT_NM`,          `MVC`.`OICR_STT_ATT_ECNM_CD`,          `MVC`.`OICR_STT_ATT_ECNM_DS`,          `MVC`.`OICR_CD_BRS_CD`,          `MVC`.`OICR_CD_BRS_NM`,          `MVC`.`OICR_CTG_VAL_MOB_CD`,          `MVC`.`OICR_CTG_VAL_MOB_DS_`,          `MVC`.`OICR_DVS_CD`,          `MVC`.`OICR_DVS_DS`,          `MVC`.`OICR_MSTR_CNT_CD`,          `MVC`.`OICR_MSTR_CNT_DS`,          `MVC`.`OICR_STR_FNZ_TP`,          `MVC`.`OICR_IND_OICR`,          `MVC`.`OICR_TP_FND`,          `MVC`.`OICR_DT_FN_VLDT`,          `MVC`.`OICR_FLG_CNTR`,          `MVC`.`OICR_CLSSF_LVL_1`,          `MVC`.`OICR_CLSSF_LVL_2`,          `MVC`.`OICR_CLSSF_LVL_3`,          `MVC`.`OICR_CLSSF_LVL_4`,          `MVC`.`OICR_CLSSF_LVL_5`,          `MVC`.`OICR_CLSSF_LVL_6`,          `MVC`.`OICR_CLSSF_LVL_7`,          `MVC`.`OICR_CLSSF_LVL_8`,          `MVC`.`OICR_CLSSF_LVL_9`,          `MVC`.`OICR_CLSSF_LVL_10`,          `MVC`.`OICR_CLSSF_LVL_11`,          `MVC`.`OICR_CLSSF_LVL_12`,          `MVC`.`OICR_CLSSF_LVL_13`,          `MVC`.`OICR_CLSSF_LVL_14`,          `MVC`.`OICR_CLSSF_LVL_15`,          `MVC`.`OICR_PRP_POL_GST`,          `MVC`.`OICR_PRP_PRTFGL_MNGR`,          `MVC`.`OICR_TRZ_FLG_UNV_INVB`,          `MVC`.`PIVA_SGR`,          `MVC`.`DT_INS`,          `MVC`.`DT_AGG`,          `MVC`.`STM_SRG`,          `MVC`.`CD_AMB`     FROM         `level2`.`oicr_d` `MVC`,          `level2`.`security` `SEC`      WHERE          `MVC`.`OICR_IND_OICR` = 'PROPRI' AND         `SEC`.`SEC_TYPE` IN (              'SGR' ) AND         `SEC`.`USER_GROUP` IN (              'Amministratori Analytics',              'Amministratori di sistema',              'Cognos',              'Tutti',              'Tutti gli utenti autenticati',              'algorfin',              'cognosadm' ) AND                      CASE `SEC`.`SEC_TYPE`                 WHEN 'SGR' THEN `MVC`.`PIVA_SGR`                 ELSE '----'             END LIKE `SEC`.`SEC_FILTER`     ),  `TQ0_Fatti` AS      (     SELECT         `CN_OICR_PRP_D`.`OICR_TP_FND` AS `OICR_Propri_Tipo_Fondo`,          `CN_OICR_PRP_D`.`OICR_FULL_NAME` AS `OICR_Propri_Full_Name`,          `CN_OICR_PRP_D`.`OICR_PRP_POL_GST` AS `OICR_Propri_Politica_Gestione`,          `CN_OICR_PRP_D`.`OICR_PRP_PRTFGL_MNGR` AS `OICR_Propri_Portafoglio_Manager`,          `CN_PARAM`.`PERC_2` AS `PERC_2`,          `CN_PARAM`.`PERC_1` AS `PERC_1`,          `CN_RTNG_D`.`RTNG_NM` AS `RTNG_NM`,          `CNCTR_F0`.`INV` AS `INV`,          `CN_OICR_TRZ_D`.`OICR_CLSSF_LVL_1` AS `OICR_CLSSF_LVL_1`,          `CN_OICR_PRP_D`.`OICR_ID` AS `OICR_ID`,          `CN_OICR_TRZ_D`.`OICR_ID` AS `OICR_ID1`,          `CN_OICR_TRZ_D`.`OICR_TP_FND` AS `OICR_TP_FND`,          CASE              WHEN                  SUM(1)                     OVER(                         PARTITION BY                             `CN_OICR_PRP_D`.`OICR_ID`,                              `CN_OICR_TRZ_D`.`OICR_ID`                         ORDER BY                             `CN_OICR_PRP_D`.`OICR_ID` ASC,                              `CN_OICR_TRZ_D`.`OICR_ID` ASC                      ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW                     ) = 1                 THEN                     `CN_OICR_TRZ_D`.`OICR_ID`             ELSE NULL         END AS `C__patrimonio_OICR_in_universo_investibile_Desc_d`,          CASE              WHEN                  SUM(1)                     OVER(                         PARTITION BY                             `CN_OICR_PRP_D`.`OICR_ID`,                              CASE                                  WHEN `CN_OICR_TRZ_D`.`OICR_TP_FND` = 'ETF' THEN `CN_OICR_TRZ_D`.`OICR_ID`                                 ELSE NULL                             END                         ORDER BY                             `CN_OICR_PRP_D`.`OICR_ID` ASC,                              CASE                                  WHEN `CN_OICR_TRZ_D`.`OICR_TP_FND` = 'ETF' THEN `CN_OICR_TRZ_D`.`OICR_ID`                                 ELSE NULL                             END ASC                      ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW                     ) = 1 AND                 `CN_OICR_TRZ_D`.`OICR_TP_FND` = 'ETF'                 THEN                     `CN_OICR_TRZ_D`.`OICR_ID`             ELSE NULL         END AS `C__patrimonio_OICR_in_universo_investibile_Desc1_d`,          CASE              WHEN                  SUM(1)                     OVER(                         PARTITION BY                             `CN_OICR_PRP_D`.`OICR_TP_FND`,                              `CN_OICR_PRP_D`.`OICR_FULL_NAME`,                              `CN_OICR_PRP_D`.`OICR_PRP_POL_GST`,                              `CN_OICR_PRP_D`.`OICR_PRP_PRTFGL_MNGR`,                              `CN_PARAM`.`PIVA_SGR`                         ORDER BY                             `CN_OICR_PRP_D`.`OICR_TP_FND` ASC,                              `CN_OICR_PRP_D`.`OICR_FULL_NAME` ASC,                              `CN_OICR_PRP_D`.`OICR_PRP_POL_GST` ASC,                              `CN_OICR_PRP_D`.`OICR_PRP_PRTFGL_MNGR` ASC,                              `CN_PARAM`.`PIVA_SGR` ASC                      ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW                     ) = 1                 THEN                     `CN_PARAM`.`PERC_2`             ELSE NULL         END AS `PERC_2_u`,          CASE              WHEN                  SUM(1)                     OVER(                         PARTITION BY                             `CN_OICR_PRP_D`.`OICR_TP_FND`,                              `CN_OICR_PRP_D`.`OICR_FULL_NAME`,                              `CN_OICR_PRP_D`.`OICR_PRP_POL_GST`,                              `CN_OICR_PRP_D`.`OICR_PRP_PRTFGL_MNGR`,                              `CN_PARAM`.`PIVA_SGR`                         ORDER BY                             `CN_OICR_PRP_D`.`OICR_TP_FND` ASC,                              `CN_OICR_PRP_D`.`OICR_FULL_NAME` ASC,                              `CN_OICR_PRP_D`.`OICR_PRP_POL_GST` ASC,                              `CN_OICR_PRP_D`.`OICR_PRP_PRTFGL_MNGR` ASC,                              `CN_PARAM`.`PIVA_SGR` ASC                      ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW                     ) = 1                 THEN                     `CN_PARAM`.`PERC_1`             ELSE NULL         END AS `PERC_1_u`,          CASE              WHEN                  SUM(1)                     OVER(                         PARTITION BY                             `CN_PARAM`.`PIVA_SGR`                         ORDER BY                             `CN_PARAM`.`PIVA_SGR` ASC                      ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW                     ) = 1                 THEN                     `CN_PARAM`.`PERC_1`             ELSE NULL         END AS `PERC_1_u1`,          CASE              WHEN                  SUM(1)                     OVER(                         PARTITION BY                             `CN_OICR_PRP_D`.`OICR_TP_FND`,                              `CN_PARAM`.`PIVA_SGR`                         ORDER BY                             `CN_OICR_PRP_D`.`OICR_TP_FND` ASC,                              `CN_PARAM`.`PIVA_SGR` ASC                      ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW                     ) = 1                 THEN                     `CN_PARAM`.`PERC_2`             ELSE NULL         END AS `PERC_2_u1`     FROM         `CNCTR_F0`             INNER JOIN `CN_PARAM`             ON `CNCTR_F0`.`PIVA_SGR` = `CN_PARAM`.`PIVA_SGR`                 INNER JOIN `CN_PRTFGL_D`                 ON `CNCTR_F0`.`PRTFGL_ID` = `CN_PRTFGL_D`.`PRTFGL_ID`                     LEFT OUTER JOIN `CN_OICR_TRZ_D`                     ON `CN_OICR_TRZ_D`.`OICR_ID` = `CNCTR_F0`.`OICR_OGG_ID`                         LEFT OUTER JOIN                          (`CN_RTNG_D`                             INNER JOIN `CN_RTNG_LMT`                             ON `CN_RTNG_D`.`RTNG_LMT_ID` = `CN_RTNG_LMT`.`RTNG_LMT_ID`)                         ON `CNCTR_F0`.`RTNG_ID` = `CN_RTNG_D`.`RTNG_ID`                             LEFT OUTER JOIN `CN_OICR_PRP_D`                             ON `CNCTR_F0`.`OICR_SOGG_ID` = `CN_OICR_PRP_D`.`OICR_ID`      WHERE          `CN_PRTFGL_D`.`PRTFGL_DT` = 20171110 AND         `CN_OICR_PRP_D`.`PIVA_SGR` = '11969870150' AND         `CN_OICR_PRP_D`.`OICR_TP_FND` <> 'ETF' AND         `CN_OICR_TRZ_D`.`OICR_TP_FND` <> 'ETF' AND         (`CN_RTNG_D`.`IND_CORRENTE` = 'C' OR         `CN_RTNG_D`.`IND_CORRENTE` IS NULL) AND         (`CN_OICR_PRP_D`.`OICR_PRP_POL_GST` = `CN_RTNG_LMT`.`POL_GST` OR         `CN_RTNG_D`.`IND_CORRENTE` IS NULL)     ),  `SQ3_Fatti` AS      (     SELECT         `TQ0_Fatti`.`OICR_Propri_Tipo_Fondo` AS `OICR_Propri_Tipo_Fondo`,          `TQ0_Fatti`.`OICR_Propri_Full_Name` AS `OICR_Propri_Full_Name`,          `TQ0_Fatti`.`OICR_Propri_Politica_Gestione` AS `OICR_Propri_Politica_Gestione`,          `TQ0_Fatti`.`OICR_Propri_Portafoglio_Manager` AS `OICR_Propri_Portafoglio_Manager`,          `TQ0_Fatti`.`OICR_ID` AS `OICR_ID`,          SUM(`TQ0_Fatti`.`PERC_2_u` / 100) AS `Sum1`,          SUM(`TQ0_Fatti`.`PERC_1_u` / 100) AS `Sum11`,          SUM(             CASE                  WHEN                      `TQ0_Fatti`.`RTNG_NM` IN (                          'GREEN',                          'AMBER' ) AND                     `TQ0_Fatti`.`OICR_Propri_Tipo_Fondo` <> 'ETF'                     THEN                         `TQ0_Fatti`.`INV`                 ELSE 0             END) AS `Sum12`,          SUM(             CASE                  WHEN `TQ0_Fatti`.`OICR_Propri_Tipo_Fondo` <> 'ETF' THEN `TQ0_Fatti`.`INV`                 ELSE 0             END) AS `Sum13`,          SUM(`TQ0_Fatti`.`PERC_1_u1` / 100) AS `Sum14`,          SUM(             CASE                  WHEN                      `TQ0_Fatti`.`RTNG_NM` IN (                          'GREEN' ) AND                     `TQ0_Fatti`.`OICR_CLSSF_LVL_1` = 'Flessibile' AND                     `TQ0_Fatti`.`OICR_Propri_Tipo_Fondo` <> 'ETF' OR                     `TQ0_Fatti`.`RTNG_NM` IN (                          'AMBER' ) AND                     `TQ0_Fatti`.`OICR_CLSSF_LVL_1` = 'Flessibile' AND                     `TQ0_Fatti`.`OICR_Propri_Tipo_Fondo` <> 'ETF'                     THEN                         `TQ0_Fatti`.`INV`                 ELSE 0             END) AS `Sum15`,          SUM(             CASE                  WHEN                      `TQ0_Fatti`.`OICR_CLSSF_LVL_1` = 'Flessibile' AND                     `TQ0_Fatti`.`OICR_Propri_Tipo_Fondo` <> 'ETF'                     THEN                         `TQ0_Fatti`.`INV`                 ELSE 0             END) AS `Sum16`,          SUM(`TQ0_Fatti`.`PERC_2_u1` / 100) AS `Sum17`,          COUNT(`TQ0_Fatti`.`C__patrimonio_OICR_in_universo_investibile_Desc_d`) AS `Count1`,          COUNT(`TQ0_Fatti`.`C__patrimonio_OICR_in_universo_investibile_Desc1_d`) AS `Count11`     FROM         `TQ0_Fatti`      GROUP BY          `TQ0_Fatti`.`OICR_Propri_Tipo_Fondo`,          `TQ0_Fatti`.`OICR_Propri_Full_Name`,          `TQ0_Fatti`.`OICR_Propri_Politica_Gestione`,          `TQ0_Fatti`.`OICR_Propri_Portafoglio_Manager`,          `TQ0_Fatti`.`OICR_ID`     ) SELECT DISTINCT      `SQ3_Fatti`.`OICR_Propri_Tipo_Fondo` AS `OICR_Propri_Tipo_Fondo`,      SUM(`SQ3_Fatti`.`Sum12`)         OVER(         ) / NULLIF(SUM(`SQ3_Fatti`.`Sum13`)         OVER(         ), 0) AS `Tot___patrimonio_in_Universo_Inv`,      SUM(`SQ3_Fatti`.`Sum14`)         OVER(         ) AS `Percentuale_Limite_1`,      SUM(`SQ3_Fatti`.`Sum15`)         OVER(         ) / NULLIF(SUM(`SQ3_Fatti`.`Sum16`)         OVER(         ), 0) AS `Tot___patrimonio_Rid_in_Universo_Inv`,      `SQ3_Fatti`.`OICR_Propri_Full_Name` AS `OICR_Propri_Full_Name`,      `SQ3_Fatti`.`OICR_Propri_Politica_Gestione` AS `OICR_Propri_Politica_Gestione`,      `SQ3_Fatti`.`OICR_Propri_Portafoglio_Manager` AS `OICR_Propri_Portafoglio_Manager`,      CASE          WHEN              SUM(`SQ3_Fatti`.`Count1`)                 OVER(                     PARTITION BY                         `SQ3_Fatti`.`OICR_ID`                 ) <> SUM(`SQ3_Fatti`.`Count11`)                 OVER(                     PARTITION BY                         `SQ3_Fatti`.`OICR_ID`                 )             THEN                 CASE                      WHEN                          CASE                              WHEN                                  SUM(`SQ3_Fatti`.`Count1`)                                     OVER(                                         PARTITION BY                                             `SQ3_Fatti`.`OICR_ID`                                     ) <> SUM(`SQ3_Fatti`.`Count11`)                                     OVER(                                         PARTITION BY                                             `SQ3_Fatti`.`OICR_ID`                                     )                                 THEN                                     SUM(`SQ3_Fatti`.`Sum12`)                                         OVER(                                             PARTITION BY                                                 `SQ3_Fatti`.`OICR_Propri_Full_Name`                                         ) / NULLIF(SUM(`SQ3_Fatti`.`Sum13`)                                         OVER(                                             PARTITION BY                                                 `SQ3_Fatti`.`OICR_Propri_Full_Name`                                         ), 0)                             ELSE NULL                         END < SUM(`SQ3_Fatti`.`Sum1`)                             OVER(                                 PARTITION BY                                     `SQ3_Fatti`.`OICR_Propri_Tipo_Fondo`,                                      `SQ3_Fatti`.`OICR_Propri_Full_Name`,                                      `SQ3_Fatti`.`OICR_Propri_Politica_Gestione`,                                      `SQ3_Fatti`.`OICR_Propri_Portafoglio_Manager`                             )                         THEN                             '▼'                     ELSE '✓'                 END         ELSE NULL     END AS `C__patrimonio_OICR_in_universo_investibile_Desc`,      CASE          WHEN              SUM(`SQ3_Fatti`.`Count1`)                 OVER(                     PARTITION BY                         `SQ3_Fatti`.`OICR_ID`                 ) <> SUM(`SQ3_Fatti`.`Count11`)                 OVER(                     PARTITION BY                         `SQ3_Fatti`.`OICR_ID`                 )             THEN                 SUM(`SQ3_Fatti`.`Sum12`)                     OVER(                         PARTITION BY                             `SQ3_Fatti`.`OICR_Propri_Full_Name`                     ) / NULLIF(SUM(`SQ3_Fatti`.`Sum13`)                     OVER(                         PARTITION BY                             `SQ3_Fatti`.`OICR_Propri_Full_Name`                     ), 0)         ELSE NULL     END AS `C__patrimonio_OICR_in_universo_investibile`,      SUM(`SQ3_Fatti`.`Sum11`)         OVER(             PARTITION BY                 `SQ3_Fatti`.`OICR_Propri_Tipo_Fondo`,                  `SQ3_Fatti`.`OICR_Propri_Full_Name`,                  `SQ3_Fatti`.`OICR_Propri_Politica_Gestione`,                  `SQ3_Fatti`.`OICR_Propri_Portafoglio_Manager`         ) AS `Percentuale_Limite_11`,      SUM(`SQ3_Fatti`.`Sum1`)         OVER(             PARTITION BY                 `SQ3_Fatti`.`OICR_Propri_Tipo_Fondo`,                  `SQ3_Fatti`.`OICR_Propri_Full_Name`,                  `SQ3_Fatti`.`OICR_Propri_Politica_Gestione`,                  `SQ3_Fatti`.`OICR_Propri_Portafoglio_Manager`         ) AS `Percentuale_Limite_2`,      MOD(COUNT(1)         OVER(             ORDER BY                 `SQ3_Fatti`.`OICR_Propri_Tipo_Fondo` ASC,                  `SQ3_Fatti`.`OICR_Propri_Full_Name` ASC,                  `SQ3_Fatti`.`OICR_Propri_Politica_Gestione` ASC,                  `SQ3_Fatti`.`OICR_Propri_Portafoglio_Manager` ASC          ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW         ), 2) AS `Alternate_Rows`,      SUM(`SQ3_Fatti`.`Count1`)         OVER(             PARTITION BY                 `SQ3_Fatti`.`OICR_ID`         ) AS `Num_OICR_Terzi`,      SUM(`SQ3_Fatti`.`Count11`)         OVER(             PARTITION BY                 `SQ3_Fatti`.`OICR_ID`         ) AS `Num_OICR_Terzi_ETF`,      SUM(`SQ3_Fatti`.`Sum17`)         OVER(             PARTITION BY                 `SQ3_Fatti`.`OICR_Propri_Tipo_Fondo`         ) AS `Percentuale_Limite_21` FROM     `SQ3_Fatti`  ORDER BY      `OICR_Propri_Tipo_Fondo` ASC,      `OICR_Propri_Full_Name` ASC,      `OICR_Propri_Politica_Gestione` ASC,      `OICR_Propri_Portafoglio_Manager` ASC
       
      Writing a core file...
      Working directory at /usr/local/mariadb/columnstore/mysql/db
      Resource Limits:
      Limit                     Soft Limit           Hard Limit           Units     
      Max cpu time              unlimited            unlimited            seconds   
      Max file size             unlimited            unlimited            bytes     
      Max data size             unlimited            unlimited            bytes     
      Max stack size            8388608              unlimited            bytes     
      Max core file size        0                    unlimited            bytes     
      Max resident set          unlimited            unlimited            bytes     
      Max processes             256931               256931               processes 
      Max open files            1214                 1214                 files     
      Max locked memory         65536                65536                bytes     
      Max address space         unlimited            unlimited            bytes     
      Max file locks            unlimited            unlimited            locks     
      Max pending signals       256931               256931               signals   
      Max msgqueue size         819200               819200               bytes     
      Max nice priority         0                    0                    
      Max realtime priority     0                    0                    
      Max realtime timeout      unlimited            unlimited            us        
      Core pattern: |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h
       
      190531 11:30:32 Columnstore: Started; Version: 1.2.4-1
      190531 11:30:32 Columnstore: Started; Version: 1.2.4-1
      2019-05-31 11:30:32 0 [Note] InnoDB: Using Linux native AIO
      2019-05-31 11:30:32 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
      2019-05-31 11:30:32 0 [Note] InnoDB: Uses event mutexes
      2019-05-31 11:30:32 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
      2019-05-31 11:30:32 0 [Note] InnoDB: Number of pools: 1
      2019-05-31 11:30:32 0 [Note] InnoDB: Using SSE2 crc32 instructions
      2019-05-31 11:30:32 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
      2019-05-31 11:30:32 0 [Note] InnoDB: Completed initialization of buffer pool
      2019-05-31 11:30:32 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
      2019-05-31 11:30:32 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=137268945
      2019-05-31 11:30:32 0 [Note] InnoDB: Last binlog file '/usr/local/mariadb/columnstore/mysql/db/mysql-bin.000002', position 189969193
      2019-05-31 11:30:32 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
      2019-05-31 11:30:32 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
      2019-05-31 11:30:32 0 [Note] InnoDB: Creating shared tablespace for temporary tables
      2019-05-31 11:30:32 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
      2019-05-31 11:30:32 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
      2019-05-31 11:30:32 0 [Note] InnoDB: Waiting for purge to start
      2019-05-31 11:30:32 0 [Note] InnoDB: 10.3.15 started; log sequence number 137268954; transaction id 573
      2019-05-31 11:30:32 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mariadb/columnstore/mysql/db/ib_buffer_pool
      2019-05-31 11:30:32 0 [Note] InnoDB: Buffer pool(s) load completed at 190531 11:30:32
      2019-05-31 11:30:32 0 [Note] Plugin 'FEEDBACK' is disabled.
      2019-05-31 11:30:32 0 [Warning] /usr/local/mariadb/columnstore/mysql//bin/mysqld: unknown variable 'loose-server_audit_syslog_info=columnstore-1'
      2019-05-31 11:30:32 0 [Note] Recovering after a crash using /usr/local/mariadb/columnstore/mysql/db/mysql-bin
      2019-05-31 11:30:33 0 [Note] Starting crash recovery...
      2019-05-31 11:30:33 0 [Note] Crash recovery finished.
      2019-05-31 11:30:33 0 [Note] Server socket created on IP: '::'.
      2019-05-31 11:30:33 0 [ERROR] mysqld: Table './mysql/user' is marked as crashed and should be repaired
      2019-05-31 11:30:33 0 [Warning] Checking table:   './mysql/user'
      2019-05-31 11:30:33 0 [ERROR] mysql.user: 1 client is using or hasn't closed the table properly
      2019-05-31 11:30:33 0 [Note] Reading of all Master_info entries succeded
      2019-05-31 11:30:33 0 [Note] Added new Master_info '' to hash table
      2019-05-31 11:30:33 0 [Note] /usr/local/mariadb/columnstore/mysql//bin/mysqld: ready for connections.
      Version: '10.3.15-MariaDB-log'  socket: '/usr/local/mariadb/columnstore/mysql/lib/mysql/mysql.sock'  port: 3306  Columnstore 1.2.4-1
      

      Attachments

        1. my.cnf
          6 kB
        2. my.cnf.111
          6 kB
        3. my.cnf.222
          6 kB
        4. Query Cognos.rtf
          50 kB
        5. TABLES.sql
          10 kB

        Issue Links

          Activity

            People

              alice Alice Sherepa
              bzmatteo Matteo Balzarotti
              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.