New issue 243 by hlnorthw...@gmail.com: Internal error! Invalid slab class
http://code.google.com/p/memcached/issues/detail?id=243
run type:memcached -s /tmp/mod_python_cache_sock -u apache -t 40 -I 1.5M -m
1024 -d -v 1 >> /var/log/memcache.log 2>> /var/log/memcache.log
OS:2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 EDT 2010 i686 i686 i386
GNU/Linux(fedora)
version:memcached-memcached-1.4.10
what exactly were you doing to cause this error? Just starting it, running
tests, etc? Does it still happen if you cut -m to 512 or so? Or leave out
-I?
-t 40 is also extremely high, as performance tends to degrade after ~6
threads, but that shouldn't cause a crash.
It's happens after run one day.
Yeah,I have tested -m 512,use m's default value.
It's OK now after I degrade version to 1.4.7
I have seen the source code of 1.4.10 and 1.4.7,I founded 1.4.10 have a
question in function "do_item_alloc"(file of items.c,line:88)
Pieces code of fuction is :
107:if (search == NULL) {
108: it = slabs_alloc(ntotal, id);
109 } else if (search->refcount == 0) {
132:if (it == NULL && (it = slabs_alloc(ntotal, id)) == NULL) {
133: if (search->refcount == 0 &&
134: (search->exptime == 0 || search->exptime > current_time)) {
If program run to line 133 what will be happend.crash!Because search is
sure to NULL.
I've fixed that "search is NULL" bug in my working branch few weeks ago, so
the next release will have it.
That bug should only happen in some rare cases where malloc is failing
though. Is 1.4.9 stable for you as well? It never crashes even after days?
Currently using version is 1.4.7
Yeah,It's running two days now.We will test it untill 2012/1/4.:)
Can you try
http://memcached.googlecode.com/files/memcached-1.4.11_beta1.tar.gz and see
if it fixes your error? (or -rc1 or -final whenever you read this).
Comment #6 on issue 243 by dorma...@rydia.net: Internal error! Invalid slab
class
http://code.google.com/p/memcached/issues/detail?id=243
Pretty sure *this* was fixed in 1.4.11, so I'm closing. 1.4.11 has build
bugs on some specific platforms, but it knows where its memory is!