Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#15863·Redis

[CRASH] __ziplistInsert assertion fails when RPUSH after LSET/RPOP on a quicklist with list-compress-depth enabled

Author: superceixCreated Sep 24, 2026Updated Sep 24, 2026
CONFIG SET list-compress-depth 1
CONFIG SET list-max-ziplist-size 16
RPUSH key a
RPUSH key <b*50000>
RPUSH key c
LSET key 1 d
RPOP key
RPUSH key <e*5000>
LINSERT key before f 1
RPUSH key g        <-- crash here

version: 6.2.24 commit log: bfb69472301cb656043d3cbba332b406ef1d885a

CRASH LOG:

=== REDIS BUG REPORT START: Cut & paste starting from here === 1564292:M 24 Sep 2026 19:58:48.134 # === ASSERTION FAILED === 1564292:M 24 Sep 2026 19:58:48.134 # ==> ziplist.c:995 'zipEntrySafe(zl, newlen, p+reqlen, &tail, 1)' is not true

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

Backtrace: ./src/redis-server *:41002(__ziplistInsert+0x558)[0x564a115d3698] ./src/redis-server *:41002(quicklistPushTail+0x49)[0x564a115b9539] ./src/redis-server *:41002(pushGenericCommand+0xea)[0x564a115fb36a] ./src/redis-server *:41002(call+0xef)[0x564a115c3c4f] ./src/redis-server *:41002(processCommand+0x5cd)[0x564a115c597d] ./src/redis-server *:41002(processInputBuffer+0x103)[0x564a115da4f3] ./src/redis-server *:41002(+0x10755c)[0x564a1167c55c] ./src/redis-server *:41002(aeProcessEvents+0x2c2)[0x564a115bbd42] ./src/redis-server *:41002(aeMain+0x1d)[0x564a115bbfdd] ./src/redis-server *:41002(main+0x330)[0x564a115b7f10] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f72b28cbd90] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f72b28cbe40] ./src/redis-server *:41002(_start+0x25)[0x564a115b8415]

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

Server

redis_version:6.2.24 redis_git_sha1:bfb69472 redis_git_dirty:0 redis_build_id:fb6becbf94409bdf redis_mode:standalone os:Linux 5.15.0-190-generic x86_64 arch_bits:64 monotonic_clock:POSIX clock_gettime multiplexing_api:epoll atomicvar_api:c11-builtin gcc_version:11.4.0 process_id:1564292 process_supervised:no run_id:c5afc0347b5ccc77594879a81e72f4ec85e5aa03 tcp_port:41002 server_time_usec:1790251128133977 uptime_in_seconds:5 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:11866232 executable:/root/workspace/redis/./src/redis-server config_file: io_threads_active:0

Clients

connected_clients:1 cluster_connections:0 maxclients:10000 client_recent_max_input_buffer:8 client_recent_max_output_buffer:0 blocked_clients:0 tracking_clients:0 clients_in_timeout_table:0

Memory

used_memory:876208 used_memory_human:855.67K used_memory_rss:4526080 used_memory_rss_human:4.32M used_memory_peak:1062752 used_memory_peak_human:1.01M used_memory_peak_perc:82.45% used_memory_overhead:812184 used_memory_startup:812112 used_memory_dataset:64024 used_memory_dataset_perc:99.89% allocator_allocated:1040424 allocator_active:1212416 allocator_resident:3055616 total_system_memory:24790769664 total_system_memory_human:23.09G used_memory_lua:31744 used_memory_lua_human:31.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.17 allocator_frag_bytes:171992 allocator_rss_ratio:2.52 allocator_rss_bytes:1843200 rss_overhead_ratio:1.48 rss_overhead_bytes:1470464 mem_fragmentation_ratio:5.43 mem_fragmentation_bytes:3693016 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 lazyfreed_objects:0

Persistence

loading: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:6 rdb_bgsave_in_progress:0 rdb_last_save_time:1790251123 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:-1 rdb_current_bgsave_time_sec:-1 rdb_last_cow_size: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_last_write_status:ok aof_last_cow_size:0 module_fork_in_progress:0 module_fork_last_cow_size:0

