=== REDIS BUG REPORT START: Cut & paste starting from here ===
29427:M 01 Jan 2020 15:21:12.961 # Redis 5.9.101 crashed by signal: 8
29427:M 01 Jan 2020 15:21:12.961 # Crashed running the instruction at: 0x5651b7eebc89
29427:M 01 Jan 2020 15:21:12.961 # Failed assertion:
------ STACK TRACE ------ EIP: /usr/bin/redis-server 127.0.0.1:6379(activeExpireCycle+0x309)[0x5651b7eebc89]
Backtrace: /usr/bin/redis-server 127.0.0.1:6379(logStackTrace+0x40)[0x5651b7eb51b0] /usr/bin/redis-server 127.0.0.1:6379(sigsegvHandler+0xb1)[0x5651b7eb5901] /lib64/libpthread.so.0(+0x10fc0)[0x7fcd9512cfc0] /usr/bin/redis-server 127.0.0.1:6379(activeExpireCycle+0x309)[0x5651b7eebc89] /usr/bin/redis-server 127.0.0.1:6379(databasesCron+0xef)[0x5651b7e6e87f] /usr/bin/redis-server 127.0.0.1:6379(serverCron+0x242)[0x5651b7e74ca2] /usr/bin/redis-server 127.0.0.1:6379(aeProcessEvents+0x49a)[0x5651b7e6a03a] /usr/bin/redis-server 127.0.0.1:6379(aeMain+0x2b)[0x5651b7e6a17b] /usr/bin/redis-server 127.0.0.1:6379(main+0x3fa)[0x5651b7e66daa] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fcd94d80ab5] /usr/bin/redis-server 127.0.0.1:6379(+0x3a151)[0x5651b7e67151]
------ INFO OUTPUT ------
Server
redis_version:5.9.101 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:dcefde03a6d16d56 redis_mode:standalone os:Linux 3.10.0-1062.9.1.el7.x86_64 x86_64 arch_bits:64 multiplexing_api:epoll atomicvar_api:atomic-builtin gcc_version:8.3.1 process_id:29427 run_id:2d47aafbbe3f25135c291f241be62c61a0409541 tcp_port:6379 uptime_in_seconds:235433 uptime_in_days:2 hz:10 configured_hz:10 lru_clock:808568 executable:/usr/bin/redis-server config_file:/etc/redis.conf
Clients
connected_clients:0 client_recent_max_input_buffer:2 client_recent_max_output_buffer:131096 blocked_clients:0 tracking_clients:0
Memory
used_memory:55228952 used_memory_human:52.67M used_memory_rss:142626816 used_memory_rss_human:136.02M used_memory_peak:121579712 used_memory_peak_human:115.95M used_memory_peak_perc:45.43% used_memory_overhead:7919312 used_memory_startup:802472 used_memory_dataset:47309640 used_memory_dataset_perc:86.92% allocator_allocated:55368336 allocator_active:56979456 allocator_resident:64991232 total_system_memory:3973365760 total_system_memory_human:3.70G used_memory_lua:46080 used_memory_lua_human:45.00K used_memory_scripts:200 used_memory_scripts_human:200B number_of_cached_scripts:1 maxmemory:0 maxmemory_human:0B maxmemory_policy:noeviction allocator_frag_ratio:1.03 allocator_frag_bytes:1611120 allocator_rss_ratio:1.14 allocator_rss_bytes:8011776 rss_overhead_ratio:2.19 rss_overhead_bytes:77635584 mem_fragmentation_ratio:2.58 mem_fragmentation_bytes:87399088 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_clients_slaves:0 mem_clients_normal:0 mem_aof_buffer:0 mem_allocator:jemalloc-5.1.0 active_defrag_running:0 lazyfree_pending_objects:0
Persistence
loading:0 rdb_changes_since_last_save:138 rdb_bgsave_in_progress:0 rdb_last_save_time:1577866659 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:0 rdb_current_bgsave_time_sec:-1 rdb_last_cow_size:9740288 aof_enabled:0 aof_rewrite_in_progress:0 aof_rewrite_scheduled:0 aof_last_rewrite_time_sec:-1 aof_current_rewrite_time_sec:-1 aof_last_bgrewrite_status:ok aof_last_write_status:ok aof_last_cow_size:0 module_fork_in_progress:0 module_fork_last_cow_size:0
Stats
total_connections_received:1330086 total_commands_processed:21885320 instantaneous_ops_per_sec:10 total_net_input_bytes:1391197970 total_net_output_bytes:549060461104 instantaneous_input_kbps:0.78 instantaneous_output_kbps:1179.89 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_keys:470300 expired_stale_perc:0.05 expired_time_cap_reached_count:0 expire_cycle_cpu_milliseconds:56353 evicted_keys:0 keyspace_hits:16483357 keyspace_misses:1881279 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec:8676 migrate_cached_sockets:0 slave_expires_tracked_keys:0 active_defrag_hits:0 active_defrag_misses:0 active_defrag_key_hits:0 active_defrag_key_misses:0 tracking_used_slots:0
Replication
role:master connected_slaves:0 master_replid:b6cac2fba49ba49bbb1d120a5f10621f1d957cc5 master_replid2:0000000000000000000000000000000000000000 master_repl_offset:0 second_repl_offset:-1 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0 repl_backlog_histlen:0
CPU
used_cpu_sys:946.630587 used_cpu_user:819.339789 used_cpu_sys_children:59.322589 used_cpu_user_children:330.289551
Modules
Commandstats
cmdstat_get:calls=17782100,usec=205277587,usec_per_call=11.54 cmdstat_incrby:calls=582536,usec=1267535,usec_per_call=2.18 cmdstat_flushdb:calls=2,usec=98517,usec_per_call=49258.50 cmdstat_info:calls=2,usec=276,usec_per_call=138.00 cmdstat_flushall:calls=2,usec=347541,usec_per_call=173770.50 cmdstat_eval:calls=582536,usec=20203266,usec_per_call=34.68 cmdstat_select:calls=1330077,usec=1752403,usec_per_call=1.32 cmdstat_ping:calls=5,usec=4,usec_per_call=0.80 cmdstat_exists:calls=582536,usec=669571,usec_per_call=1.15 cmdstat_command:calls=2,usec=8346,usec_per_call=4173.00 cmdstat_del:calls=5,usec=120,usec_per_call=24.00 cmdstat_set:calls=179809,usec=1278388,usec_per_call=7.11 cmdstat_setex:calls=845708,usec=7456802,usec_per_call=8.82
Cluster
cluster_enabled:0
Keyspace
db1:keys=44181,expires=1,avg_ttl=6929 db2:keys=59004,expires=59004,avg_ttl=806560310
------ CLIENT LIST OUTPUT ------
------ REGISTERS ------ 29427:M 01 Jan 2020 15:21:12.963 # RAX:0000000000000000 RBX:0000000000000000 RCX:0000000005fb5d99 RDX:0000000000000000 RDI:0000000000000000 RSI:0000000000000000 RBP:0000000000000000 RSP:00007ffcbf597700 R8 :0000000000000000 R9 :0000000000000003 R10:000000005e0c5678 R11:0000000000000668 R12:0000016f6031c881 R13:0000000000000000 R14:0000000000000001 R15:00007fcd92a59048 RIP:00005651b7eebc89 EFL:0000000000010246 CSGSFS:0000000000000033 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf59770f) -> 00005651b820d600 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf59770e) -> 000000005e0c5678 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf59770d) -> 0000001000000001 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf59770c) -> 00059b0fc2773a97 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf59770b) -> 00000000000061a8 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf59770a) -> 0000000000000014 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597709) -> 0000000000000003 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597708) -> 0000000000000004 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597707) -> 000000000000000a 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597706) -> 0000000300000003 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597705) -> 0000000000000014 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597704) -> 0000000000000001 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597703) -> 0000000000000014 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597702) -> 0000000100000000 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597701) -> 0000000000000000 29427:M 01 Jan 2020 15:21:12.963 # (00007ffcbf597700) -> 00007ffcbf597778
------ MODULES INFO OUTPUT ------
------ FAST MEMORY TEST ------ 29427:M 01 Jan 2020 15:21:12.963 # Bio thread for job type #0 terminated 29427:M 01 Jan 2020 15:21:12.964 # Bio thread for job type #1 terminated 29427:M 01 Jan 2020 15:21:12.964 # Bio thread for job type #2 terminated *** Preparing to test memory region 5651b81f8000 (2260992 bytes) *** Preparing to test memory region 5651b9eb2000 (135168 bytes) *** Preparing to test memory region 7fcd74200000 (190840832 bytes) *** Preparing to test memory region 7fcd7f838000 (170917888 bytes) *** Preparing to test memory region 7fcd89b39000 (8388608 bytes) *** Preparing to test memory region 7fcd8a33a000 (8388608 bytes) *** Preparing to test memory region 7fcd8ab3b000 (8388608 bytes) *** Preparing to test memory region 7fcd8b33c000 (8388608 bytes) *** Preparing to test memory region 7fcd92600000 (8388608 bytes) *** Preparing to test memory region 7fcd94071000 (8192 bytes) *** Preparing to test memory region 7fcd944f8000 (4096 bytes) *** Preparing to test memory region 7fcd94b59000 (8192 bytes) *** Preparing to test memory region 7fcd95117000 (20480 bytes) *** Preparing to test memory region 7fcd95335000 (16384 bytes) *** Preparing to test memory region 7fcd95e8d000 (49152 bytes) *** Preparing to test memory region 7fcd95ea4000 (4096 bytes) *** Preparing to test memory region 7fcd95ea7000 (4096 bytes) .O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.
------ DUMPING CODE AROUND EIP ------ Symbol: activeExpireCycle (base: 0x5651b7eeb980) Module: /usr/bin/redis-server 127.0.0.1:6379 (base 0x5651b7e2d000) $ xxd -r -p /tmp/dump.hex /tmp/dump.bin $ objdump --adjust-vma=0x5651b7eeb980 -D -b binary -m i386:x86-64 /tmp/dump.bin
29427:M 01 Jan 2020 15:21:15.034 # dump of function (hexdump of 905 bytes): 4157415641554154555389fb4883ec78488d05691c32008ba850070000e81e27f8ff4889442460e8346ff9ff85c00f85930300008d4dffb80a0000004863c94c69c1fa0000004829c848894424384981c0e803000083fb010f845f040000488d051b1c32008bb0880700008974246c83fe0f0f8fd5040000488d44091931d2488d3dfa1b3200c70568d830000000000048c7442458010000004869c040420f0048637f2848f7f74883f863761a48bac3f5285c8fc2f52848c1e80248f7e248c1ea02488954245883fb018b7c246c4c0f454424584c8944245885ff0f8e69020000488d448914c7442430000000004889442450c74424680000000048c74424480000000048c7442440000000008b0dd5d7300031d289c883c101f7f6488d055d1b3200890dbfd73000488b4030488d14d24c8d3cd0498b47088344243001488b5848480358280f8464030000488b683848036818e83726f8ff4989c44883fd047615488d049b488d048048c1e0024839e80f82a0010000488b4424508b7c24304839d8480f46d883e70f897c2434488d049b48895c242048c1e00248894424284885c00f8e6f0200004885db0f8466020000c744241000000000498b4f3831db31ed48c74424180000000048c7442408000000000f1f4000c744241400000000498b570848634424144883442418014889c74883c00148c1e00548c1e705488b3402488b443a104821ce488b34f04885f674410f1f4400004c8b76084c89e24c89ff4c8b6e10e8b5fcffff4d29e683f8014883ddff4d85f67e0a4c0174240883442410014883c3014c89ee4d85ed75c8498b4f388b74241485f60f84800100004883c10149894f3848395c24207610488b54241848395424280f8f59ffffff8b44241048016c244848015c244085c0745d4c63f0488b442408498b7730489949f7fe4885f6480f44f04889c148b80bd7a3703d0ad7a348d1e948f7ee488d043248c1fe3f48c1f8054829f0488d344048c1e6044801c648b80bd7a3703d0ad7a348f7e148c1ea044801f2498957308b54243485d20f8402010000488d44ad0031d2488d048048c1e00248f7f3483b4424380f871efeffff83442468018b4424683944246c0f84280100008b05c8d5300085c00f851a010000488d05411932008bb088070000e9c3fdffffe8f123f8ff482b4424604889c1488d0522193200488bb8000d0000480188880400004885ff742f48bacff753e3a59bc4204889c848c1f93f48f7ea48c1fa07
=== REDIS BUG REPORT END. Make sure to include from START to END. ===
Comment From: antirez
Looks trivial to fix, thank you. Related to the new expires code.
Comment From: antirez
Hopefully fixed in 0af467d1.