=== REDIS BUG REPORT START: Cut & paste starting from here === 17:M 26 Feb 2023 04:30:43.058 # Redis 7.0.8 crashed by signal: 11, si_code: 2 17:M 26 Feb 2023 04:30:43.058 # Accessing address: 0x7ed58fc2c010 17:M 26 Feb 2023 04:30:43.059 # Crashed running the instruction at: 0x7f19b28ce7cc

------ STACK TRACE ------ EIP: /root/redis/redis-server *:6379(RM_OpenKey+0x6c)[0x7f19b28ce7cc]

Backtrace: /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f19b2442520] /root/redis/redis-server :6379(RM_OpenKey+0x6c)[0x7f19b28ce7cc] /root/redis/modules/rejson.so(+0x10a7f1)[0x7f19b18577f1] /root/redis/modules/rejson.so(+0xec78c)[0x7f19b183978c] /root/redis/modules/redisearch.so(Document_LoadSchemaFieldJson+0x4c)[0x7f19b14c1a3c] /root/redis/modules/redisearch.so(IndexSpec_UpdateDoc+0x1a0)[0x7f19b1506f70] /root/redis/modules/redisearch.so(+0x116857)[0x7f19b1507857] /root/redis/redis-server :6379(+0x1704ad)[0x7f19b28dc4ad] /root/redis/redis-server :6379(+0x77c26)[0x7f19b27e3c26] /root/redis/redis-server :6379(RM_Scan+0xb2)[0x7f19b28d8872] /root/redis/modules/redisearch.so(+0x114891)[0x7f19b1505891] /root/redis/modules/redisearch.so(+0xa258b)[0x7f19b149358b] /lib/x86_64-linux-gnu/libc.so.6(+0x94b43)[0x7f19b2494b43] /lib/x86_64-linux-gnu/libc.so.6(clone+0x44)[0x7f19b2525bb4]

------ REGISTERS ------ 17:M 26 Feb 2023 04:30:43.060 # RAX:0000000000000003 RBX:0000000000000001 RCX:000000000000000b RDX:0000000000000000 RDI:00007ee3659eeda8 RSI:00007ed580000000 RBP:00007ee364c00000 RSP:00007ee3659ee040 R8 :00007ee3659eeeb0 R9 :0000000000000080 R10:00007ee6b50d0400 R11:00007ee3659f0640 R12:00007ed58fc2c000 R13:00007ee364c14020 R14:00007f0a41d56050 R15:00007ee3659ee1b0 RIP:00007f19b28ce7cc EFL:0000000000010206 CSGSFS:00000053002b0033 17:M 26 Feb 2023 04:30:43.061 # (00007ee3659ee04f) -> 00007f19b14bf823 17:M 26 Feb 2023 04:30:43.061 # (00007ee3659ee04e) -> 00007ee3659ee1f0 17:M 26 Feb 2023 04:30:43.061 # (00007ee3659ee04d) -> 00007ee364c00000 17:M 26 Feb 2023 04:30:43.061 # (00007ee3659ee04c) -> 00007ee364c18000 17:M 26 Feb 2023 04:30:43.062 # (00007ee3659ee04b) -> 00007f19b14d6b35 17:M 26 Feb 2023 04:30:43.062 # (00007ee3659ee04a) -> 00007ee364c14020 17:M 26 Feb 2023 04:30:43.062 # (00007ee3659ee049) -> 00007ee364c00000 17:M 26 Feb 2023 04:30:43.062 # (00007ee3659ee048) -> 00007ee3659ee1f0 17:M 26 Feb 2023 04:30:43.063 # (00007ee3659ee047) -> 00007f19b183978c 17:M 26 Feb 2023 04:30:43.063 # (00007ee3659ee046) -> 0000000000000012 17:M 26 Feb 2023 04:30:43.063 # (00007ee3659ee045) -> 00007f19b18577f1 17:M 26 Feb 2023 04:30:43.063 # (00007ee3659ee044) -> 00007ee6b4aa4000 17:M 26 Feb 2023 04:30:43.064 # (00007ee3659ee043) -> 00007f19b174b860 17:M 26 Feb 2023 04:30:43.064 # (00007ee3659ee042) -> 00007ee3659ee1f0 17:M 26 Feb 2023 04:30:43.064 # (00007ee3659ee041) -> 00007f19b1e30660 17:M 26 Feb 2023 04:30:43.064 # (00007ee3659ee040) -> 00007ee364c00000

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

