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

create_embedded_thd is not thread safe, libmysqld

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.33
    • 5.5.34
    • None
    • None
    • > uname -a
      Linux linux-yxkl.site 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64 x86_64 GNU/Linux

    Description

      (gdb) bt
      #0  0x00007fae11ef70c3 in base_ilist::append (this=0x7fae12dff7e0 <threads>, a=0xb17a50) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/../sql/sql_list.h:685
      #1  0x00007fae11ef82eb in I_List<THD>::append (this=0x7fae12dff7e0 <threads>, a=0xb17a50) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/../sql/sql_list.h:761
      #2  0x00007fae11ef5432 in create_embedded_thd (client_flag=41477) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/lib_sql.cc:687
      #3  0x00007fadfb33c628 in get_or_create_thd_for_parsing (mysql=0xb12d00, query_str=0xb0dd40 "select * from mysql.foo where id=7") at ./query_classifier.cc:194
      #4  0x00007fadfb33c47b in skygw_query_classifier_get_type (query=0xb0dd40 "select * from mysql.foo where id=7", client_flags=0) at ./query_classifier.cc:128
      #5  0x00007fadfb54262c in routeQuery (instance=0xaf86e0, router_session=0x7fadf0015630, queue=0xb0e670) at readwritesplit.c:501
      #6  0x00007fae100e8b4e in gw_read_client_event (dcb=0x7fadf0015b50) at mysql_client.c:745
      #7  0x000000000040eb62 in poll_waitevents (arg=0x0) at poll.c:460
      #8  0x00000000004076c6 in main (argc=2, argv=0x7fffb5558328) at gateway.c:583
       
      (gdb) p threads
      $2 = {<base_ilist> = {first = 0x0, last = {_vptr.ilink = 0x7fae12bf9530 <vtable for ilink+16>, prev = 0x7fadf0016440, next = 0x0}}, <No data fields>}

      Attachments

        Activity

          vilho Vilho Raatikka created issue -
          holyfoot Alexey Botchkov made changes -
          Field Original Value New Value
          Assignee Alexey Botchkov [ holyfoot ]
          elenst Elena Stepanova made changes -
          Description (gdb) bt
          #0 0x00007fae11ef70c3 in base_ilist::append (this=0x7fae12dff7e0 <threads>, a=0xb17a50) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/../sql/sql_list.h:685
          #1 0x00007fae11ef82eb in I_List<THD>::append (this=0x7fae12dff7e0 <threads>, a=0xb17a50) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/../sql/sql_list.h:761
          #2 0x00007fae11ef5432 in create_embedded_thd (client_flag=41477) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/lib_sql.cc:687
          #3 0x00007fadfb33c628 in get_or_create_thd_for_parsing (mysql=0xb12d00, query_str=0xb0dd40 "select * from mysql.foo where id=7") at ./query_classifier.cc:194
          #4 0x00007fadfb33c47b in skygw_query_classifier_get_type (query=0xb0dd40 "select * from mysql.foo where id=7", client_flags=0) at ./query_classifier.cc:128
          #5 0x00007fadfb54262c in routeQuery (instance=0xaf86e0, router_session=0x7fadf0015630, queue=0xb0e670) at readwritesplit.c:501
          #6 0x00007fae100e8b4e in gw_read_client_event (dcb=0x7fadf0015b50) at mysql_client.c:745
          #7 0x000000000040eb62 in poll_waitevents (arg=0x0) at poll.c:460
          #8 0x00000000004076c6 in main (argc=2, argv=0x7fffb5558328) at gateway.c:583

          (gdb) p threads
          $2 = {<base_ilist> = {first = 0x0, last = {_vptr.ilink = 0x7fae12bf9530 <vtable for ilink+16>, prev = 0x7fadf0016440, next = 0x0}}, <No data fields>}
          {noformat}
          (gdb) bt
          #0 0x00007fae11ef70c3 in base_ilist::append (this=0x7fae12dff7e0 <threads>, a=0xb17a50) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/../sql/sql_list.h:685
          #1 0x00007fae11ef82eb in I_List<THD>::append (this=0x7fae12dff7e0 <threads>, a=0xb17a50) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/../sql/sql_list.h:761
          #2 0x00007fae11ef5432 in create_embedded_thd (client_flag=41477) at /home/raatikka/src/bazaar/shared/maria/5.5/libmysqld/lib_sql.cc:687
          #3 0x00007fadfb33c628 in get_or_create_thd_for_parsing (mysql=0xb12d00, query_str=0xb0dd40 "select * from mysql.foo where id=7") at ./query_classifier.cc:194
          #4 0x00007fadfb33c47b in skygw_query_classifier_get_type (query=0xb0dd40 "select * from mysql.foo where id=7", client_flags=0) at ./query_classifier.cc:128
          #5 0x00007fadfb54262c in routeQuery (instance=0xaf86e0, router_session=0x7fadf0015630, queue=0xb0e670) at readwritesplit.c:501
          #6 0x00007fae100e8b4e in gw_read_client_event (dcb=0x7fadf0015b50) at mysql_client.c:745
          #7 0x000000000040eb62 in poll_waitevents (arg=0x0) at poll.c:460
          #8 0x00000000004076c6 in main (argc=2, argv=0x7fffb5558328) at gateway.c:583

          (gdb) p threads
          $2 = {<base_ilist> = {first = 0x0, last = {_vptr.ilink = 0x7fae12bf9530 <vtable for ilink+16>, prev = 0x7fadf0016440, next = 0x0}}, <No data fields>}
          {noformat}
          holyfoot Alexey Botchkov made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          holyfoot Alexey Botchkov added a comment - http://lists.askmonty.org/pipermail/commits/2013-October/005526.html
          holyfoot Alexey Botchkov made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]

          Raatika reported that this fix doesn't fix the problem completely.

          holyfoot Alexey Botchkov added a comment - Raatika reported that this fix doesn't fix the problem completely.
          holyfoot Alexey Botchkov made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          holyfoot Alexey Botchkov added a comment - Additional patch: http://lists.askmonty.org/pipermail/commits/2013-October/005534.html
          holyfoot Alexey Botchkov made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 5.5.34 [ 13700 ]
          serg Sergei Golubchik made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 29261 ] MariaDB v2 [ 44454 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 44454 ] MariaDB v3 [ 63811 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 63811 ] MariaDB v4 [ 147121 ]

          People

            holyfoot Alexey Botchkov
            vilho Vilho Raatikka
            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.