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

Crash in handleError

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 6.4.2, 22.08.2
    • 6.4.4, 22.08.3
    • Core
    • None

    Description

      The session command handler seems to end up doing something which it shouldn't do as the pointer to the router session is null.

      Thread 1 (Thread 0x7fb717fff700 (LWP 3174926)):
      #0  0x00007fb7229ba08b in ServiceEndpoint::handleError (this=0x7fb70caebac0, type=maxscale::ErrorType::PERMANENT, error=0x7fb70cb10b20, down=<optimized out>, reply=...) at /home/timofey_turenko_mariadb_com/MaxScale/server/core/service.cc:1718
      #1  0x00007fb7229a7dcb in ServerEndpoint::handleError (this=0x7fb70caebbe0, type=maxscale::ErrorType::PERMANENT, error=0x7fb70cb10b20, down=<optimized out>, reply=...) at /home/timofey_turenko_mariadb_com/MaxScale/server/core/server.cc:1207
      #2  0x00007fb7229e7d6d in MariaDBBackendConnection::do_handle_error (this=0x7fb70cb13de0, dcb=0x7fb70cb14570, errmsg=..., type=maxscale::ErrorType::PERMANENT) at /home/timofey_turenko_mariadb_com/MaxScale/server/modules/protocol/MariaDB/mariadb_backend.cc:584
      #3  0x00007fb7229eb43c in operator() (__closure=0x7fb717ff9370) at /home/timofey_turenko_mariadb_com/MaxScale/server/modules/protocol/MariaDB/mariadb_backend.cc:959
      #4  std::__invoke_impl<void, MariaDBBackendConnection::compare_responses()::<lambda()>&> (__f=...) at /usr/include/c++/10/bits/invoke.h:60
      #5  std::__invoke_r<void, MariaDBBackendConnection::compare_responses()::<lambda()>&> (__fn=...) at /usr/include/c++/10/bits/invoke.h:153
      #6  std::_Function_handler<void(), MariaDBBackendConnection::compare_responses()::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/10/bits/std_function.h:291
      #7  0x00007fb7229fb375 in std::function<void ()>::operator()() const (this=0x7fb717ff9370) at /usr/include/c++/10/bits/std_function.h:622
      #8  MariaDBClientConnection::process_normal_read (this=0x7fb70c119120) at /home/timofey_turenko_mariadb_com/MaxScale/server/modules/protocol/MariaDB/mariadb_client.cc:1364
      #9  0x00007fb7229fb798 in MariaDBClientConnection::ready_for_reading (this=0x7fb70c119120, event_dcb=<optimized out>) at /home/timofey_turenko_mariadb_com/MaxScale/server/modules/protocol/MariaDB/mariadb_client.cc:1548
      #10 0x00007fb722931134 in DCB::process_events (events=1, this=0x7fb70caec010) at /home/timofey_turenko_mariadb_com/MaxScale/server/core/dcb.cc:1311
      #11 DCB::process_events (this=0x7fb70caec010, events=1) at /home/timofey_turenko_mariadb_com/MaxScale/server/core/dcb.cc:1245
      #12 0x00007fb722931231 in DCB::event_handler (dcb=0x7fb70caec010, events=<optimized out>) at /home/timofey_turenko_mariadb_com/MaxScale/server/core/dcb.cc:1363
      #13 0x00007fb722933922 in DCB::FakeEventTask::execute (worker=..., this=0x7fb70c854c10) at /home/timofey_turenko_mariadb_com/MaxScale/server/core/dcb.cc:1434
      #14 DCB::FakeEventTask::execute (this=0x7fb70c854c10, worker=...) at /home/timofey_turenko_mariadb_com/MaxScale/server/core/dcb.cc:1421
      #15 0x00007fb722a2db99 in maxbase::Worker::handle_message (this=0x56378c366a80, queue=..., msg=...) at /home/timofey_turenko_mariadb_com/MaxScale/maxutils/maxbase/src/worker.cc:663
      #16 0x00007fb722a30dc8 in maxbase::MessageQueue::handle_poll_events (pWorker=<optimized out>, events=<optimized out>, this=0x56378c364a60) at /home/timofey_turenko_mariadb_com/MaxScale/maxutils/maxbase/src/messagequeue.cc:307
      #17 maxbase::MessageQueue::handle_poll_events (this=0x56378c364a60, pWorker=<optimized out>, events=<optimized out>) at /home/timofey_turenko_mariadb_com/MaxScale/maxutils/maxbase/src/messagequeue.cc:286
      #18 0x00007fb722a2f4b2 in maxbase::Worker::poll_waitevents (this=this@entry=0x56378c366a80) at /home/timofey_turenko_mariadb_com/MaxScale/maxutils/maxbase/src/worker.cc:848
      #19 0x00007fb722a2f70f in maxbase::Worker::run (this=0x56378c366a80, pSem=0x7fff2f6b7020) at /home/timofey_turenko_mariadb_com/MaxScale/maxutils/maxbase/src/worker.cc:554
      #20 0x00007fb7222b0ed0 in ?? ()
      #21 0x0000000000000000 in ?? ()
      (gdb) p m_router_session
      $1 = (maxscale::RouterSession *) 0x0
      

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            1 Vote for this issue
            Watchers:
            2 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.