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

Pipe timeout oftens in tag 0.0.3 #12

Closed
Traxes opened this issue May 29, 2019 · 4 comments
Closed

Pipe timeout oftens in tag 0.0.3 #12

Traxes opened this issue May 29, 2019 · 4 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@Traxes
Copy link

Traxes commented May 29, 2019

Hi,

Thanks for the update :-). Unfortunately now the pipe/socket does often produce timeouts.

Appears to happen more often when some load is going through the connection. (Maybe connected to the newly added threading)

tag 0.0.2 is still stable for me.

  File "/Users/Traxes/PycharmProjects/zeno/src/avd/wrapper/BackendGhidra.py", line 137, in do_backward_slice
    if tok.getVarnode():
  File "/usr/local/lib/python3.7/site-packages/ghidra_bridge/bridge.py", line 929, in __call__
    return self._bridge_conn.remote_call(self._bridge_handle, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/ghidra_bridge/bridge.py", line 630, in remote_call
    return self.deserialize_from_dict(self.send_cmd(command_dict))
  File "/usr/local/lib/python3.7/site-packages/ghidra_bridge/bridge.py", line 569, in send_cmd
    cmd_id, timeout=self.RESPONSE_TIMEOUT)
  File "/usr/local/lib/python3.7/site-packages/ghidra_bridge/bridge.py", line 387, in get_response
    "Didn't receive response {} before timeout".format(response_id))
Exception: Didn't receive response 0a005460-93f5-46cd-8807-71f08280ebb6 before timeout

Thanks for updating it regulary :-) Helps a lot.

Cheers,
Traxes

@justfoxing
Copy link
Owner

justfoxing commented May 29, 2019 via email

@justfoxing justfoxing added bug Something isn't working question Further information is requested labels May 29, 2019
@justfoxing justfoxing self-assigned this May 29, 2019
@justfoxing
Copy link
Owner

I've just pushed version 0.0.4, which allows you to control the response timeout. I'd suggest trying something like GhidraBridge(namespace=globals(), response_timeout=2) and see if that helps any.

I'd be really keen to hear what length of timeout you finally need to avoid issues (especially if it doesn't stop the issues, or only delays them). And if you get a chance to look at the questions above while you're playing with that, that'd be really helpful.

@justfoxing
Copy link
Owner

Actually, if you haven't grabbed 0.0.4 already, please try 0.0.5 instead - all the response_timeout features, plus a couple of improvements/bugfixes which might also help.

@justfoxing
Copy link
Owner

No response, so I'll close this with the note that I've bumped the default response timeout up to 2 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants