Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: netbsd-8 'pkg_info' segfaults during package builds?



On Mon, 25 Dec 2017, John D. Baker wrote:

> There's no room on the root/usr filesystem for debug sets so I'll have
> to see about redirecting that with a symlink to see if I can get more
> information.

Used a null mount instead so I can actually update the sets as part of
normal update procedure.

More info indeed:

Core was generated by `pkg_info'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000072db63b6bdcd in __sfvwrite (
    fp=<error reading variable: Cannot access memory at address 0x7f7ffec8afb8>, uio=<error reading variable: Cannot access memory at address 0x7f7ffec8afb0>)
    at /d0/nbsd/netbsd-8/src/lib/libc/stdio/fvwrite.c:62
62      {
(gdb) bt
#0  0x000072db63b6bdcd in __sfvwrite (
    fp=<error reading variable: Cannot access memory at address 0x7f7ffec8afb8>, uio=<error reading variable: Cannot access memory at address 0x7f7ffec8afb0>)
    at /d0/nbsd/netbsd-8/src/lib/libc/stdio/fvwrite.c:62
#1  0x000072db63b4627c in __sprint (fp=0x7f7ffec8b420, uio=0x7f7ffec8b1a0)
    at /d0/nbsd/netbsd-8/src/lib/libc/stdio/vfwprintf.c:241
#2  0x000072db63b4b88f in __vfprintf_unlocked_l (fp=0x7f7ffec8b420, 
    loc=0x72db63dad3c0 <_lc_global_locale>, fmt0=0x107014342 "%s/%s/%s", 
    ap=0x7f7ffec8b6c8) at /d0/nbsd/netbsd-8/src/lib/libc/stdio/vfwprintf.c:1566
#3  0x000072db63b0fd1a in _vasprintf_l (str=0x7f7ffec8b6c0, 
    loc=0x72db63dad3c0 <_lc_global_locale>, fmt=0x107014342 "%s/%s/%s", 
    ap=0x7f7ffec8b6c8) at /d0/nbsd/netbsd-8/src/lib/libc/stdio/vasprintf.c:70
#4  0x000072db63b0fe02 in _vasprintf (str=0x7f7ffec8b6c0, 
    fmt=0x107014342 "%s/%s/%s", ap=0x7f7ffec8b6c8)
    at /d0/nbsd/netbsd-8/src/lib/libc/stdio/vasprintf.c:91
#5  0x0000000107011b3c in xasprintf (fmt=0x107014342 "%s/%s/%s")
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/lib/xwrapper.c:58
#6  0x0000000107010930 in pkgdb_pkg_file (
    pkg=0x72db23992680 "tex-latex-bin-2016nb1", file=0x107012080 "+CONTENTS")
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/lib/pkgdb.c:338
#7  0x0000000107005c2c in read_meta_data_from_pkgdb (
    pkg=0x72db23992680 "tex-latex-bin-2016nb1")
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/info/perform.c:248
#8  0x0000000107005f3e in build_full_reqby (reqby=0x7f7fff08a170, 
    meta=0x72db239f0b00, limit=43617)
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/info/perform.c:311
#9  0x0000000107005f62 in build_full_reqby (reqby=0x7f7fff08a170, 
    meta=0x72db239f0a80, limit=43616)
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/info/perform.c:314
#10 0x0000000107005f62 in build_full_reqby (reqby=0x7f7fff08a170, 
    meta=0x72db239f0a00, limit=43615)
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/info/perform.c:314
[...]
#8999 0x0000000107005f62 in build_full_reqby (reqby=0x7f7fff08a170, 
    meta=0x72db30c24400, limit=34626)
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/info/perform.c:314
#9000 0x0000000107005f62 in build_full_reqby (reqby=0x7f7fff08a170, 
    meta=0x72db30c24380, limit=34625)
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/info/perform.c:314
#9001 0x0000000107005f62 in build_full_reqby (reqby=0x7f7fff08a170, 
    meta=0x72db30c24300, limit=34624)
    at /d0/nbsd/netbsd-8/src/external/bsd/pkg_install/dist/info/perform.c:314
["It's over 9000!"]
[...]

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index