ports/184520: SIGSEGV in pkg

Maarten Billemont lhunath at lyndir.com
Thu Dec 5 16:00:01 UTC 2013


>Number:         184520
>Category:       ports
>Synopsis:       SIGSEGV in pkg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 05 16:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Maarten Billemont
>Release:        9.1
>Organization:
>Environment:
FreeBSD satura.lyndir.com 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Running pkg2ng results in a Segmentation Fault.

Here's the result of running pkg convert in gdb:

[a bunch of output from other packages getting converted]
Converting hs-git-annex-3.20120807...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 803407400 (LWP 788249/pkg)]
0x0000000800ac019a in pkg_repo_fetch () from /usr/local/lib/libpkg.so.1
(gdb) bt
#0  0x0000000800ac019a in pkg_repo_fetch () from /usr/local/lib/libpkg.so.1
#1  0x0000000800ac09e7 in pkg_repo_fetch () from /usr/local/lib/libpkg.so.1
#2  0x0000000800ac1cf8 in ports_parse_plist () from /usr/local/lib/libpkg.so.1
#3  0x0000000800abd7b3 in pkg_old_load_from_path () from /usr/local/lib/libpkg.so.1
#4  0x000000000040b4af in ?? ()
#5  0x000000000040eccf in ?? ()
#6  0x000000000040717e in ?? ()
#7  0x000000080066d000 in ?? ()
#8  0x0000000000000000 in ?? ()
#9  0x0000000000000000 in ?? ()
#10 0x0000000000000002 in ?? ()
#11 0x00007fffffffdc50 in ?? ()
#12 0x00007fffffffdc64 in ?? ()
#13 0x0000000000000000 in ?? ()
#14 0x00007fffffffdc6c in ?? ()

After pkg convert fails, pkg2ng proceeds to do this and then "hangs":
+ rm -f /var/db/pkg/pkgdb.db
+ /usr/local/sbin/pkg check -Ba
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list