antirez/redis — Issue #281: redis crashed, not sure why
Author: danielnbarbosa
Created: 2011-12-30 01:02:19+00:00
State: open

We've been running 2.2 for a while and recently upgraded to 2.4 on our qa machines. We have many redis databases and one of them crashed with the below stack trace. I cleared out the data files and restarted and it was able to start:

[5566] 29 Dec 19:39:02 # === REDIS BUG REPORT START: Cut & paste starting from here ===
[5566] 29 Dec 19:39:02 # === ASSERTION FAILED ===
[5566] 29 Dec 19:39:02 # ==> db.c:77 'retval == REDIS_OK' is not true
[5566] 29 Dec 19:39:02 # (forcing SIGSEGV to print the bug report.)
[5566] 29 Dec 19:39:02 # Redis 2.4.4 crashed by signal: 11
[5566] 29 Dec 19:39:02 # Failed assertion: retval == REDIS_OK (db.c:77)
[5566] 29 Dec 19:39:02 # --- STACK TRACE
[5566] 29 Dec 19:39:02 # /usr/bin/redis-server(_redisAssert+0x72) [0x42e9b2]
[5566] 29 Dec 19:39:02 # /usr/bin/redis-server(_redisAssert+0x72) [0x42e9b2]
[5566] 29 Dec 19:39:02 # /usr/bin/redis-server(dbAdd+0x53) [0x41a4e3]
[5566] 29 Dec 19:39:02 # /usr/bin/redis-server(rdbLoad+0x19e) [0x41ccde]
[5566] 29 Dec 19:39:02 # /usr/bin/redis-server(main+0x13c) [0x410ddc]
[5566] 29 Dec 19:39:02 # /lib64/libc.so.6(__libc_start_main+0xf4) [0x36f5c1d994]
[5566] 29 Dec 19:39:02 # /usr/bin/redis-server [0x40b409]
[5566] 29 Dec 19:39:02 # --- INFO OUTPUT
[5566] 29 Dec 19:39:02 # redis_version:2.4.4
redis_git_sha1:00000000
redis_git_dirty:0
arch_bits:64
multiplexing_api:epoll
process_id:5566
uptime_in_seconds:0
uptime_in_days:0
lru_clock:399978
used_cpu_sys:0.01
used_cpu_user:0.03
used_cpu_sys_children:0.00
used_cpu_user_children:0.00
connected_clients:0
connected_slaves:0
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
used_memory:5592944
used_memory_human:5.33M
used_memory_rss:6705152
used_memory_peak:0
used_memory_peak_human:0B
mem_fragmentation_ratio:1.20
mem_allocator:jemalloc-2.2.5
loading:1
aof_enabled:0
changes_since_last_save:0
bgsave_in_progress:0
last_save_time:1325205542
bgrewriteaof_in_progress:0
total_connections_received:0
total_commands_processed:0
expired_keys:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
vm_enabled:0
role:master
loading_start_time:1325205542
loading_total_bytes:565805056
loading_loaded_bytes:1913503
loading_loaded_perc:0.34
loading_eta_seconds:1
db0:keys=14698,expires=0

[5566] 29 Dec 19:39:02 # --- CLIENT LIST OUTPUT
[5566] 29 Dec 19:39:02 #
[5566] 29 Dec 19:39:02 # === REDIS BUG REPORT END. Make sure to include from START to END. ===