Server

redis_version:7.0.8

redis_git_sha1:5b61b0dc

redis_git_dirty:0

redis_build_id:b10ebe64bd75dbb0

redis_mode:standalone

os:Linux 4.4.0-17763-Microsoft x86_64

arch_bits:64

monotonic_clock:POSIX clock_gettime

multiplexing_api:epoll

atomicvar_api:c11-builtin

gcc_version:11.3.0

process_id:17

process_supervised:no

run_id:055b6f9e9a0e2dcbfce5a1f1fdd528cacafc406c

tcp_port:6379

server_time_usec:1677357043057542

uptime_in_seconds:8436

uptime_in_days:0

hz:10

configured_hz:10

lru_clock:16412659

executable:/root/redis/redis-server

config_file:/root/redis/redis.conf

io_threads_active:0

listener0:name=tcp,bind=,bind=-::,port=6379

Clients

connected_clients:3

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

total_blocking_keys:0

total_blocking_keys_on_nokey:0

Memory

used_memory:273855809976

used_memory_human:255.05G

used_memory_rss:275875442688

used_memory_rss_human:256.93G

used_memory_peak:273855809976

used_memory_peak_human:255.05G

used_memory_peak_perc:100.00%

used_memory_overhead:10165772384

used_memory_startup:1026616

used_memory_dataset:263690037592

used_memory_dataset_perc:96.29%

allocator_allocated:273855852136

allocator_active:274023358464

allocator_resident:277273067520

total_system_memory:549177880576

total_system_memory_human:511.46G

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:493921239040

maxmemory_human:460.00G

maxmemory_policy:noeviction

allocator_frag_ratio:1.00

allocator_frag_bytes:167506328

allocator_rss_ratio:1.01

allocator_rss_bytes:3249709056

rss_overhead_ratio:0.99

rss_overhead_bytes:-1397624832

mem_fragmentation_ratio:1.01

mem_fragmentation_bytes:2020415528

mem_not_counted_for_evict:0

mem_replication_backlog:0

mem_total_replication_buffers:0

mem_clients_slaves:0

mem_clients_normal:26896

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:200430876

rdb_changes_since_last_save:201236296

rdb_bgsave_in_progress:0

rdb_last_save_time:1677348607

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:1

module_fork_last_cow_size:0

Stats

total_connections_received:1724

total_commands_processed:402540292

instantaneous_ops_per_sec:0

total_net_input_bytes:54443876279

total_net_output_bytes:2056684895

total_net_repl_input_bytes:0

total_net_repl_output_bytes:0

instantaneous_input_kbps:0.01

instantaneous_output_kbps:5.01

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:79

evicted_keys:0

evicted_clients:0

total_eviction_exceeded_time:0

current_eviction_exceeded_time:0

keyspace_hits:56583501

keyspace_misses:9

pubsub_channels:0

pubsub_patterns:0

pubsubshard_channels:0

latest_fork_usec:12938030

total_forks:6

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:1716

dump_payload_sanitizations:0

total_reads_processed:7018328

total_writes_processed:7016858

io_threaded_reads_processed:0

io_threaded_writes_processed:0

reply_buffer_shrinks:2683

reply_buffer_expands:2715

acl_access_denied_auth:1679

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:7eb16bba79b9b1c190b515d81277e50e91716473

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:847.062500

used_cpu_user:4378.312500

used_cpu_sys_children:45.218750

used_cpu_user_children:994.437500

used_cpu_sys_main_thread:239.859375

used_cpu_user_main_thread:2481.859375

Modules

module:name=search,ver=999999,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]

module:name=ReJSON,ver=999999,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]

Commandstats

cmdstat_FT.CREATE:calls=1,usec=555,usec_per_call=555.00,rejected_calls=0,failed_calls=0

cmdstat_FT.SEARCH:calls=74,usec=88101,usec_per_call=1190.55,rejected_calls=0,failed_calls=7

cmdstat_client|setname:calls=18,usec=33,usec_per_call=1.83,rejected_calls=0,failed_calls=0

cmdstat_command:calls=0,usec=0,usec_per_call=0.00,rejected_calls=3,failed_calls=0

