Skip to content
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

Server crashing by search_template request #157

Open
AlexandrZagorskiy opened this issue Sep 13, 2022 · 1 comment
Open

Server crashing by search_template request #157

AlexandrZagorskiy opened this issue Sep 13, 2022 · 1 comment
Labels
API This extends or deprecate API bug Something isn't working

Comments

@AlexandrZagorskiy
Copy link
Contributor

Describe the bug
Sending a request for searching template cause segmentation fault, when identifier of the keynode is send in payload

To Reproduce
example of request:
{"id": 4, "type": "search_template", "payload": {"templ": {"type": "idtf", "value": "question"}, "params": {}}}

Expected behavior
question isn't template, so maybe error should be returned. Can we check identifier, is it template or not?

Screenshots
image
Server side just drops Segmentation fault (core dumped).

Desktop (please complete the following information):

  • Version 0.7.0
@AlexandrZagorskiy AlexandrZagorskiy added bug Something isn't working 0.7.0 Rebirth API This extends or deprecate API labels Sep 13, 2022
@NikitaZotov
Copy link
Member

NikitaZotov commented Sep 30, 2022

This is a problem of assertions in memory iterators using in template search. So to fix this bug firstly it is needed to change assertions by throw operations. Assertions is definitely may be checked only in debug mode, at this time in release mode checks are not

@NikitaZotov NikitaZotov removed the 0.7.0 Rebirth label Sep 30, 2022
NikitaZotov pushed a commit to NikitaZotov/sc-machine that referenced this issue Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API This extends or deprecate API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants