Memcached crashing on FreeBSD

Brad Fitzpatrick brad at danga.com
Wed Apr 13 16:07:23 PDT 2005


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

Hah.  Good detective work!

- Brad


More information about the memcached mailing list