Comment #2 on issue 243 by [email protected]: Internal error! Invalid slab class
http://code.google.com/p/memcached/issues/detail?id=243

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.





Reply via email to