[ok]: XREVRANGE returns the reverse of XRANGE

Logged warnings (pid 8206): === REDIS BUG REPORT START: Cut & paste starting from here === 8206:M 18 May 2020 16:27:09.565 # === ASSERTION FAILED === 8206:M 18 May 2020 16:27:09.565 # ==> networking.c:2749 'c->reply_bytes < SIZE_MAX-(102464)' is not true 8206:M 18 May 2020 16:27:09.565 # (forcing SIGSEGV to print the bug report.) 8206:M 18 May 2020 16:27:09.565 # Redis 6.0.3 crashed by signal: 11 8206:M 18 May 2020 16:27:09.566 # Crashed running the instruction at: 0x7a930 8206:M 18 May 2020 16:27:09.566 # Accessing address: 0xffffffff 8206:M 18 May 2020 16:27:09.566 # Failed assertion: c->reply_bytes < SIZE_MAX-(102464) (networking.c:2749)

------ STACK TRACE ------ EIP: src/redis-server 127.0.0.1:21241(_serverAssert+0x6c)[0x7a930]

Backtrace: src/redis-server 127.0.0.1:21241(logStackTrace+0x30)[0x7d100] src/redis-server 127.0.0.1:21241(sigsegvHandler+0x90)[0x7d7d0] /lib/arm-linux-gnueabihf/libc.so.6(__default_rt_sa_restorer+0x0)[0x76cdf6c0] src/redis-server 127.0.0.1:21241(_serverAssert+0x6c)[0x7a930] src/redis-server 127.0.0.1:21241(asyncCloseClientOnOutputBufferLimitReached+0x98)[0x47c50] src/redis-server 127.0.0.1:21241(addReply+0x190)[0x47f04] src/redis-server 127.0.0.1:21241(streamReplyWithRange+0xec)[0xbbdd0] src/redis-server 127.0.0.1:21241(xreadCommand+0x7c4)[0xbcf04] src/redis-server 127.0.0.1:21241(call+0x9c)[0x380e0] src/redis-server 127.0.0.1:21241(processCommand+0x48c)[0x389f4] src/redis-server 127.0.0.1:21241(processCommandAndResetClient+0x14)[0x46b9c] src/redis-server 127.0.0.1:21241(processInputBuffer+0x124)[0x4b2a4] src/redis-server 127.0.0.1:21241[0xc7ca4] src/redis-server 127.0.0.1:21241(aeProcessEvents+0x2c4)[0x31eb4] src/redis-server 127.0.0.1:21241(aeMain+0x20)[0x321d0] src/redis-server 127.0.0.1:21241(main+0x464)[0x2ec10] /lib/arm-linux-gnueabihf/libc.so.6(__libc_start_main+0x114)[0x76cc9678]

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

Server

redis_version:6.0.3 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:bfe8e08ae070287a redis_mode:standalone os:Linux 4.19.58-v7+ armv7l arch_bits:32 multiplexing_api:epoll atomicvar_api:atomic-builtin gcc_version:6.3.0 process_id:8206 run_id:dfd2ef3910c55fa9e271558d448c6cc4a6126eff tcp_port:21241 uptime_in_seconds:53 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:12757325 executable:/home/pi/rhickman/redis-6.0.3/src/redis-server config_file:/home/pi/rhickman/redis-6.0.3/./tests/tmp/redis.conf.7354.60

Clients

connected_clients:1 client_recent_max_input_buffer:2 client_recent_max_output_buffer:0 blocked_clients:0 tracking_clients:0 clients_in_timeout_table:0

Memory

used_memory:839856 used_memory_human:820.17K used_memory_rss:6123520 used_memory_rss_human:5.84M used_memory_peak:2104096 used_memory_peak_human:2.01M used_memory_peak_perc:39.92% used_memory_overhead:631250 used_memory_startup:614348 used_memory_dataset:208606 used_memory_dataset_perc:92.50% allocator_allocated:789080 allocator_active:6095872 allocator_resident:6095872 total_system_memory:917020672 total_system_memory_human:874.54M used_memory_lua:27648 used_memory_lua_human:27.00K used_memory_scripts:0 used_memory_scripts_human:0B number_of_cached_scripts:0 maxmemory:3221225472 maxmemory_human:3.00G maxmemory_policy:noeviction allocator_frag_ratio:7.73 allocator_frag_bytes:5306792 allocator_rss_ratio:1.00 allocator_rss_bytes:0 rss_overhead_ratio:1.00 rss_overhead_bytes:27648 mem_fragmentation_ratio:7.76 mem_fragmentation_bytes:5334440 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_clients_slaves:0 mem_clients_normal:16850 mem_aof_buffer:0 mem_allocator:libc active_defrag_running:0 lazyfree_pending_objects:0

Persistence

loading:0 rdb_changes_since_last_save:11014 rdb_bgsave_in_progress:0 rdb_last_save_time:1589815576 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:2 total_commands_processed:11132 instantaneous_ops_per_sec:0 total_net_input_bytes:658093 total_net_output_bytes:2451977 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:5 evicted_keys:0 keyspace_hits:112 keyspace_misses:1 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 tracking_total_prefixes:0 unexpected_error_replies:0

Replication

role:master connected_slaves:0 master_replid:30e8e2b996773cc435aae4a20df40a48c9ec7633 master_replid2:0000000000000000000000000000000000000000 master_repl_offset:0 master_repl_meaningful_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:1.037396 used_cpu_user:2.297092 used_cpu_sys_children:0.000000 used_cpu_user_children:0.000000

Modules

Commandstats

cmdstat_ping:calls=1,usec=8,usec_per_call=8.00 cmdstat_xadd:calls=11011,usec=762546,usec_per_call=69.25 cmdstat_xrevrange:calls=2,usec=221898,usec_per_call=110949.00 cmdstat_xrange:calls=106,usec=656160,usec_per_call=6190.19 cmdstat_xlen:calls=2,usec=39,usec_per_call=19.50 cmdstat_del:calls=4,usec=228,usec_per_call=57.00 cmdstat_exists:calls=1,usec=15,usec_per_call=15.00 cmdstat_multi:calls=2,usec=16,usec_per_call=8.00 cmdstat_exec:calls=2,usec=672462,usec_per_call=336231.00 cmdstat_select:calls=1,usec=11,usec_per_call=11.00

Cluster

cluster_enabled:0

Keyspace

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

------ CLIENT LIST OUTPUT ------ id=5 addr=127.0.0.1:44325 fd=8 name= age=53 idle=0 flags=N db=9 sub=0 psub=0 multi=-1 qbuf=69 qbuf-free=32699 obl=0 oll=4 omem=16488 events=r cmd=xread user=default

------ CURRENT CLIENT INFO ------ id=5 addr=127.0.0.1:44325 fd=8 name= age=53 idle=0 flags=N db=9 sub=0 psub=0 multi=-1 qbuf=69 qbuf-free=32699 obl=0 oll=4 omem=16488 events=r cmd=xread user=default argv[0]: 'XREAD' argv[1]: 'COUNT' argv[2]: '1' argv[3]: 'STREAMS' argv[4]: 'mystream' argv[5]: '0-0'

------ REGISTERS ------ 8206:M 18 May 2020 16:27:09.570 # R10:00000000000fb74c R9 :0000000000000001 R8 :0000000000000000 R7 :000000007eb032d8 R6 :00000000000f1670 R5 :00000000000f0e10 R4 :0000000000000abd R3 :00000000001376a8 R2 :00000000ffffffff R1 :0000000000000078 R0 :0000000000000000 EC :0000000000000000 fp: 0000000000000837 ip:0000000000000000

