Pkg update : Segmentation fault


#1

michael$ about

===================
General information
===================

boot environment now (N) … 12.0-CURRENT-up-20180503_164252 NR 2018-05-03
       after restart (R) … 12.0-CURRENT-up-20180503_164252 NR 2018-05-03
boot loader …………………………………… BSD
            type ……………………… BIOS
CPU ………………………………………………………… AMD FX(tm)-6300 Six-Core Processor
    number of cores ……………… 6
host ……………………………………………………… trueos-2269.home.net
memory ………………………………………………… 16384 MB available, 10451 MB free
OS git branch ……………………………………………………………………………………… trueos-stable-18.03
OS git revision ………………………………………………………………………………… fa797a5a3
OS kernel build time ………………………………………………………… Mon 2018 Mar 26 00:24:47 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… STABLE
TrueOS version …………………………… TrueOS-Desktop-201803131015
uptime ………………………………………………… 32 mins
user  …………………………………………………… michael

More (TrueOS Desktop):

    desktop environment …… Lumina
    sound card driver ………… pcm4: <Realtek ALC889 (Rear Analog 7.1/2.0)> (play/rec) default
    wireless driver ………………
    X11 drivers ………………………… nvidia_drv.so

michael $ sudo pc-updatemanager confcheck &&
sudo pc-updatemanager syncconf &&
sudo pc-updatemanager pkgcheck
Password:

Boot-strapping updater...OK
Boot-strapping updater...OK
Boot-strapping updater...OK
Updating the pkg database...
Child process pid=8356 terminated abnormally: Segmentation fault
The following updates are available:
------------------------------------
NAME: System package updates
TYPE: PKGUPDATE

To install: "pc-updatemanager pkgupdate"

michael$ sudo pc-updatemanager pkgupdate

Boot-strapping updater...OK
Child process pid=9021 terminated abnormally: Segmentation fault
Boot-strapping package base...
Child process pid=9023 terminated abnormally: Segmentation fault
Child process pid=9069 terminated abnormally: Segmentation fault
Child process pid=9073 terminated abnormally: Segmentation fault
Boot-strapping latest PKGNG
/var/run/pc-updatemanager/pkgbs/.pkg.txz.8967 100% of 2783 kB 1867 kBps 00m02s

Updating the package repo database...
Cleaning old pkg upgrade cache...
fetch -o /usr/local/pkg-cache/fbsd-distrib.txz http://pkg.cdn.trueos.org/master/amd64-base/fbsd-distrib.txz
/usr/local/pkg-cache/fbsd-distrib.txz         100% of 3582 kB 2232 kBps 00m01s
/usr/local/pkg-cache/fbsd-distrib.txz.sha1    100% of  512  B 3377 kBps 00m00s
Verified OK
Updating trueos-major repository catalogue...
trueos-major repository is up to date.
Updating trueos-base repository catalogue...
trueos-base repository is up to date.
All repositories are up to date.
Verifying / fetching packages for ports-mgmt/pkg - .txz

Number of packages to be fetched: 1
No packages are required to be fetched.
Integrity check was successful.

Number of packages to be fetched: 1
No packages are required to be fetched.
Integrity check was successful.

Number of packages to be fetched: 1
No packages are required to be fetched.
Integrity check was successful.

Number of packages to be fetched: 1
No packages are required to be fetched.
Integrity check was successful.
ERROR: Failed fetching: ports-mgmt/pkg - .txz

#2

Are you using IPFS or TRADITIONAL ?

IPFS has been turned off, so make sure you are using TRADITIONAL


#3

I changed forth and back yesterday. Control panel says TRADITIONAL


#4

had to make sure, similar

I see only 1 thing. change line 2 to;

sudo pc-updatemanager syncconf &&

about

===================
General information

boot environment now (N) … 12-CURRENT-up-20180329_195201 NR 2018-03-29
after restart ® … 12-CURRENT-up-20180329_195201 NR 2018-03-29
boot loader …………………………………… BSD
type ……………………… BIOS
CPU ………………………………………………………… Intel® Core™ i3-3240 CPU @ 3.40GHz
number of cores ……………… 4
host ……………………………………………………… lakenheath.hitwe-8.org
memory ………………………………………………… 8192 MB available, 2160 MB free
OS git branch ……………………………………………………………………………………… trueos-stable-18.03
OS git revision ………………………………………………………………………………… fa797a5a3
OS kernel build time ………………………………………………………… Mon 2018 Mar 26 00:24:47 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… STABLE
TrueOS version …………………………… TrueOS-Desktop-201803131015
uptime ………………………………………………… 16 days, 21:36, 1 user, load averages: 1.02, 0.73, 0.50
user …………………………………………………… rodney

More (TrueOS Desktop):

desktop environment …… Lumina
sound card driver ………… pcm0: <Realtek ALC887 (Rear Analog)> (play/rec) default
wireless driver ……………… 
X11 drivers ………………………… intel_drv.so

#5

changed line 2


#6

this is my old script

#! /bin/sh
sudo pc-updatemanager confcheck
sudo pc-updatemanager syncconf
sudo pc-updatemanager pkgcheck

I just ran it, and no seg fault


#7

tried no luck … still their

sh run_updater.sh
Boot-strapping updater...OK
Boot-strapping updater...OK
Boot-strapping updater...OK
Updating the pkg database...
Child process pid=46455 terminated abnormally: Segmentation fault
The following updates are available:
------------------------------------
NAME: System package updates
TYPE: PKGUPDATE

To install: "pc-updatemanager pkgupdate"

#8

the only other thing I can think of, roll back one Boot Environment (BE) and re-upgrade

edit:
FYI I’m writing this on a lenovo t520 as well


#9

i just rolled back
but they are no updates visible

i run all the pc-updatemanager cmd in the script


#10

oh … t520 … nice. Is everything working fine with trueOS on it?
I hope to run trueOS on t520p


#11

been using it for a year.

looks like you have the latest.

try and install any package and see what it does

2 of my scripts;

cat bin/repo-sync
#! /bin/sh
sudo pc-updatemanager confcheck
sudo pc-updatemanager syncconf
sudo pc-updatemanager pkgcheck

cat bin/daily-update
#! /bin/sh
date
sudo pkg update -f
sudo pc-updatemanager pkgcheck


#12

I rolled back. That fixed the issue. Thanks for your help. I watched the status for a WEEK after rollback still fine.