Skip to content

Commit 4920503

Browse files
authored
8
1 parent ffc1b2e commit 4920503

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/docker_with_ulimit_coredumps.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,23 @@ jobs:
1919
run: |
2020
mkdir -p /tmp/cores
2121
chmod 777 /tmp/cores
22-
cat /proc/sys/kernel/core_pattern
2322
24-
# - name: Run the binary
25-
# run: |
26-
# apt-get update && apt-get install -y clang-18 --no-install-recommends
27-
# cd segfault_app
28-
# echo "--- build and execute:"
29-
# clang++-18 -g main.cpp -o main && ./main
23+
- name: Run the binary
24+
run: |
25+
apt-get update && apt-get install -y clang-18 --no-install-recommends
26+
cd segfault_app
27+
echo "--- build and execute:"
28+
clang++-18 -g main.cpp -o main && ./main
3029
31-
# echo "--- ls /tmp/cores:"
32-
# ls -alh /tmp/cores/*
30+
echo "--- ls /tmp/cores:"
31+
ls -alh /tmp/cores/*
32+
33+
- name: Copy core dumps
34+
run: |
35+
ls -alh /var/lib/systemd/coredump/
36+
cp /var/lib/systemd/coredump/* /tmp/cores/
3337
34-
# - uses: actions/upload-artifact@v4
35-
# with:
36-
# name: cores
37-
# path: /tmp/cores/
38+
- uses: actions/upload-artifact@v4
39+
with:
40+
name: cores
41+
path: /tmp/cores/

0 commit comments

Comments
 (0)