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

Threadpool - debug assertion thread_group->active_thread_count >=0, from TP_connection_generic::wait_begin

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      Reported by elenst
      Happens during authentication, when server waits for data from client to arrive on the socket

      Thread 1 (Thread 0x77ab149016c0 (LWP 286534)):
      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:89
      #3  0x00005fc737dde831 in handle_fatal_signal (sig=<optimized out>) at /home/jenkins/workspace/Source-Build-Test/src/sql/signal_handler.cc:298
      #4  <signal handler called>
      #5  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
      #6  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
      #7  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #8  0x000077ab4844526e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #9  0x000077ab484288ff in __GI_abort () at ./stdlib/abort.c:79
      #10 0x000077ab4842881b in __assert_fail_base (fmt=0x77ab485d01e8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5fc739ea01a0 "thread_group->active_thread_count >=0", file=file@entry=0x5fc739e9f380 "/home/jenkins/workspace/Source-Build-Test/src/sql/threadpool_generic.cc", line=line@entry=1288, function=function@entry=0x5fc739ea0200 "void wait_begin(thread_group_t*)") at ./assert/assert.c:94
      #11 0x000077ab4843b507 in __assert_fail (assertion=0x5fc739ea01a0 "thread_group->active_thread_count >=0", file=0x5fc739e9f380 "/home/jenkins/workspace/Source-Build-Test/src/sql/threadpool_generic.cc", line=1288, function=0x5fc739ea0200 "void wait_begin(thread_group_t*)") at ./assert/assert.c:103
      #12 0x00005fc736c9ad2c in wait_begin (thread_group=0x530000010798) at /home/jenkins/workspace/Source-Build-Test/src/sql/threadpool_generic.cc:1288
      #13 0x00005fc7383f8dcd in TP_connection_generic::wait_begin (this=0x5080001df1a0, type=<optimized out>) at /home/jenkins/workspace/Source-Build-Test/src/sql/threadpool_generic.cc:1360
      #14 0x00005fc738404fae in vio_io_wait (vio=vio@entry=0x515000062018, event=event@entry=VIO_IO_EVENT_READ, timeout=<optimized out>) at /home/jenkins/workspace/Source-Build-Test/src/vio/viosocket.c:955
      #15 0x00005fc738405422 in vio_socket_io_wait (vio=vio@entry=0x515000062018, event=event@entry=VIO_IO_EVENT_READ) at /home/jenkins/workspace/Source-Build-Test/src/vio/viosocket.c:116
      #16 0x00005fc73840579c in vio_read (vio=0x515000062018, buf=0x529004696218 "c", size=<optimized out>) at /home/jenkins/workspace/Source-Build-Test/src/vio/viosocket.c:182
      #17 0x00005fc73830d7c1 in my_real_read (net=net@entry=0x52c000310560, complen=complen@entry=0x77ab1320d420, header=<optimized out>) at /home/jenkins/workspace/Source-Build-Test/src/sql/net_serv.cc:843
      #18 0x00005fc738310c60 in my_net_read_packet_reallen (net=net@entry=0x52c000310560, read_from_server=read_from_server@entry=0 '\000', reallen=reallen@entry=0x77ab13374da0) at /home/jenkins/workspace/Source-Build-Test/src/sql/net_serv.cc:1079
      #19 0x00005fc73831113d in my_net_read_packet (net=0x52c000310560, read_from_server=0 '\000') at /home/jenkins/workspace/Source-Build-Test/src/sql/net_serv.cc:1062
      #20 0x00005fc7372a4bb0 in server_mpvio_read_packet (param=0x77ab13894550, buf=0x77ab133747a0) at /home/jenkins/workspace/Source-Build-Test/src/sql/sql_acl.cc:14423
      #21 0x00005fc73726a884 in native_password_authenticate (vio=0x77ab13894550, info=0x77ab13894568) at /home/jenkins/workspace/Source-Build-Test/src/sql/sql_acl.cc:15130
      #22 0x00005fc737270535 in do_auth_once (thd=thd@entry=0x52c000310218, auth_plugin_name=<optimized out>, mpvio=mpvio@entry=0x77ab13894550) at /home/jenkins/workspace/Source-Build-Test/src/sql/sql_acl.cc:14628
      #23 0x00005fc7372ab8f7 in acl_authenticate (thd=thd@entry=0x52c000310218, com_change_user_pkt_len=com_change_user_pkt_len@entry=0) at /home/jenkins/workspace/Source-Build-Test/src/sql/sql_acl.cc:14756
      #24 0x00005fc7379598e0 in check_connection (thd=thd@entry=0x52c000310218) at /home/jenkins/workspace/Source-Build-Test/src/sql/sql_connect.cc:1084
      #25 0x00005fc73795ba6a in login_connection (thd=0x52c000310218) at /home/jenkins/workspace/Source-Build-Test/src/sql/sql_connect.cc:1150
      #26 thd_prepare_connection (thd=thd@entry=0x52c000310218) at /home/jenkins/workspace/Source-Build-Test/src/sql/sql_connect.cc:1334
      #27 0x00005fc737c7b761 in threadpool_add_connection (c=0x5080001df1a0, connect=<optimized out>) at /home/jenkins/workspace/Source-Build-Test/src/sql/threadpool_common.cc:333
      #28 tp_callback (c=0x5080001df1a0) at /home/jenkins/workspace/Source-Build-Test/src/sql/threadpool_common.cc:242
      #29 0x00005fc7383f85c1 in worker_main (param=param@entry=0x530000010798) at /home/jenkins/workspace/Source-Build-Test/src/sql/threadpool_generic.cc:1587
      

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              wlad Vladislav Vaintroub
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: