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

MSAN: perfschema.statement_program_lost_inst - segv in __msan_set_alloca_origin_with_descr

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 11.4
    • 10.11, 11.4, 11.8
    • Triggers
    • MSAN, Debug, aarch64

    Description

      10.6- cda1826201cadd8f0d3a2bcbdbfd1ed7118de4b5 + pr4129 fix

      CALL ifac(10)|
      TRUNCATE performance_schema.events_statements_summary_by_program;
      SELECT OBJECT_TYPE, OBJECT_NAME, OBJECT_SCHEMA FROM 
      performance_schema.events_statements_summary_by_program 
      WHERE OBJECT_SCHEMA='nested_sp' ORDER BY OBJECT_NAME;
      OBJECT_TYPE	OBJECT_NAME	OBJECT_SCHEMA
      Flush status;
      show global status like "%performance_schema_program_lost%";
      Variable_name	Value
      Performance_schema_program_lost	0
      show global status like "%performance_schema_nested_statement_lost%";
      Variable_name	Value
      Performance_schema_nested_statement_lost	0
      ##################### 
      # Executing Queries
      ##################### 
      #####################
      # Executing queries #
      #####################
      CALL c1(42);
      
      

      Core was generated by `/build/sql/mariadbd --defaults-group-suffix=.1 --defaults-file=/build/mysql-tes'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x0000aaaad04ab304 in __msan_set_alloca_origin_with_descr ()
      [Current thread is 1 (Thread 0xffff8e3aefe0 (LWP 10550))]
       
       
      Thread 1 (Thread 0xffff8e3aefe0 (LWP 10550)):
      #0  0x0000aaaad04ab304 in __msan_set_alloca_origin_with_descr ()
      #1  0x0000aaaad207afd8 in MYSQLparse (thd=0xaaaad0e505a4 <parse_sql(THD*, Parser_state*, Object_creation_ctx*, bool)+3756>) at /build/sql/yy_mariadb.cc:29728
      #2  0x0000aaaad0e50720 in parse_sql (thd=0xe2b00003f088, parser_state=0xffff8e357650, creation_ctx=0xe0d000020490, do_pfs_digest=false) at /source/sql/sql_parse.cc:10595
      #3  0x0000aaaad1549ccc in Table_triggers_list::check_n_load (thd=0xe2b00003f088, db=0xe1c00004fca8, table_name=0xe1c00004fcb8, table=0xe1900006c788, names_only=false) at /source/sql/sql_trigger.cc:1662
      #4  0x0000aaaad096a2a8 in open_table_entry_fini (thd=0xe2b00003f088, share=0xe1c00004f8a0, entry=0xe1900006c788) at /source/sql/sql_base.cc:3093
      #5  0x0000aaaad0966330 in open_table (thd=0xe2b00003f088, table_list=0xe1c00004e8a0, ot_ctx=0xffff8e35d878) at /source/sql/sql_base.cc:2150
      #6  0x0000aaaad098079c in open_and_process_table (thd=0xe2b00003f088, tables=0xe1c00004e8a0, counter=0xffff8e35dbec, flags=0, prelocking_strategy=0xffff8e35dd20, has_prelocking_list=false, ot_ctx=0xffff8e35d878) at /source/sql/sql_base.cc:3941
      #7  0x0000aaaad0979294 in open_tables (thd=0xe2b00003f088, options=..., start=0xffff8e35dc00, counter=0xffff8e35dbec, flags=0, prelocking_strategy=0xffff8e35dd20) at /source/sql/sql_base.cc:4425
      #8  0x0000aaaad09907e4 in open_and_lock_tables (thd=0xe2b00003f088, options=..., tables=0xe1c00004e8a0, derived=true, flags=0, prelocking_strategy=0xffff8e35dd20) at /source/sql/sql_base.cc:5414
      #9  0x0000aaaad078ef38 in open_and_lock_tables (thd=0xe2b00003f088, tables=0xe1c00004e8a0, derived=true, flags=0) at /source/sql/sql_base.h:517
      #10 0x0000aaaad0baa2dc in mysql_insert (thd=0xe2b00003f088, table_list=0xe1c00004e8a0, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at /source/sql/sql_insert.cc:765
      #11 0x0000aaaad0e056b4 in mysql_execute_command (thd=0xe2b00003f088, is_called_from_prepared_stmt=false) at /source/sql/sql_parse.cc:4634
      #12 0x0000aaaad075c5d0 in sp_instr_stmt::exec_core (this=0xe11000018e20, thd=0xe2b00003f088, nextp=0xffff8e36df00) at /source/sql/sp_head.cc:3895
      #13 0x0000aaaad0754d44 in sp_lex_keeper::reset_lex_and_exec_core (this=0xe11000018e68, thd=0xe2b00003f088, nextp=0xffff8e36df00, open_tables=false, instr=0xe11000018e20) at /source/sql/sp_head.cc:3606
      #14 0x0000aaaad07585fc in sp_instr_stmt::execute (this=0xe11000018e20, thd=0xe2b00003f088, nextp=0xffff8e36df00) at /source/sql/sp_head.cc:3798
      #15 0x0000aaaad072750c in sp_head::execute (this=0xe1e00001eca0, thd=0xe2b00003f088, merge_da_on_success=true) at /source/sql/sp_head.cc:1443
      #16 0x0000aaaad073668c in sp_head::execute_procedure (this=0xe1e00001eca0, thd=0xe2b00003f088, args=0xe240000170a8) at /source/sql/sp_head.cc:2523
      #17 0x0000aaaad0de5640 in do_execute_sp (thd=0xe2b00003f088, sp=0xe1e00001eca0) at /source/sql/sql_parse.cc:3090
      #18 0x0000aaaad0de3f30 in Sql_cmd_call::execute (this=0xe0c0000392e0, thd=0xe2b00003f088) at /source/sql/sql_parse.cc:3336
      #19 0x0000aaaad0e285c8 in mysql_execute_command (thd=0xe2b00003f088, is_called_from_prepared_stmt=false) at /source/sql/sql_parse.cc:6167
      #20 0x0000aaaad075c5d0 in sp_instr_stmt::exec_core (this=0xe11000018060, thd=0xe2b00003f088, nextp=0xffff8e37d580) at /source/sql/sp_head.cc:3895
      #21 0x0000aaaad0754d44 in sp_lex_keeper::reset_lex_and_exec_core (this=0xe110000180a8, thd=0xe2b00003f088, nextp=0xffff8e37d580, open_tables=false, instr=0xe11000018060) at /source/sql/sp_head.cc:3606
      #22 0x0000aaaad07585fc in sp_instr_stmt::execute (this=0xe11000018060, thd=0xe2b00003f088, nextp=0xffff8e37d580) at /source/sql/sp_head.cc:3798
      #23 0x0000aaaad072750c in sp_head::execute (this=0xe1e00001e0a0, thd=0xe2b00003f088, merge_da_on_success=true) at /source/sql/sp_head.cc:1443
      #24 0x0000aaaad073668c in sp_head::execute_procedure (this=0xe1e00001e0a0, thd=0xe2b00003f088, args=0xe240000150a8) at /source/sql/sp_head.cc:2523
      #25 0x0000aaaad0de5640 in do_execute_sp (thd=0xe2b00003f088, sp=0xe1e00001e0a0) at /source/sql/sql_parse.cc:3090
      #26 0x0000aaaad0de3f30 in Sql_cmd_call::execute (this=0xe0c000037a20, thd=0xe2b00003f088) at /source/sql/sql_parse.cc:3336
      #27 0x0000aaaad0e285c8 in mysql_execute_command (thd=0xe2b00003f088, is_called_from_prepared_stmt=false) at /source/sql/sql_parse.cc:6167
      #28 0x0000aaaad075c5d0 in sp_instr_stmt::exec_core (this=0xe11000016620, thd=0xe2b00003f088, nextp=0xffff8e38cc00) at /source/sql/sp_head.cc:3895
      #29 0x0000aaaad0754d44 in sp_lex_keeper::reset_lex_and_exec_core (this=0xe11000016668, thd=0xe2b00003f088, nextp=0xffff8e38cc00, open_tables=false, instr=0xe11000016620) at /source/sql/sp_head.cc:3606
      #30 0x0000aaaad07585fc in sp_instr_stmt::execute (this=0xe11000016620, thd=0xe2b00003f088, nextp=0xffff8e38cc00) at /source/sql/sp_head.cc:3798
      #31 0x0000aaaad072750c in sp_head::execute (this=0xe1e00001d4a0, thd=0xe2b00003f088, merge_da_on_success=true) at /source/sql/sp_head.cc:1443
      #32 0x0000aaaad073668c in sp_head::execute_procedure (this=0xe1e00001d4a0, thd=0xe2b00003f088, args=0xe240000130a8) at /source/sql/sp_head.cc:2523
      #33 0x0000aaaad0de5640 in do_execute_sp (thd=0xe2b00003f088, sp=0xe1e00001d4a0) at /source/sql/sql_parse.cc:3090
      #34 0x0000aaaad0de3f30 in Sql_cmd_call::execute (this=0xe0c000045fa0, thd=0xe2b00003f088) at /source/sql/sql_parse.cc:3336
      #35 0x0000aaaad0e285c8 in mysql_execute_command (thd=0xe2b00003f088, is_called_from_prepared_stmt=false) at /source/sql/sql_parse.cc:6167
      #36 0x0000aaaad075c5d0 in sp_instr_stmt::exec_core (this=0xe11000017660, thd=0xe2b00003f088, nextp=0xffff8e39c280) at /source/sql/sp_head.cc:3895
      #37 0x0000aaaad0754d44 in sp_lex_keeper::reset_lex_and_exec_core (this=0xe110000176a8, thd=0xe2b00003f088, nextp=0xffff8e39c280, open_tables=false, instr=0xe11000017660) at /source/sql/sp_head.cc:3606
      #38 0x0000aaaad07585fc in sp_instr_stmt::execute (this=0xe11000017660, thd=0xe2b00003f088, nextp=0xffff8e39c280) at /source/sql/sp_head.cc:3798
      #39 0x0000aaaad072750c in sp_head::execute (this=0xe1e0000198a0, thd=0xe2b00003f088, merge_da_on_success=true) at /source/sql/sp_head.cc:1443
      #40 0x0000aaaad073668c in sp_head::execute_procedure (this=0xe1e0000198a0, thd=0xe2b00003f088, args=0xe2b0000443e8) at /source/sql/sp_head.cc:2523
      #41 0x0000aaaad0de5640 in do_execute_sp (thd=0xe2b00003f088, sp=0xe1e0000198a0) at /source/sql/sql_parse.cc:3090
      #42 0x0000aaaad0de3f30 in Sql_cmd_call::execute (this=0xe0c000036160, thd=0xe2b00003f088) at /source/sql/sql_parse.cc:3336
      #43 0x0000aaaad0e285c8 in mysql_execute_command (thd=0xe2b00003f088, is_called_from_prepared_stmt=false) at /source/sql/sql_parse.cc:6167
      #44 0x0000aaaad0dc93e8 in mysql_parse (thd=0xe2b00003f088, rawbuf=0xe11000014460 "CALL c1(42)", length=11, parser_state=0xffff8e3acb10) at /source/sql/sql_parse.cc:8200
      #45 0x0000aaaad0dbb128 in dispatch_command (command=COM_QUERY, thd=0xe2b00003f088, packet=0xe29000069089 "CALL c1(42)", packet_length=11, blocking=true) at /source/sql/sql_parse.cc:1908
      #46 0x0000aaaad0dcd4c4 in do_command (thd=0xe2b00003f088, blocking=true) at /source/sql/sql_parse.cc:1421
      #47 0x0000aaaad1926eb8 in do_handle_one_connection (connect=0xe0e00001f188, put_in_cache=true) at /source/sql/sql_connect.cc:1386
      #48 0x0000aaaad1925c7c in handle_one_connection (arg=0xe0e00001f188) at /source/sql/sql_connect.cc:1298
      #49 0x0000aaaad3e1cc78 in pfs_spawn_thread (arg=0xe17000003188) at /source/storage/perfschema/pfs.cc:2201
      #50 0x0000ffff9785eea0 in ?? () from /lib/aarch64-linux-gnu/libc.so.6
      #51 0x0000ffff978c7b1c in ?? () from /lib/aarch64-linux-gnu/libc.so.6
      

      increating thread stack didn't help

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.