Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2018 11:19:46 +0900
From:      KIRIYAMA Kazuhiko <kiri@kx.openedu.org>
To:        freebsd-current <freebsd-current@freebsd.org>, ports@freebsd.org
Cc:        kiri@kx.openedu.org
Message-ID:  <201804250219.w3P2JkPA082841@kx.openedu.org>

next in thread | raw e-mail | index | archive | help
Hi,

Today, suddenly pkg or bsdtar failed to core dumped. 
'pkg info -aI' crashed with:


root@vms:~ # pkg info -aI
Segmentation fault (core dumped)
root@vms:~ # ll *.core
-rw-------  1 root  wheel  9555968 Apr 25 10:48 pkg.core
root@vms:~ # /usr/libexec/gdb /usr/local/sbin/pkg
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"...(no debugging symbols found)...
(gdb) core pkg.core
Core was generated by `pkg info -aI'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000800306878 in ?? ()
(gdb) bt
#0  0x0000000800306878 in ?? ()
#1  0x000000080021307a in ?? ()
#2  0x0000000800af8980 in ?? ()
#3  0x0000000800af7c7c in ?? ()
#4  0x00007fffffffdab8 in ?? ()
#5  0x0000000800234400 in ?? ()
#6  0x0000000000000003 in ?? ()
#7  0x00007fffffffdb60 in ?? ()
#8  0x00007fffffffdb40 in ?? ()
#9  0x00000008002155ad in ?? ()
#10 0x00007fffffffdb60 in ?? ()
#11 0x0000000000000000 in ?? ()
(gdb) 


And 'make extract' in a port:


root@vms:/var/ports/msrvms/sysutils/vm-bhyve-devel # make clean
===>  Cleaning for vm-bhyve-devel-1.2b
root@vms:/var/ports/msrvms/sysutils/vm-bhyve-devel # make deinstall
===>  Deinstalling for vm-bhyve-devel
===>   vm-bhyve-devel not installed, skipping
root@vms:/var/ports/msrvms/sysutils/vm-bhyve-devel # make -de extract
===>  License BSD2CLAUSE accepted by the user
===>   vm-bhyve-devel-1.2b depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by vm-bhyve-devel-1.2b for building
===>  Extracting for vm-bhyve-devel-1.2b
=> SHA256 Checksum OK for churchers-vm-bhyve-v1.2b-c9ec4d05f61efeb98b6cd2dc663f859881a12431_GH0.tar.gz.
Segmentation fault (core dumped)

*** Failed target:  do-extract
*** Failed command: for file in churchers-vm-bhyve-v1.2b-c9ec4d05f61efeb98b6cd2dc663f859881a12431_GH0.tar.gz; do if ! (cd /var/ports/work/var/ports/msrvms/sysutils/vm-bhyve-devel/work && /usr/bin/tar -xf /var/ports/distfiles//$file --no-same-owner --no-same-permissions); then exit 1; fi; done
*** Error code 1

Stop.
make: stopped in /var/ports/msrvms/sysutils/vm-bhyve-devel
root@vms:/var/ports/msrvms/sysutils/vm-bhyve-devel # cd /var/ports/work/var/ports/msrvms/sysutils/vm-bhyve-devel/work
root@vms:/var/ports/work/var/ports/msrvms/sysutils/vm-bhyve-devel/work # ll *.core
-rw-------  1 root  wheel  9465856 Apr 25 10:53 bsdtar.core
root@vms:/var/ports/work/var/ports/msrvms/sysutils/vm-bhyve-devel/work # /usr/libexec/gdb /usr/bin/tar
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 bsdtar.core
warning: core file may not match specified executable file.
Core was generated by `/usr/bin/tar -xf /var/ports/distfiles//churchers-vm-bhyve-v1.2b-c9ec4d05f61efeb9'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libarchive.so.7...Reading symbols from /usr/lib/debug//usr/lib/libarchive.so.7.debug...done.
done.
Loaded symbols for /usr/lib/libarchive.so.7
Reading symbols from /lib/libc.so.7...Reading symbols from /usr/lib/debug//lib/libc.so.7.debug...done.
done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /lib/libz.so.6...Reading symbols from /usr/lib/debug//lib/libz.so.6.debug...done.
done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/lib/libbz2.so.4...Reading symbols from /usr/lib/debug//usr/lib/libbz2.so.4.debug...done.
done.
Loaded symbols for /usr/lib/libbz2.so.4
Reading symbols from /usr/lib/liblzma.so.5...Reading symbols from /usr/lib/debug//usr/lib/liblzma.so.5.debug...done.
done.
Loaded symbols for /usr/lib/liblzma.so.5
Reading symbols from /lib/libbsdxml.so.4...Reading symbols from /usr/lib/debug//lib/libbsdxml.so.4.debug...done.
done.
Loaded symbols for /lib/libbsdxml.so.4
Reading symbols from /lib/libcrypto.so.8...Reading symbols from /usr/lib/debug//lib/libcrypto.so.8.debug...done.
done.
Loaded symbols for /lib/libcrypto.so.8
Reading symbols from /lib/libthr.so.3...Reading symbols from /usr/lib/debug//lib/libthr.so.3.debug...done.
done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /libexec/ld-elf.so.1...Reading symbols from /usr/lib/debug//libexec/ld-elf.so.1.debug...done.
done.
Loaded symbols for /libexec/ld-elf.so.1
#0  _init () at /ds/src/current/12.0/r331153/lib/csu/amd64/crti.S:34
34              subq    $8,%rsp
[New Thread 801075000 (LWP 100316/<unknown>)]
Current language:  auto; currently asm
(gdb) bt
#0  _init () at /ds/src/current/12.0/r331153/lib/csu/amd64/crti.S:34
#1  0x000000080021a07a in objlist_call_init (list=<value optimized out>, lockstate=<value optimized out>) at /ds/src/current/12.0/r331153/libexec/rtld-elf/rtld.c:2678
#2  0x0000000800218fcc in _rtld (sp=<value optimized out>, exit_proc=0x7fffffffe6d0, objp=0x7fffffffe6d8) at /ds/src/current/12.0/r331153/libexec/rtld-elf/rtld.c:767
#3  0x0000000800217019 in .rtld_start () at /ds/src/current/12.0/r331153/libexec/rtld-elf/amd64/rtld_start.S:39
#4  0x0000000000000000 in ?? ()
(gdb) 
root@vms:~ # uname -a
FreeBSD vms.pis 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r331153: Tue Mar 20 10:13:56 JST 2018     admin@t.pis:/ds/obj/current/12.0/r331153/ds/src/current/12.0/r331153/amd64.amd64/sys/GENERIC  amd64
root@vms:~ #


Ports revision is r465515. Waht's happend ?

Best regards

---
KIRIYAMA Kazuhiko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804250219.w3P2JkPA082841>