8206:M 18 May 2020 16:27:09.570 # (7eb02fe7) -> 00000000 8206:M 18 May 2020 16:27:09.570 # (7eb02fe6) -> 00000000 8206:M 18 May 2020 16:27:09.570 # (7eb02fe5) -> 00047f04 8206:M 18 May 2020 16:27:09.570 # (7eb02fe4) -> 7eb032d8 8206:M 18 May 2020 16:27:09.570 # (7eb02fe3) -> 00000000 8206:M 18 May 2020 16:27:09.570 # (7eb02fe2) -> 7eb03070 8206:M 18 May 2020 16:27:09.570 # (7eb02fe1) -> 01a07d68 8206:M 18 May 2020 16:27:09.570 # (7eb02fe0) -> 019e4170 8206:M 18 May 2020 16:27:09.570 # (7eb02fdf) -> 00047c50 8206:M 18 May 2020 16:27:09.570 # (7eb02fde) -> 00000000 8206:M 18 May 2020 16:27:09.570 # (7eb02fdd) -> fffefffe 8206:M 18 May 2020 16:27:09.570 # (7eb02fdc) -> 01a07d68 8206:M 18 May 2020 16:27:09.570 # (7eb02fdb) -> 01a07d68 8206:M 18 May 2020 16:27:09.570 # (7eb02fda) -> 00000000 8206:M 18 May 2020 16:27:09.570 # (7eb02fd9) -> 01c3bfe8 8206:M 18 May 2020 16:27:09.570 # (7eb02fd8) -> 000f1670

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

------ FAST MEMORY TEST ------ 8206:M 18 May 2020 16:27:09.571 # Bio thread for job type #0 terminated 8206:M 18 May 2020 16:27:09.571 # Bio thread for job type #1 terminated 8206:M 18 May 2020 16:27:09.571 # Bio thread for job type #2 terminated *** Preparing to test memory region 129000 (69632 bytes) *** Preparing to test memory region 19ab000 (2891776 bytes) *** Preparing to test memory region 752c4000 (8388608 bytes) *** Preparing to test memory region 75ac5000 (8388608 bytes) *** Preparing to test memory region 762c6000 (8716288 bytes) *** Preparing to test memory region 76cb1000 (8192 bytes) *** Preparing to test memory region 76def000 (12288 bytes) *** Preparing to test memory region 76e19000 (8192 bytes) *** Preparing to test memory region 76e88000 (4096 bytes) *** Preparing to test memory region 76f4c000 (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.

------ DUMPING CODE AROUND EIP ------ Symbol: _serverAssert (base: 0x7a8c4) Module: src/redis-server 127.0.0.1:21241 (base 0x10000) $ xxd -r -p /tmp/dump.hex /tmp/dump.bin $ objdump --adjust-vma=0x7a8c4 -D -b binary -m i386:x86-64 /tmp/dump.bin


8206:M 18 May 2020 16:27:12.583 # dump of function (hexdump of 236 bytes): f0402de90070a0e168409fe50cd04de20160a0e14c3b94e50250a0e1000053e30000001a66ffffeb4c109fe50300a0e3e5ebfeeb0530a0e10620a0e100708de538109fe50300a0e3dfebfeeb30109fe50300a0e3407b84e5446b84e5485b84e5d9ebfeeb0030e0e37820a0e30020c3e50cd08de2f080bde8a876130038ad0f0054ad0f0070ad0f000c319fe5f04f2de90050a0e14c3b93e5acd04de2000053e33b00000af4109fe50300a0e3c6ebfeebd826c5e1e8109fe50300a0e3c2ebfeeb2020a0e308108de2080095e5703501ebd0109fe50020a0e10300a0e3baebfeeb282095e5c0109fe50300a0e3

=== REDIS BUG REPORT END. Make sure to include from START to END. ===

Comment From: accua

I'm having the same issue trying to install latest stable on a Raspberry Pi Zero W running Raspbian Buster Lite v4.19:

=== REDIS BUG REPORT START: Cut & paste starting from here === 29505:M 20 May 2020 00:00:58.823 # === ASSERTION FAILED === 29505:M 20 May 2020 00:00:58.823 # ==> networking.c:2749 'c->reply_bytes < SIZE_MAX-(102464)' is not true 29505:M 20 May 2020 00:00:58.823 # (forcing SIGSEGV to print the bug report.) 29505:M 20 May 2020 00:00:58.823 # Redis 6.0.3 crashed by signal: 11 29505:M 20 May 2020 00:00:58.824 # Crashed running the instruction at: 0x7a5b0 29505:M 20 May 2020 00:00:58.824 # Accessing address: 0xffffffff 29505:M 20 May 2020 00:00:58.824 # Failed assertion: c->reply_bytes < SIZE_MAX-(102464) (networking.c:2749)

------ STACK TRACE ------ EIP: src/redis-server 127.0.0.1:21241(_serverAssert+0x68)[0x7a5b0]

Backtrace: src/redis-server 127.0.0.1:21241(logStackTrace+0x30)[0x7cd84] src/redis-server 127.0.0.1:21241(sigsegvHandler+0x80)[0x7d43c] /lib/arm-linux-gnueabihf/libc.so.6(__default_rt_sa_restorer+0x0)[0xb6d3b130] src/redis-server 127.0.0.1:21241(_serverAssert+0x68)[0x7a5b0] src/redis-server 127.0.0.1:21241(asyncCloseClientOnOutputBufferLimitReached+0x98)[0x477fc] src/redis-server 127.0.0.1:21241(addReply+0x88)[0x479ac] src/redis-server 127.0.0.1:21241(streamReplyWithRange+0xf8)[0xbaaf8] src/redis-server 127.0.0.1:21241(xreadCommand+0x5c8)[0xbba30] src/redis-server 127.0.0.1:21241(call+0xa8)[0x37dc8] src/redis-server 127.0.0.1:21241(processCommand+0x388)[0x38648] src/redis-server 127.0.0.1:21241(processCommandAndResetClient+0x14)[0x46904] src/redis-server 127.0.0.1:21241(processInputBuffer+0x1dc)[0x4affc] src/redis-server 127.0.0.1:21241[0xc6b78] src/redis-server 127.0.0.1:21241(aeProcessEvents+0x2ec)[0x31cf4] src/redis-server 127.0.0.1:21241(aeMain+0x1c)[0x31fec] src/redis-server 127.0.0.1:21241(main+0x46c)[0x2eb1c] /lib/arm-linux-gnueabihf/libc.so.6(__libc_start_main+0x10c)[0xb6d25718]

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

Server

redis_version:6.0.3 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:559068138ef2c758 redis_mode:standalone os:Linux 4.19.97+ armv6l arch_bits:32 multiplexing_api:epoll atomicvar_api:atomic-builtin gcc_version:8.3.0 process_id:29505 run_id:2d43a7f03afc46399085bc733fa1b7a12bd9ab70 tcp_port:21241 uptime_in_seconds:138 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:12870954 executable:/home/pi/redis-stable/src/redis-server config_file:/home/pi/redis-stable/./tests/tmp/redis.conf.25413.60

Clients

connected_clients:1 client_recent_max_input_buffer:2 client_recent_max_output_buffer:0 blocked_clients:0 tracking_clients:0 clients_in_timeout_table:0

Memory

used_memory:840884 used_memory_human:821.18K used_memory_rss:6295552 used_memory_rss_human:6.00M used_memory_peak:2118704 used_memory_peak_human:2.02M used_memory_peak_perc:39.69% used_memory_overhead:631266 used_memory_startup:614364 used_memory_dataset:209618 used_memory_dataset_perc:92.54% allocator_allocated:790108 allocator_active:6267904 allocator_resident:6267904 total_system_memory:453447680 total_system_memory_human:432.44M used_memory_lua:27648 used_memory_lua_human:27.00K used_memory_scripts:0 used_memory_scripts_human:0B number_of_cached_scripts:0 maxmemory:3221225472 maxmemory_human:3.00G maxmemory_policy:noeviction allocator_frag_ratio:7.93 allocator_frag_bytes:5477796 allocator_rss_ratio:1.00 allocator_rss_bytes:0 rss_overhead_ratio:1.00 rss_overhead_bytes:27648 mem_fragmentation_ratio:7.97 mem_fragmentation_bytes:5505444 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_clients_slaves:0 mem_clients_normal:16850 mem_aof_buffer:0 mem_allocator:libc 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:1589929181 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:0 rdb_current_bgsave_time_sec:-1 rdb_last_cow_size:704512 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:2 total_commands_processed:11132 instantaneous_ops_per_sec:0 total_net_input_bytes:657642 total_net_output_bytes:2431869 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:18 evicted_keys:0 keyspace_hits:112 keyspace_misses:1 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec:1271 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