cmdstat_command|docs:calls=0,usec=0,usec_per_call=0.00,rejected_calls=3,failed_calls=0

cmdstat_echo:calls=18,usec=20,usec_per_call=1.11,rejected_calls=0,failed_calls=0

cmdstat_info:calls=2868,usec=528262,usec_per_call=184.19,rejected_calls=0,failed_calls=0

cmdstat_ping:calls=142,usec=205,usec_per_call=1.44,rejected_calls=0,failed_calls=0

cmdstat_cluster|nodes:calls=9,usec=15,usec_per_call=1.67,rejected_calls=0,failed_calls=9

cmdstat_json.set:calls=201218043,usec=1923754435,usec_per_call=9.56,rejected_calls=0,failed_calls=0

cmdstat_config|get:calls=18,usec=71,usec_per_call=3.94,rejected_calls=0,failed_calls=0

cmdstat_subscribe:calls=9,usec=37,usec_per_call=4.11,rejected_calls=0,failed_calls=0

cmdstat_get:calls=9,usec=21,usec_per_call=2.33,rejected_calls=0,failed_calls=0

cmdstat_auth:calls=1721,usec=39673,usec_per_call=23.05,rejected_calls=0,failed_calls=1679

cmdstat_select:calls=201218115,usec=50456482,usec_per_call=0.25,rejected_calls=0,failed_calls=1

cmdstat_scan:calls=124,usec=1035782,usec_per_call=8353.08,rejected_calls=0,failed_calls=0

cmdstat_unlink:calls=99123,usec=217938,usec_per_call=2.20,rejected_calls=0,failed_calls=0

Errorstats

errorstat_Bad:count=3

errorstat_ERR:count=24

errorstat_Index_:count=2

errorstat_NOAUTH:count=6

errorstat_RETURN:count=2

errorstat_WRONGPASS:count=1679

Latencystats

latency_percentiles_usec_FT.CREATE:p50=557.055,p99=557.055,p99.9=557.055

latency_percentiles_usec_FT.SEARCH:p50=1425.407,p99=2605.055,p99.9=2605.055

latency_percentiles_usec_client|setname:p50=2.007,p99=9.023,p99.9=9.023

latency_percentiles_usec_echo:p50=1.003,p99=3.007,p99.9=3.007

latency_percentiles_usec_info:p50=181.247,p99=350.207,p99.9=524.287

latency_percentiles_usec_ping:p50=1.003,p99=5.023,p99.9=6.015

latency_percentiles_usec_cluster|nodes:p50=1.003,p99=7.007,p99.9=7.007

latency_percentiles_usec_json.set:p50=8.031,p99=20.095,p99.9=37.119

latency_percentiles_usec_config|get:p50=4.015,p99=10.047,p99.9=10.047

latency_percentiles_usec_subscribe:p50=4.015,p99=7.007,p99.9=7.007

latency_percentiles_usec_get:p50=2.007,p99=9.023,p99.9=9.023

latency_percentiles_usec_auth:p50=21.119,p99=46.079,p99.9=66.047

latency_percentiles_usec_select:p50=0.001,p99=1.003,p99.9=1.003

latency_percentiles_usec_scan:p50=8224.767,p99=12648.447,p99.9=12779.519

latency_percentiles_usec_unlink:p50=1.003,p99=11.007,p99.9=23.039

Cluster

cluster_enabled:0

Keyspace

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

------ CLIENT LIST OUTPUT ------ id=694 addr=172.16.3.122:65113 laddr=192.168.2.164:6379 fd=9 name= age=5069 idle=4 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 multi-mem=0 rbs=1024 rbp=0 obl=0 oll=0 omem=0 tot-mem=1800 events=r cmd=info user=default redir=-1 resp=2 id=1164 addr=127.0.0.1:59913 laddr=127.0.0.1:6379 fd=14 name= age=2812 idle=131 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 multi-mem=0 rbs=1024 rbp=0 obl=0 oll=0 omem=0 tot-mem=1800 events=r cmd=FT.SEARCH user=default redir=-1 resp=2 id=8 addr=192.168.2.164:56461 laddr=192.168.2.164:6379 fd=8 name= age=8436 idle=1 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=0 qbuf-free=20474 argv-mem=0 multi-mem=0 rbs=2048 rbp=1024 obl=0 oll=0 omem=0 tot-mem=23296 events=r cmd=info user=default redir=-1 resp=2

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

