# gdb /usr/local/sbin/pkg-static pkg-static.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-marcel-freebsd"... Core was generated by `pkg-static'. Program terminated with signal 11, Segmentation fault. #0 0x018e6aec in sbuf_finish () Cannot find new threads: generic error (gdb) bt #0 0x018e6aec in sbuf_finish () #1 0x01828a14 in urldecode (src=0x41c05050 "pkg", dest=0x41c10108) at pkg_manifest.c:165 #2 0x01828bb0 in pkg_set_from_node (pkg=0x41c10100, val=0x41c7e460, doc=0xffffbb60, attr=2) at pkg_manifest.c:198 #3 0x0182a16c in parse_root_node (pkg=0x41c10100, node=0x41c7e400, doc=0xffffbb60) at pkg_manifest.c:633 #4 0x0182a300 in pkg_parse_manifest (pkg=0x41c10100, buf=0x41c10200 "name: pkg\nversion: 1.0\norigin: ports-mgmt/pkg\ncomment: |\n New generation package manager\nmaintainer: portmgr@FreeBSD.org\nprefix: /usr/local\ndeps: \ncategories: [ports-mgmt,]\nlicenselogic: single\nlicen"...) at pkg_manifest.c:664 #5 0x01828ab0 in pkg_load_manifest_file (pkg=0x41c10100, fpath=0xffffbc7b "/work/tmp/pkg/work/.metadir/+MANIFEST") at pkg_manifest.c:180 #6 0x0180ad50 in exec_register (argc=6, argv=0xffffc55c) at /work/tmp/pkg/work/pkg-1.0/pkg-static/../pkg//register.c:145 #7 0x01806d7c in main (argc=6, argv=0xffffc55c) at /work/tmp/pkg/work/pkg-1.0/pkg-static/../pkg//main.c:314 (gdb)