DragonFly BSD
DragonFly commits List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: DragonFly_RELEASE_2_8 libc - Fix bogus pthread_getspecific() return value due to bug in nmalloc


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Jan 2011 13:47:27 -0800 (PST)

commit bfa38597b518100bb00712479ce7836a551e04a2
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sun Jan 30 13:44:11 2011 -0800

    libc - Fix bogus pthread_getspecific() return value due to bug in nmalloc
    
    * nmalloc was calling pthread_set_specific() prior to calling
      pthread_key_create(), causing it to use key 0 which might already
      have been allocated for other purposes.
    
    * Reorder initializations in _nmalloc_thr_init() to solve the problem.
    
    * This also solves certain application crashes (mail/milter-greylist).
    
    Reported-by: Francois Tigeot <ftigeot@wolfpond.org>

Summary of changes:
 lib/libc/stdlib/nmalloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfa38597b518100bb00712479ce7836a551e04a2


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]