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

Some environment variable (e.g., LD_PRELOAD) set via run_options don't have the desired effect. #15

Open
stevenjswanson opened this issue Nov 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@stevenjswanson
Copy link
Member

This code:

with local_execution():
    alloc_run = run(alloc, "go", arg_map(size=4, count=100000000), run_options=arg_map(LD_PRELOAD=["libtcmalloc.so",""])

does not work be we currently set the environment variables inside the executor rather outside the executor.

This makes it awkward to run an experiment comparing different implementations of the malloc()/free().

@stevenjswanson stevenjswanson added the bug Something isn't working label Nov 16, 2022
@stevenjswanson
Copy link
Member Author

Looked into this some. It's easy enough to set environment before we invoke cfiddle-run to run the command, but the problem is those different invocations what different values, so we'd have to invoke cfiddle-run for each run. This might be inefficient, and definitely requires some more retooling of how we do execution.

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

No branches or pull requests

1 participant