-
-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greek stemmer crashes the server #2888
Comments
libstemmer’s changelog for version 2.2.0 includes some notes about the Greek stemmer. I built manticore using the new version of libstemmer and reproduced the issue. Thus, updating the library doesn't solve the issue. It appears that libstemmer returns NULL in case of any error. Therefore, we should handle |
yes please submit PR I just worried that |
I've looked at the call stack... This requires changing the signatures of many methods and sounds like a major refactoring. Does it make sense? From my perspective, it's a really rare case that indicates a potential bug in libstemmer. Therefore, I'd consider handling this just in case, reporting the bug to libstemmer, and waiting for a fix. |
do you have test that reproduces this issue or it happens only with new Greek stemmer? |
I've just added test case to test 271 at c82ade4 to make sure this or similar crashes will be covered for further changes in that code |
No, I don't. Also, I haven't found any other similar cases in the libstemmer issues.
I wasn't certain about the tests since it's a bug in the third-party library that should be fixed someday. That will make this test redundant. Perhaps we should keep the issue open until the upstream fix and subsequent library update? They've already confirmed the bug (snowballstem/snowball#204). |
Bug Description:
The specific sequence of Greek symbols, when used with the enabled Greek stemmer (libstemmer_el), causes the server to crash.
MRE:
Crash dump:
The problem is in this code snippet:
manticoresearch/src/dict/template_dict_traits.cpp
Lines 1254 to 1257 in da0d793
sb_stemmer_stem
returns NULL, causing a subsequent call tomemcpy
to crash.Manticore Search Version:
6.3.8 d17bd2b6b@24112202
Operating System Version:
docker (Linux bf00ec55bdd0 6.10.14-linuxkit #1 SMP Thu Oct 24 19:28:55 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux)
Have you tried the latest development version?
No
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
The text was updated successfully, but these errors were encountered: