Skip to content

Commit 8c423e0

Browse files
Skip test_faulthandler too, and oh hey, I fixed that one!
1 parent a1a0e7f commit 8c423e0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/reusable-san.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ jobs:
8383
run: make -j4
8484
- name: Display build info
8585
run: make pythoninfo
86+
# test_{capi,faulthandler} are skipped under UBSan because
87+
# they raise signals that UBSan with halt_on_error=1 intercepts.
8688
- name: Tests
8789
run: >-
8890
./python -m test
8991
${{ inputs.sanitizer == 'TSan' && '--tsan' || '' }}
90-
${{ inputs.sanitizer == 'UBSan' && '-x test_capi' || '' }}
92+
${{ inputs.sanitizer == 'UBSan' && '-x test_capi -x test_faulthandler' || '' }}
9193
-j4
9294
- name: Parallel tests
9395
if: >-

Tools/ubsan/suppressions.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# This file contains suppressions for the UndefinedBehaviour sanitizer.
22
#
3+
# Reference: https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#runtime-suppressions
4+
#
35
# When adding a suppression, include a comment referencing a GitHub issue
46
# that describes how to reproduce the race and includes the relevant UBSan
57
# output.
68

9+
# Objects/object.c:97:5: runtime error: member access within null pointer of type 'PyThreadState' (aka 'struct _ts')
710
null:Objects/object.c
8-
bool:Objects/memoryobject.c
911

10-
# Modules/binascii.c:1243:42: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
11-
shift-base:Modules/binascii.c
12+
# Objects/memoryobject.c:3032:15: runtime error: load of value 2, which is not a valid value for type 'bool'
13+
bool:Objects/memoryobject.c
1214

1315
# Modules/_ctypes/cfield.c:644:1: runtime error: left shift of 1 by 63 places cannot be represented in type 'int64_t' (aka 'long')
1416
shift-base:Modules/_ctypes/cfield.c
17+
18+
# Modules/_ctypes/cfield.c:640:1: runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
1519
signed-integer-overflow:Modules/_ctypes/cfield.c
1620

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

0 commit comments

Comments
 (0)