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=207694

--- Comment #5 from mt@markoturk.info ---
After WITH_DEBUG=yes pkg binary is still stripped, I must've done something
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=1024, limchar=45 '-', pattern=0xbfbfee32
"aaaaaaa", match=MATCH_REGEX, matchorigin=0x0, matchname=0x0,
portsdir=0x28c04160 "/usr/ports")
    at version.c:781
#2  0x08069698 in exec_version (argc=0, argv=0xbfbfed00) at version.c:997
#3  0x0805926e in main (argc=3, argv=0xbfbfecf4) at main.c:852

BR,
Marko

-- 
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>