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

saw-remote-api server rerunning scripts #1055

Closed
pnwamk opened this issue Feb 1, 2021 · 1 comment
Closed

saw-remote-api server rerunning scripts #1055

pnwamk opened this issue Feb 1, 2021 · 1 comment
Assignees
Labels
subsystem: saw-remote-api Issues related to the SAW server and its RPC bindings

Comments

@pnwamk
Copy link
Contributor

pnwamk commented Feb 1, 2021

Running the same python script (e.g., salsa20.py) against a persistent saw-remote-api server produces errors about registering names multiple times, e.g.:

$ python3 salsa20.py
Starting server
Loading Cryptol spec
Traceback (most recent call last):
  File "/Users/andrew/Repos/temp/saw-script-head/saw-remote-api/test-scripts/salsa20.py", line 19, in <module>
    c.cryptol_load_file(cryname).result()
  File "/Users/andrew/Repos/temp/saw-script-head/deps/argo/python/argo/interaction.py", line 163, in result
    return self.process_result(self._result_and_state_and_out_err()[0])
  File "/Users/andrew/Repos/temp/saw-script-head/deps/argo/python/argo/interaction.py", line 148, in _result_and_state_and_out_err
    raise self.process_error(exception)
saw.exceptions.CryptolError: error: Attempted to register the following name twice: cryptol:/Salsa20/quarterround

Commenting out the load lines for subsequent runs of the script does not resolve the issue (other problems arise).

This should probably Just Work(TM) without any modifications to any script (e.g., if we're asking the server to load a module that's already loaded, it should be a noop rather than an error).

First reported #1051 (comment) - reproducible on HEAD (50e325f).

@pnwamk pnwamk added the subsystem: saw-remote-api Issues related to the SAW server and its RPC bindings label Feb 1, 2021
@pnwamk pnwamk self-assigned this Feb 1, 2021
@pnwamk
Copy link
Contributor Author

pnwamk commented Feb 16, 2021

Moved GaloisInc/galois-py-toolkit#5

@pnwamk pnwamk closed this as completed Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subsystem: saw-remote-api Issues related to the SAW server and its RPC bindings
Projects
None yet
Development

No branches or pull requests

1 participant