Bug 249185 - ports-mgmt/pkg: 1.15.1 Segmentation fault
Summary: ports-mgmt/pkg: 1.15.1 Segmentation fault
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-08 06:04 UTC by peter.larsen
Modified: 2020-09-09 04:52 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pkg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peter.larsen 2020-09-08 06:04:31 UTC
tested on freebsd 11,4 and 12,1:

pkg is homebuild on poudriere 


# pkg audit -F
Child process pid=12392 terminated abnormally: Segmentation fault

started this morning at 7 ish am after update to 1.15.1
Comment 1 peter.larsen 2020-09-08 06:12:56 UTC
it appears to resolve itself if installing a "original" pkg ala:

# pkg 
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest, please wait...
Installing pkg-1.14.7...
Extracting pkg-1.14.7: 100%
pkg: not enough arguments
Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r <rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o var=value] [-4|-6] <command> [<args>]

For more information on available commands and options see 'pkg help'.

pkg audit -F
Fetching vuln.xml.bz2: 100%  878 KiB 899.5kB/s    00:01    
0 problem(s) in 0 installed package(s) found.

and then reinstalling the poudriere version...
Comment 2 peter.larsen 2020-09-08 06:49:25 UTC
# pkg audit -F
Fetching vuln.xml.bz2:   0%Child process pid=84575 terminated abnormally: Segmentation fault

# pkg audit -F -f /usr/ports/security/vuxml/vuln.xml
vulnxml file up-to-date
0 problem(s) in 0 installed package(s) found.

# pkg -v
1.15.1
Comment 3 peter.larsen 2020-09-08 19:02:21 UTC
still on 1.15.2


# pkg audit -F
Fetching vuln.xml.bz2:   0%Child process pid=90892 terminated abnormally: Segmentation fault
# pkg -v
1.15.2
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2020-09-08 19:23:10 UTC
should be fixed in pkg 1.15.3, sorry about that
Comment 5 commit-hook freebsd_committer freebsd_triage 2020-09-08 19:23:21 UTC
A commit references this bug:

Author: bapt
Date: Tue Sep  8 19:22:41 UTC 2020
New revision: 548043
URL: https://svnweb.freebsd.org/changeset/ports/548043

Log:
  Update to 1.15.3
  - Fix fetching files not belonging to a repo (fixes pkg audit -F)

  PR:		249185
  Reported by:	Peter Larsen

Changes:
  head/ports-mgmt/pkg/Makefile
  head/ports-mgmt/pkg/distinfo
Comment 6 peter.larsen 2020-09-09 04:52:45 UTC
confirmed fixed, thank you

# pkg audit -F
Fetching vuln.xml.bz2: 100%  878 KiB 899.5kB/s    00:01    
0 problem(s) in 0 installed package(s) found.
# pkg -v
1.15.3