Skip to content

Commit

Permalink
Attempt to capture a core dump from OpenJ9
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 26, 2024
1 parent 30482cc commit bc4946b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,26 @@ jobs:
distribution: 'adopt-openj9'
java-version: '17'
cache: 'maven'
- name: Set cores to get stored in /cores
run: |
sudo mkdir /cores
sudo chmod 777 /cores
# Core filenames will be of the form executable.pid.timestamp:
sudo bash -c 'echo "/cores/%e.%p.%t" > /proc/sys/kernel/core_pattern'
- name: Run the binary
run: |
# Allow core dumps
ulimit -c unlimited
# Run the program, triggering core dump
./example
- uses: actions/upload-artifact@v3
if: ${{ failure() }} # Run only if something went wrong
with:
name: cores
path: /cores

- name: bootstrap
run: mvn -Pbootstrap clean package
- name: bundle install
Expand Down

0 comments on commit bc4946b

Please sign in to comment.