Skip to content

Commit f005eaf

Browse files
authored
Add workaround to fix the CI (#969)
actions/runner-images#9491 (comment)
1 parent d829c0f commit f005eaf

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/actions/linux-build/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ inputs:
4444
runs:
4545
using: "composite"
4646
steps:
47+
# taken from https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917
48+
- name: Fix kernel mmap rnd bits
49+
shell: bash
50+
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
51+
# high-entropy ASLR in much newer kernels that GitHub runners are
52+
# using leading to random crashes: https://reviews.llvm.org/D148280
53+
run: sudo sysctl vm.mmap_rnd_bits=28
4754
- name: Install dependencies
4855
shell: bash
4956
run: |

.github/actions/linux-run_examples/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ inputs:
77
runs:
88
using: "composite"
99
steps:
10+
# taken from https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917
11+
- name: Fix kernel mmap rnd bits
12+
shell: bash
13+
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
14+
# high-entropy ASLR in much newer kernels that GitHub runners are
15+
# using leading to random crashes: https://reviews.llvm.org/D148280
16+
run: sudo sysctl vm.mmap_rnd_bits=28
1017
- name: Install Dependencies
1118
shell: bash
1219
run: |

.github/actions/linux-test/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ inputs:
2323
runs:
2424
using: "composite"
2525
steps:
26+
# taken from https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917
27+
- name: Fix kernel mmap rnd bits
28+
shell: bash
29+
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
30+
# high-entropy ASLR in much newer kernels that GitHub runners are
31+
# using leading to random crashes: https://reviews.llvm.org/D148280
32+
run: sudo sysctl vm.mmap_rnd_bits=28
2633
- name: Install Dependencies
2734
shell: bash
2835
run: |

0 commit comments

Comments
 (0)