Memcached crashing on FreeBSD
Jacob Coby
jcoby at listingbook.com
Mon Apr 11 11:19:59 PDT 2005
Jason Coene wrote:
> Added to memcached.h:
>
> #ifdef MALLOC_OPTIONS
> #define _malloc_options MALLOC_OPTIONS
> #endif
Yeah, that won't work. You need to modify memcached.c to read like:
#ifdef MALLOC_OPTIONS
_malloc_options = MALLOC_OPTIONS;
#endif
either in main() or in settings_init().
Simply redefining _malloc_options has no effect since #defines are
converted into code during the parser's first pass and you've simply
redefined _malloc_options to be "ax" to the compiler, not to the system
(if that makes sense?).
--
-Jacob
More information about the memcached
mailing list