NetBSD-Users archive

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

Segmentation fault (core dumped) pkg_add -v minidlna



Something is wrong with pkg_add on NetBSD-9.0 as it crashes with
segfault when installing minidlna. I haven't built debug symbols so
can't see exactly where the problem is, but suspect libfetch is passing
bogus pointer to strcmp. 

Can anyone reproduce this?

NetBSD nt510 9.0_STABLE NetBSD 9.0_STABLE (GENERIC) #0: Thu Feb 20 22:26:22 GMT 2020

nt510# echo $PKG_PATH
http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0/All

nt510# rm -rf /var/db/pkg/* /var/db/pkg.refcount/* /usr/pkg/*

nt510# pkg_add -v minidlna
[1]   Segmentation fault (core dumped) pkg_add -v minidlna

nt510# gdb `which pkg_add` /usr/pkg/pkg_add.core 
GNU gdb (GDB) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/pkg_add...
(No debugging symbols found in /usr/sbin/pkg_add)
[New process 1]
Core was generated by `pkg_add'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000707f1616b3fb in strcmp () from /usr/lib/libc.so.12
(gdb) bt
#0  0x0000707f1616b3fb in strcmp () from /usr/lib/libc.so.12
#1  0x0000707f18409153 in fetch_cache_put () from /usr/lib/libfetch.so.3
#2  0x0000707f184043e0 in ?? () from /usr/lib/libfetch.so.3
#3  0x0000707f1840a1f9 in fetchIO_close () from /usr/lib/libfetch.so.3
#4  0x0000000003a0d452 in ?? ()
#5  0x0000707f17677a5f in ?? () from /usr/lib/libarchive.so.4
#6  0x0000707f17677aa7 in ?? () from /usr/lib/libarchive.so.4
#7  0x0000707f17677b21 in ?? () from /usr/lib/libarchive.so.4
#8  0x0000707f176787b0 in ?? () from /usr/lib/libarchive.so.4
#9  0x0000000003a05fa3 in pkg_do ()
#10 0x0000000003a1078e in check_dependencies ()
#11 0x0000000003a06d6d in pkg_do ()
#12 0x0000000003a1078e in check_dependencies ()
#13 0x0000000003a06d6d in pkg_do ()
#14 0x0000000003a07114 in pkg_perform ()
#15 0x0000000003a10b59 in main ()


Home | Main Index | Thread Index | Old Index