[MDEV-11991] [bb-10.0-monty] safe_mutex: Trying to lock mutex when the mutex was already locked Created: 2017-02-04  Updated: 2017-02-04  Resolved: 2017-02-04

Status: Closed
Project: MariaDB Server
Component/s: Locking, Replication
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Michael Widenius
Resolution: Fixed Votes: 0
Labels: None

Attachments: HTML File threads1    

 Description   

bb-10.0-monty 722f4f78a9

safe_mutex: Trying to lock mutex at /data/src/bb-10.0-monty/sql/slave.cc, line 660, when the mutex was already locked at /data/src/bb-10.0-monty/sql/slave.cc, line 653 in thread T@11
170204  4:42:07 [ERROR] mysqld got signal 6 ;
 
#5  0x00007f4bb1ef5448 in __GI_abort () at abort.c:89
#6  0x00000000013fc4de in safe_mutex_lock (mp=0x7f4b883871d8, my_flags=0, file=0x1482f70 "/data/src/bb-10.0-monty/sql/slave.cc", line=660) at /data/src/bb-10.0-monty/mysys/thr_mutex.c:266
#7  0x00000000005c4745 in inline_mysql_mutex_lock (that=0x7f4b883871d8, src_file=0x1482f70 "/data/src/bb-10.0-monty/sql/slave.cc", src_line=660) at /data/src/bb-10.0-monty/include/mysql/psi/mysql_thread.h:689
#8  0x00000000005c73a5 in terminate_slave_threads (mi=0x7f4b88385000, thread_mask=4, skip_lock=false) at /data/src/bb-10.0-monty/sql/slave.cc:660
#9  0x000000000088cbc0 in free_key_master_info (mi=0x7f4b88385000) at /data/src/bb-10.0-monty/sql/rpl_mi.cc:735
#10 0x00000000013b6870 in my_hash_delete (hash=0x7f4bb1414da0, record=0x7f4b88385000 "02\262\001") at /data/src/bb-10.0-monty/mysys/hash.c:607
#11 0x000000000088f69a in Master_info_index::remove_master_info (this=0x7f4bb1414a00, mi=0x7f4b88385000) at /data/src/bb-10.0-monty/sql/rpl_mi.cc:1281
#12 0x00000000008e9d7f in reload_acl_and_cache (thd=0x7f4b999c7070, options=64, tables=0x0, write_to_binlog=0x7f4bb41022dc) at /data/src/bb-10.0-monty/sql/sql_reload.cc:368
#13 0x00000000006d5238 in mysql_execute_command (thd=0x7f4b999c7070) at /data/src/bb-10.0-monty/sql/sql_parse.cc:4301
#14 0x00000000006deaa4 in mysql_parse (thd=0x7f4b999c7070, rawbuf=0x7f4b86c22088 "RESET SLAVE ALL /* QNO 3507 CON_ID 7 */", length=39, parser_state=0x7f4bb41026a0) at /data/src/bb-10.0-monty/sql/sql_parse.cc:6569
#15 0x00000000006c8240 in dispatch_command (command=COM_QUERY, thd=0x7f4b999c7070, packet=0x7f4b999d0071 "RESET SLAVE ALL /* QNO 3507 CON_ID 7 */ ", packet_length=40) at /data/src/bb-10.0-monty/sql/sql_parse.cc:1309
#16 0x00000000006c6c31 in do_command (thd=0x7f4b999c7070) at /data/src/bb-10.0-monty/sql/sql_parse.cc:999
#17 0x000000000089c3b8 in do_handle_one_connection (thd_arg=0x7f4b999c7070) at /data/src/bb-10.0-monty/sql/sql_connect.cc:1377
#18 0x000000000089bf0a in handle_one_connection (arg=0x7f4b999c7070) at /data/src/bb-10.0-monty/sql/sql_connect.cc:1292
#19 0x00007f4bb3def0a4 in start_thread (arg=0x7f4bb4103700) at pthread_create.c:309
#20 0x00007f4bb1fa787d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

All threads' stack trace is attached



 Comments   
Comment by Michael Widenius [ 2017-02-04 ]

Was a typo where I had by mistake used thread_mutex_lock instead of thread_mutex_unlock in a an error condtion.

Comment by Michael Widenius [ 2017-02-04 ]

Fixed and pushed into bb-10.0-monty

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