Memcached crashing on FreeBSD
Jacob Coby
jcoby at listingbook.com
Wed Apr 13 16:39:57 PDT 2005
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* with
> the _malloc_options change. If even that will fail with the same problem,
> 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?
--
-Jacob
More information about the memcached
mailing list