search_version

search_version:99.99.99

search_redis_version:7.0.8 - oss

search_index

search_number_of_indexes:1

search_fields_statistics

search_fields_text:Text=12

search_fields_numeric:Numeric=6,Sortable=1

search_dialect_statistics

search_dialect_1:1

search_dialect_2:0

search_dialect_3:0

search_runtime_configurations

search_concurrent_mode:OFF

search_enableGC:ON

search_minimal_term_prefix:2

search_maximal_prefix_expansions:200

search_query_timeout_ms:180000

search_timeout_policy:return

search_cursor_read_size:1000

search_cursor_max_idle_time:300000

search_max_doc_table_size:1000000

search_max_search_results:1000000

search_max_aggregate_results:-1

search_search_pool_size:20

search_index_pool_size:8

search_gc_scan_size:100

search_min_phonetic_term_length:3

ReJSON_trace

ReJSON_trace: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:

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

------ FAST MEMORY TEST ------ 17:M 26 Feb 2023 04:30:43.070 # main thread terminated 17:M 26 Feb 2023 04:30:43.071 # Bio thread for job type #0 terminated 17:M 26 Feb 2023 04:30:43.071 # Bio thread for job type #1 terminated 17:M 26 Feb 2023 04:30:43.071 # Bio thread for job type #2 terminated *** Preparing to test memory region 7ed385800000 (234881024 bytes) *** Preparing to test memory region 7ed393880000 (66521137152 bytes) *** Preparing to test memory region 7ee310870000 (207093760 bytes) *** Preparing to test memory region 7ee31cdf1000 (8388608 bytes) *** Preparing to test memory region 7ee31d600000 (929038336 bytes) *** Preparing to test memory region 7ee354e00000 (52563968 bytes) *** Preparing to test memory region 7ee35c000000 (4194304 bytes) *** Preparing to test memory region 7ee35c580000 (61476864 bytes) *** Preparing to test memory region 7ee364170000 (2621440 bytes) *** Preparing to test memory region 7ee3643f1000 (8388608 bytes) *** Preparing to test memory region 7ee364c00000 (4194304 bytes) *** Preparing to test memory region 7ee3651f1000 (8388608 bytes) *** Preparing to test memory region 7ee365a00000 (232528019456 bytes) *** Preparing to test memory region 7f19896f0000 (607125504 bytes) *** Preparing to test memory region 7f19ad9f1000 (8388608 bytes) *** Preparing to test memory region 7f19ae200000 (6291456 bytes) *** Preparing to test memory region 7f19ae971000 (8388608 bytes) *** Preparing to test memory region 7f19af181000 (8388608 bytes) *** Preparing to test memory region 7f19af991000 (8388608 bytes) *** Preparing to test memory region 7f19b01a1000 (8388608 bytes) *** Preparing to test memory region 7f19b09b1000 (8388608 bytes) *** Preparing to test memory region 7f19b13e4000 (12288 bytes) *** Preparing to test memory region 7f19b13e7000 (12288 bytes) *** Preparing to test memory region 7f19b1746000 (16384 bytes) *** Preparing to test memory region 7f19b174a000 (12288 bytes) *** Preparing to test memory region 7f19b19ff000 (4096 bytes) *** Preparing to test memory region 7f19b1a00000 (8388608 bytes) *** Preparing to test memory region 7f19b23c4000 (4096 bytes) *** Preparing to test memory region 7f19b23ef000 (4096 bytes) *** Preparing to test memory region 7f19b23f0000 (16384 bytes) *** Preparing to test memory region 7f19b2619000 (8192 bytes) *** Preparing to test memory region 7f19b261b000 (53248 bytes) *** Preparing to test memory region 7f19b2716000 (4096 bytes) *** Preparing to test memory region 7f19b271f000 (4096 bytes) *** Preparing to test memory region 7f19b2720000 (8192 bytes) *** Preparing to test memory region 7f19b276a000 (8192 bytes) *** Preparing to test memory region 7f19b2a76000 (380928 bytes) *** Preparing to test memory region 7f19b2ad3000 (2306048 bytes) *** Preparing to test memory region 7ffff1351000 (323584 bytes)

Comment From: oranagra

Please report in https://github.com/RedisJSON/RedisJSON