-
-
Notifications
You must be signed in to change notification settings - Fork 613
Open
Labels
Description
Bug Description:
MRE:
mysql -h0 -P9306 -e "CREATE TABLE test_no_auto (id BIGINT, title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' KNN_DIMS='384' HNSW_SIMILARITY='l2') engine='columnar'"; mysql -h0 -P9306 -e "INSERT INTO test_no_auto (id, title, embedding) VALUES (1, 'test', (0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4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9, 1.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 0.1, 0.2, 0.3, 0.4))"; mysql -h0 -P9306 -e "SELECT id, title FROM test_no_auto WHERE knn(embedding, 2, 'test query')"
Result:
ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
dump
------- FATAL: CRASH DUMP -------
[Fri Aug 8 05:50:20.016 2025] [ 16]
--- crashed SphinxQL request dump ---
SELECT id, title FROM test_no_auto WHERE knn(embedding, 2, 'test query')
--- request dump end ---
--- local index:test_no_auto
Manticore 0.0.0 bd259e493@25080622 (columnar 8.0.1 fc30df6@25072219) (secondary 8.0.1 fc30df6@25072219) (knn 8.0.1 fc30df6@25072219) (embeddings 1.0.0)
Handling signal 11
-------------- backtrace begins here ---------------
Program compiled with Clang 16.0.6
Configured with flags: Configured with these definitions: -DDISTR_BUILD=jammy -DUSE_SYSLOG=1 -DWITH_GALERA=1 -DWITH_RE2=1 -DWITH_RE2_FORCE_STATIC=1 -DWITH_STEMMER=1 -DWITH_STEMMER_FORCE_STATIC=1 -DWITH_NLJSON=1 -DWITH_UNIALGO=1 -DWITH_ICU=1 -DWITH_ICU_FORCE_STATIC=1 -DWITH_JIEBA=1 -DWITH_SSL=1 -DWITH_ZLIB=1 -DWITH_ZSTD=1 -DDL_ZSTD=1 -DZSTD_LIB=libzstd.so.1 -DWITH_CURL=1 -DDL_CURL=1 -DCURL_LIB=libcurl.so.4 -DWITH_ODBC=1 -DDL_ODBC=1 -DODBC_LIB=libodbc.so.2 -DWITH_EXPAT=1 -DDL_EXPAT=1 -DEXPAT_LIB=libexpat.so.1 -DWITH_ICONV=1 -DWITH_MYSQL=1 -DDL_MYSQL=1 -DMYSQL_LIB=libmysqlclient.so.21 -DWITH_POSTGRESQL=1 -DDL_POSTGRESQL=1 -DPOSTGRESQL_LIB=libpq.so.5 -DLOCALDATADIR=/var/lib/manticore -DFULL_SHARE_DIR=/usr/share/manticore
Built on Linux x86_64 (jammy) (cross-compiled)
Stack bottom = 0x7f5e4c063fc0, thread stack size = 0x20000
Trying manual backtrace:
Something wrong with thread stack, manual backtrace may be incorrect (fp=0x20000)
Wrong stack limit or frame pointer, manual backtrace failed (fp=0x20000, stack=0x7f5e4c060000, stacksize=0x20000)
Trying system backtrace:
begin of system symbols:
searchd(_Z12sphBacktraceib+0x227)[0x5630e6cb81c7]
searchd(_Z11HandleCrashi+0x2e3)[0x5630e6a01663]
/lib/x86_64-linux-gnu/libc.so.6(+0x45330)[0x7f5e8cc4c330]
/usr/share/manticore/modules/lib_manticore_knn_avx2.so(+0x84ffb)[0x7f5e8c293ffb]
searchd(_ZNK14Expr_KNNDist_c8CalcDistERK9CSphMatch+0x138)[0x5630e6f50d98]
searchd(_ZNK16CSphQueryContext10CalcFilterER9CSphMatch+0x183)[0x5630e6b32583]
searchd(+0x13a3f8a)[0x5630e6dc2f8a]
searchd(_ZNK9RtIndex_c10MultiQueryER15CSphQueryResultRK9CSphQueryRK11VecTraits_TIP15ISphMatchSorterERK18CSphMultiQueryArgs+0x1e77)[0x5630e6dc1567]
searchd(_ZNK13CSphIndexStub12MultiQueryExEiPK9CSphQueryP15CSphQueryResultPP15ISphMatchSorterRK18CSphMultiQueryArgs+0x70)[0x5630e6b32fe0]
searchd(+0x1004b90)[0x5630e6a23b90]
searchd(+0x14d0ebd)[0x5630e6eefebd]
searchd(_ZN7Threads4Coro8ExecuteNEiOSt8functionIFvvEE+0x7a)[0x5630e7dec75a]
searchd(_ZN15SearchHandler_c16RunLocalSearchesEv+0x77d)[0x5630e6a17c2d]
searchd(_ZN15SearchHandler_c9RunSubsetEii+0x51c)[0x5630e6a18f6c]
searchd(_ZN15SearchHandler_c10RunQueriesEv+0xa8)[0x5630e6a189d8]
searchd(_Z17HandleMysqlSelectR11RowBuffer_iR15SearchHandler_c+0x158)[0x5630e6b67c58]
searchd(_ZN15ClientSession_c7ExecuteESt4pairIPKciER11RowBuffer_i+0x1c54)[0x5630e6b769b4]
searchd(_Z8SqlServeSt10unique_ptrI16AsyncNetBuffer_cSt14default_deleteIS0_EE+0x1b73)[0x5630e6a9eaa3]
searchd(_Z10MultiServeSt10unique_ptrI16AsyncNetBuffer_cSt14default_deleteIS0_EESt4pairIitE7Proto_e+0x43)[0x5630e6a995b3]
searchd(+0x107b162)[0x5630e6a9a162]
searchd(_ZZN7Threads11CoRoutine_c13CreateContextESt8functionIFvvEESt4pairIN5boost7context13stack_contextENS_14StackFlavour_EEEENUlNS6_6detail10transfer_tEE_8__invokeESB_+0x1c)[0x5630e7def4fc]
searchd(make_fcontext+0x37)[0x5630e816f107]
Trying boost backtrace:
0# sphBacktrace(int, bool) in searchd
1# HandleCrash(int) in searchd
2# 0x00007F5E8CC4C330 in /lib/x86_64-linux-gnu/libc.so.6
3# 0x00007F5E8C293FFB in /usr/share/manticore/modules/lib_manticore_knn_avx2.so
4# Expr_KNNDist_c::CalcDist(CSphMatch const&) const in searchd
5# CSphQueryContext::CalcFilter(CSphMatch&) const in searchd
6# 0x00005630E6DC2F8A in searchd
7# RtIndex_c::MultiQuery(CSphQueryResult&, CSphQuery const&, VecTraits_T<ISphMatchSorter*> const&, CSphMultiQueryArgs const&) const in searchd
8# CSphIndexStub::MultiQueryEx(int, CSphQuery const*, CSphQueryResult*, ISphMatchSorter**, CSphMultiQueryArgs const&) const in searchd
9# 0x00005630E6A23B90 in searchd
10# 0x00005630E6EEFEBD in searchd
11# Threads::Coro::ExecuteN(int, std::function<void ()>&&) in searchd
12# SearchHandler_c::RunLocalSearches() in searchd
13# SearchHandler_c::RunSubset(int, int) in searchd
14# SearchHandler_c::RunQueries() in searchd
15# HandleMysqlSelect(RowBuffer_i&, SearchHandler_c&) in searchd
16# ClientSession_c::Execute(std::pair<char const*, int>, RowBuffer_i&) in searchd
17# SqlServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >) in searchd
18# MultiServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >, std::pair<int, unsigned short>, Proto_e) in searchd
19# 0x00005630E6A9A162 in searchd
20# Threads::CoRoutine_c::CreateContext(std::function<void ()>, std::pair<boost::context::stack_context, Threads::StackFlavour_E>)::{lambda(boost::context::detail::transfer_t)#1}::__invoke(boost::context::detail::transfer_t) in searchd
21# make_fcontext in searchd
-------------- backtrace ends here ---------------
Please, create a bug report in our bug tracker (https://github.com/manticoresoftware/manticore/issues)
and attach there:
a) searchd log, b) searchd binary, c) searchd symbols.
Look into the chapter 'Reporting bugs' in the manual
(https://manual.manticoresearch.com/Reporting_bugs)
Dump with GDB via watchdog
--- active threads ---
thd 0 (work_8), proto mysql, state query, command select
--- Totally 2 threads, and 1 client-working threads ---
------- CRASH DUMP END -------
Manticore Search Version:
Latest dev
Operating System Version:
Ubuntu
Have you tried the latest development version?
None
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
- Implementation completed
- Tests developed
- Documentation updated
- Documentation reviewed