File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff 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/
You can’t perform that action at this time.
0 commit comments