Memcached crashing on FreeBSD
chip at corelands.com
Wed Apr 13 16:44:02 PDT 2005
Jacob Coby wrote:
> Anatoly Vorobey wrote:
>> But look at what happens right after that:
>> * Sensitive processes, somewhat arbitrarily defined here as setuid,
>> * setgid, root and wheel cannot afford to have malloc mistakes.
>> if (issetugid() || getuid() == 0 || getgid() == 0)
>> malloc_abort = 1;
>> Somewhat arbitrarily, and completely undocumented.
>> So, Jason, you need to try and run memcached as a non-root user *and*
>> the _malloc_options change. If even that will fail with the same
>> we'll be back at square one.
> If that's the case, should memcached at least show a warning at
> startup if run as root? Should it refuse to run as root?
I think the FreeBSD guys should fix their manpage, personally :)
More information about the memcached