Server aborts with "safe_mutex: Trying to lock unitialized mutex" at

Bug #909512 reported by Elena Stepanova on 2011-12-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Vladislav Vaintroub

Bug Description

safe_mutex: Trying to lock unitialized mutex at /home/elenst/lp-5.5-threadpool/sql/, line 1341
111229 0:35:05 [ERROR] mysqld got signal 6 ;
Server version: 5.5.18-MariaDB-debug-log

#5 0x00007f886ee3bee6 in abort () from /lib64/
#6 0x0000000000c98520 in safe_mutex_lock (mp=0x14c5c00, my_flags=0,
    file=0xd93410 "/home/elenst/lp-5.5-threadpool/sql/", line=1341)
    at /home/elenst/lp-5.5-threadpool/mysys/thr_mutex.c:249
#7 0x000000000079e963 in inline_mysql_mutex_lock (that=0x14c5c00,
    src_file=0xd93410 "/home/elenst/lp-5.5-threadpool/sql/", src_line=1341)
    at /home/elenst/lp-5.5-threadpool/include/mysql/psi/mysql_thread.h:618
#8 0x00000000007a1434 in tp_set_threadpool_size (size=1)
    at /home/elenst/lp-5.5-threadpool/sql/
#9 0x000000000073c985 in fix_threadpool_size ()
    at /home/elenst/lp-5.5-threadpool/sql/
#10 0x00000000005b0186 in sys_var::update (this=0x14beb40, thd=0x1e2cbf0, var=0x1f6bcb8)
    at /home/elenst/lp-5.5-threadpool/sql/
#11 0x00000000005b1270 in set_var::update (this=0x1f6bcb8, thd=0x1e2cbf0)
    at /home/elenst/lp-5.5-threadpool/sql/
#12 0x00000000005b0e55 in sql_set_variables (thd=0x1e2cbf0, var_list=0x1e2fd88)
    at /home/elenst/lp-5.5-threadpool/sql/
#13 0x000000000063d2c7 in mysql_execute_command (thd=0x1e2cbf0)
    at /home/elenst/lp-5.5-threadpool/sql/
#14 0x0000000000643dc3 in mysql_parse (thd=0x1e2cbf0,
    rawbuf=0x1f6bb58 "SET GLOBAL thread_pool_size=1", length=29, parser_state=0x7f88646f0620)
    at /home/elenst/lp-5.5-threadpool/sql/
#15 0x000000000063812f in dispatch_command (command=COM_QUERY, thd=0x1e2cbf0,
    packet=0x1f01121 "SET GLOBAL thread_pool_size=1", packet_length=29)
    at /home/elenst/lp-5.5-threadpool/sql/
#16 0x0000000000637446 in do_command (thd=0x1e2cbf0)
    at /home/elenst/lp-5.5-threadpool/sql/
#17 0x0000000000729306 in do_handle_one_connection (thd_arg=0x1e2cbf0)
    at /home/elenst/lp-5.5-threadpool/sql/
#18 0x0000000000728dd8 in handle_one_connection (arg=0x1e2cbf0)
    at /home/elenst/lp-5.5-threadpool/sql/
#19 0x0000000000a91edc in pfs_spawn_thread (arg=0x1f87b30)
    at /home/elenst/lp-5.5-threadpool/storage/perfschema/
#20 0x00007f8870143a4f in start_thread () from /lib64/
#21 0x00007f886eed882d in clone () from /lib64/

bzr version-info
revision-id: <email address hidden>
date: 2011-12-28 03:51:12 +0100
build-date: 2011-12-29 00:44:44 +0200
revno: 3182
branch-nick: lp-5.5-threadpool

It happens if server is started with thread_handling=one-thread-per-connection or no-threads, upon an attempt to set thread_pool_size at runtime.
I only observed it on a debug build so far.

Related branches

Elena Stepanova (elenst) on 2011-12-28
summary: Server aborts with "safe_mutex: Trying to lock unitialized mutex" at
- 41
Changed in maria:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers