Solved Segfault at the end of upgrade process, but during the upgrade of 3rd party packages

Hello everyone,

At the end of the upgrade process, before executing freebsd-update install for the last time, the system asked to upgrade 3rd party packages too.

Because I installed most of the ports using pkg (and a few ones using portmaster, only the ones that required a change in the options), I wanted to use pkg-static to upgrade most of the ports, as described in the handbook (§24.2.3.). (I recently asked about this.)

So I began to lock the few ports that I will actually rebuild with portmaster in a second step...
Code:
# pkg unlock -yq --all
# pkg lock -y lang/php5-extensions
Locking php5-extensions-1.7
# pkg lock -y lang/php5
Locking php5-5.4.37
# pkg lock -y ftp/proftpd
Locking proftpd-1.3.5_6
and then ran:
Code:
# pkg-static upgrade -f
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (251 candidates): 100%
Processing candidates (251 candidates):  29%

php5-5.4.37 is locked and may not be modified
Processing candidates (251 candidates): 100%
Child process pid=66756 terminated abnormally: Segmentation fault
#
What should I do now? I don't want to mess up everything, so is it safe to try portmaster -af?
 
Here are the answers:
Code:
# pkg -v
1.4.10
/usr/local/etc/pkg.conf is empty, or I guess, just doesn't exist... this is strange...
Code:
# find / -name "pkg.conf"
#
 
What versions of FreeBSD were you upgrading from and to?

Perhaps try to upgrade only ports-mgmt/pkg by running the following command: # pkg-static upgrade pkg

Does your original command # pkg-static upgrade -f work after that?
 
Sorry I forgot to mention from the beginning it is an upgrade from 10.0-RELEASE-p12 to 10.1-RELEASE.

No, # pkg-static upgrade pkg does not upgrade pkg, it says:
Code:
# pkg-static upgrade pkg
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
#

And after that, nothing new... maybe I can try to update pkg using portmaster?
 
Well, finally I decided to try upgrading everything with pkg-static, and not to lock anything. This time, no segmentation fault. And it doesn't seem to have changed my configuration options.

I set it as SOLVED, but don't know if it's really solved. It doesn't seem normal that pkg-static ends up with a segmentation fault.
 
Back
Top