akwei / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

stats_lock is used uninitialized #369

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
stats_lock is used in the assoc_init() function called in memcached.c, but it 
is only initialized in thread_init() that is called after assoc_init().

Possible fix, make: 
static pthread_mutex_t stats_lock = PTHREAD_MUTEX_INITIALIZER;

in thread.c (and remove the initialization from thread_init()).

What version of the product are you using? On what operating system?

1.4.20

Original issue reported on code.google.com by v.trigon...@gmail.com on 19 Jun 2014 at 1:18

GoogleCodeExporter commented 9 years ago
fixed in 'next'

Original comment by dorma...@rydia.net on 28 Dec 2014 at 3:24