Stats

total_connections_received:12 total_commands_processed:11 instantaneous_ops_per_sec:0 total_net_input_bytes:55427 total_net_output_bytes:54 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:0 expired_stale_perc:0.00 expired_time_cap_reached_count:0 expire_cycle_cpu_milliseconds:0 evicted_keys:0 keyspace_hits:0 keyspace_misses:0 pubsub_channels:0 pubsub_patterns: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 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:26 total_writes_processed:11 io_threaded_reads_processed:0 io_threaded_writes_processed:0

Replication

role:master connected_slaves:0 master_failover_state:no-failover master_replid:fa87de46d1b3b1c92f3074abb420a19d9531ea7b 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.000000 used_cpu_user:0.007659 used_cpu_sys_children:0.000000 used_cpu_user_children:0.000000 used_cpu_sys_main_thread:0.000000 used_cpu_user_main_thread:0.007526

Modules

Commandstats

cmdstat_lset:calls=1,usec=87,usec_per_call=87.00,rejected_calls=0,failed_calls=0 cmdstat_rpush:calls=4,usec=208,usec_per_call=52.00,rejected_calls=0,failed_calls=0 cmdstat_config:calls=2,usec=17,usec_per_call=8.50,rejected_calls=0,failed_calls=0 cmdstat_linsert:calls=1,usec=9,usec_per_call=9.00,rejected_calls=0,failed_calls=0 cmdstat_ping:calls=1,usec=1,usec_per_call=1.00,rejected_calls=0,failed_calls=0 cmdstat_rpop:calls=1,usec=3,usec_per_call=3.00,rejected_calls=0,failed_calls=0 cmdstat_del:calls=1,usec=2,usec_per_call=2.00,rejected_calls=0,failed_calls=0

Errorstats

Cluster

cluster_enabled:0

Keyspace

db0:keys=1,expires=0,avg_ttl=0

------ CLIENT LIST OUTPUT ------ id=14 addr=127.0.0.1:59144 laddr=127.0.0.1:41002 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=31 qbuf-free=40923 argv-mem=9 obl=0 oll=0 omem=0 tot-mem=61473 events=r cmd=rpush user=default redir=-1

------ CURRENT CLIENT INFO ------ id=14 addr=127.0.0.1:59144 laddr=127.0.0.1:41002 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=31 qbuf-free=40923 argv-mem=9 obl=0 oll=0 omem=0 tot-mem=61473 events=r cmd=rpush user=default redir=-1 argv[0]: 'rpush' argv[1]: 'key' argv[2]: 'g' 1564292:M 24 Sep 2026 19:58:48.134 # key 'key' found in DB containing the following object: 1564292:M 24 Sep 2026 19:58:48.134 # Object type: 1 1564292:M 24 Sep 2026 19:58:48.134 # Object encoding: 9 1564292:M 24 Sep 2026 19:58:48.134 # Object refcount: 1

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

------ FAST MEMORY TEST ------ 1564292:M 24 Sep 2026 19:58:48.134 # Bio thread for job type #0 terminated 1564292:M 24 Sep 2026 19:58:48.135 # Bio thread for job type #1 terminated 1564292:M 24 Sep 2026 19:58:48.135 # Bio thread for job type #2 terminated *** Preparing to test memory region 564a11796000 (446464 bytes) *** Preparing to test memory region 564a4bfce000 (135168 bytes) *** Preparing to test memory region 7f72afe11000 (8388608 bytes) *** Preparing to test memory region 7f72b0612000 (8388608 bytes) *** Preparing to test memory region 7f72b0e13000 (8388608 bytes) *** Preparing to test memory region 7f72b1614000 (8388608 bytes) *** Preparing to test memory region 7f72b2400000 (4194304 bytes) *** Preparing to test memory region 7f72b289e000 (16384 bytes) *** Preparing to test memory region 7f72b2abe000 (53248 bytes) *** Preparing to test memory region 7f72b2bba000 (8192 bytes) .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. ===

Source: redis/redis

View original on GitHubView discussion on GitHub