Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my redis auto reboot #7409

Open
fnhchaiyin opened this issue Jun 17, 2020 · 1 comment
Open

my redis auto reboot #7409

fnhchaiyin opened this issue Jun 17, 2020 · 1 comment

Comments

@fnhchaiyin
Copy link

my redis auto reboot
start command:
docker run --name=redis -d --restart=always -p 7002:6379 redis:6.0-rc
CentOS Linux release 7.6.1810 (Core)
docker version:1.13.1
Kernel Version: 3.10.0-957.21.3.el7.x86_64
the logs:

138:C 16 Jun 2020 23:39:09.636 * RDB: 0 MB of memory used by copy-on-write
1:M 16 Jun 2020 23:39:09.734 * Background saving terminated with success
=== REDIS BUG REPORT START: Cut & paste starting from here ===
1:M 16 Jun 2020 23:39:45.087 # Redis 5.9.101 crashed by signal: 8
1:M 16 Jun 2020 23:39:45.087 # Crashed running the instruction at: 0x55d02ac7a306
1:M 16 Jun 2020 23:39:45.087 # Failed assertion: (:0)
------ STACK TRACE ------
EIP:
redis-server *:6379(activeExpireCycle+0x336)[0x55d02ac7a306]
Backtrace:
redis-server *:6379(logStackTrace+0x32)[0x55d02ac44af2]
redis-server *:6379(sigsegvHandler+0x9e)[0x55d02ac451ce]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7fa03408d730]
redis-server *:6379(activeExpireCycle+0x336)[0x55d02ac7a306]
redis-server *:6379(databasesCron+0x47)[0x55d02ac00e37]
redis-server *:6379(serverCron+0x200)[0x55d02ac03c30]
redis-server *:6379(aeProcessEvents+0x48a)[0x55d02abfc95a]
redis-server *:6379(aeMain+0x2b)[0x55d02abfca6b]
redis-server *:6379(main+0x4db)[0x55d02abf97db]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7fa033edc09b]
redis-server *:6379(_start+0x2a)[0x55d02abf9a6a]
------ INFO OUTPUT ------

Server

redis_version:5.9.101
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:9e7b071ac66d3e70
redis_mode:standalone
os:Linux 3.10.0-957.21.3.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:8.3.0
process_id:1
run_id:cb891d975f42e2a70250505cd149e3398e48e212
tcp_port:6379
uptime_in_seconds:43195
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:15292481
executable:/data/redis-server
config_file:

Clients

connected_clients:0
client_recent_max_input_buffer:2
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0

Memory

used_memory:927600
used_memory_human:905.86K
used_memory_rss:5025792
used_memory_rss_human:4.79M
used_memory_peak:1095872
used_memory_peak_human:1.05M
used_memory_peak_perc:84.64%
used_memory_overhead:808776
used_memory_startup:802376
used_memory_dataset:118824
used_memory_dataset_perc:94.89%
allocator_allocated:1034568
allocator_active:1314816
allocator_resident:4128768
total_system_memory:33020043264
total_system_memory_human:30.75G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.27
allocator_frag_bytes:280248
allocator_rss_ratio:3.14
allocator_rss_bytes:2813952
rss_overhead_ratio:1.22
rss_overhead_bytes:897024
mem_fragmentation_ratio:5.43
mem_fragmentation_bytes:4099728
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:9
rdb_bgsave_in_progress:0
rdb_last_save_time:1592350749
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:0
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:438272
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:4499
total_commands_processed:33515
instantaneous_ops_per_sec:0
total_net_input_bytes:7395369
total_net_output_bytes:271091
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:4146
expired_stale_perc:0.24
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:1124
evicted_keys:0
keyspace_hits:46
keyspace_misses:4169
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:204
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:55d3f2b3813a0d6b619c818edbefd41558353655
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:9.492082
used_cpu_user:13.987277
used_cpu_sys_children:0.121618
used_cpu_user_children:0.092479

Modules

Commandstats

cmdstat_hmget:calls=4215,usec=9015,usec_per_call=2.14
cmdstat_select:calls=12440,usec=10303,usec_per_call=0.83
cmdstat_hincrby:calls=4215,usec=5421,usec_per_call=1.29
cmdstat_hmset:calls=4215,usec=26144,usec_per_call=6.20
cmdstat_expire:calls=8430,usec=6334,usec_per_call=0.75

Cluster

cluster_enabled:0

Keyspace

db0:keys=1,expires=1,avg_ttl=61650
db8:keys=64,expires=64,avg_ttl=308203
------ CLIENT LIST OUTPUT ------
------ REGISTERS ------
1:M 16 Jun 2020 23:39:45.088 #
RAX:0000000000000000 RBX:0000000000000000
RCX:0000000000000000 RDX:0000000000000000
RDI:000000000022d06b RSI:0000000000000001
RBP:0000000000000000 RSP:00007ffe3a8bc590
R8 :0000000000000000 R9 :0000000000000003
R10:0000000000000020 R11:00000000000133e2
R12:0000000000000000 R13:0000000000000000
R14:0000000000000000 R15:0000000000000000
RIP:000055d02ac7a306 EFL:0000000000010246
CSGSFS:0000000000000033
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc59f) -> 0000000000000006
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc59e) -> 000055d02ad8ce48
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc59d) -> 0000000000000010
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc59c) -> 00000000000061a8
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc59b) -> 0005a83c0ee72763
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc59a) -> 0000000000000014
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc599) -> 0000000000000000
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc598) -> 0000000000000000
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc597) -> 000000000000000a
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc596) -> 0000000100000001
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc595) -> 0000000000000014
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc594) -> 0000000000000001
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc593) -> 0000000000000014
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc592) -> 000000010000000b
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc591) -> 0000000000000000
1:M 16 Jun 2020 23:39:45.088 # (00007ffe3a8bc590) -> 00007fa033aff000
------ MODULES INFO OUTPUT ------
------ FAST MEMORY TEST ------
1:M 16 Jun 2020 23:39:45.088 # Bio thread for job type #0 terminated
1:M 16 Jun 2020 23:39:45.088 # Bio thread for job type #1 terminated
1:M 16 Jun 2020 23:39:45.088 # Bio thread for job type #2 terminated
*** Preparing to test memory region 55d02ad8b000 (2260992 bytes)
*** Preparing to test memory region 55d02ce38000 (270336 bytes)
*** Preparing to test memory region 7fa0315fd000 (8388608 bytes)
*** Preparing to test memory region 7fa031dfe000 (8388608 bytes)
*** Preparing to test memory region 7fa0325ff000 (8388608 bytes)
*** Preparing to test memory region 7fa032e00000 (8388608 bytes)
*** Preparing to test memory region 7fa033600000 (8388608 bytes)
*** Preparing to test memory region 7fa033eb4000 (16384 bytes)
*** Preparing to test memory region 7fa034075000 (24576 bytes)
*** Preparing to test memory region 7fa034098000 (16384 bytes)
*** Preparing to test memory region 7fa034381000 (16384 bytes)
*** Preparing to test memory region 7fa0345a9000 (8192 bytes)
*** Preparing to test memory region 7fa0345d6000 (4096 bytes)
.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: 0x55d02ac79fd0)
Module: redis-server *:6379 (base 0x55d02abbe000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x55d02ac79fd0 -D -b binary -m i386:x86-64 /tmp/dump.bin

1:M 16 Jun 2020 23:39:45.221 # dump of function (hexdump of 950 bytes):
4157415641554154555389fb4883ec788b2d6a301100e89565f8ff4889442458e81ba7f9ff85c00f85af0300008d4dffb80a0000004863c94c69c1fa0000004829c848894424384981c0e803000083fb010f84720400008b355b3011008974246883fe0f0f8ff5040000488d44091931d248633de0281100c705a62111000000000048c7442460010000004869c040420f0048f7f74883f863761a48bac3f5285c8fc2f52848c1e80248f7e248c1ea02488954246083fb018b7c24684c0f454424604c8944246085ff0f8ea1020000488d448914c7442430000000004889442450c744246c0000000048c74424480000000048c7442440000000008b0d1721110031d289c883c101f7f6488b054f281100890d01211100488d14d2488d04d048890424488b04248344243001488b4008488b5848480358280f847a030000488b683848036818e88564f8ff4989c64883fd047615488d049b488d048048c1e0024839e80f82db010000488b4424508b5424304839d8480f46d883e20f89542434488d049b48895c242048c1e00248894424284885c00f8e950200004885db0f848c020000488b04244531ff31ed31db48c74424180000000048c744240800000000488b78384c89f84d89f74989c66690488b0424c7442414000000004d89f5488b500889e84889dd89c348634424144883442418014989c24883c00148c1e00549c1e205488b34024a8b4412104821fe488b34f04885f674524189de4889eb90488b4608488b6e104989c44d29fc4c39f87d12488b3c24e8a4fcffff83f80148835c2408ff4d85e47e074c01e34183c6014983c5014889ee4885ed75c3488b04244889dd4489f3488b78388b74241485f60f847901000089d84889eb4883c7014d89ee4863e8488b0424488978384c396c24207610488b4c241848394c24280f8f2bffffff488b4c24084d89f748014c24484c0174244085ed745c4889d8488b0c24489948f7fd488b71304885f6480f44f04889c348b80bd7a3703d0ad7a348d1eb48f7ee488d043248c1fe3f48c1f8054829f0488d344048c1e6044801c648b80bd7a3703d0ad7a348f7e348c1ea044801f2488951308b54243485d20f84ed000000488b44240831d2488d0480488d048048c1e00249f7f7483b4424380f87dffdffff8344246c018b44246c394424680f84080100008b05cb1e110085c00f85fa0000008b354d2d1100e98bfdffffe83b62f8ff488b3db4321100482b4424584889c14801052d2a11004885ff742c48bacff753e3a59bc42048c1f93f48f7ea48c1fa074829ca4889d64839d77f0c488d3d11dd0b
Function at 0x55d02ac00580 is ustime
Function at 0x55d02ac14710 is clientsArePaused
Function at 0x55d02ac005a0 is mstime
=== REDIS BUG REPORT END. Make sure to include from START to END. ===
Please report the crash by opening an issue on github:
http://github.com/antirez/redis/issues
Suspect RAM error? Use redis-server --test-memory to verify it.
1:C 16 Jun 2020 23:39:45.600 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 16 Jun 2020 23:39:45.600 # Redis version=5.9.101, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 16 Jun 2020 23:39:45.600 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 16 Jun 2020 23:39:45.601 * Running mode=standalone, port=6379.
1:M 16 Jun 2020 23:39:45.601 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 16 Jun 2020 23:39:45.601 # Server initialized
1:M 16 Jun 2020 23:39:45.601 * Loading RDB produced by version 5.9.101
1:M 16 Jun 2020 23:39:45.601 * RDB age 36 seconds
1:M 16 Jun 2020 23:39:45.601 * RDB memory usage when created 0.90 Mb
1:M 16 Jun 2020 23:39:45.602 * DB loaded from disk: 0.001 seconds
1:M 16 Jun 2020 23:39:45.602 * Ready to accept connections
1:M 16 Jun 2020 23:46:06.981 * 100 changes in 300 seconds. Saving...
1:M 16 Jun 2020 23:46:06.981 * Background saving started by pid 20
20:C 16 Jun 2020 23:46:06.984 * DB saved on disk
20:C 16 Jun 2020 23:46:06.985 * RDB: 0 MB of memory used by copy-on-write
1:M 16 Jun 2020 23:46:07.081 * Background saving terminated with success

thanks

@oranagra
Copy link
Member

this is a division by zero. already fixed in the final release of 6.0.
please move away from the release candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants