Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Mar 2016 09:24:53 +0000
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
Message-ID:  <bug-207694-32340-UJjpOliI2j@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207694-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207694-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207694-32340-UJjpOliI2j>