anandlukade / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

memcached 1.4.15 crash on CentOS6.3 #335

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

(gdb) bt
#0  do_slabs_alloc (size=159, id=4) at slabs.c:241
#1  slabs_alloc (size=159, id=4) at slabs.c:404
#2  0x000000000040edf4 in do_item_alloc (
    key=0x7f3b45171f48 "quota.counter:DAILY_KEY_PREFIX_119533_MIC_[POST]/mic/phonecall/v2/user/{userId}/full/batch_h 32 2\r\n19\r\n\r\n", nkey=91, 
    flags=<value optimized out>, exptime=127916, nbytes=4, cur_hv=894156535) at items.c:150
#3  0x0000000000405ffc in do_add_delta (c=<value optimized out>, key=<value 
optimized out>, nkey=<value optimized out>, incr=<value optimized out>, 
delta=1, 
    buf=0x7f3b46572b60 "20", cas=0x0, hv=1237998576) at memcached.c:3102
#4  0x0000000000410816 in add_delta (c=0x7f3b40044a50, 
    key=0x7f3b40044c55 "quota.counter:DAILY_KEY_PREFIX_119533_MIC_[POST]/mic/phonecall/v2/user/{userId}/full/batch_", nkey=91, incr=1, delta=<value optimized out>, 
    buf=<value optimized out>, cas=0x0) at thread.c:585
#5  0x000000000040969f in process_arithmetic_command (c=0x7f3b40044a50, 
tokens=<value optimized out>, ntokens=<value optimized out>, incr=true) at 
memcached.c:3015
#6  0x0000000000409d8c in process_command (c=0x7f3b40044a50, command=<value 
optimized out>) at memcached.c:3266
#7  0x000000000040a5d2 in try_read_command (c=0x7f3b40044a50) at 
memcached.c:3504
#8  0x000000000040b1d8 in drive_machine (fd=<value optimized out>, which=<value 
optimized out>, arg=0x7f3b40044a50) at memcached.c:3824
#9  event_handler (fd=<value optimized out>, which=<value optimized out>, 
arg=0x7f3b40044a50) at memcached.c:4065
#10 0x00007f3b46828ddc in event_process_active_single_queue (base=0x6f82b0, 
flags=0) at event.c:1346
#11 event_process_active (base=0x6f82b0, flags=0) at event.c:1416
#12 event_base_loop (base=0x6f82b0, flags=0) at event.c:1617
#13 0x00000000004100fd in worker_libevent (arg=0x6f4f10) at thread.c:384
#14 0x0000003b4a807851 in start_thread () from /lib64/libpthread.so.0
#15 0x0000003b4a4e811d in clone () from /lib64/libc.so.6

What version of the product are you using? On what operating system?
memcached 1.4.15 crash on CentOS6.3

Please provide any additional information below.

Original issue reported on code.google.com by marc.b...@gmail.com on 3 Aug 2013 at 2:07

GoogleCodeExporter commented 8 years ago
Hi. By chance are you still seeing this crash?

If so, can you try 1.4.16 and run the -debug binary under gdb? The non-debug 
binary ends up failing later in the code in a weird spot (the slabs.c:241 
thing).

Original comment by dorma...@rydia.net on 9 Dec 2013 at 7:36

GoogleCodeExporter commented 8 years ago
Please try 1.4.17 (if you ever read this). Closing the bug report otherwise.

Not entirely sure if it's fixed (and I think there're more, narrow race 
conditions still in there) but "fixed" is the best closer I can think for this 
thing.

Original comment by dorma...@rydia.net on 20 Dec 2013 at 10:36

GoogleCodeExporter commented 8 years ago
memcached  version 1.4.17
redhat6.4   kernel 2.6.32-358.el6.x86_64
memcached will automatically die, logging the following information
more /var/log/messages|grep memca
Feb 13 14:03:22 simp-nginx kernel: memcached[1346]: segfault at 0 ip 
000000000040ddf8 sp 00007fa3fd637a50 error 4 in memcached[400000+19000]

Original comment by mazhongx...@gmail.com on 13 Feb 2014 at 6:45

GoogleCodeExporter commented 8 years ago
Can you please run the memcached-debug binary from 1.4.17 compile directory, 
and get a gdb backtrace of teh crash?

Original comment by dorma...@rydia.net on 13 Feb 2014 at 6:54