Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg_create segfaults when given build-info #4

Open
FWDekker opened this issue Nov 23, 2023 · 0 comments
Open

pkg_create segfaults when given build-info #4

FWDekker opened this issue Nov 23, 2023 · 0 comments

Comments

@FWDekker
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant