on fresh redis server running redis 6.0 rc2 I run those commands few times: root@ip-172-31-27-85:~# for i in {1..100} ; do redis-cli ACL SETUSER acl$i on -@write >acl2; done root@ip-172-31-27-85:~# for i in {1..10000} ; do redis-cli ACL SETUSER acl$i on +@write >acl2; done root@ip-172-31-27-85:~# for i in {1..10000} ; do redis-cli ACL SETUSER acl$i on -@write >acl2; done root@ip-172-31-27-85:~# for i in {1..10000} ; do redis-cli ACL SETUSER acl$i on +@write >acl2; done

I left the redis-server for few hours and than I saw that crash: `30620:C 19 Mar 2020 06:18:57.376 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 30620:C 19 Mar 2020 06:18:57.376 # Redis version=5.9.102, bits=64, commit=00000000, modified=0, pid=30620, just started 30620:C 19 Mar 2020 06:18:57.376 # Warning: no config file specified, using the default config. In order to specify a config file use /root/redis-6.0-rc2/src/redis-server /path/to/redis.conf 30620:M 19 Mar 2020 06:18:57.376 * Increased maximum number of open files to 10032 (it was originally set to 1024). 30620:M 19 Mar 2020 06:18:57.377 * Running mode=standalone, port=6379. 30620:M 19 Mar 2020 06:18:57.377 # Server initialized 30620:M 19 Mar 2020 06:18:57.377 * Loading RDB produced by version 5.9.102 30620:M 19 Mar 2020 06:18:57.377 * RDB age 27391 seconds 30620:M 19 Mar 2020 06:18:57.377 * RDB memory usage when created 0.80 Mb 30620:M 19 Mar 2020 06:18:57.377 * DB loaded from disk: 0.000 seconds 30620:M 19 Mar 2020 06:18:57.377 * Ready to accept connections 30620:M 19 Mar 2020 08:03:47.270 # Error accepting a client connection: Success (conn: fd=-1) 30620:M 19 Mar 2020 10:00:13.861 # Error accepting a client connection: Success (conn: fd=-1) 30620:M 19 Mar 2020 11:29:30.848 # Error accepting a client connection: Success (conn: fd=-1)

=== REDIS BUG REPORT START: Cut & paste starting from here === 30620:M 19 Mar 2020 12:45:58.557 # Redis 5.9.102 crashed by signal: 11 30620:M 19 Mar 2020 12:45:58.557 # Crashed running the instruction at: 0x42ae67 30620:M 19 Mar 2020 12:45:58.557 # Accessing address: 0x8 30620:M 19 Mar 2020 12:45:58.557 # Failed assertion: (:0)

------ STACK TRACE ------ EIP: 0x42ae67 is in listAddNodeTail (adlist.c:127).

Backtrace: 0x476ea5 is in logStackTrace (debug.c:1252). 0x477669 is in sigsegvHandler (debug.c:1427). /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f06a356c390] 0x42ae67 is in listAddNodeTail (adlist.c:127). 0x4439fd is in _addReplyProtoToList (networking.c:291). 0x443ad8 is in addReply (networking.c:261). 0x436166 is in addReplyCommand (server.c:3765). 0x4366d4 is in commandCommand (server.c:3818). 0x43474b is in call (server.c:1106). 0x434f97 is in processCommand (server.c:3570). 0x442950 is in processCommandAndResetClient (networking.c:1664). 0x446a4d is in processInputBuffer (networking.c:1759). 0x446d92 is in readQueryFromClient (networking.c:1867). 0x4c1f92 is in connSocketEventHandler (connhelpers.h:77). 0x42dfd5 is in aeProcessEvents (ae.c:470). 0x42e1fb is in aeMain (ae.c:520). 0x42a933 is in main (server.c:5072). 0x20830 is in __libc_start_main (../csu/libc-start.c:325).

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

Server

redis_version:5.9.102 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:a7b54f881d9cdc40 redis_mode:standalone os:Linux 4.4.0-1099-aws x86_64 arch_bits:64 multiplexing_api:epoll atomicvar_api:atomic-builtin gcc_version:5.4.0 process_id:30620 run_id:1f0279871db7994656933192f547faacb46c22cd tcp_port:6379 uptime_in_seconds:23221 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:7563654 executable:/root/redis-6.0-rc2/src/redis-server config_file:

Clients

connected_clients:1 client_recent_max_input_buffer:4 client_recent_max_output_buffer:0 blocked_clients:0 tracking_clients:0

Memory

used_memory:4132728 used_memory_human:3.94M used_memory_rss:8384512 used_memory_rss_human:8.00M used_memory_peak:4214584 used_memory_peak_human:4.02M used_memory_peak_perc:98.06% used_memory_overhead:8694885062085548078 used_memory_startup:802424 used_memory_dataset:9751859011628136266 used_memory_dataset_perc:292821877653504.00% allocator_allocated:4106848 allocator_active:4349952 allocator_resident:6918144 total_system_memory:7841435648 total_system_memory_human:7.30G 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.06 allocator_frag_bytes:243104 allocator_rss_ratio:1.59 allocator_rss_bytes:2568192 rss_overhead_ratio:1.21 rss_overhead_bytes:1466368 mem_fragmentation_ratio:2.07 mem_fragmentation_bytes:4335824 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_clients_slaves:0 mem_clients_normal:8694885062084745510 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:0 rdb_bgsave_in_progress:0 rdb_last_save_time:1584598737 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:38334 total_commands_processed:38333 instantaneous_ops_per_sec:0 total_net_input_bytes:2295234 total_net_output_bytes:209943 instantaneous_input_kbps:0.00 instantaneous_output_kbps:0.00 rejected_connections:3 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:253 evicted_keys:0 keyspace_hits:0 keyspace_misses:0 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec: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

Replication

role:master connected_slaves:0 master_replid:f2b974e2ca3b3324678e1c63e87344e9dab18731 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:13.120000 used_cpu_user:7.092000 used_cpu_sys_children:0.000000 used_cpu_user_children:0.000000

Modules

Commandstats

cmdstat_monitor:calls=2,usec=3,usec_per_call=1.50 cmdstat_command:calls=1,usec=1474,usec_per_call=1474.00 cmdstat_acl:calls=38330,usec=377458,usec_per_call=9.85

Cluster

cluster_enabled:0

Keyspace

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

------ CLIENT LIST OUTPUT ------`

Comment From: antirez

@yossigo Is this the same bug I signaled?

Comment From: yossigo

@antirez can't be sure, but the accept error messages make me suspect so.

Comment From: yossigo

Fixed by #7018