vmactions / netbsd-vm

Use NetBSD in github actions
MIT License
19 stars 1 forks source link

`pkg_create` segfaults when given build-info #4

Open FWDekker opened 9 months ago

FWDekker commented 9 months ago

I use pkg_create to create a package which I can then release. However, after upgrading to the new v1 action, a segfault occurs. The segfault does not occur in the v0 action, does not occur when I run the same code in the shell-netbsd action, and I cannot reproduce the segfault in a NetBSD VM. Therefore, I think the error is with the netbsd-vm action.


I have created the following minimal GitHub actions workflow that causes a segfault. I found that the segfault occurs only when I use pkg_create's -B option.

on: [push]
jobs:
  netbsd-job:
    runs-on: ubuntu-22.04
    steps:
      - uses: vmactions/netbsd-vm@v1
        with:
          run: |
            set -e

            touch packlist buildinfo

            echo "::group::Without buildinfo"
            /usr/sbin/pkg_create -c -comment -d -desc -f packlist pkg-name.tgz
            echo "::endgroup::"

            echo "::group::With buildinfo"
            /usr/sbin/pkg_create -B ./buildinfo -c -comment -d -desc -f packlist pkg-name.tgz
            echo "::endgroup::"

Here are the full logs from running that action. The segfault occurs just below ##[group]With buildinfo.