Replication

role:master connected_slaves:0 master_replid:8d6ffc582a33e44c92be00d126481d6aab3a1c8a master_replid2:0000000000000000000000000000000000000000 master_repl_offset:0 master_repl_meaningful_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:3.193825 used_cpu_user:4.674700 used_cpu_sys_children:0.009952 used_cpu_user_children:0.019904

Modules

Commandstats

cmdstat_select:calls=1,usec=15,usec_per_call=15.00 cmdstat_xrevrange:calls=2,usec=313548,usec_per_call=156774.00 cmdstat_exists:calls=1,usec=25,usec_per_call=25.00 cmdstat_ping:calls=1,usec=14,usec_per_call=14.00 cmdstat_xadd:calls=11011,usec=1294441,usec_per_call=117.56 cmdstat_multi:calls=2,usec=29,usec_per_call=14.50 cmdstat_del:calls=4,usec=250,usec_per_call=62.50 cmdstat_xrange:calls=106,usec=926673,usec_per_call=8742.20 cmdstat_exec:calls=2,usec=1177304,usec_per_call=588652.00 cmdstat_xlen:calls=2,usec=77,usec_per_call=38.50

Cluster

cluster_enabled:0

Keyspace

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

------ CLIENT LIST OUTPUT ------ id=5 addr=127.0.0.1:44457 fd=8 name= age=137 idle=0 flags=N db=9 sub=0 psub=0 multi=-1 qbuf=69 qbuf-free=32699 obl=0 oll=4 omem=16488 events=r cmd=xread user=default

------ CURRENT CLIENT INFO ------ id=5 addr=127.0.0.1:44457 fd=8 name= age=137 idle=0 flags=N db=9 sub=0 psub=0 multi=-1 qbuf=69 qbuf-free=32699 obl=0 oll=4 omem=16488 events=r cmd=xread user=default argv[0]: 'XREAD' argv[1]: 'COUNT' argv[2]: '1' argv[3]: 'STREAMS' argv[4]: 'mystream' argv[5]: '0-0'

------ REGISTERS ------ 29505:M 20 May 2020 00:00:58.835 # R10:00000000000f9d24 R9 :0000000000000000 R8 :0000000000000000 R7 :0000000000000000 R6 :00000000000efc48 R5 :00000000000ef3e4 R4 :0000000000000abd R3 :00000000001356b8 R2 :00000000ffffffff R1 :0000000000000078 R0 :0000000000000000 EC :0000000000000000 fp: 0000000000000837 ip:0000000000000001

