List:Commits« Previous MessageNext Message »
From:msvensson Date:June 5 2007 5:34pm
Subject:bk commit into 5.0 tree (msvensson:1.2506) BUG#28690
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-06-05 17:34:51+02:00, msvensson@pilot.(none) +1 -0
  Bug#28690 mysql-enterprise-gpl-5.0.40-linux-i686-glibc won't start on Debian Sarge
   - Only use the "hack for bug in NTPL" if using NTPL, by dynamically
     checking the thd_lib_detected flag

  mysys/my_thr_init.c@stripped, 2007-06-05 17:34:49+02:00, msvensson@pilot.(none) +3 -0
    Only start the "dummy thread hack for bug in NPTL" - if using NPTL.
    If the system uses LinuxThreads it's not needed, it actually causes 
    the "pthread manager" to be started as root and thus all subsequent
    threads will also run as root although mysqld drops root privileges, 
    this in turns causes mysqld to deadlock since the mysqlds main thread
    running as <user> can't send signals to a process owned by root.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	pilot.(none)
# Root:	/data/msvensson/mysql/bug28690/my50-bug28690

--- 1.44/mysys/my_thr_init.c	2007-04-20 19:49:04 +02:00
+++ 1.45/mysys/my_thr_init.c	2007-06-05 17:34:49 +02:00
@@ -90,6 +90,8 @@ my_bool my_thread_global_init(void)
   
 #ifdef NPTL_PTHREAD_EXIT_BUG
 
+  if (thd_lib_detected == THD_LIB_NPTL)
+  {
 /*
   BUG#24507: Race conditions inside current NPTL pthread_exit() implementation.
 
@@ -108,6 +110,7 @@ my_bool my_thread_global_init(void)
 
  
pthread_create(&dummy_thread,&dummy_thread_attr,nptl_pthread_exit_hack_handler,NULL);
 
+  }
 #endif
 
 #ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
Thread
bk commit into 5.0 tree (msvensson:1.2506) BUG#28690msvensson5 Jun