Closed Eclipsium closed 9 months ago
I was not able to recreate this issue. After 15-20 minutes your sender crashes, manticore continues to work, without crash.
manticore_crash-requests_sender-1 | 2023-09-27 12:18:13.159 | INFO | __main__:insert_to_manticore:70 - {'items': [{'bulk': {'_index': 'posts_idx', '_id': 1627844933, 'created': 1000, 'deleted': 3, 'updated': 0, 'result': 'updated', 'status': 200}}], 'current_line': 1000, 'skipped_lines': 0, 'errors': False, 'error': ''}
manticore_crash-requests_sender-1 | 2023-09-27 12:18:13.164 | INFO | __main__:insert_to_manticore:70 - {'items': [{'bulk': {'_index': 'posts_idx', '_id': 1708324863, 'created': 1000, 'deleted': 2, 'updated': 0, 'result': 'updated', 'status': 200}}], 'current_line': 1000, 'skipped_lines': 0, 'errors': False, 'error': ''}
manticore_crash-requests_sender-1 | 2023-09-27 12:18:15.929 | INFO | __main__:insert_to_manticore:70 - {'items': [{'bulk': {'_index': 'posts_idx', '_id': 1595884512, 'created': 1000, 'deleted': 2, 'updated': 0, 'result': 'updated', 'status': 200}}], 'current_line': 1000, 'skipped_lines': 0, 'errors': False, 'error': ''}
manticore_crash-requests_sender-1 | 2023-09-27 12:18:15.947 | INFO | __main__:insert_to_manticore:70 - {'items': [{'bulk': {'_index': 'posts_idx', '_id': 60464415, 'created': 1000, 'deleted': 3, 'updated': 0, 'result': 'updated', 'status': 200}}], 'current_line': 1000, 'skipped_lines': 0, 'errors': False, 'error': ''}
manticore | WARNING: timed out while performing SyncSend to flush network buffers, sock=156
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | +
manticore_crash-requests_sender-1 | Exception Group Traceback (most recent call last):
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/app/main.py", line 146, in <module>
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | asyncio.run(main())
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | return runner.run(main)
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | return self._loop.run_until_complete(task)
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | return future.result()
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/app/main.py", line 139, in main
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | async with asyncio.TaskGroup() as tg:
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/asyncio/taskgroups.py", line 147, in __aexit__
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | raise me from None
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | ExceptionGroup
manticore_crash-requests_sender-1 | :
manticore_crash-requests_sender-1 | unhandled errors in a TaskGroup (1 sub-exception)
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | +-+---------------- 1 ----------------
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | Traceback (most recent call last):
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | yield
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 209, in _receive_event
manticore_crash-requests_sender-1 | | event = self._h11_state.next_event()
manticore_crash-requests_sender-1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/h11/_connection.py", line 469, in next_event
manticore_crash-requests_sender-1 | | event = self._extract_next_receive_event()
manticore_crash-requests_sender-1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/h11/_connection.py", line 419, in _extract_next_receive_event
manticore_crash-requests_sender-1 | | event = self._reader.read_eof() # type: ignore[attr-defined]
manticore_crash-requests_sender-1 | | ^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/h11/_readers.py", line 137, in read_eof
manticore_crash-requests_sender-1 | | raise RemoteProtocolError(
manticore_crash-requests_sender-1 | | h11._util.RemoteProtocolError: peer closed connection without sending complete message body (received 45936002 bytes, expected 64103368)
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | | The above exception was the direct cause of the following exception:
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | | Traceback (most recent call last):
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | yield
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 249, in __aiter__
manticore_crash-requests_sender-1 | | async for part in self._httpcore_stream:
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 347, in __aiter__
manticore_crash-requests_sender-1 | | async for part in self._stream:
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 337, in __aiter__
manticore_crash-requests_sender-1 | | raise exc
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 329, in __aiter__
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | | async for chunk in self._connection._receive_response_body(**kwargs):
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 198, in _receive_response_body
manticore_crash-requests_sender-1 | | event = await self._receive_event(timeout=timeout)
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/http11.py", line 208, in _receive_event
manticore_crash-requests_sender-1 | | with map_exceptions({h11.RemoteProtocolError: RemoteProtocolError}):
manticore_crash-requests_sender-1 | | File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | | self.gen.throw(typ, value, traceback)
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
manticore_crash-requests_sender-1 | | raise to_exc(exc) from exc
manticore_crash-requests_sender-1 | | httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 45936002 bytes, expected 64103368)
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | | The above exception was the direct cause of the following exception:
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | | Traceback (most recent call last):
manticore_crash-requests_sender-1 | | File "/app/main.py", line 112, in make_search_request
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | response = await client.post(
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | | ^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1848, in post
manticore_crash-requests_sender-1 | | return await self.request(
manticore_crash-requests_sender-1 | | ^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
manticore_crash-requests_sender-1 | | return await self.send(request, auth=auth, follow_redirects=follow_redirects)
manticore_crash-requests_sender-1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1631, in send
manticore_crash-requests_sender-1 | | raise exc
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1625, in send
manticore_crash-requests_sender-1 | | await response.aread()
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_models.py", line 909, in aread
manticore_crash-requests_sender-1 | | self._content = b"".join([part async for part in self.aiter_bytes()])
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_models.py", line 909, in <listcomp>
manticore_crash-requests_sender-1 | | self._content = b"".join([part async for part in self.aiter_bytes()])
manticore_crash-requests_sender-1 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_models.py", line 927, in aiter_bytes
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | async for raw_bytes in self.aiter_raw():
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_models.py", line 985, in aiter_raw
manticore_crash-requests_sender-1 | | async for raw_stream_bytes in self.stream:
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 146, in __aiter__
manticore_crash-requests_sender-1 | | async for chunk in self._stream:
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 248, in __aiter__
manticore_crash-requests_sender-1 | | with map_httpcore_exceptions():
manticore_crash-requests_sender-1 | | File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
manticore_crash-requests_sender-1 | | self.gen.throw(typ, value, traceback)
manticore_crash-requests_sender-1 | | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
manticore_crash-requests_sender-1 | | raise mapped_exc(message) from exc
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | |
manticore_crash-requests_sender-1 | httpx
manticore_crash-requests_sender-1 | .RemoteProtocolError
manticore_crash-requests_sender-1 | : peer closed connection without sending complete message body (received 45936002 bytes, expected 64103368)
manticore_crash-requests_sender-1 | +------------------------------------
manticore | rt: table posts_idx: diskchunk 724(13), segments 19 saved in 1.701823 (2.325859) sec, RAM saved/new 132079181/0 ratio 0.950000 (soft limit 127506841, conf limit 134217728)
manticore_crash-requests_sender-1 exited with code 1
manticore | /* Wed Sep 27 12:18:22.361 2023 conn 5454 real 33.684 wall 33.684 found 1987789 */ /*{"index": "posts_idx", "query": {"bool": {"must": [{"range": {"uploaded_at": {"gte": 1695730290}}}, {"equals": {"is_blogger": 0}}, {"in": {"any(source_id)": [0, 1, 2, 3, 4]}}, {"bool": {"should": [{"query_string": "\"blanditiis\""}, {"query_string": "\"expedita\""}, {"query_string": "\"nam\""}, {"query_string": "\"magni\""}, {"query_string": "\"dignissimos\""}, {"query_string": "\"labore\""}, {"query_string": "\"consectetur\""}, {"query_string": "\"libero\""}, {"query_string": "\"aperiam\""}, {"query_string": "\"aspernatur\""}]}}], "must_not": [{"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}]}}, "limit": 10000, "offset": 0, "sort": ["posted"], "options": {"max_matches": 50000}, "highlight": {"limit": 50000}} */
manticore | WARNING: timed out while performing SyncSend to flush network buffers, sock=142
manticore | rt: table posts_idx: optimized progressive chunk(s) 39 ( left 8 ) in 7m 4.5s
Very strange, manticore dropped the connection inside docker for some reason. Can you try again? I tried locally and let another developer test the script. We were able to replicate the crash
Issue is being played on our server.
Log in to our dev2 server.
cd /home/pavel/issue1458/manticore_crash
Run docker compose up
.
If there is no crash, run it again until it appears.
docker compose up
[+] Running 2/0
✔ Container manticore_issue1458 Created 0.0s
✔ Container manticore_crash-requests_sender-1 Created 0.0s
Attaching to manticore_crash-requests_sender-1, manticore_issue1458
manticore_issue1458 | Manticore 6.2.12 dc5144d35@230822 (columnar 2.2.4 5aec342@230822) (secondary 2.2.4 5aec342@230822)
manticore_issue1458 | Manticore 6.2.12 dc5144d35@230822 (columnar 2.2.4 5aec342@230822) (secondary 2.2.4 5aec342@230822)
manticore_issue1458 | [Tue Oct 3 09:23:38.959 2023] [1] using config file '/etc/manticoresearch/manticore.conf' (9282 chars)...
manticore_issue1458 | starting daemon version '6.2.12 dc5144d35@230822 (columnar 2.2.4 5aec342@230822) (secondary 2.2.4 5aec342@230822)' ...
manticore_issue1458 | listening on all interfaces for mysql, port=9306
manticore_issue1458 | listening on UNIX socket /var/run/mysqld/mysqld.sock
manticore_issue1458 | listening on 192.168.144.2:9312 for sphinx and http(s)
manticore_issue1458 | listening on all interfaces for sphinx and http(s), port=9308
manticore_issue1458 | Manticore 6.2.12 dc5144d35@230822 (columnar 2.2.4 5aec342@230822) (secondary 2.2.4 5aec342@230822)
manticore_issue1458 | Copyright (c) 2001-2016, Andrew Aksyonoff
manticore_issue1458 | Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
manticore_issue1458 | Copyright (c) 2017-2023, Manticore Software LTD (https://manticoresearch.com)
manticore_issue1458 |
manticore_issue1458 | precaching table 'posts_idx'
manticore_issue1458 | WARNING: table 'posts_idx': table 'posts_idx': morphology option changed from config has no effect, ignoring
manticore_issue1458 | binlog: replaying log /var/lib/manticore/binlog/binlog.001
manticore_issue1458 | FATAL: binlog: commit (table=posts_idx, lasttid=391, logtid=392, pos=87199897, error=pread error in /var/lib/manticore/binlog/binlog.001: pos=88805376, len=1)
manticore_issue1458 | Crash!!! Handling signal 11
manticore_issue1458 exited with code 139
manticore_crash-requests_sender-1 | Traceback (most recent call last):
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/anyio/_core/_sockets.py", line 190, in connect_tcp
manticore_crash-requests_sender-1 | addr_obj = ip_address(remote_host)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/ipaddress.py", line 54, in ip_address
manticore_crash-requests_sender-1 | raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address')
manticore_crash-requests_sender-1 | ValueError: 'manticore_issue1458' does not appear to be an IPv4 or IPv6 address
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | During handling of the above exception, another exception occurred:
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | Traceback (most recent call last):
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
manticore_crash-requests_sender-1 | yield
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 114, in connect_tcp
manticore_crash-requests_sender-1 | stream: anyio.abc.ByteStream = await anyio.connect_tcp(
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/anyio/_core/_sockets.py", line 193, in connect_tcp
manticore_crash-requests_sender-1 | gai_res = await getaddrinfo(
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
manticore_crash-requests_sender-1 | result = self.fn(*self.args, **self.kwargs)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/socket.py", line 962, in getaddrinfo
manticore_crash-requests_sender-1 | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | socket.gaierror: [Errno -3] Temporary failure in name resolution
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | The above exception was the direct cause of the following exception:
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | Traceback (most recent call last):
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
manticore_crash-requests_sender-1 | yield
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 366, in handle_async_request
manticore_crash-requests_sender-1 | resp = await self._pool.handle_async_request(req)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request
manticore_crash-requests_sender-1 | raise exc
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request
manticore_crash-requests_sender-1 | response = await connection.handle_async_request(request)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 99, in handle_async_request
manticore_crash-requests_sender-1 | raise exc
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 76, in handle_async_request
manticore_crash-requests_sender-1 | stream = await self._connect(request)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_async/connection.py", line 124, in _connect
manticore_crash-requests_sender-1 | stream = await self._network_backend.connect_tcp(**kwargs)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
manticore_crash-requests_sender-1 | return await self._backend.connect_tcp(
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 112, in connect_tcp
manticore_crash-requests_sender-1 | with map_exceptions(exc_map):
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
manticore_crash-requests_sender-1 | self.gen.throw(typ, value, traceback)
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
manticore_crash-requests_sender-1 | raise to_exc(exc) from exc
manticore_crash-requests_sender-1 | httpcore.ConnectError: [Errno -3] Temporary failure in name resolution
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | The above exception was the direct cause of the following exception:
manticore_crash-requests_sender-1 |
manticore_crash-requests_sender-1 | Traceback (most recent call last):
manticore_crash-requests_sender-1 | File "/app/main.py", line 146, in <module>
manticore_crash-requests_sender-1 | asyncio.run(main())
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
manticore_crash-requests_sender-1 | return runner.run(main)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
manticore_crash-requests_sender-1 | return self._loop.run_until_complete(task)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
manticore_crash-requests_sender-1 | return future.result()
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/app/main.py", line 137, in main
manticore_crash-requests_sender-1 | await init_db()
manticore_crash-requests_sender-1 | File "/app/main.py", line 128, in init_db
manticore_crash-requests_sender-1 | r = await client.get(f'{BASE_URL}/cli?{INDEX_STMT}')
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1757, in get
manticore_crash-requests_sender-1 | return await self.request(
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
manticore_crash-requests_sender-1 | return await self.send(request, auth=auth, follow_redirects=follow_redirects)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send
manticore_crash-requests_sender-1 | response = await self._send_handling_auth(
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
manticore_crash-requests_sender-1 | response = await self._send_handling_redirects(
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
manticore_crash-requests_sender-1 | response = await self._send_single_request(request)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request
manticore_crash-requests_sender-1 | response = await transport.handle_async_request(request)
manticore_crash-requests_sender-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 365, in handle_async_request
manticore_crash-requests_sender-1 | with map_httpcore_exceptions():
manticore_crash-requests_sender-1 | File "/usr/local/lib/python3.11/contextlib.py", line 155, in __exit__
manticore_crash-requests_sender-1 | self.gen.throw(typ, value, traceback)
manticore_crash-requests_sender-1 | File "/opt/pysetup/.venv/lib/python3.11/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
manticore_crash-requests_sender-1 | raise mapped_exc(message) from exc
manticore_crash-requests_sender-1 | httpx.ConnectError: [Errno -3] Temporary failure in name resolution
manticore_crash-requests_sender-1 exited with code 1
I can note the behaviour, crash is only reproduced after repeatedly running docker compose up
. When running locally, there is no crash, it gives an error in sender operation.
Manticore is crash on your image. Docker break your index. I update my script, add error handler and add log volume.
I think the error is related to the docker.
I try downgrade to 6.0.4 + rowwide / columnar engine - crashes everywhere.
As discussed in Telegram, I can't reproduce this issue in the dev version, so most likely this bug has been already fixed. I'm closing this issue. Feel free to reopen if you can reproduce it in the dev version.
I can't reproduce this issue in the dev version
In the dev version there's another problem with secondary indexes - https://github.com/manticoresoftware/columnar/issues/36
Reopening. It seems that on the newer version the crash occurs less frequently, but still the same crash can happen:
Manticore 6.2.13 c10f1d848@231006 dev (columnar 2.2.5 b8be4eb@230928) (secondary 2.2.5 b8be4eb@230928)
Handling signal 11
...
0# sphBacktrace(int, bool) in searchd
1# CrashLogger::HandleCrash(int) in searchd
2# 0x00007FC46889E520 in /lib/x86_64-linux-gnu/libc.so.6
3# Expr_Highlight_c::RearrangeFetchedFields(DocstoreDoc_t const&) const in searchd
4# Expr_Highlight_c::StringEval(CSphMatch const&, unsigned char const**) const in searchd
5# ISphExpr::StringEvalPacked(CSphMatch const&) const in searchd
6# 0x000055EA182ED08C in searchd
7# 0x000055EA182ECF8C in searchd
8# MinimizeAggrResult(AggrResult_t&, CSphQuery const&, bool, sph::StringSet const&, QueryProfile_c*, CSphFilterSettings const*, bool, bool) in searchd
9# SearchHandler_c::RunSubset(int, int) in searchd
10# SearchHandler_c::RunQueries() in searchd
11# HttpSearchHandler_c::Process() in searchd
12# ProcessHttpQuery(CharStream_c&, std::pair<char const*, int>&, CSphOrderedHash<CSphString, CSphString, CSphStrHashFunc, 256>&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&, bool, http_method) in searchd
13# HttpRequestParser_c::ProcessClientHttp(AsyncNetInputBuffer_c&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&) in searchd
14# HttpServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >) in searchd
15# MultiServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >, std::pair<int, unsigned short>, Proto_e) in searchd
16# 0x000055EA18219972 in searchd
17# 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
18# make_fcontext in searchd
It's also very unstable: sometimes the provided script works fine for the whole night, sometimes it crashes in a minute after started.
A couple crash reports from a debug version of Manticore:
8# void LRUCache_T<SkipCacheKey_t, SkipData_t*, SkipCacheUtil_t>::Delete<SkipCache_c::DeleteAll(long)::{lambda(SkipCacheKey_t const&)#1}>(SkipCache_c::DeleteAll(long)::{lambda(SkipCacheKey_t const&)#1}&&) in searchd
6# MemoryReader_c::SetPos(int) in searchd 7# Docstore_c::ProcessSmallBlockDoc(unsigned int, unsigned int, VecTraits_T<int> const*, CSphFixedVector<int, sph::DefaultCopy_T<int>, sph::DefaultStorage_T<int> > const&, bool, MemoryReader2_c&, BitVec_T<unsigned int, 128>&, DocstoreDoc_t&) const in searchd
:
Finally I could reproduce it more or less stably without docker. Here's how to do it on dev2:
Take the etalon data dir (13G) on which it crashes stable:
cd /home/snikolaev/issue_1458/repro/
rm -fr data
sudo cp -ar ../data .
sudo chown snikolaev:snikolaev -R data
(most likely you don't have to do it every time, but if it stops crashing again, you know where the etalon data dir is located)
Start Manticore (latest dev):
snikolaev@dev2:~/issue_1458/repro$ searchd -c manticore.conf --nodetach
Manticore 6.2.13 590d63bf8@231102 dev (columnar 2.2.5 b8be4eb@230928) (secondary 2.2.5 b8be4eb@230928)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2023, Manticore Software LTD (https://manticoresearch.com)
[02:35.582] [3087234] using config file '/home/snikolaev/issue_1458/repro/manticore.conf' (159 chars)...
starting daemon version '6.2.13 590d63bf8@231102 dev (columnar 2.2.5 b8be4eb@230928) (secondary 2.2.5 b8be4eb@230928)' ...
listening on 127.0.0.1:49308 for sphinx and http(s)
precaching table 'posts_idx'
WARNING: table 'posts_idx': table 'posts_idx': morphology option changed from config has no effect, ignoring
precached 1 tables in 0.144 sec
prereading 1 tables
accepting connections
preread 1 tables in 0.019 sec
[BUDDY] started v2.0.3 '/usr/share/manticore/modules/manticore-buddy/bin/manticore-buddy --listen=http://127.0.0.1:49308 --threads=32' at http://127.0.0.1:33791
[BUDDY] Loaded plugins:
core: empty-string, backup, emulate-elastic, insert, alias, select, show, cli-table, plugin, test, insert-mva, create-table
local:
extra: update-text
Run the REPLACE load: 50 concurrent replaces, then a 30 second pause:
while :; do for n in `seq 1 50`; do curl -sX POST http://localhost:49308/bulk -H "Content-Type: application/x-ndjson" --data-binary @replace > /dev/null & done; while :; do running_jobs=$(jobs -r | wc -l); echo "$running_jobs jobs running"; if [ $running_jobs -eq 0 ]; then break; fi; sleep 1; done; echo "sleeping"; sleep 30; done
At the same time run the SELECT load: always 50 concurrent selects:
while :; do running_jobs=$(jobs -r | wc -l); echo "$running_jobs jobs running"; jobs_to_start=$((50 - running_jobs)); if [ $jobs_to_start -gt 0 ]; then for n in $(seq 1 $jobs_to_start); do curl -sX POST http://localhost:49308/search -d '{"index": "posts_idx", "query": {"bool": {"must": [{"range": {"uploaded_at": {"gte": 1698747276}}}, {"equals": {"is_blogger": 1}}, {"in": {"any(source_id)": [0, 1, 2, 3, 4]}}, {"bool": {"should": [{"query_string": "\"esse\""}, {"query_string": "\"praesentium\""}, {"query_string": "\"natus\""}, {"query_string": "\"deleniti\""}, {"query_string": "\"quod\""}, {"query_string": "\"optio\""}, {"query_string": "\"nam\""}, {"query_string": "\"adipisci\""}, {"query_string": "\"maxime\""}, {"query_string": "\"sint\""}]}}], "must_not": [{"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}, {"query_string": "\"some_exclude_words\""}]}}, "limit": 10000, "offset": 0, "sort": ["posted"], "options": {"max_matches": 50000}, "highlight": {"limit": 50000}}' > /dev/null & done; fi; sleep 1; done
Wait a couple minutes until it crashes:
Crash!!! Handling signal 11
Segmentation fault (core dumped)
Inspect the log:
snikolaev@dev2:~/issue_1458/repro$ tail -n 30 searchd.log
searchd(_ZZN7Threads11CoRoutine_c13CreateContextESt8functionIFvvEESt4pairIN5boost7context13stack_contextENS_14StackFlavour_EEEENUlNS6_6detail10transfer_tEE_8__invokeESB_+0x1c)[0x5601a5337e1c]
searchd(make_fcontext+0x37)[0x5601a5358597]
Trying boost backtrace:
0# sphBacktrace(int, bool) in searchd
1# CrashLogger::HandleCrash(int) in searchd
2# 0x00007FE12704D520 in /lib/x86_64-linux-gnu/libc.so.6
3# Expr_Highlight_c::RearrangeFetchedFields(DocstoreDoc_t const&) const in searchd
4# Expr_Highlight_c::StringEval(CSphMatch const&, unsigned char const**) const in searchd
5# ISphExpr::StringEvalPacked(CSphMatch const&) const in searchd
6# 0x00005601A408777C in searchd
7# 0x00005601A408767C in searchd
8# MinimizeAggrResult(AggrResult_t&, CSphQuery const&, bool, sph::StringSet const&, QueryProfile_c*, CSphFilterSettings const*, bool, bool) in searchd
9# SearchHandler_c::RunSubset(int, int) in searchd
10# SearchHandler_c::RunQueries() in searchd
11# HttpSearchHandler_c::Process() in searchd
12# ProcessHttpQuery(CharStream_c&, std::pair<char const*, int>&, CSphOrderedHash<CSphString, CSphString, CSphStrHashFunc, 256>&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&, bool, http_method) in searchd
13# HttpRequestParser_c::ProcessClientHttp(AsyncNetInputBuffer_c&, sph::Vector_T<unsigned char, sph::DefaultCopy_T<unsigned char>, sph::DefaultRelimit, sph::DefaultStorage_T<unsigned char> >&) in searchd
14# HttpServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >) in searchd
15# MultiServe(std::unique_ptr<AsyncNetBuffer_c, std::default_delete<AsyncNetBuffer_c> >, std::pair<int, unsigned short>, Proto_e) in searchd
16# 0x00005601A3FB4082 in searchd
17# 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
18# 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
6 years since the fork and it is a buggy mess still. Same problem here. Was thinking to migrate from sphinx.
Inserted by 1000 rows in a transaction. Result:
------- FATAL: CRASH DUMP -------
[Mon Nov 20 08:41:55.884 2023] [ 754]
--- crashed SphinxQL request dump ---
start transaction
--- request dump end ---
--- local index:7<C0>[<82>A^?^@^@
Manticore 6.2.12 dc5144d35@230822 (columnar 2.2.4 5aec342@230822) (secondary 2.2.4 5aec342@230822)
Handling signal 11
-------------- backtrace begins here ---------------
Program compiled with Clang 15.0.7
Configured with flags: Configured with these definitions: -DDISTR_BUILD=bookworm -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_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=libmariadb.so.3 -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 (bookworm) (cross-compiled)
Stack bottom = 0x7f467661d270, thread stack size = 0x20000
Trying manual backtrace:
Something wrong with thread stack, manual backtrace may be incorrect (fp=0x1)
Wrong stack limit or frame pointer, manual backtrace failed (fp=0x1, stack=0x7f4676620000, stacksize=0x20000)
Trying system backtrace:
begin of system symbols:
/usr/bin/searchd(_Z12sphBacktraceib+0x22a)[0x55ec6fe93e0a]
/usr/bin/searchd(_ZN11CrashLogger11HandleCrashEi+0x355)[0x55ec6fd126c5]
/lib/x86_64-linux-gnu/libc.so.6(+0x3bfd0)[0x7f468165afd0]
/usr/bin/searchd(_ZN13CSphIndex_VLN10MergeWordsI16DiskIndexQword_cILb1ELb0EES2_EEbPKS_S4_11VecTraits_TIjES6_P14CSphHitBuilderR10CSphStringR17CSphIndexProgress
+0xe16)[0x55ec6fe4cef6]
/usr/bin/searchd(_ZN13CSphIndex_VLN7DoMergeEPKS_S1_PK10ISphFilterR10CSphStringR17CSphIndexProgressbb+0x642)[0x55ec6fdb0ca2]
/usr/bin/searchd(_Z8sphMergePK9CSphIndexS1_11VecTraits_TI18CSphFilterSettingsER17CSphIndexProgressR10CSphString+0x72)[0x55ec6fdb1632]
/usr/bin/searchd(_ZN9RtIndex_c15MergeDiskChunksEPKcRK17CSphRefcountedPtrIK11DiskChunk_cES7_R17CSphIndexProgress11VecTraits_TI18CSphFilterSettingsE+0x65)[0x55e
c70aca9a5]
/usr/bin/searchd(_ZN9RtIndex_c14MergeTwoChunksEiiPi+0x496)[0x55ec70ace7e6]
/usr/bin/searchd(_ZN9RtIndex_c19ProgressiveOptimizeEi+0x597)[0x55ec70acfc77]
/usr/bin/searchd(_ZN9RtIndex_c8OptimizeE14OptimizeTask_t+0xed)[0x55ec70acf38d]
/usr/bin/searchd(+0xda96f7)[0x55ec6fc616f7]
/usr/bin/searchd(_ZZN7Threads11CoRoutine_c13CreateContextESt8functionIFvvEESt4pairIN5boost7context13stack_contextENS_14StackFlavour_EEEENUlNS6_6detail10transf
er_tEE_8__invokeESB_+0x1c)[0x55ec70fe2e8c]
/usr/bin/searchd(make_fcontext+0x2f)[0x55ec7100323f]
Trying boost backtrace:
0# sphBacktrace(int, bool) in /usr/bin/searchd
1# CrashLogger::HandleCrash(int) in /usr/bin/searchd
2# 0x00007F468165AFD0 in /lib/x86_64-linux-gnu/libc.so.6
3# bool CSphIndex_VLN::MergeWords<DiskIndexQword_c<true, false>, DiskIndexQword_c<true, false> >(CSphIndex_VLN const*, CSphIndex_VLN const*, VecTraits_T<unsigned int>, VecTraits_T<unsigned int>, CSphHitBuilder*, CSphString&, CSphIndexProgress&) in /usr/bin/searchd
4# CSphIndex_VLN::DoMerge(CSphIndex_VLN const*, CSphIndex_VLN const*, ISphFilter const*, CSphString&, CSphIndexProgress&, bool, bool) in /usr/bin/searchd
5# sphMerge(CSphIndex const*, CSphIndex const*, VecTraits_T<CSphFilterSettings>, CSphIndexProgress&, CSphString&) in /usr/bin/searchd
6# RtIndex_c::MergeDiskChunks(char const*, CSphRefcountedPtr<DiskChunk_c const> const&, CSphRefcountedPtr<DiskChunk_c const> const&, CSphIndexProgress&, VecT
raits_T<CSphFilterSettings>) in /usr/bin/searchd
7# RtIndex_c::MergeTwoChunks(int, int, int*) in /usr/bin/searchd
8# RtIndex_c::ProgressiveOptimize(int) in /usr/bin/searchd
9# RtIndex_c::Optimize(OptimizeTask_t) in /usr/bin/searchd
10# 0x000055EC6FC616F7 in /usr/bin/searchd
11# Threads::CoRoutine_c::CreateContext(std::function<void ()>, std::pair<boost::context::stack_context, Threads::StackFlavour_E>)::{lambda(boost::context::de
tail::transfer_t)#1}::__invoke(boost::context::detail::transfer_t) in /usr/bin/searchd
12# make_fcontext in /usr/bin/searchd
@glookka is there any workaround?
@starinacool please try the latest dev version. As said in https://github.com/manticoresoftware/manticoresearch/issues/1458#issuecomment-1790605768 , some issues have been already fixed there.
@starinacool please try the latest dev version. As said in https://github.com/manticoresoftware/manticoresearch/issues/1458#issuecomment-1790605768 , some issues have been already fixed there.
Oops. I've confused this issue with another one. But it still makes sense to make sure the issue can be reproduced in the latest dev version.
@sanikolaev , made a separate issue. May be it is something different: https://github.com/manticoresoftware/manticoresearch/issues/1602
Fixed in d67dbe6e
Fixed in https://github.com/manticoresoftware/manticoresearch/commit/d67dbe6e85cf16ec059620c812c05339105125fc
I confirm I can't reproduce the issue anymore.
To Reproduce Steps to reproduce the behavior:
You can run script in repo, where i reproduce this logic: https://github.com/Eclipsium/manticore_crash
docker compose up
Expected behavior stable operation, or a warning of what we are doing wrong
Describe the environment:
Messages from log files: link to repo