pkgng/pkgng — Issue #135: segfault on powerpc
Author: chmeeedalf
Created: 2012-02-04 13:39:17+00:00
State: open

Title says it all. Backtrace is(arguments taken from prior backtrace check):

[narn]:...ports-mgmt/portmaster# gdb /home/ports/usr/ports/ports-mgmt/pkg/work/pkg-1.0-beta1/pkg-static/pkg-static
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"...
(gdb) run info -g -q -O ports-mgmt/pkg
Starting program: /home/ports/usr/ports/ports-mgmt/pkg/work/pkg-1.0-beta1/pkg-static/pkg-static info -g -q -O ports-mgmt/pkg

Program received signal SIGSEGV, Segmentation fault.
0x018c0c30 in sbuf_cat ()
(gdb) where
#0 0x018c0c30 in sbuf_cat ()
#1 0x0182676c in sbuf_set (buf=0x41c53604, str=0xffffffff ) at pkg_util.c:26
#2 0x01820f04 in pkg_vset (pkg=0x41c53600, ap=0xffffc98c) at pkg.c:237
#3 0x018214d4 in pkg_set2 (pkg=0x41c53600) at pkg.c:277
#4 0x018149d0 in populate_pkg (stmt=0x41c53208, pkg=0x41c53600) at pkgdb.c:131
#5 0x01815be8 in pkgdb_it_next (it=0x41c05730, pkg_p=0xffffcadc, flags=0) at pkgdb.c:633
#6 0x018049d4 in exec_info (argc=1, argv=0xffffcba4) at /home/ports/usr/ports/ports-mgmt/pkg/work/pkg-1.0-beta1/pkg-static/../pkg//info.c:242
#7 0x01805a04 in main (argc=5, argv=0xffffcb94) at /home/ports/usr/ports/ports-mgmt/pkg/work/pkg-1.0-beta1/pkg-static/../pkg//main.c:236
(gdb)