Skip to content

Commit 74f530a

Browse files
authored
move fuzz from UtaskLocalExecutor to Utask (#4965)
Tries to fix b/446692241. The fuzz task for black box fuzzer are failing on Batch. Error stacktrace: ``` node:internal/fs/utils:347 throw err; ^ Error: ENOENT: no such file or directory, scandir '/mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-common-data-bundles/v8' at Object.readdirSync (node:fs:1450:3) at Object.readdirSync (pkg/prelude/bootstrap.js:1306:35) at walkDirectory (/snapshot/js_fuzzer/corpus.js:27:29) at walkDirectory.next (<anonymous>) at V8Corpus.create (/snapshot/js_fuzzer/corpus.js:91:16) at Object.create (/snapshot/js_fuzzer/corpus.js:333:49) at new RandomCorpusRunner (/snapshot/js_fuzzer/runner.js:81:20) at new RandomCorpusRunnerWithFuzzilli (/snapshot/js_fuzzer/runner.js:112:5) at ScriptMutator.createRunner (/snapshot/js_fuzzer/script_mutator.js:122:12) at main (/snapshot/js_fuzzer/run.js:121:26) at Object.<anonymous> (/snapshot/js_fuzzer/run.js:159:1) at Module._compile (pkg/prelude/bootstrap.js:1926:22) at Module._extensions..js (node:internal/modules/cjs/loader:1166:10) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:834:12) at Function.runMain (pkg/prelude/bootstrap.js:1979:12) at node:internal/main/run_main_module:17:47 { errno: -2, syscall: 'scandir', code: 'ENOENT', path: '/mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-common-data-bundles/v8' } Node.js v18.5.0 ``` It seems the cause it that the `v8` directory was not created, and it depends on downloading it from GCS. Then the suspicious is that the batch execution is not able to download. This PR attempts to solve this by moving the fuzz task command type to UTask, as it has the remote way to work, being able to download the required stuff and keeping the local execution as fallback. Signed-off-by: Javan Lacerda <[email protected]>
1 parent c690b11 commit 74f530a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clusterfuzz/_internal/bot/tasks/task_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def execute(self, task_argument, job_type, uworker_env):
225225
'analyze': UTask,
226226
'blame': TrustedTask,
227227
'corpus_pruning': UTask,
228-
'fuzz': UTaskLocalExecutor,
228+
'fuzz': UTask,
229229
'impact': TrustedTask,
230230
'minimize': UTask,
231231
'progression': UTask,

0 commit comments

Comments
 (0)