29505:M 20 May 2020 00:00:58.835 # (beae7f77) -> 3d51292f 29505:M 20 May 2020 00:00:58.835 # (beae7f76) -> 72010000 29505:M 20 May 2020 00:00:58.835 # (beae7f75) -> 000479ac 29505:M 20 May 2020 00:00:58.835 # (beae7f74) -> 00000000 29505:M 20 May 2020 00:00:58.835 # (beae7f73) -> 00000000 29505:M 20 May 2020 00:00:58.836 # (beae7f72) -> 00000000 29505:M 20 May 2020 00:00:58.836 # (beae7f71) -> 00b0e298 29505:M 20 May 2020 00:00:58.836 # (beae7f70) -> 00ae6760 29505:M 20 May 2020 00:00:58.836 # (beae7f6f) -> 000477fc 29505:M 20 May 2020 00:00:58.836 # (beae7f6e) -> 00000000 29505:M 20 May 2020 00:00:58.836 # (beae7f6d) -> fffefffe 29505:M 20 May 2020 00:00:58.836 # (beae7f6c) -> 00b0e298 29505:M 20 May 2020 00:00:58.836 # (beae7f6b) -> 00b0e298 29505:M 20 May 2020 00:00:58.836 # (beae7f6a) -> 00b533c0 29505:M 20 May 2020 00:00:58.836 # (beae7f69) -> 00b533c0 29505:M 20 May 2020 00:00:58.836 # (beae7f68) -> 000efc48

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

------ FAST MEMORY TEST ------ 29505:M 20 May 2020 00:00:58.837 # Bio thread for job type #0 terminated 29505:M 20 May 2020 00:00:58.838 # Bio thread for job type #1 terminated 29505:M 20 May 2020 00:00:58.838 # Bio thread for job type #2 terminated *** Preparing to test memory region 127000 (69632 bytes) *** Preparing to test memory region aac000 (3031040 bytes) *** Preparing to test memory region b5042000 (8388608 bytes) *** Preparing to test memory region b5843000 (8388608 bytes) *** Preparing to test memory region b6044000 (8716288 bytes) *** Preparing to test memory region b6e59000 (12288 bytes) *** Preparing to test memory region b6e84000 (8192 bytes) *** Preparing to test memory region b6ef5000 (4096 bytes) *** Preparing to test memory region b6faf000 (8192 bytes) *** Preparing to test memory region b6fb8000 (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.

------ DUMPING CODE AROUND EIP ------ Symbol: _serverAssert (base: 0x7a548) Module: src/redis-server 127.0.0.1:21241 (base 0x10000) $ xxd -r -p /tmp/dump.hex /tmp/dump.bin $ objdump --adjust-vma=0x7a548 -D -b binary -m i386:x86-64 /tmp/dump.bin


29505:M 20 May 2020 00:01:03.961 # dump of function (hexdump of 232 bytes): f0402de90070a0e16c409fe50cd04de20160a0e14c3b94e50250a0e1000053e31300000a54109fe50300a0e333ecfeeb0530a0e10620a0e100708de540109fe50300a0e32decfeeb38109fe50300a0e3407b84e5446b84e5485b84e527ecfeeb0030e0e37820a0e30020c3e50cd08de2f080bde851ffffebe9ffffeab856130010930f002c930f0048930f00f8309fe5f0412de90050a0e14c3b93e5a8d04de2000053e33600000ae0109fe50300a0e312ecfeebd826c5e1d4109fe50300a0e30eecfeeb2020a0e308108de2080095e5d43101ebbc109fe50020a0e10300a0e306ecfeeb282095e5

=== REDIS BUG REPORT END. Make sure to include from START to END. ===

Comment From: ShooterIT

Could you do a test in your redis environment? @rdghickman @accua

#include <stdio.h>
#include <stdint.h>
#include <limits.h>

int main(void) {
    printf("SIZE_MAX = %zu\n", SIZE_MAX);
    printf("ULONG_MAX = %lu\n", ULONG_MAX);
    printf("ULLONG_MAX = %llu\n", ULLONG_MAX);
    return 0;
}

Comment From: accua

FWIW I downgraded to 5.0.8 and make test finished properly. Maybe I can reinstall alongside and try?

Comment From: singleDog1123

I have the same problem. Have you solved it?

Comment From: ShooterIT

I suspect the value of SIZE_MAX is not ULONG_MAX in your environment @56600535 @accua Please help me do a test https://github.com/antirez/redis/issues/7275#issuecomment-631219319 in your redis environment.

Comment From: singleDog1123

what should I do?

Comment From: singleDog1123

@ShooterIT 请问我该怎么做?

Comment From: ShooterIT

