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

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


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

commit 909fda640a31a4774cfaefe59eedbf7fc1608afc
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/909fda640a31a4774cfaefe59eedbf7fc1608afc


-- 
DragonFly BSD source repository



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