Subject: Re: 2000 03 07 make(1) seems to have variable parsing problems
To: None <current-users@netbsd.org, smd@ebone.net>
From: Sean Doran <smd@ebone.net>
List: current-users
Date: 06/07/2000 23:24:10
Same traceback with make built with full debugging symbols:

(gdb) bt
#0  0x4810613b in kill ()
#1  0x481057c4 in abort ()
#2  0x48103b29 in _tcgetattr ()
#3  0x48105017 in _tcgetattr ()
#4  0x481055d1 in free ()
#5  0x805a248 in Var_Parse (str=0x808fff0 "", ctxt=0x8061080, err=1, 
    lengthPtr=0xbfbfb830, freePtr=0xbfbfb834)
    at /usr/src/usr.bin/make/var.c:2041
#6  0x805b19f in Var_Subst (var=0x0, 
    str=0x8079d00 "${DESTDIR}${FILESDIR_${F}:U${FILESDIR}}/${FILESNAME_${F}:U${FIL
ESNAME:U${F:T}}}", ctxt=0x8061080, undefErr=1)
    at /usr/src/usr.bin/make/var.c:2681
#7  0x8058fe3 in VarLoopExpand (word=0x8094026 "GBI", addSpace=1, 
    buf=0x80930a0, loopp=0xbfbfb98c) at /usr/src/usr.bin/make/var.c:1247
#8  0x80590a0 in VarModify (
    str=0x8079b00 "ALBB ALBR AOB AOI AOR CB CBI CI CR GB GBI GI GR LGB LGI LGR  OB
 OBI OI OR TB TBI TI TR UB UBI UI UR UCB UCBI UCI UCR  CLARENDON CORONET MARIGOLD 
S  DESC", modProc=0x8058fb8 <VarLoopExpand>, datum=0xbfbfb98c)
    at /usr/src/usr.bin/make/var.c:1293
#9  0x805a146 in Var_Parse (
    str=0x8079b00 "ALBB ALBR AOB AOI AOR CB CBI CI CR GB GBI GI GR LGB LGI LGR  OB
 OBI OI OR TB TBI TI TR UB UBI UI UR UCB UCBI UCI UCR  CLARENDON CORONET MARIGOLD 
S  DESC", ctxt=0x8061080, err=1, lengthPtr=0xbfbfb9e8, freePtr=0xbfbfb9ec)
---Type <return> to continue, or q <return> to quit---
    at /usr/src/usr.bin/make/var.c:1998
#10 0x805b19f in Var_Subst (var=0x0, 
    str=0x8079900 "filesinstall:: ${FILES:@F@${DESTDIR}${FILESDIR_${F}:U${FILESDIR}}/${FILESNAME_${F}:U${FILESNAME:U${F:T}}}@}", ctxt=0x8061080, undefErr=1)
    at /usr/src/usr.bin/make/var.c:2681
#11 0x805524a in Parse_File (name=0x805ce6e "Makefile", stream=0x4811bd40)
    at /usr/src/usr.bin/make/parse.c:2637
#12 0x8051f75 in ReadMakefile (p=0x805ce6e, q=0x0)
    at /usr/src/usr.bin/make/main.c:951
#13 0x8051b53 in main (argc=2, argv=0xbfbfcc9c)
    at /usr/src/usr.bin/make/main.c:756
#14 0x80499ca in ___start ()