pkgng/pkgng — Issue #155: segfault on powerpc (take 2)
Author: chmeeedalf
Created: 2012-02-16 03:10:30+00:00
State: open

Another segfault, with 1.0-beta6. Backtrace as follows:

When executing (line recreated by viewing argv from gdb, so may not be 100% correct): query " %n: {origin: %0, version: "%v"} " " lang/perl5.12
(gdb) where
#0 0x41b14ed8 in sbuf_cat () from /lib/libsbuf.so.6
#1 0x41b14f70 in sbuf_cpy () from /lib/libsbuf.so.6
#2 0x418903a4 in sbuf_set (buf=0x42074534, str=0x12

) at utils.c:26
#3 0x41895a40 in pkg_vset (pkg=0x42074500, ap=0xffffc71c) at pkg.c:238
#4 0x4189600c in pkg_set2 (pkg=0x42074500) at pkg.c:278
#5 0x41888450 in populate_pkg (stmt=0x42074208, pkg=0x42074500) at pkgdb.c:131
#6 0x418895c0 in pkgdb_it_next (it=0x4200e730, pkg_p=0xffffc848, flags=0) at pkgdb.c:633
#7 0x0180bd70 in exec_query (argc=3, argv=0xffffc8fc) at query.c:505
#8 0x018092b8 in main (argc=4, argv=0xffffc8f8) at main.c:217
(gdb)

This is after having done a pkg2ng earlier to generate the pkgng database.