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

Failed to start indexer: sigaction(): Invalid argument #246

Closed
drewblin opened this issue Jun 21, 2019 · 4 comments

Comments

@drewblin
Copy link

commented Jun 21, 2019

Describe the environment

Manticore Search version: 3.0.0

OS version: 11.2-RELEASE-p4 FreeBSD 11.2-RELEASE-p4 #0: Thu Sep 27 08:16:24 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

Describe the problem

Description of the issue:
When try to run
indexer -c /usr/local/etc/sphinx.conf address_v2_plain
got error sigaction(): Invalid argument

Steps to reproduce:

run indexer -c /usr/local/etc/sphinx.conf address_v2_plain with any index

My research

Error message is output from method SetSignalHandlers in indexer.cpp
I found similar code in searchd.cpp (searchd daemon starts sucessfully).
And if i uncomment sa.sa_flags = SA_NOCLDSTOP in indexer.cpp it starts doest it job.

@klirichek

This comment has been minimized.

Copy link
Contributor

commented Jun 25, 2019

Could you try to use sa.sa_flags = 0 instead?
Or, in next line remove |, so that sa.sa_flags |= SA_RESETHAND; became sa.sa_flags = SA_RESETHAND; ? I can't test what could help, so, it is just blind guess.
(setting SA_NOCLDSTOP in general commented because with this line it was hard to perform crash reporting by born separate reporter; it just mess everything being child with such initial signal. But I see that commenting out this line cause initial sa.sa_flags to be undefined at all, and may be that is very reason why it coplies.

@klirichek

This comment has been minimized.

Copy link
Contributor

commented Jun 25, 2019

Just pushed a 'blind fix', you may try 58dcbb7

@drewblin

This comment has been minimized.

Copy link
Author

commented Jun 26, 2019

I checked, that fixed issue.
Thanks!

@githubmanticore

This comment has been minimized.

Copy link
Contributor

commented Jun 27, 2019

➤ Aleksey N. Vinogradov commented:

Fixed in 58dcbb7

@adriannuta adriannuta closed this Jul 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.