threadpool UNIV_DEBUG | void remove_global_thread(THD*): Assertion `thd->release_resources_done()' failed

Bug #1333348 reported by Raghavendra D Prabhu
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Status tracked in 5.6
Percona XtraDB Cluster moved to
Status tracked in 5.6
Fix Released
Alexey Kopytov
Fix Released
Alexey Kopytov

Bug Description

# 2014-06-23T01:59:34 [6941] #0 0x00007f50eecbc69c in pthread_kill () from /lib64/
# 2014-06-23T01:59:34 [6941] #1 0x0000000000affeb6 in my_write_core (sig=6) at /mnt/workspace/build-xtradb-cluster-binaries-56/BUILD_TYPE/debug/label_exp/centos6-64/mysys/stacktrace.c:422
# 2014-06-23T01:59:34 [6941] #2 0x0000000000762c3d in handle_fatal_signal (sig=6) at /mnt/workspace/build-xtradb-cluster-binaries-56/BUILD_TYPE/debug/label_exp/centos6-64/sql/
# 2014-06-23T01:59:34 [6941] #3 <signal handler called>
# 2014-06-23T01:59:34 [6941] #4 0x00007f50ed1098e5 in raise () from /lib64/
# 2014-06-23T01:59:34 [6941] #5 0x00007f50ed10b0c5 in abort () from /lib64/
# 2014-06-23T01:59:34 [6941] #6 0x00007f50ed102a0e in __assert_fail_base () from /lib64/
# 2014-06-23T01:59:34 [6941] #7 0x00007f50ed102ad0 in __assert_fail () from /lib64/
# 2014-06-23T01:59:34 [6941] #8 0x0000000000636549 in remove_global_thread (thd=0x7f50c40009a0) at /mnt/workspace/build-xtradb-cluster-binaries-56/BUILD_TYPE/debug/label_exp/centos6-64/sql/
# 2014-06-23T01:59:34 [6941] #9 0x000000000063f92e in start_wsrep_THD (arg=0x66139f) at /mnt/workspace/build-xtradb-cluster-binaries-56/BUILD_TYPE/debug/label_exp/centos6-64/sql/
# 2014-06-23T01:59:34 [6941] #10 0x00007f50eecb7851 in start_thread () from /lib64/
# 2014-06-23T01:59:34 [6941] #11 0x00007f50ed1bf94d in clone () from /lib64/


2014-06-23 01:59:31 10559 [Note] WSREP: gcomm: closing backend
2014-06-23 01:59:31 10559 [Note] WSREP: Received self-leave message.
2014-06-23 01:59:31 10559 [Note] WSREP: gcomm: closed
2014-06-23 01:59:31 10559 [Note] WSREP: Flow-control interval: [0, 0]
2014-06-23 01:59:31 10559 [Note] WSREP: Received SELF-LEAVE. Closing connection.
2014-06-23 01:59:31 10559 [Note] WSREP: Shifting SYNCED -> CLOSED (TO: 45)
2014-06-23 01:59:31 10559 [Note] WSREP: RECV thread exiting 0: Success
2014-06-23 01:59:31 10559 [Note] WSREP: New cluster view: global state: 7c3e9610-fa9a-11e3-8734-7218126acbcf:45, view# -1: non-Primary, number of nodes: 0, my index: -1, protocol version 3
2014-06-23 01:59:31 10559 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2014-06-23 01:59:31 10559 [Note] WSREP: applier thread exiting (code:0)
2014-06-23 01:59:31 10559 [Note] WSREP: recv_thread() joined.
2014-06-23 01:59:31 10559 [Note] WSREP: Closing replication queue.
2014-06-23 01:59:31 10559 [Note] WSREP: Closing slave action queue.
mysqld: /mnt/workspace/build-xtradb-cluster-binaries-56/BUILD_TYPE/debug/label_exp/centos6-64/sql/ void remove_global_thread(THD*): Assertion `thd->release_resources_done()' failed.
05:59:31 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona XtraDB Cluster better by reporting any
bugs at

It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 38410895 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f50c40009a0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f50ef174da0 thread_stack 0x40000

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): Connection ID (thread ID): 1

Related branches

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :


summary: - UNIV_DEBUG | void remove_global_thread(THD*): Assertion
+ threadpool UNIV_DEBUG | void remove_global_thread(THD*): Assertion
`thd->release_resources_done()' failed
no longer affects: percona-xtradb-cluster/percona-xtradb-cluster-5.5
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Main RQG tests with threadpool crashed during shutdown -,Host=pxc-rqg/console - validating this issue.

Removing the threadpool for wsrep internal threads should fix this for long term.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments