Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5387

Crash in MariaDBParser::Helper::get_query_info()

    XMLWordPrintable

Details

    Description

      Backtrace from maxscale log:

      2024-11-06 11:27:24   info   : (34291974) [readwritesplit] (Galera-RW-Service); Route query to primary: ProdDB7 <
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxbase::dump_stacktrace(std::function<void (char const*)>)): maxutils/maxbase/src/stacktrace.cc:227
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (std::_Function_base::~_Function_base()): /usr/include/c++/11/bits/std_function.h:243
        /usr/bin/maxscale (sigfatal_handler(int)): server/core/gateway.cc:577
        /lib/x86_64-linux-gnu/libc.so.6 (__sigaction): ??:?
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (MariaDBParser::Helper::get_query_info(GWBUF const&) const): server/modules/protocol/MariaDB/mariadbparser.cc:204
        /usr/lib/x86_64-linux-gnu/maxscale/libpp_sqlite.so ((anonymous namespace)::SqliteParser::get_query_info(GWBUF const&) const): server/modules/parser_plugin/pp_sqlite/pp_sqlite.cc:5213
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxscale::CachingParser::get_query_info(GWBUF const&) const): server/core/cachingparser.cc:593
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (mariadb::QueryClassifier::RouteInfo::set_multi_part_packet(bool)): include/maxscale/queryclassifier.hh:281 (discriminator 4)
        /usr/lib/x86_64-linux-gnu/maxscale/libreadwritesplit.so (RWSplitSession::route_query(GWBUF&&)): server/modules/routing/readwritesplit/rwsplitsession.cc:100
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (MXS_SESSION::delay_routing(maxscale::Routable*, GWBUF&&, std::chrono::duration<long, std::ratio<1l, 1000l> >, std::function<bool (GWBUF&&)>&&)::{lambda(maxbase::Worker::Callable::Action)#1}::operator()(maxbase::Worker::Callable::Action) const [clone .lto_priv.0]): server/core/session.cc:692
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxbase::Worker::DCallFunctorWithCancel::do_call(maxbase::Worker::Callable::Action)): maxutils/maxbase/include/maxbase/worker.hh:1178
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxbase::Worker::DCall::call(maxbase::Worker::Callable::Action)): maxutils/maxbase/include/maxbase/worker.hh:1022
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxbase::WorkerTimer::handle_poll_events(maxbase::Worker*, unsigned int, maxbase::Pollable::Context)): maxutils/maxbase/src/worker.cc:339
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxbase::Worker::deliver_events(maxbase::Pollable*, unsigned int, maxbase::Pollable::Context)): maxutils/maxbase/src/worker.cc:1084
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxbase::Worker::poll_waitevents()): maxutils/maxbase/src/worker.cc:1171
        /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0 (maxbase::Worker::run(maxbase::Semaphore*)): maxutils/maxbase/src/worker.cc:875
        /lib/x86_64-linux-gnu/libstdc++.so.6 (std::error_code::default_error_condition() const): ??:?
        /lib/x86_64-linux-gnu/libc.so.6 (pthread_condattr_setpshared): ??:?
        /lib/x86_64-linux-gnu/libc.so.6 (__xmknodat): ??:?
      MaxScale 24.02.3 received fatal signal 11. Commit ID: 60d99b4ba5fdc7e16dce63f69a73eed0398b64e9, System name: Linux, Release string: Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish), Thread: Worker-01Writing core dump.
      

      Crash is here:

      ...
         196 mxs::Parser::QueryInfo MariaDBParser::Helper::get_query_info(const GWBUF& packet) const
         197 {
         198     QueryInfo rval;
         199     uint32_t len = packet.length();
         200     rval.empty = len == MYSQL_HEADER_LEN;
         201 
         202     if (!rval.empty)
         203     {
      >> 204         uint8_t cmd = packet.data()[MYSQL_HEADER_LEN];
      ...
      

      Attachments

        Activity

          People

            markus makela markus makela
            hholzgra Hartmut Holzgraefe
            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.