Skip to content

[BUG] RediSearch module load #6010

Open
@BilgeexuuSU

Description

@BilgeexuuSU

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. ...
  2. ....

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. ubuntu 24.04]
  • CPU model
  • Version/branch [e.g. 1.2.2]

Additional context
Add any other context about the problem here.

Install redis:

root@sensor-dock:/usr/src/redis-7.4.3# ./src/redis-server redis.conf
61971:C 24 Apr 2025 16:17:24.206 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
61971:C 24 Apr 2025 16:17:24.206 * Redis version=7.4.3, bits=64, commit=00000000, modified=1, pid=61971, just started
61971:C 24 Apr 2025 16:17:24.206 * Configuration loaded
61971:M 24 Apr 2025 16:17:24.208 * Increased maximum number of open files to 10032 (it was originally set to 1024).
61971:M 24 Apr 2025 16:17:24.208 * monotonic clock: POSIX clock_gettime
.
.-__ ''-._ _.- . . ''-._ Redis Community Edition
.- .-```. ```\/ _.,_ ''-._ 7.4.3 (00000000/1) 64 bit ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.-.|'_.-'| Port: 6379 | -. ._ / _.-' | PID: 61971 -._ -._ -./ .-' .-'
|-._-.
-.__.-' _.-'_.-'| | -.
-._ _.-'_.-' | https://redis.io -._ -._-..-'.-' .-'
|-._-.
-.__.-' _.-'_.-'| | -.
-._ _.-'_.-' | -._ -._-.
.-'_.-' _.-'
-._ -..-' _.-'
-._ _.-' -.
.-'

61971:M 24 Apr 2025 16:17:24.216 * Created new data type 'ReJSON-RL'
61971:M 24 Apr 2025 16:17:24.217 # Skip register defrag callbacks as defrag callbacks is not supported on the current Redis server.
61971:M 24 Apr 2025 16:17:24.217 * version: 20808 git sha: unknown branch: unknown
61971:M 24 Apr 2025 16:17:24.217 * Exported RedisJSON_V1 API
61971:M 24 Apr 2025 16:17:24.217 * Exported RedisJSON_V2 API
61971:M 24 Apr 2025 16:17:24.217 * Exported RedisJSON_V3 API
61971:M 24 Apr 2025 16:17:24.217 * Exported RedisJSON_V4 API
61971:M 24 Apr 2025 16:17:24.217 * Exported RedisJSON_V5 API
61971:M 24 Apr 2025 16:17:24.217 * Enabled diskless replication
61971:M 24 Apr 2025 16:17:24.217 * Initialized shared string cache, thread safe: false.
61971:M 24 Apr 2025 16:17:24.217 * Module 'ReJSON' loaded from /usr/src/redis-7.4.3/modules/librejson.so
61971:M 24 Apr 2025 16:17:24.218 * Server initialized
61971:M 24 Apr 2025 16:17:24.219 * Loading RDB produced by version 7.4.3
61971:M 24 Apr 2025 16:17:24.219 * RDB age 761 seconds
61971:M 24 Apr 2025 16:17:24.219 * RDB memory usage when created 1.04 Mb
61971:M 24 Apr 2025 16:17:24.219 * Done loading RDB, keys loaded: 0, keys expired: 0.
61971:M 24 Apr 2025 16:17:24.219 * DB loaded from disk: 0.000 seconds
61971:M 24 Apr 2025 16:17:24.219 * Ready to accept connections tcp

root@sensor-dock:/usr/src/redis-7.4.3# ./src/redis-server --check-system
[slow-clocksource]...OK
[xen-clocksource]...OK
[overcommit]...OK
[THP]...OK
root@sensor-dock:/usr/src/redis-7.4.3#

root@sensor-dock:/usr/src/redis-7.4.3# nano redis.conf

loadmodule /usr/src/redis-7.4.3/modules/librejson.so
loadmodule /usr/src/redis-7.4.3/modules/redisearch.so

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

ReJSON_trace

ReJSON_backtrace: 0: redis_module::add_trace_info
at /root/.cargo/git/checkouts/redismodule-rs-db21e74d646195ef/bce557d/src/lib.rs:71:29
redis_module::basic_info_command_handler
at /root/.cargo/git/checkouts/redismodule-rs-db21e74d646195ef/bce557d/src/lib.rs:95:25
1: rejson::__info_func
at /root/.cargo/git/checkouts/redismodule-rs-db21e74d646195ef/bce557d/src/macros.rs:183:13
2: modulesCollectInfo
at /usr/src/redis-7.4.3/src/module.c:10410:9
3: logModulesInfo
at /usr/src/redis-7.4.3/src/debug.c:2048:22
printCrashReport
at /usr/src/redis-7.4.3/src/debug.c:2401:5
4: sigsegvHandler
at /usr/src/redis-7.4.3/src/debug.c:2328:32
5:
6:
7: RediSearch_InitModuleConfig
8: RedisModule_OnLoad
9: moduleLoad
at /usr/src/redis-7.4.3/src/module.c:12321:9
10: moduleLoadFromQueue
at /usr/src/redis-7.4.3/src/module.c:12116:13
11: main
at /usr/src/redis-7.4.3/src/server.c:7199:9
12:
13: __libc_start_main
14: _start

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

------ FAST MEMORY TEST ------
*** Preparing to test memory region 618f7bf7e000 (2277376 bytes)
*** Preparing to test memory region 618f7dd02000 (397312 bytes)
*** Preparing to test memory region 709dc0e00000 (8388608 bytes)
*** Preparing to test memory region 709dc2700000 (13631488 bytes)
*** Preparing to test memory region 709dc3500000 (9437184 bytes)
*** Preparing to test memory region 709dc3f80000 (6815744 bytes)
*** Preparing to test memory region 709dc7180000 (2621440 bytes)
*** Preparing to test memory region 709dc767a000 (16384 bytes)
*** Preparing to test memory region 709dc7e54000 (8192 bytes)
*** Preparing to test memory region 709dc8400000 (4194304 bytes)
*** Preparing to test memory region 709dc8c00000 (8388608 bytes)
*** Preparing to test memory region 709dc9805000 (53248 bytes)
*** Preparing to test memory region 709dc99ff000 (4096 bytes)
*** Preparing to test memory region 709dc9f10000 (12288 bytes)
*** Preparing to test memory region 709dc9f8f000 (20480 bytes)
*** Preparing to test memory region 709dc9fb9000 (8192 bytes)
*** Preparing to test memory region 709dca01c000 (8192 bytes)
*** Preparing to test memory region 709dca1a7000 (4096 bytes)
*** Preparing to test memory region 709dca299000 (8192 bytes)
.O.O.O.O.O.O.O.O.O.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. ===

   Please report the crash by opening an issue on github:

       http://github.com/redis/redis/issues

If a Redis module was involved, please open in the module's repo instead.

Suspect RAM error? Use redis-server --test-memory to verify it.

Some other issues could be detected by redis-server --check-system
Segmentation fault (core dumped)
root@sensor-dock:/usr/src/redis-7.4.3#

?? please help

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions