Issue 243 in memcached: Internal error! Invalid slab class

200 views
Skip to first unread message

memc...@googlecode.com

unread,
Dec 27, 2011, 9:42:50 PM12/27/11
to memc...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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


memc...@googlecode.com

unread,
Dec 29, 2011, 5:34:28 PM12/29/11
to memc...@googlegroups.com

Comment #1 on issue 243 by dorma...@rydia.net: Internal error! Invalid slab
class
http://code.google.com/p/memcached/issues/detail?id=243

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.

memc...@googlecode.com

unread,
Dec 30, 2011, 3:54:55 AM12/30/11
to memc...@googlegroups.com

Comment #2 on issue 243 by hlnorthw...@gmail.com: 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.

memc...@googlecode.com

unread,
Dec 30, 2011, 4:01:57 AM12/30/11
to memc...@googlegroups.com

Comment #3 on issue 243 by dorma...@rydia.net: Internal error! Invalid slab
class
http://code.google.com/p/memcached/issues/detail?id=243

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?

memc...@googlecode.com

unread,
Dec 30, 2011, 4:13:00 AM12/30/11
to memc...@googlegroups.com

Comment #4 on issue 243 by hlnorthw...@gmail.com: Internal error! Invalid
slab class
http://code.google.com/p/memcached/issues/detail?id=243

Currently using version is 1.4.7

Yeah,It's running two days now.We will test it untill 2012/1/4.:)

memc...@googlecode.com

unread,
Jan 10, 2012, 1:00:15 PM1/10/12
to memc...@googlegroups.com

Comment #5 on issue 243 by dorma...@rydia.net: Internal error! Invalid slab
class
http://code.google.com/p/memcached/issues/detail?id=243

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

memc...@googlecode.com

unread,
Jan 25, 2012, 3:22:08 PM1/25/12
to memc...@googlegroups.com
Updates:
Status: Fixed

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!

Reply all
Reply to author
Forward
0 new messages