Skip to content

Some Fixes#85

Open
rofl0r wants to merge 5 commits intonescitus:masterfrom
rofl0r:fixes
Open

Some Fixes#85
rofl0r wants to merge 5 commits intonescitus:masterfrom
rofl0r:fixes

Conversation

@rofl0r
Copy link
Copy Markdown

@rofl0r rofl0r commented Dec 18, 2024

see the individual commit messages.

once a go command was received from the outer uci handling loop,
that loop actually starts the search directly, so the search code
has a second uci parsing loop to be able to respond to the "stop"
command (unless it's running in weak-elo sleep(10) mode, in which
case it takes ages until it actually processes the stop command...
but that's another issue).

this architecture is pretty messy - there should be a dedicated
thread running the uci processing loop, which then notifies the
engine threads when they have to start or stop working.
the engine chdir()s all over the place - basically whenever it opens
a file. this costed me hours to figure out why no core file was written
on a crash that wasn't capturable with gdb attached.
reason was that it chdir'd to /share/rodent3 where the personality and
book files are installed, but only root has write access.

i wrote a utility function that opens a file either via absolute path,
in the hardcoded library directory, or via a specific environment variable,
and if all of the above fails, a path relative to the current working dir.
the changes allow to override the default CXXFLAGS from an include
file called config.mak, without having to edit the Makefile.
so one can actually see if one successfully worked around the path
shenanigans and made rodent find the personality file, in case
one doesn't know that the uci option "verbose", called "noisy" in
the source code, would print such a confirmation message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant