Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on pkg upgrade #1663

Closed
hurricup opened this issue Feb 3, 2018 · 4 comments
Closed

Segmentation fault on pkg upgrade #1663

hurricup opened this issue Feb 3, 2018 · 4 comments

Comments

@hurricup
Copy link

hurricup commented Feb 3, 2018

Freebsd: 11.1-RELEASE
pkg: 1.10.3 - 1.10.4
I hava a mysql56-client-5.6.38_1 installed.

While trying to upgrade curl, it (no idea why) suggests to install mariadb100-client: 10.0.33 and than:

DBG(1)[44288]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/quarterly/All/mariadb100-client-10.0.33.txz with opts "i"
[1/1] Fetching mariadb100-client-10.0.33.txz: 100%    1 MiB   1.5MB/s    00:01
Checking integrity...DBG(1)[44288]> Binary> loading /var/cache/pkg/mariadb100-client-10.0.33-1a4ba3d42e.txz
DBG(1)[44288]> cannot load files from mariadb100-client and (null) to check conflicts
Segmentation fault (core dumped)
@brd
Copy link
Member

brd commented Feb 15, 2018

Freebsd: 11.1-RELEASE
pkg: 1.10.3 - 1.10.4
I hava a mysql56-client-5.6.38_1 installed. And it's locked.

When trying to upgrade curl/glib/tiff pkg insists on installing conflicting mariadb100-client, leading to #1663
Unlocking mysql56-client-5.6.38_1 solves problem

@brd
Copy link
Member

brd commented Feb 15, 2018

@hurricup Please post the command you ran and full output when it advised to install mariadb.

@hurricup
Copy link
Author

hurricup commented Feb 16, 2018

All my packages are up to date now, but force works as well:

db hurricup # pkg lock mysql56-client-5.6.39
mysql56-client-5.6.39: lock this package? [y/N]: y
Locking mysql56-client-5.6.39
db hurricup # pkg upgrade -f curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        mariadb100-client: 10.0.34

Installed packages to be REINSTALLED:
        curl-7.58.0

Number of packages to be installed: 1
Number of packages to be reinstalled: 1

The process will require 38 MiB more space.
1 MiB to be downloaded.

Proceed with this action? [y/N]:

@gahr
Copy link
Member

gahr commented Apr 5, 2018

I have the same issue, vim install and locked, trying to install vim-console.

(gdb) bt
#0  0x00000000005ce4fa in pkg_conflicts_register_chain (j=0x801fc9a00, u1=0x801e16500, u2=0x801f1d100, path=0x801e78c00 "/usr/local/bin/evim") at pkg_jobs_conflicts.c:316
#1  0x00000000005cd79b in pkg_conflicts_check_chain_conflict (it=0x801e16500, local=0x0, j=0x801fc9a00) at pkg_jobs_conflicts.c:482
#2  0x00000000005cd5ce in pkg_conflicts_append_chain (it=0x801e16500, j=0x801fc9a00) at pkg_jobs_conflicts.c:553
#3  0x00000000004860c7 in pkg_jobs_check_conflicts (j=0x801fc9a00) at pkg_jobs.c:2283
#4  0x0000000000484f59 in pkg_jobs_solve (j=0x801fc9a00) at pkg_jobs.c:1883
#5  0x0000000000416c09 in exec_install (argc=1, argv=0x7fffffffec08) at install.c:223
#6  0x00000000004182f3 in main (argc=3, argv=0x7fffffffebf8) at main.c:886
(gdb) up
#1  0x00000000005cd79b in pkg_conflicts_check_chain_conflict (it=0x801e16500, local=0x0, j=0x801fc9a00) at pkg_jobs_conflicts.c:482
(gdb) p *cun
$1 = {pkg = 0x100, priority = 4044, processed = false, hh = {tbl = 0x0, prev = 0x0, next = 0x0, hh_prev = 0x0, hh_next = 0x0, key = 0x0, keylen = 0, hashv = 0}, next = 0x0, prev = 0x0}
(gdb)

gahr added a commit to gahr/pkg that referenced this issue Apr 6, 2018
Before:
Checking integrity...Child process pid=40754 terminated abnormally:
Segmentation fault

After:
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        vim-console: 8.0.1655 [FreeBSD]

Number of packages to be installed: 1

The process will require 23 MiB more space.

Proceed with this action? [y/N]: y
[dev.ptrcrt.ch] [1/1] Installing vim-console-8.0.1655...
pkg-static: vim-console-8.0.1655 conflicts with vim-8.0.1655 (installs files
  into the same place).  Problematic file: /usr/local/bin/evim

Issue freebsd#1663
bapt pushed a commit that referenced this issue Apr 6, 2018
Before:
Checking integrity...Child process pid=40754 terminated abnormally:
Segmentation fault

After:
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        vim-console: 8.0.1655 [FreeBSD]

Number of packages to be installed: 1

The process will require 23 MiB more space.

Proceed with this action? [y/N]: y
[dev.ptrcrt.ch] [1/1] Installing vim-console-8.0.1655...
pkg-static: vim-console-8.0.1655 conflicts with vim-8.0.1655 (installs files
  into the same place).  Problematic file: /usr/local/bin/evim

Issue #1663
brd pushed a commit that referenced this issue May 9, 2018
Before:
Checking integrity...Child process pid=40754 terminated abnormally:
Segmentation fault

After:
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        vim-console: 8.0.1655 [FreeBSD]

Number of packages to be installed: 1

The process will require 23 MiB more space.

Proceed with this action? [y/N]: y
[dev.ptrcrt.ch] [1/1] Installing vim-console-8.0.1655...
pkg-static: vim-console-8.0.1655 conflicts with vim-8.0.1655 (installs files
  into the same place).  Problematic file: /usr/local/bin/evim

Issue #1663
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue May 9, 2018
freebsd/pkg#1663

Approved by:	bapt


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@469451 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue May 9, 2018
swills pushed a commit to swills/freebsd-ports that referenced this issue May 9, 2018
freebsd/pkg#1663

Approved by:	bapt


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@469451 35697150-7ecd-e111-bb59-0022644237b5
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this issue May 9, 2018
freebsd/pkg#1663

Approved by:	bapt


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@469451 35697150-7ecd-e111-bb59-0022644237b5
vkarlsen added a commit to vkarlsen/customports that referenced this issue May 9, 2018
netgate-git-updates pushed a commit to pfsense/FreeBSD-ports that referenced this issue Jun 29, 2018
freebsd/pkg#1663

Approved by:	bapt

(cherry picked from commit c5c22d5)
@brd brd closed this as completed Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants