From 8b1ebcfd5bbbc29f192d9982dd089b661277ac0b Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 29 Jan 2024 15:26:05 +0100 Subject: [PATCH] Make "file_name" an optional field in the ureport Virtual dynamic shared objects can appear in the stacktrace, and they don't have a file name as they are provided by the kernel. Signed-off-by: Michal Srb --- src/pyfaf/problemtypes/core.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pyfaf/problemtypes/core.py b/src/pyfaf/problemtypes/core.py index 04d0aa33..992981f6 100644 --- a/src/pyfaf/problemtypes/core.py +++ b/src/pyfaf/problemtypes/core.py @@ -78,8 +78,13 @@ class CoredumpProblem(ProblemType): "frames": ListChecker(DictChecker({ "address": IntChecker(minval=0), "build_id_offset": IntChecker(minval=0), - "file_name": StringChecker(maxlen=column_len(SymbolSource, - "path")), + "file_name": StringChecker( + maxlen=column_len( + SymbolSource, + "path" + ), + mandatory=False + ), "build_id": StringChecker(pattern=r"^[a-fA-F0-9]+$", maxlen=column_len(SymbolSource, "build_id"),