Closed Bug 1578248 Opened 6 years ago Closed 6 years ago

Implement a JS runtime fuzzing target in the JS shell

Categories

(Core :: JavaScript Engine, enhancement, P1)

x86_64
Linux
enhancement

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox70 --- wontfix
firefox71 --- fixed

People

(Reporter: decoder, Assigned: decoder)

References

Details

(Keywords: sec-want, Whiteboard: [adv-main71-])

Attachments

(1 file)

This bug is about implementing a JS runtime target for libFuzzer in the JS shell. The purpose of this target is to have the ability to write libFuzzer targets for JS in JS. Since the fuzztests environment only provides minimal support for performing tasks in JS (e.g. no helper functions, no evaluate/print), it is best to implement this directly in shell/js.cpp.

Priority: -- → P1
Pushed by choller@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f19a3fa75500 Add JS runtime fuzzing interface. r=jandem

Backed out changeset f19a3fa75500 (bug 1578248) for mozbuild bustages on a CLOSED TREE.

Backout link: https://hg.mozilla.org/integration/autoland/rev/31c9b2cb97c13eb7c90852422d2d23e3c8dcb442

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&revision=f19a3fa755007f58181b68ea009a1097cd635384&selectedJob=264974104

Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264974104&repo=autoland&lineNumber=4447

Log snippet:

[task 2019-09-04T16:52:39.685Z] File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/reader.py", line 1332, in files_info
[task 2019-09-04T16:52:39.685Z] paths, _ = self.read_relevant_mozbuilds(paths)
[task 2019-09-04T16:52:39.685Z] File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/reader.py", line 1296, in read_relevant_mozbuilds
[task 2019-09-04T16:52:39.685Z] self.config, metadata=metadata):
[task 2019-09-04T16:52:39.685Z] File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/reader.py", line 1050, in read_mozbuild
[task 2019-09-04T16:52:39.685Z] raise bre
[task 2019-09-04T16:52:39.685Z] BuildReaderError:
[task 2019-09-04T16:52:39.685Z] ==============================
[task 2019-09-04T16:52:39.685Z] FATAL ERROR PROCESSING MOZBUILD FILE
[task 2019-09-04T16:52:39.685Z] ==============================
[task 2019-09-04T16:52:39.686Z]
[task 2019-09-04T16:52:39.686Z] The error occurred while processing the following file:
[task 2019-09-04T16:52:39.686Z]
[task 2019-09-04T16:52:39.686Z] /builds/worker/checkouts/gecko/js/src/shell/moz.build
[task 2019-09-04T16:52:39.686Z]
[task 2019-09-04T16:52:39.686Z] The underlying problem is a Python syntax error on line 25:
[task 2019-09-04T16:52:39.686Z]
[task 2019-09-04T16:52:39.686Z] if CONFIG['FUZZING_INTERFACES']
[task 2019-09-04T16:52:39.686Z]
[task 2019-09-04T16:52:39.686Z] ^
[task 2019-09-04T16:52:39.686Z]
[task 2019-09-04T16:52:39.686Z] Fix the syntax error and try again.
[task 2019-09-04T16:52:39.686Z]
[taskcluster 2019-09-04 16:52:40.458Z] === Task Finished ===
[taskcluster 2019-09-04 16:52:45.683Z] Unsuccessful task run with exit code: 1 completed in 59.43 seconds

Flags: needinfo?(choller)
Pushed by choller@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4b4934973f09 Add JS runtime fuzzing interface. r=jandem
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Flags: needinfo?(choller)
Whiteboard: [adv-main71-]
See Also: → 1706182
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: