Comment #6 on issue 306 by jeremy.s...@gmail.com: Crash when performing
deletion
http://code.google.com/p/memcached/issues/detail?id=306
Found another instance of this in items.c, do_item_get, ll. 539ff.:
if (settings.verbose > 2) {
if (it == NULL) {
fprintf(stderr, "> NOT FOUND %s", key);
} else {
fprintf(stderr, "> FOUND KEY %s", ITEM_key(it));
was_found++;
}
}
Here's a valgrind stack-trace:
==22568== Conditional jump or move depends on uninitialised value(s)
==22568== at 0x30F78478DE: vfprintf (in /lib64/libc-2.12.so)
==22568== by 0x30F784948F: buffered_vfprintf (in /lib64/libc-2.12.so)
==22568== by 0x30F784449D: vfprintf (in /lib64/libc-2.12.so)
==22568== by 0x30F784EF97: fprintf (in /lib64/libc-2.12.so)
==22568== by 0x40EC3D: do_item_get (items.c:541)
==22568== by 0x410B35: item_get (thread.c:499)
==22568== by 0x408897: complete_nread_binary (memcached.c:1303)
==22568== by 0x40B07F: event_handler (memcached.c:2256)
==22568== by 0x30F7C06B43: event_base_loop (in
/usr/lib64/libevent-1.4.so.2.1.3)
==22568== by 0x4101DC: worker_libevent (thread.c:384)
==22568== by 0x30F8007850: start_thread (in
/lib64/libpthread-2.12.so)
==22568== by 0x663E6FF: ???