Skip to content

pkg_create segfaults when given build-info #4

@fwdekker

Description

@fwdekker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions