未验证 提交 cc3aa277 编写于 作者: J Jakob Botsch Nielsen 提交者: GitHub

Disable coredumps for fuzzers (#67340)

上级 6ba20abc
......@@ -202,6 +202,13 @@ def main(main_args):
path_to_corerun += ".exe"
path_to_tool += ".exe"
if not is_windows:
# Disable core dumps. The fuzzers have their own graceful handling for
# runtime crashes. Especially on macOS we can quickly fill up the drive
# with dumps if we find lots of crashes since dumps there are very big.
import resource
resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
try:
# Run tool such that issues are placed in a temp folder
with TempDir() as temp_location:
......
......@@ -177,6 +177,13 @@ def main(main_args):
os.makedirs(output_directory, exist_ok=True)
if not is_windows:
# Disable core dumps. The fuzzers have their own graceful handling for
# runtime crashes. Especially on macOS we can quickly fill up the drive
# with dumps if we find lots of crashes since dumps there are very big.
import resource
resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
with TempDir() as temp_location:
summary_file_name = "issues-summary-{}.txt".format(tag_name)
summary_file_path = path.join(temp_location, summary_file_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册