From owner-freebsd-pkg@freebsd.org Fri Mar 4 09:24:53 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1ABDB9DA710 for ; Fri, 4 Mar 2016 09:24:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 050FAE11 for ; Fri, 4 Mar 2016 09:24:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 00D4F9DA70F; Fri, 4 Mar 2016 09:24:53 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 007979DA70D for ; Fri, 4 Mar 2016 09:24:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E49DEE10 for ; Fri, 4 Mar 2016 09:24:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u249OqMi099974 for ; Fri, 4 Mar 2016 09:24:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 207694] ports-mgmt/pkg: 'pkg version -x' crashes when using /usr/ports which doesn't have INDEX-* files Date: Fri, 04 Mar 2016 09:24:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mt@markoturk.info X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 09:24:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207694 --- Comment #5 from mt@markoturk.info --- After WITH_DEBUG=3Dyes pkg binary is still stripped, I must've done somethi= ng wrong. But I managed to get usable core dump with pkg-static: Core was generated by `pkg-static'. Program terminated with signal 11, Segmentation fault. #0 0x0806abe6 in free_categories () at version.c:359 359 kh_foreach_value(categories, cat, { (gdb) bt #0 0x0806abe6 in free_categories () at version.c:359 #1 0x0806a74e in do_source_ports (opt=3D1024, limchar=3D45 '-', pattern=3D= 0xbfbfee32 "aaaaaaa", match=3DMATCH_REGEX, matchorigin=3D0x0, matchname=3D0x0, portsdir=3D0x28c04160 "/usr/ports") at version.c:781 #2 0x08069698 in exec_version (argc=3D0, argv=3D0xbfbfed00) at version.c:9= 97 #3 0x0805926e in main (argc=3D3, argv=3D0xbfbfecf4) at main.c:852 BR, Marko --=20 You are receiving this mail because: You are the assignee for the bug.=