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

Server crashes in Item_func::Item_func/Item_xpath_cast_number::Item_xpath_cast_number after EXTRACTVALUE with number() function in xpath

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 11.8, 12.3
    • 10.11, 11.4, 11.8, 12.3
    • XML
    • None

    Description

      SELECT EXTRACTVALUE('<a/>', '/a[number()]');
      

      Version: '10.11.17-MariaDB-asan-debug' 
      260513 14:30:36 [ERROR] /10.11/bld/sql//mysqld got signal 11 ;
       
      Server version: 10.11.17-MariaDB-asan-debug source revision: 80ea16c6209bfb642bd1e1b7296cf31f42810578
       
      Thread pointer: 0x52c0001b0218
      stack_bottom = 0x70de18562000 thread_stack 0xb00000
      sanitizer_common/sanitizer_common_interceptors.inc:4358(___interceptor_backtrace.part.0)[0x78de3d0831e0]
      mysys/stacktrace.c:215(my_print_stacktrace)[0x5983695e1145]
      libc_sigaction.c:0(__restore_rt)[0x78de3c045330]
      sql/item_func.h:173(Item_func::Item_func(THD*, Item*))[0x598368d07c4e]
      sql/item_func.h:475(Item_real_func::Item_real_func(THD*, Item*))[0x598369404c14]
      sql/item_xmlfunc.cc:459(Item_xpath_cast_number::Item_xpath_cast_number(THD*, Item*))[0x598369a09e27]
      sql/item_xmlfunc.cc:2078(my_xpath_parse_FunctionCall(my_xpath_st*))[0x598369a13af5]
      sql/item_xmlfunc.cc:2026(my_xpath_parse_PrimaryExpr(my_xpath_st*))[0x598369a11069]
      sql/item_xmlfunc.cc:2197(my_xpath_parse_FilterExpr(my_xpath_st*))[0x598369a1107d]
      sql/item_xmlfunc.cc:2137(my_xpath_parse_FilterExpr_opt_slashes_RelativeLocationPath(my_xpath_st*))[0x598369a110a9]
      sql/item_xmlfunc.cc:2172(my_xpath_parse_PathExpr(my_xpath_st*))[0x598369a114c4]
      sql/item_xmlfunc.cc:2095(my_xpath_parse_UnionExpr(my_xpath_st*))[0x598369a114db]
      sql/item_xmlfunc.cc:2516(my_xpath_parse_UnaryExpr(my_xpath_st*))[0x598369a11777]
      sql/item_xmlfunc.cc:2466(my_xpath_parse_MultiplicativeExpr(my_xpath_st*))[0x598369a118da]
      sql/item_xmlfunc.cc:2414(my_xpath_parse_AdditiveExpr(my_xpath_st*))[0x598369a11c82]
      sql/item_xmlfunc.cc:2372(my_xpath_parse_RelationalExpr(my_xpath_st*))[0x598369a1207d]
      sql/item_xmlfunc.cc:2311(my_xpath_parse_EqualityExpr(my_xpath_st*))[0x598369a12424]
      sql/item_xmlfunc.cc:2245(my_xpath_parse_AndExpr(my_xpath_st*))[0x598369a12748]
      sql/item_xmlfunc.cc:2213(my_xpath_parse_OrExpr(my_xpath_st*))[0x598369a129e3]
      sql/item_xmlfunc.cc:1832(my_xpath_parse_AxisSpecifier_NodeTest_opt_Predicate_list(my_xpath_st*))[0x598369a1302f]
      sql/item_xmlfunc.cc:1870(my_xpath_parse_Step(my_xpath_st*))[0x598369a13247]
      sql/item_xmlfunc.cc:1781(my_xpath_parse_RelativeLocationPath(my_xpath_st*))[0x598369a13276]
      sql/item_xmlfunc.cc:1753(my_xpath_parse_AbsoluteLocationPath(my_xpath_st*))[0x598369a13713]
      sql/item_xmlfunc.cc:1707(my_xpath_parse_LocationPath(my_xpath_st*))[0x598369a137ec]
      sql/item_xmlfunc.cc:2172(my_xpath_parse_PathExpr(my_xpath_st*))[0x598369a114ae]
      sql/item_xmlfunc.cc:2095(my_xpath_parse_UnionExpr(my_xpath_st*))[0x598369a114db]
      sql/item_xmlfunc.cc:2516(my_xpath_parse_UnaryExpr(my_xpath_st*))[0x598369a11777]
      sql/item_xmlfunc.cc:2466(my_xpath_parse_MultiplicativeExpr(my_xpath_st*))[0x598369a118da]
      sql/item_xmlfunc.cc:2414(my_xpath_parse_AdditiveExpr(my_xpath_st*))[0x598369a11c82]
      sql/item_xmlfunc.cc:2372(my_xpath_parse_RelationalExpr(my_xpath_st*))[0x598369a1207d]
      sql/item_xmlfunc.cc:2311(my_xpath_parse_EqualityExpr(my_xpath_st*))[0x598369a12424]
      sql/item_xmlfunc.cc:2245(my_xpath_parse_AndExpr(my_xpath_st*))[0x598369a12748]
      sql/item_xmlfunc.cc:2213(my_xpath_parse_OrExpr(my_xpath_st*))[0x598369a129e3]
      sql/item_xmlfunc.cc:2783(my_xpath_parse(my_xpath_st*, char const*, char const*))[0x598369a12ca4]
      sql/item_xmlfunc.cc:2842(Item_xml_str_func::fix_fields(THD*, Item**))[0x598369a146a2]
      sql/item.h:1179(Item::fix_fields_if_needed(THD*, Item**))[0x598368b9e001]
      sql/item.h:1187(Item::fix_fields_if_needed_for_scalar(THD*, Item**))[0x598368b9e02f]
      sql/sql_base.cc:8176(setup_fields(THD*, Bounds_checked_array<Item*>, List<Item>&, enum_column_usage, List<Item>*, List<Item>*, bool, THD_WHERE))[0x598368caad09]
      sql/sql_select.cc:1556(JOIN::prepare(TABLE_LIST*, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x598368f3a2da]
      sql/sql_select.cc:5256(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x598368f8e377]
      sql/sql_select.cc:601(handle_select(THD*, LEX*, select_result*, unsigned long long))[0x598368f8ed21]
      sql/sql_parse.cc:6463(execute_sqlcom_select(THD*, TABLE_LIST*))[0x598368df1218]
      sql/sql_parse.cc:4042(mysql_execute_command(THD*, bool))[0x598368e0f013]
      sql/sql_parse.cc:8223(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x598368e1d656]
      sql/sql_parse.cc:1924(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x598368e214fb]
      sql/sql_parse.cc:1434(do_command(THD*, bool))[0x598368e26010]
      sql/sql_connect.cc:1475(do_handle_one_connection(CONNECT*, bool))[0x59836921bb86]
      sql/sql_connect.cc:1387(handle_one_connection)[0x59836921c05f]
      perfschema/pfs.cc:2204(pfs_spawn_thread)[0x598369c793a5]
      asan/asan_interceptors.cpp:234(asan_thread_start(void*))[0x78de3d05ea42]
      nptl/pthread_create.c:447(start_thread)[0x78de3c09caa4]
      x86_64/clone3.S:80(clone3)[0x78de3c129c6c]
       
      Query (0x52d000096438): SELECT EXTRACTVALUE('<a/>', '/a[number()]')
      

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            alice Alice Sherepa
            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.