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

Found some dead code #7

Open
sgpthomas opened this issue Jul 14, 2017 · 5 comments
Open

Found some dead code #7

sgpthomas opened this issue Jul 14, 2017 · 5 comments

Comments

@sgpthomas
Copy link

rrr/pylib/simplerpc/Server.py never gets run. Consequently, _pyrpc_init_server, _pyrpc_fini_server, _pyrpc_server_start, _pyrpc_server_unreg, _pyrpc_server_reg also never get run

@sgpthomas
Copy link
Author

you can verify this by commenting out from simplerpc.server import Server from the __init__.py in rrr/pylib/simplerpc

@shuaimu
Copy link
Contributor

shuaimu commented Jul 14, 2017

Thanks for report. I will let this issue stay open because I think perhaps we should replace this cross-language rpc module into something more stable and easier to use: e.g. grpc. When we started this project (2013), I think grpc was not released yet so we had to write our own.

Just curious, did you find out through some code analysis tool or manually?

@sgpthomas
Copy link
Author

I found it manually. I'm doing work with your experimental scripts to replicate your results and to understand how they work as part of DSEF. I discovered this while trying to run all experiments from run.py instead of calling separate run.py commands from run_all.py. I'm doing this for organization purposes and so that I can keep the data as python objects instead of serializing it to yaml and then reading it later. This probably doesn't make it immediately obvious why I'm doing this but I would be happy to tell you more about the project if you're interested.

Anyways, not restarting run.py after each experiment causes a nasty segmentation fault and it seems to have something to do with the custom python module. In tracking down this segmentation fault, I discovered the unused code.

@sgpthomas
Copy link
Author

P.S. Our github page is pretty dead write now because a lot of what we've been doing recently isn't writing code, but working with other people's experiments

@shuaimu
Copy link
Contributor

shuaimu commented Jul 14, 2017

I see. Good work! I like the idea of a general testing framework. Let me know of any issues you have setting up janus.

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

No branches or pull requests

2 participants