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.

3542777:C 31 Dec 2022 06:43:53.725 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
3542777:C 31 Dec 2022 06:43:53.725 # Redis version=255.255.255, bits=64, commit=af0a4fe2, modified=0, pid=3542777, just started
3542777:C 31 Dec 2022 06:43:53.725 # Configuration loaded
3542777:M 31 Dec 2022 06:43:53.726 * monotonic clock: POSIX clock_gettime
3542777:M 31 Dec 2022 06:43:53.726 * Running mode=standalone, port=6379.
3542777:M 31 Dec 2022 06:43:53.727 # Server initialized
3542777:M 31 Dec 2022 06:43:53.728 * Loading RDB produced by version 255.255.255
3542777:M 31 Dec 2022 06:43:53.728 * RDB age 9490 seconds
3542777:M 31 Dec 2022 06:43:53.728 * RDB memory usage when created 0.87 Mb
3542777:M 31 Dec 2022 06:43:53.728 * Done loading RDB, keys loaded: 2, keys expired: 0.
3542777:M 31 Dec 2022 06:43:53.728 * DB loaded from disk: 0.000 seconds
3542777:M 31 Dec 2022 06:43:53.728 * Ready to accept connections tcp
3542777:M 31 Dec 2022 06:44:27.006 # Out Of Memory allocating 9223372036854775826 bytes!


=== REDIS BUG REPORT START: Cut & paste starting from here ===
3542777:M 31 Dec 2022 06:44:27.006 # ------------------------------------------------
3542777:M 31 Dec 2022 06:44:27.006 # !!! Software Failure. Press left mouse button to continue
3542777:M 31 Dec 2022 06:44:27.006 # Guru Meditation: Redis aborting for OUT OF MEMORY. Allocating 9223372036854775826 bytes! #server.c:6690

------ STACK TRACE ------

Backtrace:
./src/redis-server 127.0.0.1:6379(redisOutOfMemoryHandler+0x36)[0x557d66bdd2b6]
./src/redis-server 127.0.0.1:6379(+0x1cc06c)[0x557d66d0c06c]
./src/redis-server 127.0.0.1:6379(setrangeCommand+0x24f)[0x557d66c1955f]
./src/redis-server 127.0.0.1:6379(call+0xc6)[0x557d66bc9486]
./src/redis-server 127.0.0.1:6379(processCommand+0xb10)[0x557d66bca9d0]
./src/redis-server 127.0.0.1:6379(processInputBuffer+0x107)[0x557d66beae07]
./src/redis-server 127.0.0.1:6379(readQueryFromClient+0x348)[0x557d66beb368]
./src/redis-server 127.0.0.1:6379(+0x1b50ac)[0x557d66cf50ac]
./src/redis-server 127.0.0.1:6379(aeMain+0xf1)[0x557d66bbed81]
./src/redis-server 127.0.0.1:6379(main+0x3d4)[0x557d66bb4264]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f8e77ba5d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f8e77ba5e40]
./src/redis-server 127.0.0.1:6379(_start+0x25)[0x557d66bb4a25]

------ INFO OUTPUT ------
# Server
redis_version:255.255.255
redis_git_sha1:af0a4fe2
redis_git_dirty:0
redis_build_id:b21063553f60d4ba
redis_mode:standalone
os:Linux 5.4.0-135-generic x86_64
arch_bits:64
monotonic_clock:POSIX clock_gettime
multiplexing_api:epoll
atomicvar_api:c11-builtin
gcc_version:11.3.0
process_id:3542777
process_supervised:no
run_id:639710a475b56955f8496a19ab80737f7e19b9e8
tcp_port:6379
server_time_usec:1672469067006762
uptime_in_seconds:34
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:11524683
executable:/not_patched_redis/./src/redis-server
config_file:/redis/redis.conf
io_threads_active:0
listener0:name=tcp,bind=127.0.0.1,port=6379

# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:20480
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0

