Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Populate suppressions.txt, fix test_capi fails
  • Loading branch information
StanFromIreland committed Apr 6, 2026
commit cdebb42864734531006b95759219ee49720edfba
2 changes: 1 addition & 1 deletion .github/workflows/reusable-san.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
|| ''
}}.txt handle_segv=0" >> "$GITHUB_ENV"
else
echo "UBSAN_OPTIONS=${SAN_LOG_OPTION} halt_on_error=1 suppressions=${GITHUB_WORKSPACE}/Tools/ubsan/suppressions.txt" >> "$GITHUB_ENV"
echo "UBSAN_OPTIONS=${SAN_LOG_OPTION} halt_on_error=1 handle_segv=0 handle_sigfpe=0 handle_sigbus=0 suppressions=${GITHUB_WORKSPACE}/Tools/ubsan/suppressions.txt" >> "$GITHUB_ENV"
fi
echo "CC=clang" >> "$GITHUB_ENV"
echo "CXX=clang++" >> "$GITHUB_ENV"
Expand Down
6 changes: 1 addition & 5 deletions Tools/build/compute-changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ class Outputs:

def compute_changes() -> None:
target_ref, head_ref = git_refs()
if True:
outputs = Outputs(
run_ubuntu=True,
)
elif os.environ.get("GITHUB_EVENT_NAME", "") == "pull_request":
if os.environ.get("GITHUB_EVENT_NAME", "") == "pull_request":
# Getting changed files only makes sense on a pull request
files = get_changed_files(target_ref, head_ref)
outputs = process_changed_files(files)
Expand Down
21 changes: 21 additions & 0 deletions Tools/ubsan/suppressions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# This file contains suppressions for the UndefinedBehaviour sanitizer.
#
# When adding a suppression, include a comment referencing a GitHub issue
# that describes how to reproduce the race and includes the relevant UBSan
# output.

null:Objects/object.c
bool:Objects/memoryobject.c

# Modules/binascii.c:1243:42: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
shift:Modules/binascii.c

# Modules/_ctypes/cfield.c:644:1: runtime error: left shift of 1 by 63 places cannot be represented in type 'int64_t' (aka 'long')
shift:Modules/_ctypes/cfield.c

# Modules/_zstd/decompressor.c:598:56: runtime error: applying non-zero offset 18446744073709551615 to null pointer
pointer-overflow:Modules/_zstd/decompressor.c

# Modules/_io/stringio.c:350:24: runtime error: addition of unsigned offset to 0x7fd01ec25850 overflowed to 0x7fd01ec2584c
pointer-overflow:Modules/_io/stringio.c

# Objects/bytesobject.c:1190:25: runtime error: applying zero offset to null pointer
pointer-overflow:Objects/bytesobject.c
Loading