redis / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

Home Page:http://redis.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]Redis Fail to Start

WhiteChan18 opened this issue · comments

Report:
=== REDIS BUG REPORT START: Cut & paste starting from here ===
11617:S 08 Apr 2024 10:08:47.672 # Redis 7.0.4 crashed by signal: 11
11617:S 08 Apr 2024 10:08:47.672 # Crashed running the instruction at: 0x14b53355e6d7
11617:S 08 Apr 2024 10:08:47.672 # Accessing address: (nil)
11617:S 08 Apr 2024 10:08:47.672 # Failed assertion: (:0)

------ STACK TRACE ------
EIP:
/lib64/libc.so.6(+0x15b6d7)[0x14b53355e6d7]

Backtrace:
./redis-server *:20260(logStackTrace+0x32)[0x46fa32]
./redis-server *:20260(sigsegvHandler+0xa6)[0x470106]
/lib64/libpthread.so.0(+0x13240)[0x14b5335ce240]
/lib64/libc.so.6(+0x15b6d7)[0x14b53355e6d7]
./redis-server *:20260(processMultibulkBuffer+0x41)[0x43a0b1]
./redis-server *:20260(fakeProcessInputBuffer+0x48)[0x497a58]
./redis-server *:20260(slaveLoadAppendOnlyFileProcess+0x103)[0x497e63]
./redis-server *:20260(slaveLoadAofData+0x128)[0x4980d8]
./redis-server *:20260(serverCron+0x61d)[0x42eb4d]
./redis-server *:20260(aeProcessEvents+0x3e5)[0x425515]
./redis-server *:20260(aeMain+0x2b)[0x42569b]
./redis-server *:20260(main+0x5b9)[0x422489]
/lib64/libc.so.6(__libc_start_main+0xe7)[0x14b533428b17]
./redis-server *:20260[0x422643]

------ INFO OUTPUT ------

Server^M

redis_version:7.0.4^M
redis_git_sha1:16b9c978^M
redis_git_dirty:1^M
redis_build_id:a8ed71090b9b47e2^M
redis_mode:standalone^M
os:Linux 4.19.90-2102.2.0.0062.ctl2.x86_64 x86_64^M
arch_bits:64^M
multiplexing_api:epoll^M
atomicvar_api:atomic-builtin^M
gcc_version:5.5.0^M
process_id:11617^M
run_id:5ca9d7007708d630097d046420fef8eba14471ac^M
tcp_port:20260^M
uptime_in_seconds:0^M
uptime_in_days:0^M
hz:10^M
configured_hz:10^M
lru_clock:1266095^M
executable:/home/ctgcache/cache_apps/redisEntites/redis/src/./redis-server^M
config_file:/home/ctgcache/cache_apps/redisEntites/20260/redis20260.conf^M
^M

Clients^M

connected_clients:1^M
client_recent_max_input_buffer:2^M
client_recent_max_output_buffer:0^M
blocked_clients:0^M
^M

Memory^M

used_memory:1097544^M
used_memory_human:1.05M^M
used_memory_rss:3780608^M
used_memory_rss_human:3.61M^M
used_memory_peak:1144888^M
used_memory_peak_human:1.09M^M
used_memory_peak_perc:95.86%^M
used_memory_overhead:1096426^M
used_memory_startup:1078984^M
used_memory_dataset:1118^M
used_memory_dataset_perc:6.02%^M
allocator_allocated:1128624^M
allocator_active:3742720^M
allocator_resident:3742720^M
total_system_memory:7823212544^M
total_system_memory_human:7.29G^M
used_memory_lua:37888^M
used_memory_lua_human:37.00K^M
used_memory_scripts:0^M
used_memory_scripts_human:0B^M
number_of_cached_scripts:0^M
maxmemory:2147483648^M
maxmemory_human:2.00G^M
maxmemory_policy:volatile-lru^M
allocator_frag_ratio:3.32^M
allocator_frag_bytes:2614096^M
allocator_rss_ratio:1.00^M
allocator_rss_bytes:0^M
rss_overhead_ratio:1.01^M
rss_overhead_bytes:37888^M
mem_fragmentation_ratio:3.35^M
mem_fragmentation_bytes:2651984^M
mem_not_counted_for_evict:0^M
mem_replication_backlog:0^M
mem_clients_slaves:0^M
mem_clients_normal:17210^M
mem_aof_buffer:0^M
mem_allocator:libc^M
active_defrag_running:0^M
lazyfree_pending_objects:0^M
^M

Persistence^M

loading:0^M
rdb_changes_since_last_save:68380^M
rdb_bgsave_in_progress:0^M
rdb_last_save_time:1712542127^M
rdb_last_bgsave_status:ok^M
rdb_last_bgsave_time_sec:-1^M
rdb_current_bgsave_time_sec:-1^M
rdb_last_cow_size:0^M
aof_enabled:1^M
aof_rewrite_in_progress:0^M
aof_rewrite_scheduled:0^M
aof_last_rewrite_time_sec:-1^M
aof_current_rewrite_time_sec:-1^M
aof_last_bgrewrite_status:ok^M
aof_last_write_status:ok^M
aof_last_cow_size:0^M
aof_current_size:7667790^M
aof_base_size:0^M
aof_pending_rewrite:0^M
aof_buffer_length:0^M
aof_rewrite_buffer_length:0^M
aof_pending_bio_fsync:0^M
aof_delayed_fsync:0^M
^M

Stats^M

total_connections_received:1^M
total_commands_processed:2^M
instantaneous_ops_per_sec:0^M
total_net_input_bytes:391^M
total_net_output_bytes:88^M
instantaneous_input_kbps:0.22^M
instantaneous_output_kbps:0.03^M
rejected_connections:0^M
sync_full:0^M
sync_partial_ok:0^M
sync_partial_err:0^M
expired_keys:0^M
expired_stale_perc:0.00^M
expired_time_cap_reached_count:0^M
evicted_keys:0^M
keyspace_hits:0^M
keyspace_misses:0^M
pubsub_channels:0^M
pubsub_patterns:0^M
latest_fork_usec:0^M
migrate_cached_sockets:0^M
slave_expires_tracked_keys:0^M
active_defrag_hits:0^M
active_defrag_misses:0^M
active_defrag_key_hits:0^M
active_defrag_key_misses:0^M
showlog_length:0^M
auth_fail_times:0^M
^M

Replication^M

role:slave^M
master_host:172.26.44.82^M
master_port:20260^M
master_link_status:up^M
master_last_io_seconds_ago:0^M
master_sync_in_progress:0^M
slave_repl_offset:7667790^M
slave_priority:100^M
slave_read_only:1^M
connected_slaves:0^M
^M

CPU^M

used_cpu_sys:0.050026^M
used_cpu_user:0.156725^M
used_cpu_sys_children:0.000000^M
used_cpu_user_children:0.000000^M
^M

Commandstats^M

cmdstat_auth:calls=1,usec=2,usec_per_call=2.00,max_usec=2^M
cmdstat_aoffiletrans:calls=1,usec=7,usec_per_call=7.00,max_usec=7^M
^M

Cluster^M

cluster_enabled:0^M
^M

Keyspace^M

db31:keys=3,expires=2,avg_ttl=0^M

------ CLIENT LIST OUTPUT ------
id=4 addr=172.26.44.82:20260 fd=9 name= age=0 idle=0 flags=M db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=aoffiletrans

------ REGISTERS ------
11617:S 08 Apr 2024 10:08:47.673 #
RAX:0000000000000000 RBX:0000000001f51b00
RCX:000000000000000e RDX:00000000000000fa
RDI:3ea6049e534b10a0 RSI:000000000000000d
RBP:0000000000000000 RSP:00007fff81680778
R8 :0000000001f565e5 R9 :0000000000000002
R10:00000000000000bf R11:0000000000000000
R12:0000000000003c00 R13:0000000001f565e5
R14:3ea6049e5155aac9 R15:3ea6049e534b10ae
RIP:000014b53355e6d7 EFL:0000000000010206
CSGSFS:002b000000000033
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680787) -> 0000000000000000
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680786) -> 0000000000497e63
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680785) -> 000000000075004e
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680784) -> 000000000075004e
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680783) -> 00000000000000fa
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680782) -> 0000000000497a58
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680781) -> 0000000000000000
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680780) -> 0000000001f51b00
11617:S 08 Apr 2024 10:08:47.673 # (00007fff8168077f) -> 000000000202eb40
11617:S 08 Apr 2024 10:08:47.673 # (00007fff8168077e) -> 0000000000003c00
11617:S 08 Apr 2024 10:08:47.673 # (00007fff8168077d) -> 000000000075004e
11617:S 08 Apr 2024 10:08:47.673 # (00007fff8168077c) -> 000000000075004e
11617:S 08 Apr 2024 10:08:47.673 # (00007fff8168077b) -> 0000000000000000
11617:S 08 Apr 2024 10:08:47.673 # (00007fff8168077a) -> 0000000000000000
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680779) -> 0000000000000000
11617:S 08 Apr 2024 10:08:47.673 # (00007fff81680778) -> 000000000043a0b1

------ FAST MEMORY TEST ------
11617:S 08 Apr 2024 10:08:47.673 # Bio thread for job type #0 terminated
11617:S 08 Apr 2024 10:08:47.674 # Bio thread for job type #1 terminated
11617:S 08 Apr 2024 10:08:47.674 # Bio thread for job type #2 terminated
11617:S 08 Apr 2024 10:08:47.674 # Bio thread for job type #3 terminated
*** Preparing to test memory region 728000 (94208 bytes)
*** Preparing to test memory region 1f4e000 (135168 bytes)
*** Preparing to test memory region 1f6f000 (917504 bytes)
*** Preparing to test memory region 14b520000000 (135168 bytes)
*** Preparing to test memory region 14b52567d000 (4194304 bytes)
*** Preparing to test memory region 14b525a7e000 (4194304 bytes)
*** Preparing to test memory region 14b525e7f000 (4194304 bytes)
*** Preparing to test memory region 14b526280000 (4521984 bytes)
*** Preparing to test memory region 14b533401000 (8192 bytes)
*** Preparing to test memory region 14b5335b7000 (16384 bytes)
*** Preparing to test memory region 14b5335d8000 (16384 bytes)
*** Preparing to test memory region 14b53376f000 (8192 bytes)
*** Preparing to test memory region 14b5337a5000 (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: (null) (base: (nil))
Module: /lib64/libc.so.6 (base 0x14b533403000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=(nil) -D -b binary -m i386:x86-64 /tmp/dump.bin

=== 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.

I saw fakeProcessInputBuffer in the crash log which doesn't exist in redis.
where did you get this from?

I saw fakeProcessInputBuffer in the crash log which doesn't exist in redis. where did you get this from?

In addition to this parameter, there is no other way to determine the cause of the problem

@WhiteChan18 sorry, we can't determine the cause with the special implemention of code.

@WhiteChan18 sorry, we can't determine the cause with the special implemention of code.

Thank you!