pkg 1.4.0.alpha3 - pkg: pkg_repo_fetch_remote_mmap(cannot mmap fetched): Invalid argument / Assertion failed: (curvar != NULL), function pkg_solve_add_request_rule, file pkg_solve.c, line 537.

From: Michael Jung <mikej_at_mikej.com>
Date: Thu, 30 Oct 2014 12:53:29 -0400
Hello:

Errors shown toward end of email.

Note this is a cleanly installed jail but an previously built repository 
from an older
version of head.  I can nuke the head repository and rebuild from 
scratch but I wanted to
present these errors first.

--mikej


FreeBSD bsd11 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r273857: Thu Oct 30 
08:50:37 EDT 2014
mikej_at_bsd11:/usr/obj/usr/src/sys/GENERIC  amd64

JAILNAME  VERSION                 ARCH  METHOD TIMESTAMP           PATH
10stable  10.1-PRERELEASE r273580 amd64 svn    2014-10-24 11:10:51 
/usr/local/poudriere/jails/10stable
head      11.0-CURRENT r273858    amd64 svn    2014-10-30 10:45:31 
/usr/local/poudriere/jails/head
9stable   9.2-STABLE              amd64 svn                        
/usr/local/poudriere/jails/9stable
9stable32 9.2-STABLE              i386  ftp                        
/usr/local/poudriere/jails/9stable32

root_at_bsd11:~ # pkg -vv
Version                 : 1.4.0.alpha3
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-11";
HANDLE_RC_SCRIPTS = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
     "/etc/pkg/",
     "/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "FreeBSD:11:amd64";
ALTABI = "freebsd:11:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.bz2";
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
PLIST_ACCEPT_DIRECTORIES = false;
IP_VERSION = 0;
AUTOMERGE = true;


Repositories:
   myrepo: {
     url             : 
"File:///usr/local/poudriere/data/packages/head-default",
     enabled         : yes
   }
   FreeBSD_ssp: {
     url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/ssp",
     enabled         : yes,
     mirror_type     : "SRV",
     signature_type  : "FINGERPRINTS",
     fingerprints    : "/usr/share/keys/pkg"
   }
root_at_bsd11:~ #


And here execution from the console:

