Memcached crashing on FreeBSD

Jacob Coby jcoby at
Mon Apr 11 11:19:59 PDT 2005

Jason Coene wrote:
  > Added to memcached.h:
> #define _malloc_options MALLOC_OPTIONS
> #endif

Yeah, that won't work.  You need to modify memcached.c to read like:

_malloc_options = MALLOC_OPTIONS;

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?).


More information about the memcached mailing list