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

Unscannable directory stopping the build #718

Closed
FooB4r opened this issue Apr 23, 2018 · 0 comments · Fixed by ocaml/opam-repository#12323
Closed

Unscannable directory stopping the build #718

FooB4r opened this issue Apr 23, 2018 · 0 comments · Fixed by ocaml/opam-repository#12323

Comments

@FooB4r
Copy link

FooB4r commented Apr 23, 2018

I encountered this when building using jbuilder and having some weird permissions on unrelated files/directories in the same directory as my sources.

$ jbuilder build test_server.exe
Error: exception Sys_error("output/queue: Permission denied")
Backtrace:
Raised by primitive operation at file "src/path.ml", line 431, characters 16-41
Called from file "src/file_tree.ml", line 51, characters 6-23
Called from file "src/file_tree.ml", line 89, characters 13-31
Called from file "list.ml", line 67, characters 20-23
Called from file "src/file_tree.ml", line 83, characters 6-232
Called from file "src/file_tree.ml", line 89, characters 13-31
Called from file "list.ml", line 67, characters 20-23
Called from file "list.ml", line 67, characters 32-39
Called from file "src/file_tree.ml", line 83, characters 6-232
Called from file "src/file_tree.ml", line 98, characters 13-37
Called from file "src/jbuild_load.ml", line 185, characters 14-62
Called from file "src/main.ml", line 42, characters 4-70
Called from file "bin/main.ml", line 674, characters 7-29
Called from file "vendor/cmdliner/src/cmdliner_term.ml", line 27, characters 19-24
Called from file "vendor/cmdliner/src/cmdliner.ml", line 106, characters 32-39
Called from file "vendor/cmdliner/src/cmdliner.ml", line 136, characters 18-36
Called from file "vendor/cmdliner/src/cmdliner.ml", line 251, characters 22-48
Called from file "bin/main.ml", line 1420, characters 10-51

Those files/directories were owned by root and jbuilder stopped scanning the files when encountering them.

$ ls -l output/
drwx------. 2 root root  4096 19 avril 13:04 crashes/
-rw-------. 1 root root 65536 19 avril 13:13 fuzz_bitmap
-rw-------. 1 root root   762 19 avril 13:13 fuzzer_stats
drwx------. 2 root root  4096 19 avril 13:12 hangs/
-rw-------. 1 root root  4062 19 avril 13:13 plot_data
drwx------. 3 root root  4096 19 avril 13:13 queue/

Even though those this problem has a good work-around with jbuild-ignore, it would probably be better to just issue a warning for unscannable directories and not completly crash the build.

@ghost ghost mentioned this issue Apr 30, 2018
@ghost ghost closed this as completed in #732 May 1, 2018
ghost pushed a commit that referenced this issue May 1, 2018
This issue was closed.
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

Successfully merging a pull request may close this issue.

1 participant