Created
July 27, 2011 06:46
-
-
Save hanabokuro/1108805 to your computer and use it in GitHub Desktop.
memcached-1.4.6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
よく似た症状を再現させる方法 | |
・memcachedを起動 | |
・gdb -p <PID> で attach | |
(gdb) call pthread_mutex_lock(&conn_lock) | |
(gdb) call pthread_mutex_lock(&conn_lock) | |
2回目はlockするので Ctrl-C で中断 | |
(gdb) detach | |
これで同じ症状になります。 | |
止まったときに gdb -p <PID> したときの conn_lock の内容は | |
(gdb) p conn_lock | |
$3 = {__data = {__lock = 2, __count = 0, __owner = 10847, __nusers = 1, | |
__kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, | |
__size = "\002\000\000\000\000\000\000\000_*\000\000\001", '\0' <repeats 26 times>, __align = 2} | |
と、lockが2になってた。 | |
lockで止まってる可能性が高いと思う |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment