Notice! - If a Redis module was involved, please open an issue in the module's repo instead! - If you're using docker on Apple M1, please make sure the image you're using was compiled for ARM!
Crash report
Paste the complete crash log between the quotes below. Please include a few lines from the log preceding the crash report to provide some context.
=== REDIS BUG REPORT START: Cut & paste starting from here ===
6048:M 03 May 2023 02:54:39.433 # Redis 7.0.11 crashed by signal: 7, si_code: 1
6048:M 03 May 2023 02:54:39.433 # Accessing address: 0xed2b90f4
6048:M 03 May 2023 02:54:39.433 # Crashed running the instruction at: 0xb14f4788
------ STACK TRACE ------
EIP:
/data/data/com.termux/files/usr/bin/redis-server(hdr_init_preallocated+0x1f) [0xb14f4788]
Backtrace:
------ REGISTERS ------
6048:M 03 May 2023 02:54:39.433 #
R10:000000000000000f R9 :0000000000701368
R8 :00000000b15139b8 R7 :00000000ff953560
R6 :00000000b15139b8 R5 :00000000ff9535a0
R4 :00000000ed055dc4 R3 :00000000ed2b90f4
R2 :00000000ff953590 R1 :00000000ff953570
R0 :00000000ed2b90e4 EC :0000000000000800
fp: 0000000000000000 ip:0000000000000000
pc:00000000b14f4788 sp:00000000ff953550
cpsr:00000000a0010030 fault_address:00000000ed2b90f4
6048:M 03 May 2023 02:54:39.434 # (ff95355f) -> 00000000
6048:M 03 May 2023 02:54:39.434 # (ff95355e) -> 00000002
6048:M 03 May 2023 02:54:39.434 # (ff95355d) -> 00000000
6048:M 03 May 2023 02:54:39.434 # (ff95355c) -> 00000000
6048:M 03 May 2023 02:54:39.434 # (ff95355b) -> 00000000
6048:M 03 May 2023 02:54:39.434 # (ff95355a) -> 3b9aca00
6048:M 03 May 2023 02:54:39.434 # (ff953559) -> 00000000
6048:M 03 May 2023 02:54:39.434 # (ff953558) -> 00000001
6048:M 03 May 2023 02:54:39.434 # (ff953557) -> ff953570
6048:M 03 May 2023 02:54:39.434 # (ff953556) -> 00000002
6048:M 03 May 2023 02:54:39.434 # (ff953555) -> b14f4821
6048:M 03 May 2023 02:54:39.434 # (ff953554) -> ff9535c8
6048:M 03 May 2023 02:54:39.434 # (ff953553) -> b15139b8
6048:M 03 May 2023 02:54:39.434 # (ff953552) -> ed2b90e4
6048:M 03 May 2023 02:54:39.434 # (ff953551) -> ed055dc4
6048:M 03 May 2023 02:54:39.434 # (ff953550) -> 00000000
------ INFO OUTPUT ------
# Server
redis_version:7.0.11
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:bd455d9376abd13e
redis_mode:standalone
os:Linux 4.9.82-perf+ armv8l
arch_bits:32
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:4.2.1
process_id:6048
process_supervised:no
run_id:c9d0de36f0667818ad49fa96cf2f3d42c43e5819
tcp_port:6379
server_time_usec:1683050079426274
uptime_in_seconds:4
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:5328479
executable:/data/data/com.termux/files/home/redis-server
config_file:
io_threads_active:0
# Clients
connected_clients:1
cluster_connections:0
maxclients:4064
client_recent_max_input_buffer:0
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0
# Memory
used_memory:693904
used_memory_human:677.64K
used_memory_rss:2936832
used_memory_rss_human:2.80M
used_memory_peak:693904
used_memory_peak_human:677.64K
used_memory_peak_perc:142.53%
used_memory_overhead:469687
used_memory_startup:469566
used_memory_dataset:224217
used_memory_dataset_perc:99.95%
allocator_allocated:469666
allocator_active:2914304
allocator_resident:2914304
total_system_memory:3623464960
total_system_memory_human:3.37G
used_memory_lua:22528
used_memory_vm_eval:22528
used_memory_lua_human:22.00K
used_memory_scripts_eval:0
number_of_cached_scripts:0
number_of_functions:0
number_of_libraries:0
used_memory_vm_functions:23552
used_memory_vm_total:46080
used_memory_vm_total_human:45.00K
used_memory_functions:121
used_memory_scripts:121
used_memory_scripts_human:121B
maxmemory:3221225472
maxmemory_human:3.00G
maxmemory_policy:noeviction
allocator_frag_ratio:6.21
allocator_frag_bytes:2444638
allocator_rss_ratio:1.00
allocator_rss_bytes:0
rss_overhead_ratio:1.01
rss_overhead_bytes:22528
mem_fragmentation_ratio:6.25
mem_fragmentation_bytes:2467166
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_total_replication_buffers:0
mem_clients_slaves:0
mem_clients_normal:0
mem_cluster_links:0
mem_aof_buffer:0
mem_allocator:libc
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0
# Persistence
loading:0
async_loading:0
current_cow_peak:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1683050075
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_saves:0
rdb_last_cow_size:0
rdb_last_load_keys_expired:0
rdb_last_load_keys_loaded:0
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_rewrites:0
aof_rewrites_consecutive_failures:0
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:1
total_commands_processed:0
instantaneous_ops_per_sec:0
total_net_input_bytes:27
total_net_output_bytes:0
total_net_repl_input_bytes:0
total_net_repl_output_bytes:0
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
instantaneous_input_repl_kbps:0.00
instantaneous_output_repl_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:2
evicted_keys:0
evicted_clients:0
total_eviction_exceeded_time:0
current_eviction_exceeded_time:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
pubsubshard_channels:0
latest_fork_usec:0
total_forks:0
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
total_active_defrag_time:0
current_active_defrag_time:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_error_replies:0
dump_payload_sanitizations:0
total_reads_processed:1
total_writes_processed:0
io_threaded_reads_processed:0
io_threaded_writes_processed:0
reply_buffer_shrinks:0
reply_buffer_expands:0
# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:c1ce4ebd91eff65fe8cb75998d5a8a5e71d56295
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:0.020000
used_cpu_user:0.060000
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000
used_cpu_sys_main_thread:0.020000
used_cpu_user_main_thread:0.060000
# Modules
# Commandstats
cmdstat_command|docs:calls=1,usec=7345,usec_per_call=7345.00,rejected_calls=0,failed_calls=0
# Errorstats
# Latencystats
# Cluster
cluster_enabled:0
# Keyspace
------ CLIENT LIST OUTPUT ------
id=3 addr=127.0.0.1:44438 laddr=127.0.0.1:6379 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=27 qbuf-free=16357 argv-mem=11 multi-mem=0 rbs=16384 rbp=16384 obl=16384 oll=10 omem=164040 tot-mem=197361 events=r cmd=command|docs user=default redir=-1 resp=2
------ CURRENT CLIENT INFO ------
id=3 addr=127.0.0.1:44438 laddr=127.0.0.1:6379 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=27 qbuf-free=16357 argv-mem=11 multi-mem=0 rbs=16384 rbp=16384 obl=16384 oll=10 omem=164040 tot-mem=197361 events=r cmd=command|docs user=default redir=-1 resp=2
argv[0]: '"COMMAND"'
argv[1]: '"DOCS"'
------ MODULES INFO OUTPUT ------
------ CONFIG DEBUG OUTPUT ------
lazyfree-lazy-eviction no
lazyfree-lazy-server-del no
proto-max-bulk-len 512mb
io-threads 1
activedefrag no
replica-read-only yes
io-threads-do-reads no
lazyfree-lazy-expire no
repl-diskless-sync yes
client-query-buffer-limit 1gb
lazyfree-lazy-user-del no
list-compress-depth 0
lazyfree-lazy-user-flush no
repl-diskless-load disabled
slave-read-only yes
sanitize-dump-payload no
------ FAST MEMORY TEST ------
6048:M 03 May 2023 02:54:39.437 # Bio thread for job type #0 terminated
6048:M 03 May 2023 02:54:39.438 # Bio thread for job type #1 terminated
6048:M 03 May 2023 02:54:39.438 # Bio thread for job type #2 terminated
*** Preparing to test memory region b1537000 (77824 bytes)
*** Preparing to test memory region eb780000 (524288 bytes)
*** Preparing to test memory region ed000000 (1048576 bytes)
*** Preparing to test memory region ed228000 (4096 bytes)
*** Preparing to test memory region ed280000 (1048576 bytes)
*** Preparing to test memory region ed477000 (4096 bytes)
*** Preparing to test memory region ed479000 (24576 bytes)
*** Preparing to test memory region ed56f000 (4096 bytes)
*** Preparing to test memory region ed571000 (4096 bytes)
*** Preparing to test memory region ed597000 (4096 bytes)
*** Preparing to test memory region ed598000 (4096 bytes)
*** Preparing to test memory region ed5b8000 (4096 bytes)
*** Preparing to test memory region ed5ba000 (4096 bytes)
*** Preparing to test memory region ed5db000 (4096 bytes)
*** Preparing to test memory region ed61c000 (4096 bytes)
*** Preparing to test memory region ed61d000 (4096 bytes)
*** Preparing to test memory region ed61e000 (4096 bytes)
*** Preparing to test memory region ed61f000 (4096 bytes)
*** Preparing to test memory region ed620000 (4096 bytes)
*** Preparing to test memory region ed622000 (4096 bytes)
*** Preparing to test memory region ed624000 (4096 bytes)
*** Preparing to test memory region ed626000 (8192 bytes)
*** Preparing to test memory region ed629000 (4096 bytes)
*** Preparing to test memory region ed631000 (12288 bytes)
*** Preparing to test memory region ed6c1000 (4096 bytes)
*** Preparing to test memory region ed6c5000 (294912 bytes)
*** Preparing to test memory region ed70e000 (24576 bytes)
.O.O.O.O.O.O.O.O.O.O.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: hdr_init_preallocated (base: 0xb14f4769)
Module: /data/data/com.termux/files/usr/bin/redis-server (base 0xb13e2000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0xb14f4769 -D -b binary -m i386:x86-64 /tmp/dump.bin
------
6048:M 03 May 2023 02:54:39.494 # dump of function (hexdump of 159 bytes):
b503af4df804bd0a46034662f9cd0a01f1300543f9cd0a62f9cd0afaff200243f99d0712681a604a6ad1e90a61c2610f4ac0e908610aa138cdc264002261f9cf0a8264c0e91622c0e90a340565303040f9cd0a02605df804bbf0bd00bf00bfffffffffffffff7f00000000000000000000f03ff0b503af4df804bd94b0184c7c4424682468139402ac0194bc680094fff7eefeb8b9109808216cf771fb88b1
=== REDIS BUG REPORT END. Make sure to include from START to END. ===
Additional information
- OS distribution and version
Android 8.1 with arm 32-bit userland.
- Steps to reproduce (if any)
Originally reported in https://github.com/termux/termux-packages/issues/15849. I'm going to submit a PR to fix this.
Comment From: xtkoba
Ah OK, this is already fixed in unstable branch by commit https://github.com/redis/redis/commit/f3f6f7c0d66f136146a912e06c8fbe31ecfbc977.