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

"Permission denied" during copying of result files #975

Open
PhilippWendler opened this issue Nov 22, 2023 · 3 comments
Open

"Permission denied" during copying of result files #975

PhilippWendler opened this issue Nov 22, 2023 · 3 comments
Labels
container related to container mode

Comments

@PhilippWendler
Copy link
Member

There are two cases where a warning message of the form Could not retrieve output file '...': [Errno 13] Permission denied: ... is printed by BenchExec:

  1. If the tool produces a result file without write permission.
  2. If the tool produces a result file without read permission, or directories without execute permission.

Case 1. only happens because when copying output files we actually perform a move operation:

# move is more efficient than copy in case both abs_file and target
# are on the same filesystem, and it avoids matching the file again
# with the next pattern.
shutil.move(abs_file, target)

The file is still copied correctly. We should fix that and do not print a useless warning.

Case 2 is more interesting. If a tool creates a non-readable file, BenchExec could still make the file readable (we have that permission) and then copy it. Or we could keep the existing behavior.
@MartinSpiessl @dbeyer Any thoughts on this last point? What would you prefer? I tend towards adding the missing permission and copying the file.

@PhilippWendler PhilippWendler added the container related to container mode label Nov 22, 2023
@MartinSpiessl
Copy link
Contributor

MartinSpiessl commented Nov 22, 2023

I would say it is a file that was generated, so it should be collected.

@Vishnurr2k01
Copy link

is this issue fixed ?

@PhilippWendler
Copy link
Member Author

No, nothing has happened so far in this regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
container related to container mode
Development

No branches or pull requests

3 participants