NetBSD-Bugs archive

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

toolchain/52734: endless loop in config



>Number:         52734
>Category:       toolchain
>Synopsis:       endless loop in config
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 17 22:05:00 +0000 2017
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.7
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 8.99.7 NetBSD 8.99.7 (MODULAR) #29: Fri Nov 17 09:53:31 CET 2017 martin%thirdstage.duskware.de@localhost:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Trying to "config MODULAR" for sparc64 causes an endless loop in config(1):

(gdb) bt
#0  0x000000000010dd88 in is_orphan_loop (p=0x40ba4320, d=0x40bf1e40)
    at /usr/src/usr.bin/config/main.c:1875
#1  do_kill_orphans (d=0x40bf0a90, at=0x40b979a0, parent=<optimized out>, 
    state=<optimized out>) at /usr/src/usr.bin/config/main.c:1979
#2  0x000000000010ddbc in do_kill_orphans (d=0x40ba4320, at=0x40b16440, 
    parent=<optimized out>, state=<optimized out>)
    at /usr/src/usr.bin/config/main.c:1983
#3  0x000000000010ddbc in do_kill_orphans (d=0x40ba42b0, at=0x40b96320, 
    parent=<optimized out>, state=<optimized out>)
    at /usr/src/usr.bin/config/main.c:1983
#4  0x000000000010ddbc in do_kill_orphans (d=0x40ac7120, at=0x0, 
    parent=<optimized out>, state=<optimized out>)
    at /usr/src/usr.bin/config/main.c:1983
#5  0x000000000010dff8 in kill_orphans_cb (key=0x40a11dc0 "mainbus", 
    value=0x40ac7120, aux=0x0) at /usr/src/usr.bin/config/main.c:1993
#6  0x000000000010cdb8 in ht_enumerate (ht=0x40a060b0, 
    cbfunc=0x10dfe0 <kill_orphans_cb>, arg=0x0)
    at /usr/src/usr.bin/config/hash.c:380
#7  0x000000000011e008 in kill_orphans ()
    at /usr/src/usr.bin/config/main.c:2000
#8  main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/usr.bin/config/main.c:428
(gdb) p *p
$6 = {d_name = 0x40a11f78 "pci", d_next = {tqe_next = 0x40ba4390, 
    tqe_prev = 0x40ba42b8}, d_level = 1, d_levelparent = 0x40bf0a90, 
  d_isdef = 1, d_ispseudo = 0, d_major = -1, d_attrs = 0x40a5ec90, d_umax = 0, 
  d_ihead = 0x40a4c6b0, d_ipp = 0x40a4c6d8, d_ahead = 0x40a60200, 
  d_app = 0x40a60218, d_classattr = 0x0}
(gdb) p *d
$7 = {d_name = 0x40bacb88 "pldwdog", d_next = {tqe_next = 0x40bf1eb0, 
    tqe_prev = 0x40bf1dd8}, d_level = 0, d_levelparent = 0x40bf0a90, 
  d_isdef = 1, d_ispseudo = 0, d_major = -1, d_attrs = 0x40bf59d0, d_umax = 0, 
  d_ihead = 0x0, d_ipp = 0x40bf1e88, d_ahead = 0x40c0cd90, d_app = 0x40c0cda8, 
  d_classattr = 0x0}


>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index