Comment #3 on issue 403 by arne.cl...@gmail.com: Memcached 1.4.23 crashes
on stats command
https://code.google.com/p/memcached/issues/detail?id=403
Some more info on Stack Frame 1 (item_stats_totals)
(gdb) frame 1
#1 0x0000000000418aef in item_stats_totals (add_stats=0x40e5a0
<append_stats>, c=0x80195a200) at items.c:506
506 pthread_mutex_lock(&lru_locks[i]);
Current language: auto; currently minimal
(gdb) list
501 for (n = 0; n < MAX_NUMBER_OF_SLAB_CLASSES; n++) {
502 int x;
503 int i;
504 for (x = 0; x < 4; x++) {
505 i = n | lru_type_map[x];
506 pthread_mutex_lock(&lru_locks[i]);
507 totals.expired_unfetched += itemstats[i].expired_unfetched;
508 totals.evicted_unfetched += itemstats[i].evicted_unfetched;
509 totals.evicted += itemstats[i].evicted;
510 totals.reclaimed += itemstats[i].reclaimed;
(gdb) print i
$1 = 255
(gdb) print n
$2 = 63
(gdb) print lru_locks
$3 = {0x801818150, 0x8018181a0, 0x8018181f0, 0x801818240, 0x801818290,
0x8018182e0, 0x801818330, 0x801818380, 0x8018183d0, 0x801818420,
0x801818470,
0x8018184c0, 0x801818510, 0x801818560, 0x8018185b0, 0x801818600,
0x801818650, 0x8018186a0, 0x8018186f0, 0x801818740, 0x801818790,
0x8018187e0, 0x801818830,
0x801818880, 0x8018188d0, 0x801818920, 0x801818970, 0x8018189c0,
0x801818a10, 0x801818a60, 0x801818ab0, 0x801818b00, 0x801818b50,
0x801818ba0, 0x801818bf0,
0x801818c40, 0x801818c90, 0x801818ce0, 0x801818d30, 0x801818d80,
0x801818dd0, 0x801818e20, 0x801818e70, 0x801818ec0, 0x801818f10,
0x801818f60, 0x801818fb0,
0x8018c5060, 0x8018c50b0, 0x8018c5100, 0x8018c5150, 0x8018c51a0,
0x8018c51f0, 0x8018c5240, 0x8018c5290, 0x8018c52e0, 0x8018c5330,
0x8018c5380, 0x8018c53d0,
0x8018c5420, 0x8018c5470, 0x8018c54c0, 0x8018c5510, 0x8018c5560,
0x8018c55b0, 0x8018c5600, 0x8018c5650, 0x8018c56a0, 0x8018c56f0,
0x8018c5740, 0x8018c5790,
0x8018c57e0, 0x8018c5830, 0x8018c5880, 0x8018c58d0, 0x8018c5920,
0x8018c5970, 0x8018c59c0, 0x8018c5a10, 0x8018c5a60, 0x8018c5ab0,
0x8018c5b00, 0x8018c5b50,
0x8018c5ba0, 0x8018c5bf0, 0x8018c5c40, 0x8018c5c90, 0x8018c5ce0,
0x8018c5d30, 0x8018c5d80, 0x8018c5dd0, 0x8018c5e20, 0x8018c5e70,
0x8018c5ec0, 0x8018c5f10,
0x8018c5f60, 0x8018c5fb0, 0x8018c6060, 0x8018c60b0, 0x8018c6100,
0x8018c6150, 0x8018c61a0, 0x8018c61f0, 0x8018c6240, 0x8018c6290,
0x8018c62e0, 0x8018c6330,
0x8018c6380, 0x8018c63d0, 0x8018c6420, 0x8018c6470, 0x8018c64c0,
0x8018c6510, 0x8018c6560, 0x8018c65b0, 0x8018c6600, 0x8018c6650,
0x8018c66a0, 0x8018c66f0,
0x8018c6740, 0x8018c6790, 0x8018c67e0, 0x8018c6830, 0x8018c6880,
0x8018c68d0, 0x8018c6920, 0x8018c6970, 0x8018c69c0, 0x8018c6a10,
0x8018c6a60, 0x8018c6ab0,
0x8018c6b00, 0x8018c6b50, 0x8018c6ba0, 0x8018c6bf0, 0x8018c6c40,
0x8018c6c90, 0x8018c6ce0, 0x8018c6d30, 0x8018c6d80, 0x8018c6dd0,
0x8018c6e20, 0x8018c6e70,
0x8018c6ec0, 0x8018c6f10, 0x8018c6f60, 0x8018c6fb0, 0x8018c7060,
0x8018c70b0, 0x8018c7100, 0x8018c7150, 0x8018c71a0, 0x8018c71f0,
0x8018c7240, 0x8018c7290,
0x8018c72e0, 0x8018c7330, 0x8018c7380, 0x8018c73d0, 0x8018c7420,
0x8018c7470, 0x8018c74c0, 0x8018c7510, 0x8018c7560, 0x8018c75b0,
0x8018c7600, 0x8018c7650,
0x8018c76a0, 0x8018c76f0, 0x8018c7740, 0x8018c7790, 0x8018c77e0,
0x8018c7830, 0x8018c7880, 0x8018c78d0, 0x8018c7920, 0x8018c7970,
0x8018c79c0, 0x8018c7a10,
0x8018c7a60, 0x8018c7ab0, 0x8018c7b00, 0x8018c7b50, 0x8018c7ba0,
0x8018c7bf0, 0x8018c7c40, 0x8018c7c90, 0x8018c7ce0, 0x8018c7d30,
0x8018c7d80, 0x8018c7dd0,
0x8018c7e20, 0x8018c7e70, 0x8018c7ec0, 0x8018c7f10, 0x8018c7f60,
0x8018c7fb0, 0x8018c8060, 0x8018c80b0, 0x8018c8100...}
(gdb) print lru_locks[i]
$4 = 0xc
(gdb) print x
$5 = 3
(gdb) print lru_type_map[x]
$6 = 192
(gdb)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.