root_at_bsd11:/usr/local/poudriere/data/packages # rm -r head-default/
root_at_bsd11:/usr/local/poudriere/data/packages # cd
root_at_bsd11:~ # poudriere bulk -j head archivers/arc
[00:00:00] ====>> Creating the reference jail... done
[00:00:00] ====>> Mounting system devices for head-default
[00:00:00] ====>> Mounting ports/packages/distfiles
[00:00:00] ====>> Converting package repository to new format
[00:00:00] ====>> Stashing existing package repository
[00:00:00] ====>> Mounting ccache from: /var/cache/ccache
[00:00:00] ====>> Mounting packages from: 
/usr/local/poudriere/data/packages/head-default
[00:00:00] ====>> Mounting /var/db/ports from: 
/usr/local/etc/poudriere.d/options
[00:00:00] ====>> Appending to make.conf: 
/usr/local/etc/poudriere.d/head-make.conf
/etc/resolv.conf -> 
/usr/local/poudriere/data/.m/head-default/ref/etc/resolv.conf
[00:00:00] ====>> Starting jail head-default
[00:00:01] ====>> Logs: 
/usr/local/poudriere/data/logs/bulk/head-default/2014-10-30_11h12m11s
[00:00:01] ====>> Loading MOVED
[00:00:01] ====>> Calculating ports order and dependencies
[00:00:01] ====>> pkg package missing, skipping sanity
[00:00:01] ====>> Skipping incremental rebuild and repository sanity 
checks
[00:00:01] ====>> Cleaning the build queue
[00:00:01] ====>> Recording filesystem state for prepkg... done
[00:00:03] ====>> Building 3 packages using 3 builders
[00:00:03] ====>> Starting/Cloning builders
[00:00:03] ====>> Hit CTRL+t at any time to see build progress and stats
[00:00:03] ====>> [01][00:00:00] Starting build of ports-mgmt/pkg
[00:01:10] ====>> [01][00:01:07] Finished build of ports-mgmt/pkg: 
Success
[00:01:11] ====>> [01][00:00:00] Starting build of devel/ccache
[00:01:19] ====>> [01][00:00:08] Finished build of devel/ccache: Success
[00:01:20] ====>> [01][00:00:00] Starting build of archivers/arc
[00:01:25] ====>> [01][00:00:05] Finished build of archivers/arc: 
Success
[00:01:26] ====>> Stopping 3 builders
[00:01:27] ====>> Creating pkgng repository
Creating repository in /tmp/packages: 100%
Packing files for repository: 100%
[00:01:29] ====>> Committing packages to repository
[00:01:29] ====>> Removing old packages
[00:01:29] ====>> Built ports: ports-mgmt/pkg devel/ccache archivers/arc
[head-default] [2014-10-30_11h12m11s] [committing:] Queued: 3  Built: 3  
Failed: 0  Skipped: 0  Ignored: 0  Tobuild: 0   Time: 00:01:28
[00:01:29] ====>> Logs: 
/usr/local/poudriere/data/logs/bulk/head-default/2014-10-30_11h12m11s
[00:01:29] ====>> Cleaning up
[00:01:29] ====>> Umounting file systems
root_at_bsd11:~ #
root_at_bsd11:~ # pkg update
Updating myrepo repository catalogue...
Fetching meta.txz: 100%   260 B   0.3k/s    00:01
Fetching packagesite.txz: 100%   152 B   0.2k/s    00:01
pkg: pkg_repo_fetch_remote_mmap(cannot mmap fetched): Invalid argument  
<<<<<
pkg: Unable to update repository myrepo
Updating FreeBSD_ssp repository catalogue...
FreeBSD_ssp repository is up-to-date.
All repositories are up-to-date.
root_at_bsd11:~ #
root_at_bsd11:~ # pkg update
Updating myrepo repository catalogue...
myrepo repository is up-to-date.
Updating FreeBSD_ssp repository catalogue...
FreeBSD_ssp repository is up-to-date.
All repositories are up-to-date.
root_at_bsd11:~ #
root_at_bsd11:~ # pkg upgrade
Updating myrepo repository catalogue...
myrepo repository is up-to-date.
Updating FreeBSD_ssp repository catalogue...
FreeBSD_ssp repository is up-to-date.
All repositories are up-to-date.
Updating database digests format: 100%
Checking for upgrades (250 candidates):  74%
gtkmm24 has no direct installation candidates, change it to gtkmm24? 
[Y/n]:
Checking for upgrades (250 candidates):  91%
db48 has no direct installation candidates, change it to db? [Y/n]:
Checking for upgrades (250 candidates):  93%
compat6x-amd64 has no direct installation candidates, change it to 
compat6x-amd64? [Y/n]:
Checking for upgrades (250 candidates): 100%
Processing candidates (250 candidates): 100%
Assertion failed: (curvar != NULL), function pkg_solve_add_request_rule, 
file pkg_solve.c, line 537. <<<<<
Child process pid=45189 terminated abnormally: Abort trap
root_at_bsd11:~ #
root_at_bsd11:~ # ls -la /usr/local/poudriere/data/packages/head-default/
total 8
drwxr-xr-x  3 root  wheel   9 Oct 30 11:13 .
drwxr-xr-x  8 root  wheel   8 Oct 30 11:12 ..
lrwxr-xr-x  1 root  wheel  16 Oct 30 11:13 .latest -> .real_1414682020
drwxr-xr-x  4 root  wheel   8 Oct 30 11:13 .real_1414682020
lrwxr-xr-x  1 root  wheel  11 Oct 30 11:13 All -> .latest/All
lrwxr-xr-x  1 root  wheel  14 Oct 30 11:13 Latest -> .latest/Latest
lrwxr-xr-x  1 root  wheel  19 Oct 30 11:13 digests.txz -> 
.latest/digests.txz
lrwxr-xr-x  1 root  wheel  16 Oct 30 11:13 meta.txz -> .latest/meta.txz
lrwxr-xr-x  1 root  wheel  23 Oct 30 11:13 packagesite.txz -> 
.latest/packagesite.txz
root_at_bsd11:~ #



Not a programmer debugger - this may be be useless.

root_at_bsd11:~ # gdb
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "amd64-marcel-freebsd".
(gdb) core pkg.core
Core was generated by `pkg'.
Program terminated with signal 6, Aborted.
#0  0x0000000802b3c12a in ?? ()
(gdb)

http://216.26.158.189/pkg.core

Full build logs

http://216.26.158.189//2014-10-30_11h12m11s/

I have only tested downstream 10x64 clients against the same build 
server poudriere jail
"10stable" and they do not have any issue with updating the pkg 
repository or installing
newly built packages like archivers/arc.


--mikej
Received on Thu Oct 30 2014 - 16:00:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:53 UTC