[MDEV-5131] create_embedded_thd is not thread safe, libmysqld Created: 2013-10-11  Updated: 2013-10-15  Due: 2013-10-31  Resolved: 2013-10-15

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.33
Fix Version/s: 5.5.34

Type: Bug Priority: Major
Reporter: Vilho Raatikka Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: None
Environment:

> 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>}



 Comments   
Comment by Alexey Botchkov [ 2013-10-13 ]

http://lists.askmonty.org/pipermail/commits/2013-October/005526.html

Comment by Alexey Botchkov [ 2013-10-14 ]

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

Comment by Alexey Botchkov [ 2013-10-14 ]

Additional patch:
http://lists.askmonty.org/pipermail/commits/2013-October/005534.html

Generated at Thu Feb 08 07:01:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.