Skip to content

Commit

Permalink
Make "file_name" an optional field in the ureport
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
msrb committed Jan 29, 2024
1 parent 58d6d2c commit 8b1ebcf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pyfaf/problemtypes/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 8b1ebcf

Please sign in to comment.