Comment #22 on issue 99 by [email protected]: Memcached 1.4.2 server segmentation fault
http://code.google.com/p/memcached/issues/detail?id=99

I was definitely *not* using that file :) Downloaded it from the github source link. With the provided tar link, I am getting the following warning which translates to an error:

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./include -I./libevent -fvisibility=hidden -pthread -g -O2 -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -fno-strict-aliasing -MT mcstat.o -MD -MP -MF .deps/mcstat.Tpo -c -o mcstat.o `test -f 'programs/mcstat.c' || echo './'`programs/mcstat.c
cc1: warnings being treated as errors
programs/mcstat.c: In function 'print':
programs/mcstat.c:108: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result programs/mcstat.c:110: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result
make[1]: *** [mcstat.o] Error 1

---

This was after the memcached daemon build succeeded, along with generation of the launching shell script, so I was able to test. The daemon no longer appears to suffer from a "Segmentation fault", and I noticed that event.ev_base is now being manually set in memcached.c. Did you consider this as a bug in libevent (not setting this value) and applied this temporary workaround until they fix it?

Thanks.

Reply via email to