Compile the code (https://github.com/antirez/redis/issues/7275#issuecomment-631219319) in the environment where you compile your redis, and run it in your redis environment. @56600535 thanks

Comment From: singleDog1123

@ShooterIT

SIZE_MAX = 4294967295 ULONG_MAX = 4294967295 ULLONG_MAX = 18446744073709551615

This is the result of the operation

Comment From: singleDog1123

@ShooterIT This error occurs only when running redis-cli.Redis-server can be started normally.

Comment From: ShooterIT

hi @56600535 could you paste your coredump log just like above?

Comment From: singleDog1123

@ShooterIT Redis-server starts logging root@liu-virtual-machine:/etc# redis-server 2907:C 21 May 2020 17:48:20.557 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 2907:C 21 May 2020 17:48:20.557 # Redis version=6.0.3, bits=32, commit=00000000, modified=0, pid=2907, just started 2907:C 21 May 2020 17:48:20.557 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 2907:M 21 May 2020 17:48:20.558 * Increased maximum number of open files to 10032 (it was originally set to 1024). 2907:M 21 May 2020 17:48:20.559 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now. _._ _.-``__ ''-._ _.-``. _. ''-._ Redis 6.0.3 (00000000/0) 32 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .- | , ) Running in standalone mode |-.-...- __...-.`-._|' .-'| Port: 6379 | -._. / .-' | PID: 2907 -._-. -./ _.-' _.-' |-.-._-..-' .-'.-'|
| -._-. .-'.-' | http://redis.io
-._-.
-.__.-'_.-' _.-' |-._-._-.
.-' .-'.-'|
| -._-. .-'.-' |
-._-.
-.__.-'_.-' _.-'-. -.__.-' _.-'-. _.-'
`-.__.-'

2907:M 21 May 2020 17:48:20.559 # Server initialized 2907:M 21 May 2020 17:48:20.559 * Loading RDB produced by version 6.0.3 2907:M 21 May 2020 17:48:20.559 * RDB age 6998 seconds 2907:M 21 May 2020 17:48:20.560 * RDB memory usage when created 0.59 Mb 2907:M 21 May 2020 17:48:20.560 * DB loaded from disk: 0.000 seconds 2907:M 21 May 2020 17:48:20.560 * Ready to accept connections`

Then run redis-cli

redis-cli 127.0.0.1:6379> ping Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected> Console change

`=== REDIS BUG REPORT START: Cut & paste starting from here === 2907:M 21 May 2020 17:51:58.226 # === ASSERTION FAILED === 2907:M 21 May 2020 17:51:58.226 # ==> networking.c:2749 'c->reply_bytes < SIZE_MAX-(102464)' is not true 2907:M 21 May 2020 17:51:58.226 # (forcing SIGSEGV to print the bug report.) 2907:M 21 May 2020 17:51:58.226 # Redis 6.0.3 crashed by signal: 11 2907:M 21 May 2020 17:51:58.226 # Crashed running the instruction at: 0x80ba7d1 2907:M 21 May 2020 17:51:58.226 # Accessing address: 0xffffffff 2907:M 21 May 2020 17:51:58.226 # Failed assertion: c->reply_bytes < SIZE_MAX-(102464) (networking.c:2749)

------ STACK TRACE ------ EIP: redis-server *:6379(_serverAssert+0x61)[0x80ba7d1]

Backtrace: redis-server :6379(logStackTrace+0x42)[0x80bd472] redis-server :6379(sigsegvHandler+0xb1)[0x80bdc01] [0xb7f36d0c] redis-server :6379(_serverAssert+0x61)[0x80ba7d1] redis-server :6379(asyncCloseClientOnOutputBufferLimitReached+0x30)[0x8085390] redis-server :6379[0x8085468] redis-server :6379(addReplyStatusLength+0x1f)[0x80866bf] redis-server :6379(addReplyStatusFormat+0x51)[0x8086771] redis-server :6379(addReplyCommandCategories+0x70)[0x810d530] redis-server :6379(commandCommand+0x1fc)[0x8077e3c] redis-server :6379(call+0xb0)[0x8075d60] redis-server :6379(processCommand+0x405)[0x8076615] redis-server :6379(processCommandAndResetClient+0x14)[0x8084554] redis-server :6379(processInputBuffer+0xe2)[0x8088972] redis-server :6379(readQueryFromClient+0x217)[0x8088fb7] redis-server :6379[0x810edb4] redis-server :6379(aeProcessEvents+0x29d)[0x806f0dd] redis-server :6379(aeMain+0x1b)[0x806f4cb] redis-server :6379(main+0x4b8)[0x806bb78] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0xb7cfe637] redis-server *:6379[0x806be21]

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

Server

redis_version:6.0.3 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:b86099954cf26d04 redis_mode:standalone os:Linux 4.15.0-101-generic i686 arch_bits:32 multiplexing_api:epoll atomicvar_api:atomic-builtin gcc_version:5.4.0 process_id:2907 run_id:002f7c5860a4115659fc9ea8c89843163127c2e4 tcp_port:6379 uptime_in_seconds:218 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:12996414 executable:/etc/redis-server config_file:

Clients

connected_clients:1 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:704640 used_memory_human:688.12K used_memory_rss:4333568 used_memory_rss_human:4.13M used_memory_peak:704640 used_memory_peak_human:688.12K used_memory_peak_perc:113.52% used_memory_overhead:620720 used_memory_startup:620720 used_memory_dataset:83920 used_memory_dataset_perc:100.00% allocator_allocated:750872 allocator_active:901120 allocator_resident:1052672 total_system_memory:2041495552 total_system_memory_human:1.90G used_memory_lua:25600 used_memory_lua_human:25.00K used_memory_scripts:0 used_memory_scripts_human:0B number_of_cached_scripts:0 maxmemory:3221225472 maxmemory_human:3.00G maxmemory_policy:noeviction allocator_frag_ratio:1.20 allocator_frag_bytes:150248 allocator_rss_ratio:1.17 allocator_rss_bytes:151552 rss_overhead_ratio:4.12 rss_overhead_bytes:3280896 mem_fragmentation_ratio:6.98 mem_fragmentation_bytes:3712848 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

Persistence

loading:0 rdb_changes_since_last_save:0 rdb_bgsave_in_progress:0 rdb_last_save_time:1590054500 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:1 total_commands_processed:0 instantaneous_ops_per_sec:0 total_net_input_bytes:17 total_net_output_bytes:0 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:2 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 tracking_total_prefixes:0 unexpected_error_replies:0

Replication

role:master connected_slaves:0 master_replid:4b63cedbcc9f1786ffb288279a4997242a64668f master_replid2:0000000000000000000000000000000000000000 master_repl_offset:0 master_repl_meaningful_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.195922 used_cpu_user:0.002970 used_cpu_sys_children:0.000000 used_cpu_user_children:0.000000

Modules

Commandstats

Cluster

cluster_enabled:0

Keyspace

------ CLIENT LIST OUTPUT ------ id=4 addr=127.0.0.1:36252 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=17 qbuf-free=32751 obl=33 oll=3 omem=20588 events=r cmd=command user=default

------ CURRENT CLIENT INFO ------ id=4 addr=127.0.0.1:36252 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=17 qbuf-free=32751 obl=33 oll=3 omem=20588 events=r cmd=command user=default argv[0]: 'COMMAND' 段错误 (核心已转储) `

Comment From: ShooterIT

Thanks everyone, I can reproduce it on 32bit system. I will try to fix it.

I suspect the value of SIZE_MAX is not ULONG_MAX in your environment @56600535 @accua Please help me do a test #7275 (comment) in your redis environment.

My doubt is wrong before, thanks @56600535

Comment From: ShooterIT

Fixed. You could do some tests using unstable branch.

Comment From: rdghickman

Confirmed this issue has gone away from the latest github branch. Thanks all.