tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg_add hangs and consumes 100% CPU



Hi,
Trying to setup a bulkbuild environment using the
pkgsrc/mk/pbulk/pbulk.sh on Suse Linux 12 running on Power8. The
system hangs at the install stage of devel/ncurses and top shows
pkg_add using 100% CPU

=> Checking for missing run-time search paths in ncurses-5.9nb4
=> Checking for work-directory references in ncurses-5.9nb4
=> Creating binary package
/tmp/obj-pbulk/devel/ncurses/work/.packages/ncurses-5.9nb4.tgz
===> Install binary package of ncurses-5.9nb4

Attaching to the pkg_add pid with gdb, I see
(gdb) bt
#0  0x0000000010096650 in mpool_get ()
#1  0x0000000010093658 in __bt_search ()
#2  0x000000001009318c in __bt_put ()
#3  0x000000001000b614 in pkgdb_store ()
#4  0x000000001000430c in extract_files ()
#5  0x0000000010006fd0 in pkg_do ()
#6  0x00000000100075a4 in pkg_perform ()
#7  0x0000000010005650 in main ()

snippet of disassemble output from gdb:
Dump of assembler code for function mpool_get:
   0x00000000100965f0 <+0>:     lis     r2,4109
   0x00000000100965f4 <+4>:     addi    r2,r2,-27120
   0x00000000100965f8 <+8>:     mflr    r0
   0x00000000100965fc <+12>:    std     r30,-16(r1)
   0x0000000010096600 <+16>:    std     r31,-8(r1)
   0x0000000010096604 <+20>:    mr      r30,r3
   0x0000000010096608 <+24>:    std     r27,-40(r1)
   0x000000001009660c <+28>:    std     r28,-32(r1)
   0x0000000010096610 <+32>:    mr      r31,r4
   0x0000000010096614 <+36>:    std     r29,-24(r1)
   0x0000000010096618 <+40>:    std     r0,16(r1)
   0x000000001009661c <+44>:    stdu    r1,-80(r1)
   0x0000000010096620 <+48>:    lwz     r9,2072(r3)
   0x0000000010096624 <+52>:    cmplw   cr7,r9,r4
   0x0000000010096628 <+56>:    ble     cr7,0x1009676c <mpool_get+380>
   0x000000001009662c <+60>:    addi    r28,r4,-1
   0x0000000010096630 <+64>:    clrldi  r28,r28,57
   0x0000000010096634 <+68>:    addi    r28,r28,1
   0x0000000010096638 <+72>:    rldicr  r28,r28,4,59
   0x000000001009663c <+76>:    add     r29,r3,r28
   0x0000000010096640 <+80>:    ldx     r9,r3,r28
   0x0000000010096644 <+84>:    cmpld   cr7,r29,r9
   0x0000000010096648 <+88>:    bne     cr7,0x1009665c <mpool_get+108>
   0x000000001009664c <+92>:    b       0x10096730 <mpool_get+320>
=> 0x0000000010096650 <+96>:    ld      r9,0(r9)
   0x0000000010096654 <+100>:   cmpld   cr7,r29,r9
   0x0000000010096658 <+104>:   beq     cr7,0x10096730 <mpool_get+320>
   0x000000001009665c <+108>:   lwz     r10,40(r9)
   0x0000000010096660 <+112>:   cmplw   cr7,r31,r10
   0x0000000010096664 <+116>:   bne     cr7,0x10096650 <mpool_get+96>
   0x0000000010096668 <+120>:   addi    r8,r10,-1
   0x000000001009666c <+124>:   ld      r5,0(r9)
   0x0000000010096670 <+128>:   ld      r6,8(r9)
   0x0000000010096674 <+132>:   clrldi  r8,r8,57
   0x0000000010096678 <+136>:   addi    r8,r8,1
   0x000000001009667c <+140>:   rldicr  r8,r8,4,59
   0x0000000010096680 <+144>:   add     r10,r30,r8

If I bootstrap pkgsrc and attempt to install devel/ncurses manually,
things work as intended. Any pointers appreciated.



Sevan / Venture37


Home | Main Index | Thread Index | Old Index