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.

2023-08-29 11:15:39 === REDIS BUG REPORT START: Cut & paste starting from here ===
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # Redis 6.2.6 crashed by signal: 11, si_code: 1
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # Accessing address: (nil)
2023-08-29 11:15:39 
2023-08-29 11:15:39 ------ STACK TRACE ------
2023-08-29 11:15:39 
2023-08-29 11:15:39 Backtrace:
2023-08-29 11:15:39 /lib/x86_64-linux-gnu/libpthread.so.0(+0x14140)[0x7f347c06a140]
2023-08-29 11:15:39 
2023-08-29 11:15:39 ------ REGISTERS ------
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # 
2023-08-29 11:15:39 RAX:00007f3472e1c5c0 RBX:00007f3472da8300
2023-08-29 11:15:39 RCX:0000000000000008 RDX:00007ffca98763d8
2023-08-29 11:15:39 RDI:00007f3472e1c5c0 RSI:0000000000002357
2023-08-29 11:15:39 RBP:0000000000000000 RSP:00007ffca98763c8
2023-08-29 11:15:39 R8 :00007f347ba04478 R9 :00007f347ba021e8
2023-08-29 11:15:39 R10:00007f3473cd2fc1 R11:0000000000000006
2023-08-29 11:15:39 R12:0000000000000000 R13:00007ffca9876438
2023-08-29 11:15:39 R14:00007f3472682320 R15:0000000000000000
2023-08-29 11:15:39 RIP:0000000000000000 EFL:0000000000010297
2023-08-29 11:15:39 CSGSFS:002b000000000033
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d7) -> 00007f347028cfe8
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d6) -> 00007f346fe02010
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d5) -> 0000000000000014
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d4) -> 00007f347028cfe8
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d3) -> 00007f3472e1c5c0
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d2) -> 00007f347b30d95a
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d1) -> 00007ffca9876760
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763d0) -> 00007f347b50923c
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763cf) -> 00007ffca9876438
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763ce) -> 00007f347028cd40
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763cd) -> 00007f347028cca0
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763cc) -> 00007f3472da8300
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763cb) -> 0000000000000c00
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763ca) -> 00007f3472682320
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763c9) -> 00007f346fe022a0
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.157 # (00007ffca98763c8) -> 00007f347b2eba91
2023-08-29 11:15:39 
2023-08-29 11:15:39 ------ INFO OUTPUT ------
2023-08-29 11:15:39 # Server
2023-08-29 11:15:39 redis_version:6.2.6
2023-08-29 11:15:39 redis_git_sha1:00000000
2023-08-29 11:15:39 redis_git_dirty:0
2023-08-29 11:15:39 redis_build_id:b402f2b932f9439b
2023-08-29 11:15:39 redis_mode:standalone
2023-08-29 11:15:39 os:Linux 5.10.102.1-microsoft-standard-WSL2 x86_64
2023-08-29 11:15:39 arch_bits:64
2023-08-29 11:15:39 multiplexing_api:epoll
2023-08-29 11:15:39 atomicvar_api:atomic-builtin
2023-08-29 11:15:39 gcc_version:10.2.1
2023-08-29 11:15:39 process_id:1
2023-08-29 11:15:39 process_supervised:no
2023-08-29 11:15:39 run_id:d51d4fd886b15b7f1dd8dcbcc3e41da320dc24ba
2023-08-29 11:15:39 tcp_port:6379
2023-08-29 11:15:39 server_time_usec:1693322139155159
2023-08-29 11:15:39 uptime_in_seconds:1811
2023-08-29 11:15:39 uptime_in_days:0
2023-08-29 11:15:39 hz:10
2023-08-29 11:15:39 configured_hz:10
2023-08-29 11:15:39 lru_clock:15600539
2023-08-29 11:15:39 executable:/data/redis-server
2023-08-29 11:15:39 config_file:
2023-08-29 11:15:39 io_threads_active:0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Clients
2023-08-29 11:15:39 connected_clients:1
2023-08-29 11:15:39 cluster_connections:0
2023-08-29 11:15:39 maxclients:10000
2023-08-29 11:15:39 client_recent_max_input_buffer:16
2023-08-29 11:15:39 client_recent_max_output_buffer:0
2023-08-29 11:15:39 blocked_clients:0
2023-08-29 11:15:39 tracking_clients:0
2023-08-29 11:15:39 clients_in_timeout_table:0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Memory
2023-08-29 11:15:39 used_memory:109988976
2023-08-29 11:15:39 used_memory_human:104.89M
2023-08-29 11:15:39 used_memory_rss:119209984
2023-08-29 11:15:39 used_memory_rss_human:113.69M
2023-08-29 11:15:39 used_memory_peak:110011864
2023-08-29 11:15:39 used_memory_peak_human:104.92M
2023-08-29 11:15:39 used_memory_peak_perc:99.98%
2023-08-29 11:15:39 used_memory_overhead:1455368
2023-08-29 11:15:39 used_memory_startup:904728
2023-08-29 11:15:39 used_memory_dataset:108533608
2023-08-29 11:15:39 used_memory_dataset_perc:99.50%
2023-08-29 11:15:39 allocator_allocated:110278288
2023-08-29 11:15:39 allocator_active:110673920
2023-08-29 11:15:39 allocator_resident:114573312
2023-08-29 11:15:39 total_system_memory:26638192640
2023-08-29 11:15:39 total_system_memory_human:24.81G
2023-08-29 11:15:39 used_memory_lua:37888
2023-08-29 11:15:39 used_memory_lua_human:37.00K
2023-08-29 11:15:39 used_memory_scripts:0
2023-08-29 11:15:39 used_memory_scripts_human:0B
2023-08-29 11:15:39 number_of_cached_scripts:0
2023-08-29 11:15:39 maxmemory:0
2023-08-29 11:15:39 maxmemory_human:0B
2023-08-29 11:15:39 maxmemory_policy:noeviction
2023-08-29 11:15:39 allocator_frag_ratio:1.00
2023-08-29 11:15:39 allocator_frag_bytes:395632
2023-08-29 11:15:39 allocator_rss_ratio:1.04
2023-08-29 11:15:39 allocator_rss_bytes:3899392
2023-08-29 11:15:39 rss_overhead_ratio:1.04
2023-08-29 11:15:39 rss_overhead_bytes:4636672
2023-08-29 11:15:39 mem_fragmentation_ratio:1.08
2023-08-29 11:15:39 mem_fragmentation_bytes:9280456
2023-08-29 11:15:39 mem_not_counted_for_evict:0
2023-08-29 11:15:39 mem_replication_backlog:0
2023-08-29 11:15:39 mem_clients_slaves:0
2023-08-29 11:15:39 mem_clients_normal:20496
2023-08-29 11:15:39 mem_aof_buffer:0
2023-08-29 11:15:39 mem_allocator:jemalloc-5.1.0
2023-08-29 11:15:39 active_defrag_running:0
2023-08-29 11:15:39 lazyfree_pending_objects:0
2023-08-29 11:15:39 lazyfreed_objects:0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Persistence
2023-08-29 11:15:39 loading:0
2023-08-29 11:15:39 current_cow_size:0
2023-08-29 11:15:39 current_cow_size_age:0
2023-08-29 11:15:39 current_fork_perc:0.00
2023-08-29 11:15:39 current_save_keys_processed:0
2023-08-29 11:15:39 current_save_keys_total:0
2023-08-29 11:15:39 rdb_changes_since_last_save:0
2023-08-29 11:15:39 rdb_bgsave_in_progress:0
2023-08-29 11:15:39 rdb_last_save_time:1693320328
2023-08-29 11:15:39 rdb_last_bgsave_status:ok
2023-08-29 11:15:39 rdb_last_bgsave_time_sec:-1
2023-08-29 11:15:39 rdb_current_bgsave_time_sec:-1
2023-08-29 11:15:39 rdb_last_cow_size:0
2023-08-29 11:15:39 aof_enabled:0
2023-08-29 11:15:39 aof_rewrite_in_progress:0
2023-08-29 11:15:39 aof_rewrite_scheduled:0
2023-08-29 11:15:39 aof_last_rewrite_time_sec:-1
2023-08-29 11:15:39 aof_current_rewrite_time_sec:-1
2023-08-29 11:15:39 aof_last_bgrewrite_status:ok
2023-08-29 11:15:39 aof_last_write_status:ok
2023-08-29 11:15:39 aof_last_cow_size:0
2023-08-29 11:15:39 module_fork_in_progress:0
2023-08-29 11:15:39 module_fork_last_cow_size:0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Stats
2023-08-29 11:15:39 total_connections_received:9
2023-08-29 11:15:39 total_commands_processed:36
2023-08-29 11:15:39 instantaneous_ops_per_sec:1
2023-08-29 11:15:39 total_net_input_bytes:11979
2023-08-29 11:15:39 total_net_output_bytes:171453
2023-08-29 11:15:39 instantaneous_input_kbps:0.07
2023-08-29 11:15:39 instantaneous_output_kbps:0.11
2023-08-29 11:15:39 rejected_connections:0
2023-08-29 11:15:39 sync_full:0
2023-08-29 11:15:39 sync_partial_ok:0
2023-08-29 11:15:39 sync_partial_err:0
2023-08-29 11:15:39 expired_keys:0
2023-08-29 11:15:39 expired_stale_perc:0.00
2023-08-29 11:15:39 expired_time_cap_reached_count:0
2023-08-29 11:15:39 expire_cycle_cpu_milliseconds:34
2023-08-29 11:15:39 evicted_keys:0
2023-08-29 11:15:39 keyspace_hits:20032
2023-08-29 11:15:39 keyspace_misses:0
2023-08-29 11:15:39 pubsub_channels:0
2023-08-29 11:15:39 pubsub_patterns:0
2023-08-29 11:15:39 latest_fork_usec:0
2023-08-29 11:15:39 total_forks:0
2023-08-29 11:15:39 migrate_cached_sockets:0
2023-08-29 11:15:39 slave_expires_tracked_keys:0
2023-08-29 11:15:39 active_defrag_hits:0
2023-08-29 11:15:39 active_defrag_misses:0
2023-08-29 11:15:39 active_defrag_key_hits:0
2023-08-29 11:15:39 active_defrag_key_misses:0
2023-08-29 11:15:39 tracking_total_keys:0
2023-08-29 11:15:39 tracking_total_items:0
2023-08-29 11:15:39 tracking_total_prefixes:0
2023-08-29 11:15:39 unexpected_error_replies:0
2023-08-29 11:15:39 total_error_replies:18
2023-08-29 11:15:39 dump_payload_sanitizations:0
2023-08-29 11:15:39 total_reads_processed:44
2023-08-29 11:15:39 total_writes_processed:35
2023-08-29 11:15:39 io_threaded_reads_processed:0
2023-08-29 11:15:39 io_threaded_writes_processed:0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Replication
2023-08-29 11:15:39 role:master
2023-08-29 11:15:39 connected_slaves:0
2023-08-29 11:15:39 master_failover_state:no-failover
2023-08-29 11:15:39 master_replid:b3bdf3d07bea57b95ce0e8a211570a8ff72e462d
2023-08-29 11:15:39 master_replid2:0000000000000000000000000000000000000000
2023-08-29 11:15:39 master_repl_offset:0
2023-08-29 11:15:39 second_repl_offset:-1
2023-08-29 11:15:39 repl_backlog_active:0
2023-08-29 11:15:39 repl_backlog_size:1048576
2023-08-29 11:15:39 repl_backlog_first_byte_offset:0
2023-08-29 11:15:39 repl_backlog_histlen:0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # CPU
2023-08-29 11:15:39 used_cpu_sys:0.429450
2023-08-29 11:15:39 used_cpu_user:3.943134
2023-08-29 11:15:39 used_cpu_sys_children:0.000000
2023-08-29 11:15:39 used_cpu_user_children:0.009021
2023-08-29 11:15:39 used_cpu_sys_main_thread:0.427535
2023-08-29 11:15:39 used_cpu_user_main_thread:3.925556
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Modules
2023-08-29 11:15:39 module:name=search,ver=20403,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors]
2023-08-29 11:15:39 module:name=ReJSON,ver=999999,api=1,filters=0,usedby=[search],using=[],options=[handle-io-errors]
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Commandstats
2023-08-29 11:15:39 cmdstat_client:calls=18,usec=104,usec_per_call=5.78,rejected_calls=0,failed_calls=18
2023-08-29 11:15:39 cmdstat_ping:calls=9,usec=3,usec_per_call=0.33,rejected_calls=0,failed_calls=0
2023-08-29 11:15:39 cmdstat_FT.SEARCH:calls=8,usec=7045,usec_per_call=880.62,rejected_calls=0,failed_calls=0
2023-08-29 11:15:39 cmdstat_info:calls=1,usec=32,usec_per_call=32.00,rejected_calls=0,failed_calls=0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Errorstats
2023-08-29 11:15:39 errorstat_ERR:count=18
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Cluster
2023-08-29 11:15:39 cluster_enabled:0
2023-08-29 11:15:39 
2023-08-29 11:15:39 # Keyspace
2023-08-29 11:15:39 db0:keys=9976,expires=0,avg_ttl=0
2023-08-29 11:15:39 
2023-08-29 11:15:39 ------ CLIENT LIST OUTPUT ------
2023-08-29 11:15:39 id=17 addr=172.19.0.1:38976 laddr=172.19.0.2:6379 fd=8 name= age=1 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=3381 qbuf-free=37573 argv-mem=3238 obl=0 oll=0 omem=0 tot-mem=64870 events=r cmd=FT.SEARCH user=default redir=-1
2023-08-29 11:15:39 
2023-08-29 11:15:39 ------ CURRENT CLIENT INFO ------
2023-08-29 11:15:39 id=17 addr=172.19.0.1:38976 laddr=172.19.0.2:6379 fd=8 name= age=1 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=3381 qbuf-free=37573 argv-mem=3238 obl=0 oll=0 omem=0 tot-mem=64870 events=r cmd=FT.SEARCH user=default redir=-1
2023-08-29 11:15:39 argv[0]: 'FT.SEARCH'
2023-08-29 11:15:39 argv[1]: 'idx'
2023-08-29 11:15:39 argv[2]: '*=>[KNN 10 @item_keyword_vector $vec_param AS vector_score]'
2023-08-29 11:15:39 argv[3]: 'FILTER'
2023-08-29 11:15:39 argv[4]: 'isactive'
2023-08-29 11:15:39 argv[5]: '0'
2023-08-29 11:15:39 argv[6]: '0'
2023-08-29 11:15:39 argv[7]: 'RETURN'
2023-08-29 11:15:39 argv[8]: '4'
2023-08-29 11:15:39 argv[9]: 'vector_score'
2023-08-29 11:15:39 argv[10]: 'productid'
2023-08-29 11:15:39 argv[11]: 'productname'
2023-08-29 11:15:39 argv[12]: 'isactive'
2023-08-29 11:15:39 argv[13]: 'DIALECT'
2023-08-29 11:15:39 argv[14]: '2'
2023-08-29 11:15:39 argv[15]: 'LIMIT'
2023-08-29 11:15:39 argv[16]: '0'
2023-08-29 11:15:39 argv[17]: '10'
2023-08-29 11:15:39 argv[18]: 'params'
2023-08-29 11:15:39 argv[19]: '2'
2023-08-29 11:15:39 argv[20]: 'vec_param'
2023-08-29 11:15:39 argv[21]: '���>m�>�'
2023-08-29 11:15:39 
2023-08-29 11:15:39 ------ MODULES INFO OUTPUT ------
2023-08-29 11:15:39 # ReJSON_trace
2023-08-29 11:15:39 ReJSON_trace:   0: redis_module::base_info_func
2023-08-29 11:15:39              at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/redis-module-1.0.0/src/lib.rs:78:33
2023-08-29 11:15:39    1: rejson::__info_func
2023-08-29 11:15:39              at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/redis-module-1.0.0/src/macros.rs:120:13
2023-08-29 11:15:39    2: modulesCollectInfo
2023-08-29 11:15:39              at /usr/src/redis/src/module.c:7078:9
2023-08-29 11:15:39    3: logModulesInfo
2023-08-29 11:15:39              at /usr/src/redis/src/debug.c:1598:22
2023-08-29 11:15:39    4: printCrashReport
2023-08-29 11:15:39              at /usr/src/redis/src/debug.c:1849:5
2023-08-29 11:15:39       sigsegvHandler
2023-08-29 11:15:39              at /usr/src/redis/src/debug.c:1831:5
2023-08-29 11:15:39    5: <unknown>
2023-08-29 11:15:39 
2023-08-29 11:15:39 
2023-08-29 11:15:39 ------ FAST MEMORY TEST ------
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.252 # Bio thread for job type #0 terminated
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.252 # Bio thread for job type #1 terminated
2023-08-29 11:15:39 1:M 29 Aug 2023 15:15:39.252 # Bio thread for job type #2 terminated
2023-08-29 11:15:39 *** Preparing to test memory region 55aee0e3d000 (2277376 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 55aee1cc0000 (409600 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f3468000000 (135168 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f346f600000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f346fe00000 (4194304 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347022c000 (132120576 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347802d000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347882e000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347902f000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f3479830000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347a1c3000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347a9c4000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347b5f9000 (28672 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347b600000 (8388608 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347be8b000 (24576 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347c052000 (16384 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347c074000 (16384 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347c368000 (16384 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347c549000 (8192 bytes)
2023-08-29 11:15:39 *** Preparing to test memory region 7f347c579000 (4096 bytes)
2023-08-29 11:15:39 .O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O
2023-08-29 11:15:39 Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.
2023-08-29 11:15:39 
2023-08-29 11:15:39 === REDIS BUG REPORT END. Make sure to include from START to END. ===
2023-08-29 11:15:39 
2023-08-29 11:15:39        Please report the crash by opening an issue on github:
2023-08-29 11:15:39 
2023-08-29 11:15:39            http://github.com/redis/redis/issues
2023-08-29 11:15:39 
2023-08-29 11:15:39   Suspect RAM error? Use redis-server --test-memory to verify it.

Additional information

  1. Windows 10
  2. Using: Docker Desktop 4.22.0 (117440)
  3. Problem: Trying to add a filter to a KNN search.
    ITEM_KEYWORD_EMBEDDING_FIELD = 'item_keyword_vector'
    q=Query(f'*=>[KNN {topK} @{ITEM_KEYWORD_EMBEDDING_FIELD} $vec_param AS vector_score]') \
        .add_filter(NumericFilter("isactive", 0, 0)) \
        .paging(0,topK) \
        .return_fields('vector_score', 'productid', 'productname', 'isactive') \
        .dialect(2)
  1. The search worked only once and for all other attempts, the server crashed and needed to be restarted.
  2. Without the add_filter(), work fine.
  3. isactive: Was a boolean but converted to a numeric in the database.
  4. Instead of * and add_filter(), tried:
(@isactive:0)=>[KNN...    No crash / no result
(@isactive:{{0}})=>[KNN...    No crash / no result

Comment From: madolson

You probably want to open the issue here: https://github.com/RediSearch/RediSearch