Hello,
I have come to this issue with 3.5.2. Manticore crashes when query is used with
“GROUP N BY”. Crash is occruing only when N > 1.
So with " GROUP 1 BY" its OK.
So with " GROUP 5 BY" its CRASH.
Example query follow bellow.
SELECT
id
FROM test_index
WHERE
MATCH('@t s389962')
GROUP 10 BY pt
WITHIN GROUP ORDER BY id DESC
ORDER BY id DESC;
backtrace from log
-------------- backtrace begins here ---------------
Program compiled with 4.8.5
Configured with flags: Configured by CMake with these definitions: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDISTR_BUILD=rhel7 -DUSE_SSL=ON -DDL_UNIXODBC=1 -DUNIXODBC_LIB=libodbc.so.2 -DDL_EXPAT=1 -DEXPAT_LIB=libexpat.so.1 -DUSE_LIBICONV=1 -DDL_MYSQL=1 -DMYSQL_LIB=libmysqlclient.so.18 -DDL_PGSQL=1 -DPGSQL_LIB=libpq.so.5 -DLOCALDATADIR=/var/data -DFULL_SHARE_DIR=/usr/share/manticore -DUSE_RE2=1 -DUSE_ICU=1 -DUSE_BISON=ON -DUSE_FLEX=ON -DUSE_SYSLOG=1 -DWITH_EXPAT=1 -DWITH_ICONV=ON -DWITH_MYSQL=1 -DWITH_ODBC=ON -DWITH_PGSQL=1 -DWITH_RE2=1 -DWITH_STEMMER=1 -DWITH_ZLIB=ON -DGALERA_SONAME=libgalera_manticore.so.31 -DSYSCONFDIR=/etc/manticoresearch
Host OS is Linux x86_64
Stack bottom = 0x7f41b4023c60, thread stack size = 0x20000
Trying manual backtrace:
Something wrong with thread stack, manual backtrace may be incorrect (fp=0x5956f0)
Wrong stack limit or frame pointer, manual backtrace failed (fp=0x5956f0, stack=0x7f41b4020000, stacksize=0x20000)
Trying system backtrace:
begin of system symbols:
/usr/bin/searchd(_Z12sphBacktraceib+0x90)[0x72daf0]
/usr/bin/searchd(_ZN11CrashLogger11HandleCrashEi+0x1ba)[0x595d0a]
/lib64/libpthread.so.0(+0xf630)[0x7f435f1c0630]
/lib64/libc.so.6(+0x156a66)[0x7f435e0fca66]
/usr/bin/searchd(_ZNK16CSphSchemaHelper17CloneMatchSpecialER9CSphMatchRKS0_RK11VecTraits_TIiE+0x66)[0x6846f6]
/usr/bin/searchd(_ZN23CSphKBufferNGroupSorterI16MatchGeneric2_fnLb0ELb0EE6PushExERK9CSphMatchlbbb+0x392)[0x804752]
/usr/bin/searchd[0x88943b]
/usr/bin/searchd(_ZNK9RtIndex_c10MultiQueryER15CSphQueryResultRK9CSphQueryRK11VecTraits_TIP15ISphMatchSorterERK18CSphMultiQueryArgs+0x22db)[0x8a72fb]
/usr/bin/searchd(_ZNK9RtIndex_c12MultiQueryExEiPK9CSphQueryP15CSphQueryResultPP15ISphMatchSorterRK18CSphMultiQueryArgs+0x73)[0x8a7733]
/usr/bin/searchd[0x5d43ff]
/usr/bin/searchd[0x978cd7]
/usr/bin/searchd(_ZN7Threads10CoExecuteNEiOSt8functionIFvvEE+0x1a5)[0x9748b5]
/usr/bin/searchd(_ZN15SearchHandler_c16RunLocalSearchesEv+0x4fb)[0x5c831b]
/usr/bin/searchd(_ZN15SearchHandler_c9RunSubsetEii+0xf15)[0x5e4b95]
/usr/bin/searchd(_ZN15SearchHandler_c10RunQueriesEv+0xbb)[0x5e59ab]
/usr/bin/searchd(_Z17HandleMysqlSelectR11RowBuffer_iR15SearchHandler_c+0x1a8)[0x5e5fe8]
/usr/bin/searchd(_ZN16CSphinxqlSession7ExecuteESt4pairIPKciER11RowBuffer_i+0x15f1)[0x603461]
/usr/bin/searchd[0x672c0c]
/usr/bin/searchd(_Z8SqlServe11SharedPtr_TIP16AsyncNetBuffer_c9Deleter_TIS1_L5ETYPE0EE16ISphRefcountedMTE+0x8b9)[0x673989]
/usr/bin/searchd[0x66edfa]
/usr/bin/searchd(ZZN7Threads11CoRoutine_cC1ESt8functionIFvvEEmENUlN5boost7context6detail10transfer_tEE_4_FUNES7+0x17)[0x974ee7]
/usr/bin/searchd(make_fcontext+0x2f)[0x97a67f]
-------------- backtrace ends here ---------------