Bug #27622 mysqld shutdown, util thread continues, while binlog thread exits
Submitted: 3 Apr 2007 18:44 Modified: 19 Jun 2007 13:16
Reporter: Tomas Ulin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Replication Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: Tomas Ulin CPU Architecture:Any

[3 Apr 2007 18:44] Tomas Ulin
Description:
070403 20:15:55 [Note] SCHEDULER: Purging queue. 0 events
070403 20:15:56 [Note] Stopping Cluster Binlog
NDB: Found 2 NdbTransaction's that have not been released
070403 20:15:56 [Note] NDB Binlog: DISCOVER TABLE Event: REPL$mysql/ndb_apply_status
safe_mutex: Trying to lock unitialized mutex at ha_ndbcluster_binlog.cc, line 2810
070403 20:15:56 - 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.

How to repeat:
pushbuild:

https://intranet.mysql.com/~knielsen/pb/getlog.pl?dir=mysql-5.1-telco&entry=tulin@whalegat...
[16 Apr 2007 14:07] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/24593

ChangeSet@1.2580, 2007-04-16 17:08:29+03:00, monty@mysql.com +22 -0
  Clear field_alloc when it's moved to result set (allows us to always call free_root on field_alloc)
  Change to use remove_file instead of 'system rm' in a lot of tests. (Should fix some windows test problems)
  Removed memory leak in mysql_test if sync_with_master fails.
  Do not terminate ndb_cluster_binary_log before the util thread has finnished. This should fix a shutdown bug where a thread is accessing injector_mutex after it's freed.
  Patch may fix Bug#27622 "mysqld shutdown, util thread continues, while binlog thread exits"
[18 Apr 2007 15:46] Bugs System
Pushed into 5.1.18-beta
[19 Jun 2007 13:16] Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

Closed without further action per developer notes.