# Memory
used_memory:914112
used_memory_human:892.69K
used_memory_rss:8278016
used_memory_rss_human:7.89M
used_memory_peak:1111984
used_memory_peak_human:1.06M
used_memory_peak_perc:82.21%
used_memory_overhead:866400
used_memory_startup:864272
used_memory_dataset:47712
used_memory_dataset_perc:95.73%
allocator_allocated:1439776
allocator_active:1789952
allocator_resident:14135296
total_system_memory:134823165952
total_system_memory_human:125.56G
used_memory_lua:31744
used_memory_vm_eval:31744
used_memory_lua_human:31.00K
used_memory_scripts_eval:0
number_of_cached_scripts:0
number_of_functions:0
number_of_libraries:0
used_memory_vm_functions:32768
used_memory_vm_total:64512
used_memory_vm_total_human:63.00K
used_memory_functions:184
used_memory_scripts:184
used_memory_scripts_human:184B
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.24
allocator_frag_bytes:350176
allocator_rss_ratio:7.90
allocator_rss_bytes:12345344
rss_overhead_ratio:0.59
rss_overhead_bytes:-5857280
mem_fragmentation_ratio:9.28
mem_fragmentation_bytes:7386440
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_total_replication_buffers:0
mem_clients_slaves:0
mem_clients_normal:1800
mem_cluster_links:0
mem_aof_buffer:0
mem_allocator:jemalloc-5.2.1
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:1672469033
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:2
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:1
instantaneous_ops_per_sec:0
total_net_input_bytes:148
total_net_output_bytes:200394
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:0
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:1
dump_payload_sanitizations:0
total_reads_processed:3
total_writes_processed:4
io_threaded_reads_processed:0
io_threaded_writes_processed:0
reply_buffer_shrinks:1
reply_buffer_expands:0
acl_access_denied_auth:0
acl_access_denied_cmd:0
acl_access_denied_key:0
acl_access_denied_channel:0

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:78e49d79c972a96370617eb1807c43cff627f87f
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.020020
used_cpu_user:0.027962
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000
used_cpu_sys_main_thread:0.019131
used_cpu_user_main_thread:0.028697

# Modules

# Commandstats
cmdstat_command|docs:calls=1,usec=1144,usec_per_call=1144.00,rejected_calls=0,failed_calls=0
cmdstat_setrange:calls=0,usec=0,usec_per_call=0.00,rejected_calls=1,failed_calls=0

# Errorstats
errorstat_ERR:count=1

# Latencystats
latency_percentiles_usec_command|docs:p50=1146.879,p99=1146.879,p99.9=1146.879

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=2,expires=0,avg_ttl=0

------ CLIENT LIST OUTPUT ------
id=3 addr=127.0.0.1:57766 laddr=127.0.0.1:6379 fd=7 name= age=29 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=64 qbuf-free=20410 argv-mem=35 multi-mem=0 rbs=1024 rbp=0 obl=0 oll=0 omem=0 tot-mem=22339 events=r cmd=setrange user=default redir=-1 resp=2

------ CURRENT CLIENT INFO ------
id=3 addr=127.0.0.1:57766 laddr=127.0.0.1:6379 fd=7 name= age=29 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=64 qbuf-free=20410 argv-mem=35 multi-mem=0 rbs=1024 rbp=0 obl=0 oll=0 omem=0 tot-mem=22339 events=r cmd=setrange user=default redir=-1 resp=2
argv[0]: '"setrange"'
argv[1]: '"somekey"'
argv[2]: '"9223372036854775807"'
argv[3]: '"e"'

------ MODULES INFO OUTPUT ------

------ CONFIG DEBUG OUTPUT ------
lazyfree-lazy-expire no
repl-diskless-load disabled
proto-max-bulk-len 512mb
io-threads-do-reads no
list-compress-depth 0
activedefrag no
lazyfree-lazy-server-del no
sanitize-dump-payload no
replica-read-only yes
client-query-buffer-limit 1gb
repl-diskless-sync yes
slave-read-only yes
io-threads 1
lazyfree-lazy-user-del no
lazyfree-lazy-user-flush no
lazyfree-lazy-eviction no

------ FAST MEMORY TEST ------
3542777:M 31 Dec 2022 06:44:27.008 # Bio thread for job type #0 terminated
3542777:M 31 Dec 2022 06:44:27.008 # Bio thread for job type #1 terminated
3542777:M 31 Dec 2022 06:44:27.008 # Bio thread for job type #2 terminated
*** Preparing to test memory region 557d66eae000 (2306048 bytes)
*** Preparing to test memory region 557d68c0f000 (135168 bytes)
*** Preparing to test memory region 7f8e74800000 (8388608 bytes)
*** Preparing to test memory region 7f8e75000000 (6291456 bytes)
*** Preparing to test memory region 7f8e75715000 (8388608 bytes)
*** Preparing to test memory region 7f8e75f16000 (8388608 bytes)
*** Preparing to test memory region 7f8e76717000 (8388608 bytes)
*** Preparing to test memory region 7f8e77200000 (8388608 bytes)
*** Preparing to test memory region 7f8e77b78000 (16384 bytes)
*** Preparing to test memory region 7f8e77d97000 (53248 bytes)
*** Preparing to test memory region 7f8e77e91000 (8192 bytes)
.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.

=== 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/redis/redis/issues

  If a Redis module was involved, please open in the module's repo instead.

  Suspect RAM error? Use redis-server --test-memory to verify it.

  Some other issues could be detected by redis-server --check-system

Additional information

  1. OS distribution and version
Ubuntu 22.04.1 LTS
Redis ver: built from commit af0a4fe20771603f0eab75a1f60748d124cf33c3
  1. Steps to reproduce (if any)

Run the following command in cli:

setrange somekey 9223372036854775807 e