NetBSD Problem Report #54856

From www@netbsd.org  Mon Jan 13 17:50:43 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3CA8F7A178
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 13 Jan 2020 17:50:43 +0000 (UTC)
Message-Id: <20200113175042.5EA997A1E3@mollari.NetBSD.org>
Date: Mon, 13 Jan 2020 17:50:42 +0000 (UTC)
From: brad.harder@gmail.com
Reply-To: brad.harder@gmail.com
To: gnats-bugs@NetBSD.org
Subject: makefs/walk.c assertion  building images
X-Send-Pr-Version: www-1.0

>Number:         54856
>Category:       misc
>Synopsis:       makefs/walk.c assertion  building images
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 13 17:55:00 +0000 2020
>Last-Modified:  Tue Jan 21 02:40:02 +0000 2020
>Originator:     brad harder
>Release:        -current 9.99.37
>Organization:
Methodlogic Digital
>Environment:
NetBSD kamloops 9.99.37 (Generic) #395: Mon Jan 12 08:57:54 PST 2020 root@kamloops:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:

Note: all copy in this ticket is hand typed/transcribed - apologies in advance for any errors.

My ./build.sh -j4 -u -U -x release install-image is failing w (e.g.):


assertion “curnode->slink != NULL” failed: file /usr/src/usr.sbin/makefs/walk.c, line 480, function “apply_specdir”
—- release-bootcd —-
[1] abort trap (core dumped) /usr/src/obj/tootsie.NetBSD-9.99.37-and64/bin/...
*** [image] Error code 134
>How-To-Repeat:
# cd /usr/src
# ./build.sh -j4 -u -U -x release install-image
>Fix:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/54856: makefs/walk.c assertion  building images
Date: Sat, 18 Jan 2020 20:42:17 +0100

 I can not reproduce it:

 ===> Successful make install-image
 ===> build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 ===> Summary of results:
          build.sh command:    /usr/src/build.sh -O /tmp/obj -D /tmp/dest -T /tmp/tools -j24 -u -U -x release install-image
          build.sh started:    Sat Jan 18 19:58:34 CET 2020
          NetBSD version:      9.99.39
          MACHINE:             amd64
          MACHINE_ARCH:        x86_64
          Build platform:      NetBSD 9.99.38 amd64
          HOST_SH:             /bin/sh
          No $TOOLDIR/bin/nbmake, needs building.
          Bootstrapping nbmake
          MAKECONF file:       /etc/mk.conf
          TOOLDIR path:        /tmp/tools
          DESTDIR path:        /tmp/dest
          RELEASEDIR path:     /tmp/obj/releasedir
          Created /tmp/tools/bin/nbmake
          Updated makewrapper: /tmp/tools/bin/nbmake-amd64
          Successful make release
          Successful make install-image
          build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 ===> .


 Martin

From: bch <brad.harder@gmail.com>
To: gnats-bugs@netbsd.org
Cc: gnats-admin@netbsd.org, misc-bug-people@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: misc/54856: makefs/walk.c assertion building images
Date: Mon, 20 Jan 2020 16:16:46 -0800

 --0000000000006b76a4059c9b53d3
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 On Sat, Jan 18, 2020 at 11:45 Martin Husemann <martin@duskware.de> wrote:

 > The following reply was made to PR misc/54856; it has been noted by GNATS=
 .
 >
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: misc/54856: makefs/walk.c assertion  building images
 > Date: Sat, 18 Jan 2020 20:42:17 +0100
 >
 >  I can not reproduce it:



 Hrm - I can still successfully reproduce the error. I=E2=80=99ve done a cle=
 an (no
 =E2=80=9C-u=E2=80=9D) (re)build of kernel, modules and tools in case some f=
 law was
 =E2=80=9Cleaking=E2=80=9D into the build env. The tail of my latest effort =
 has some
 (undocumented) makefs debugging turned on, though it=E2=80=99s not immediat=
 ely
 illuminating to me:

 # env CDMAKEFSEXTRAOPTS=3D"-d 536870911" nice ./build.sh -j1 -u -U -x -V
 CDMAKEFSEXTRAOPTS=3D"-d 536870911" -N2 release

 [...]

 apply_specdir:  spec ethers
 apply_specdir:  spec exports
 apply_specdir:  spec fstab
 apply_specdir: adding fstab
 apply_specentry: cdrom/etc/fstab
                         changing gid from 0 to 0
                         changing mode from 0 to 0644
                         changing uid from 0 to 0
 apply_specdir:  spec ftpd.conf
 apply_specdir:  spec ftpwelcome
 apply_specdir:  spec gateways
 apply_specdir:  spec hesiod.conf
 apply_specdir:  spec hosts.allow
 apply_specdir:  spec hosts.deny
 apply_specdir:  spec ifaliases
 apply_specdir:  spec ipf.conf
 apply_specdir:  spec ipf6.conf
 apply_specdir:  spec ipnat.conf
 apply_specdir:  spec ipsec.conf
 apply_specdir:  spec ld.so.conf
 apply_specdir:  spec localtime
 apply_specdir: adding localtime
 [1]   Abort trap (core dumped)
 /usr/src/obj/tooldir.NetBSD-9.99.39-amd64/bin/...
 *** [image] Error code 134
 nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms/bootcd
 1 error
 nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms/bootcd
 *** [release-bootcd] Error code 2

 nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms
 1 error

 nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms
 *** [release-cdroms] Error code 2

 nbmake[3]: stopped in /usr/src/distrib/amd64
 1 error

 nbmake[3]: stopped in /usr/src/distrib/amd64
 *** [release-amd64] Error code 2

 nbmake[2]: stopped in /usr/src/distrib
 1 error

 nbmake[2]: stopped in /usr/src/distrib
 *** [snap_post] Error code 2

 nbmake[1]: stopped in /usr/src/etc
 1 error

 nbmake[1]: stopped in /usr/src/etc
 *** [release] Error code 2

 nbmake: stopped in /usr/src
 1 error

 nbmake: stopped in /usr/src

 ERROR: Failed to make release
 *** BUILD ABORTED ***




 >
 >  =3D=3D=3D> Successful make install-image
 >  =3D=3D=3D> build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 >  =3D=3D=3D> Summary of results:
 >           build.sh command:    /usr/src/build.sh -O /tmp/obj -D /tmp/dest
 > -T /tmp/tools -j24 -u -U -x release install-image
 >           build.sh started:    Sat Jan 18 19:58:34 CET 2020
 >           NetBSD version:      9.99.39
 >           MACHINE:             amd64
 >           MACHINE_ARCH:        x86_64
 >           Build platform:      NetBSD 9.99.38 amd64
 >           HOST_SH:             /bin/sh
 >           No $TOOLDIR/bin/nbmake, needs building.
 >           Bootstrapping nbmake
 >           MAKECONF file:       /etc/mk.conf
 >           TOOLDIR path:        /tmp/tools
 >           DESTDIR path:        /tmp/dest
 >           RELEASEDIR path:     /tmp/obj/releasedir
 >           Created /tmp/tools/bin/nbmake
 >           Updated makewrapper: /tmp/tools/bin/nbmake-amd64
 >           Successful make release
 >           Successful make install-image
 >           build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 >  =3D=3D=3D> .
 >
 >
 >  Martin
 >
 >

 --0000000000006b76a4059c9b53d3
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div><br></div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
 =3D"gmail_attr">On Sat, Jan 18, 2020 at 11:45 Martin Husemann &lt;<a href=
 =3D"mailto:martin@duskware.de">martin@duskware.de</a>&gt; wrote:<br></div><=
 blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
  #ccc solid;padding-left:1ex">The following reply was made to PR misc/54856=
 ; it has been noted by GNATS.<br>
 <br>
 From: Martin Husemann &lt;<a href=3D"mailto:martin@duskware.de" target=3D"_=
 blank">martin@duskware.de</a>&gt;<br>
 To: gnats-bugs@NetBSD.org<br>
 Cc: <br>
 Subject: Re: misc/54856: makefs/walk.c assertion=C2=A0 building images<br>
 Date: Sat, 18 Jan 2020 20:42:17 +0100<br>
 <br>
 =C2=A0I can not reproduce it:</blockquote><div dir=3D"auto"><br></div><div =
 dir=3D"auto"><br></div><div dir=3D"auto">Hrm - I can still successfully rep=
 roduce the error. I=E2=80=99ve done a clean (no =E2=80=9C-u=E2=80=9D) (re)b=
 uild of kernel, modules and tools in case some flaw was =E2=80=9Cleaking=E2=
 =80=9D into the build env. The tail of my latest effort has some (undocumen=
 ted) makefs debugging turned on, though it=E2=80=99s not immediately illumi=
 nating to me:</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div dir=
 =3D"auto"># env CDMAKEFSEXTRAOPTS=3D&quot;-d 536870911&quot; nice ./build.s=
 h -j1 -u -U -x -V CDMAKEFSEXTRAOPTS=3D&quot;-d 536870911&quot; -N2 release<=
 /div><div dir=3D"auto"><br></div><div dir=3D"auto">[...]</div><div dir=3D"a=
 uto"><br></div><div dir=3D"auto">apply_specdir: =C2=A0spec ethers</div><div=
  dir=3D"auto">apply_specdir: =C2=A0spec exports</div><div dir=3D"auto">appl=
 y_specdir: =C2=A0spec fstab</div><div dir=3D"auto">apply_specdir: adding fs=
 tab</div><div dir=3D"auto">apply_specentry: cdrom/etc/fstab</div><div dir=
 =3D"auto">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 changing gid from 0 to 0</div><div dir=3D"auto">=C2=A0=
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 changing mode from 0 to 0644</div><div dir=3D"auto">=C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 changing=
  uid from 0 to 0</div><div dir=3D"auto">apply_specdir: =C2=A0spec ftpd.conf=
 </div><div dir=3D"auto">apply_specdir: =C2=A0spec ftpwelcome</div><div dir=
 =3D"auto">apply_specdir: =C2=A0spec gateways</div><div dir=3D"auto">apply_s=
 pecdir: =C2=A0spec hesiod.conf</div><div dir=3D"auto">apply_specdir: =C2=A0=
 spec hosts.allow</div><div dir=3D"auto">apply_specdir: =C2=A0spec hosts.den=
 y</div><div dir=3D"auto">apply_specdir: =C2=A0spec ifaliases</div><div dir=
 =3D"auto">apply_specdir: =C2=A0spec ipf.conf</div><div dir=3D"auto">apply_s=
 pecdir: =C2=A0spec ipf6.conf</div><div dir=3D"auto">apply_specdir: =C2=A0sp=
 ec ipnat.conf</div><div dir=3D"auto">apply_specdir: =C2=A0spec ipsec.conf</=
 div><div dir=3D"auto">apply_specdir: =C2=A0spec ld.so.conf</div><div dir=3D=
 "auto">apply_specdir: =C2=A0spec localtime</div><div dir=3D"auto">apply_spe=
 cdir: adding localtime</div><div dir=3D"auto">[1] =C2=A0 Abort trap (core d=
 umped) /usr/src/obj/tooldir.NetBSD-9.99.39-amd64/bin/...</div><div dir=3D"a=
 uto">*** [image] Error code 134</div><div dir=3D"auto">nbmake[5]: stopped i=
 n /usr/src/distrib/amd64/cdroms/bootcd</div><div dir=3D"auto">1 error</div>=
 <div dir=3D"auto">nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms/bootc=
 d</div><div dir=3D"auto">*** [release-bootcd] Error code 2</div><div dir=3D=
 "auto"><br></div><div dir=3D"auto">nbmake[4]: stopped in /usr/src/distrib/a=
 md64/cdroms</div><div dir=3D"auto">1 error</div><div dir=3D"auto"><br></div=
 ><div dir=3D"auto">nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms</div=
 ><div dir=3D"auto">*** [release-cdroms] Error code 2</div><div dir=3D"auto"=
 ><br></div><div dir=3D"auto">nbmake[3]: stopped in /usr/src/distrib/amd64</=
 div><div dir=3D"auto">1 error</div><div dir=3D"auto"><br></div><div dir=3D"=
 auto">nbmake[3]: stopped in /usr/src/distrib/amd64</div><div dir=3D"auto">*=
 ** [release-amd64] Error code 2</div><div dir=3D"auto"><br></div><div dir=
 =3D"auto">nbmake[2]: stopped in /usr/src/distrib</div><div dir=3D"auto">1 e=
 rror</div><div dir=3D"auto"><br></div><div dir=3D"auto">nbmake[2]: stopped =
 in /usr/src/distrib</div><div dir=3D"auto">*** [snap_post] Error code 2</di=
 v><div dir=3D"auto"><br></div><div dir=3D"auto">nbmake[1]: stopped in /usr/=
 src/etc</div><div dir=3D"auto">1 error</div><div dir=3D"auto"><br></div><di=
 v dir=3D"auto">nbmake[1]: stopped in /usr/src/etc</div><div dir=3D"auto">**=
 * [release] Error code 2</div><div dir=3D"auto"><br></div><div dir=3D"auto"=
 >nbmake: stopped in /usr/src</div><div dir=3D"auto">1 error</div><div dir=
 =3D"auto"><br></div><div dir=3D"auto">nbmake: stopped in /usr/src</div><div=
  dir=3D"auto"><br></div><div dir=3D"auto">ERROR: Failed to make release</di=
 v><div dir=3D"auto">*** BUILD ABORTED ***</div><div dir=3D"auto"><br></div>=
 </div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><blockquote c=
 lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;=
 padding-left:1ex"><br>
 <br>
 =C2=A0=3D=3D=3D&gt; Successful make install-image<br>
 =C2=A0=3D=3D=3D&gt; build.sh ended:=C2=A0 =C2=A0 =C2=A0 Sat Jan 18 20:39:08=
  CET 2020<br>
 =C2=A0=3D=3D=3D&gt; Summary of results:<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 build.sh command:=C2=A0 =C2=A0 /usr/src/=
 build.sh -O /tmp/obj -D /tmp/dest -T /tmp/tools -j24 -u -U -x release insta=
 ll-image<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 build.sh started:=C2=A0 =C2=A0 Sat Jan 1=
 8 19:58:34 CET 2020<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NetBSD version:=C2=A0 =C2=A0 =C2=A0 9.99=
 .39<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 MACHINE:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0amd64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 MACHINE_ARCH:=C2=A0 =C2=A0 =C2=A0 =C2=A0=
  x86_64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Build platform:=C2=A0 =C2=A0 =C2=A0 NetB=
 SD 9.99.38 amd64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 HOST_SH:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0/bin/sh<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 No $TOOLDIR/bin/nbmake, needs building.<=
 br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Bootstrapping nbmake<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 MAKECONF file:=C2=A0 =C2=A0 =C2=A0 =C2=
 =A0/etc/mk.conf<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TOOLDIR path:=C2=A0 =C2=A0 =C2=A0 =C2=A0=
  /tmp/tools<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 DESTDIR path:=C2=A0 =C2=A0 =C2=A0 =C2=A0=
  /tmp/dest<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 RELEASEDIR path:=C2=A0 =C2=A0 =C2=A0/tmp=
 /obj/releasedir<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Created /tmp/tools/bin/nbmake<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Updated makewrapper: /tmp/tools/bin/nbma=
 ke-amd64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Successful make release<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Successful make install-image<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 build.sh ended:=C2=A0 =C2=A0 =C2=A0 Sat =
 Jan 18 20:39:08 CET 2020<br>
 =C2=A0=3D=3D=3D&gt; .<br>
 <br>
 <br>
 =C2=A0Martin<br>
 <br>
 </blockquote></div></div>

 --0000000000006b76a4059c9b53d3--

From: Christos Zoulas <christos@zoulas.com>
To: bch <brad.harder@gmail.com>
Cc: gnats-bugs@netbsd.org,
 gnats-admin@netbsd.org,
 misc-bug-people@netbsd.org,
 netbsd-bugs@netbsd.org
Subject: Re: misc/54856: makefs/walk.c assertion building images
Date: Mon, 20 Jan 2020 19:19:59 -0500

 --Apple-Mail=_6AC504FA-53C9-4AF3-B259-FC8310601949
 Content-Type: multipart/alternative;
 	boundary="Apple-Mail=_4F25A8BA-129E-42DB-A209-8E87ED994EA4"


 --Apple-Mail=_4F25A8BA-129E-42DB-A209-8E87ED994EA4
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=utf-8

 Since you have a core file, can you go in gdb and print a stack trace?

 christos

 > On Jan 20, 2020, at 7:16 PM, bch <brad.harder@gmail.com> wrote:
 >=20
 >=20
 >=20
 >=20
 >=20
 > On Sat, Jan 18, 2020 at 11:45 Martin Husemann <martin@duskware.de =
 <mailto:martin@duskware.de>> wrote:
 >=20
 > The following reply was made to PR misc/54856; it has been noted by =
 GNATS.
 >=20
 > From: Martin Husemann <martin@duskware.de <mailto:martin@duskware.de>>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: misc/54856: makefs/walk.c assertion  building images
 > Date: Sat, 18 Jan 2020 20:42:17 +0100
 >=20
 >  I can not reproduce it:
 >=20
 >=20
 >=20
 >=20
 > Hrm - I can still successfully reproduce the error. I=E2=80=99ve done =
 a clean (no =E2=80=9C-u=E2=80=9D) (re)build of kernel, modules and tools =
 in case some flaw was =E2=80=9Cleaking=E2=80=9D into the build env. The =
 tail of my latest effort has some (undocumented) makefs debugging turned =
 on, though it=E2=80=99s not immediately illuminating to me:
 >=20
 >=20
 >=20
 > # env CDMAKEFSEXTRAOPTS=3D"-d 536870911" nice ./build.sh -j1 -u -U -x =
 -V CDMAKEFSEXTRAOPTS=3D"-d 536870911" -N2 release
 >=20
 >=20
 >=20
 > [...]
 >=20
 >=20
 >=20
 > apply_specdir:  spec ethers
 >=20
 > apply_specdir:  spec exports
 >=20
 > apply_specdir:  spec fstab
 >=20
 > apply_specdir: adding fstab
 >=20
 > apply_specentry: cdrom/etc/fstab
 >=20
 >                         changing gid from 0 to 0
 >=20
 >                         changing mode from 0 to 0644
 >=20
 >                         changing uid from 0 to 0
 >=20
 > apply_specdir:  spec ftpd.conf
 >=20
 > apply_specdir:  spec ftpwelcome
 >=20
 > apply_specdir:  spec gateways
 >=20
 > apply_specdir:  spec hesiod.conf
 >=20
 > apply_specdir:  spec hosts.allow
 >=20
 > apply_specdir:  spec hosts.deny
 >=20
 > apply_specdir:  spec ifaliases
 >=20
 > apply_specdir:  spec ipf.conf
 >=20
 > apply_specdir:  spec ipf6.conf
 >=20
 > apply_specdir:  spec ipnat.conf
 >=20
 > apply_specdir:  spec ipsec.conf
 >=20
 > apply_specdir:  spec ld.so.conf
 >=20
 > apply_specdir:  spec localtime
 >=20
 > apply_specdir: adding localtime
 >=20
 > [1]   Abort trap (core dumped) =
 /usr/src/obj/tooldir.NetBSD-9.99.39-amd64/bin/...
 >=20
 > *** [image] Error code 134
 >=20
 > nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms/bootcd
 >=20
 > 1 error
 >=20
 > nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms/bootcd
 >=20
 > *** [release-bootcd] Error code 2
 >=20
 >=20
 >=20
 > nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms
 >=20
 > 1 error
 >=20
 >=20
 >=20
 > nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms
 >=20
 > *** [release-cdroms] Error code 2
 >=20
 >=20
 >=20
 > nbmake[3]: stopped in /usr/src/distrib/amd64
 >=20
 > 1 error
 >=20
 >=20
 >=20
 > nbmake[3]: stopped in /usr/src/distrib/amd64
 >=20
 > *** [release-amd64] Error code 2
 >=20
 >=20
 >=20
 > nbmake[2]: stopped in /usr/src/distrib
 >=20
 > 1 error
 >=20
 >=20
 >=20
 > nbmake[2]: stopped in /usr/src/distrib
 >=20
 > *** [snap_post] Error code 2
 >=20
 >=20
 >=20
 > nbmake[1]: stopped in /usr/src/etc
 >=20
 > 1 error
 >=20
 >=20
 >=20
 > nbmake[1]: stopped in /usr/src/etc
 >=20
 > *** [release] Error code 2
 >=20
 >=20
 >=20
 > nbmake: stopped in /usr/src
 >=20
 > 1 error
 >=20
 >=20
 >=20
 > nbmake: stopped in /usr/src
 >=20
 >=20
 >=20
 > ERROR: Failed to make release
 >=20
 > *** BUILD ABORTED ***
 >=20
 >=20
 >=20
 >=20
 >=20
 >=20
 >=20
 >=20
 >=20
 >=20
 >  =3D=3D=3D> Successful make install-image
 >  =3D=3D=3D> build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 >  =3D=3D=3D> Summary of results:
 >           build.sh command:    /usr/src/build.sh -O /tmp/obj -D =
 /tmp/dest -T /tmp/tools -j24 -u -U -x release install-image
 >           build.sh started:    Sat Jan 18 19:58:34 CET 2020
 >           NetBSD version:      9.99.39
 >           MACHINE:             amd64
 >           MACHINE_ARCH:        x86_64
 >           Build platform:      NetBSD 9.99.38 amd64
 >           HOST_SH:             /bin/sh
 >           No $TOOLDIR/bin/nbmake, needs building.
 >           Bootstrapping nbmake
 >           MAKECONF file:       /etc/mk.conf
 >           TOOLDIR path:        /tmp/tools
 >           DESTDIR path:        /tmp/dest
 >           RELEASEDIR path:     /tmp/obj/releasedir
 >           Created /tmp/tools/bin/nbmake
 >           Updated makewrapper: /tmp/tools/bin/nbmake-amd64
 >           Successful make release
 >           Successful make install-image
 >           build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 >  =3D=3D=3D> .
 >=20
 >=20
 >  Martin
 >=20
 >=20
 >=20
 > <sanitizer.log>


 --Apple-Mail=_4F25A8BA-129E-42DB-A209-8E87ED994EA4
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/html;
 	charset=utf-8

 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
 charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
 -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Since=
  you have a core file, can you go in gdb and print a stack trace?<div =
 class=3D""><br class=3D""></div><div class=3D"">christos<br =
 class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
 class=3D"">On Jan 20, 2020, at 7:16 PM, bch &lt;<a =
 href=3D"mailto:brad.harder@gmail.com" =
 class=3D"">brad.harder@gmail.com</a>&gt; wrote:</div><br =
 class=3D"Apple-interchange-newline"><div class=3D""><p =
 class=3D""><defanged_div class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div class=3D""><br class=3D""></defanged_div></p><p =
 class=3D""><defanged_div class=3D"gmail_quote"></defanged_div></p><p =
 class=3D""><defanged_div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jan =
 18, 2020 at 11:45 Martin Husemann &lt;<a =
 href=3D"mailto:martin@duskware.de" class=3D"">martin@duskware.de</a>&gt; =
 wrote:<br class=3D""></defanged_div></p><defanged_div =
 class=3D""><blockquote class=3D"gmail_quote" defanged_style=3D"margin:0 =
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The following =
 reply was made to PR misc/54856; it has been noted by GNATS.<br =
 class=3D"">
 <br class=3D"">
 From: Martin Husemann &lt;<a href=3D"mailto:martin@duskware.de" =
 target=3D"_blank" class=3D"">martin@duskware.de</a>&gt;<br class=3D"">
 To: <a href=3D"mailto:gnats-bugs@NetBSD.org" =
 class=3D"">gnats-bugs@NetBSD.org</a><br class=3D"">
 Cc: <br class=3D"">
 Subject: Re: misc/54856: makefs/walk.c assertion&nbsp; building =
 images<br class=3D"">
 Date: Sat, 18 Jan 2020 20:42:17 +0100<br class=3D"">
 <br class=3D"">
 &nbsp;I can not reproduce it:</blockquote><p class=3D""><defanged_div =
 dir=3D"auto" class=3D""><br class=3D""></defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">Hrm - I can still =
 successfully reproduce the error. I=E2=80=99ve done a clean (no =
 =E2=80=9C-u=E2=80=9D) (re)build of kernel, modules and tools in case =
 some flaw was =E2=80=9Cleaking=E2=80=9D into the build env. The tail of =
 my latest effort has some (undocumented) makefs debugging turned on, =
 though it=E2=80=99s not immediately illuminating to =
 me:</defanged_div></p><defanged_div class=3D""><p class=3D""><defanged_div=
  dir=3D"auto" class=3D""><br class=3D""></defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" =
 class=3D""></defanged_div></p><p class=3D""><defanged_div dir=3D"auto" =
 class=3D""># env CDMAKEFSEXTRAOPTS=3D"-d 536870911" nice ./build.sh -j1 =
 -u -U -x -V CDMAKEFSEXTRAOPTS=3D"-d 536870911" -N2 =
 release</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" =
 class=3D"">[...]</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ethers</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec exports</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec fstab</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: adding =
 fstab</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specentry: =
 cdrom/etc/fstab</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">&nbsp; &nbsp; &nbsp; =
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changing =
 gid from 0 to 0</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">&nbsp; &nbsp; &nbsp; =
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changing =
 mode from 0 to 0644</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">&nbsp; &nbsp; &nbsp; =
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changing =
 uid from 0 to 0</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ftpd.conf</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ftpwelcome</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec gateways</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec hesiod.conf</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec hosts.allow</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec hosts.deny</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ifaliases</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ipf.conf</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ipf6.conf</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ipnat.conf</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ipsec.conf</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec ld.so.conf</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: =
 &nbsp;spec localtime</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">apply_specdir: adding =
 localtime</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">[1] &nbsp; Abort trap =
 (core dumped) =
 /usr/src/obj/tooldir.NetBSD-9.99.39-amd64/bin/...</defanged_div></p><defan=
 ged_div class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D"">***=
  [image] Error code 134</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[5]: stopped in =
 /usr/src/distrib/amd64/cdroms/bootcd</defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D"">1 =
 error</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[5]: stopped in =
 /usr/src/distrib/amd64/cdroms/bootcd</defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D"">*** =
 [release-bootcd] Error code 2</defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[4]: stopped in =
 /usr/src/distrib/amd64/cdroms</defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D"">1 =
 error</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[4]: stopped in =
 /usr/src/distrib/amd64/cdroms</defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D"">*** =
 [release-cdroms] Error code 2</defanged_div></p><defanged_div =
 class=3D""><p class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[3]: stopped in =
 /usr/src/distrib/amd64</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">1 =
 error</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[3]: stopped in =
 /usr/src/distrib/amd64</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">*** [release-amd64] =
 Error code 2</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[2]: stopped in =
 /usr/src/distrib</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">1 =
 error</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[2]: stopped in =
 /usr/src/distrib</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">*** [snap_post] Error =
 code 2</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[1]: stopped in =
 /usr/src/etc</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">1 =
 error</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake[1]: stopped in =
 /usr/src/etc</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">*** [release] Error =
 code 2</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake: stopped in =
 /usr/src</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">1 =
 error</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">nbmake: stopped in =
 /usr/src</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">ERROR: Failed to make =
 release</defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D"">*** BUILD ABORTED =
 ***</defanged_div></p><defanged_div class=3D""><p class=3D""><defanged_div=
  dir=3D"auto" class=3D""><br class=3D""></defanged_div></p><defanged_div =
 class=3D""><div class=3D""><br =
 class=3D"webkit-block-placeholder"></div><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><p =
 class=3D""><defanged_div dir=3D"auto" class=3D""><br =
 class=3D""></defanged_div></p><defanged_div class=3D""><blockquote =
 class=3D"gmail_quote" defanged_style=3D"margin:0 0 0 =
 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class=3D"">
 <br class=3D"">
 &nbsp;=3D=3D=3D&gt; Successful make install-image<br class=3D"">
 &nbsp;=3D=3D=3D&gt; build.sh ended:&nbsp; &nbsp; &nbsp; Sat Jan 18 =
 20:39:08 CET 2020<br class=3D"">
 &nbsp;=3D=3D=3D&gt; Summary of results:<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; build.sh command:&nbsp; &nbsp; =
 /usr/src/build.sh -O /tmp/obj -D /tmp/dest -T /tmp/tools -j24 -u -U -x =
 release install-image<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; build.sh started:&nbsp; &nbsp; Sat =
 Jan 18 19:58:34 CET 2020<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NetBSD version:&nbsp; &nbsp; &nbsp; =
 9.99.39<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MACHINE:&nbsp; &nbsp; &nbsp; &nbsp; =
 &nbsp; &nbsp; &nbsp;amd64<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MACHINE_ARCH:&nbsp; &nbsp; &nbsp; =
 &nbsp; x86_64<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Build platform:&nbsp; &nbsp; &nbsp; =
 NetBSD 9.99.38 amd64<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HOST_SH:&nbsp; &nbsp; &nbsp; &nbsp; =
 &nbsp; &nbsp; &nbsp;/bin/sh<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; No $TOOLDIR/bin/nbmake, needs =
 building.<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bootstrapping nbmake<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MAKECONF file:&nbsp; &nbsp; &nbsp; =
 &nbsp;/etc/mk.conf<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TOOLDIR path:&nbsp; &nbsp; &nbsp; =
 &nbsp; /tmp/tools<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DESTDIR path:&nbsp; &nbsp; &nbsp; =
 &nbsp; /tmp/dest<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RELEASEDIR path:&nbsp; &nbsp; =
 &nbsp;/tmp/obj/releasedir<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Created /tmp/tools/bin/nbmake<br =
 class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Updated makewrapper: =
 /tmp/tools/bin/nbmake-amd64<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Successful make release<br class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Successful make install-image<br =
 class=3D"">
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; build.sh ended:&nbsp; &nbsp; &nbsp; =
 Sat Jan 18 20:39:08 CET 2020<br class=3D"">
 &nbsp;=3D=3D=3D&gt; .<br class=3D"">
 <br class=3D"">
 <br class=3D"">
 &nbsp;Martin<br class=3D"">
 <br class=3D"">
 </blockquote><div class=3D""><br =
 class=3D"webkit-block-placeholder"></div><defanged_div class=3D""><div =
 class=3D""><br class=3D"webkit-block-placeholder"></div><defanged_div =
 class=3D"">
 <span =
 id=3D"cid:107F6563-AE54-49A1-8C98-40C9BD96EF6B@astron.com">&lt;sanitizer.l=
 og&gt;</span></defanged_div></defanged_div></defanged_div></defanged_div><=
 /defanged_div></defanged_div></defanged_div></defanged_div></defanged_div>=
 </defanged_div></defanged_div></defanged_div></defanged_div></defanged_div=
 ></defanged_div></defanged_div></defanged_div></defanged_div></defanged_di=
 v></defanged_div></defanged_div></defanged_div></defanged_div></defanged_d=
 iv></defanged_div></defanged_div></defanged_div></defanged_div></defanged_=
 div></defanged_div></defanged_div></defanged_div></defanged_div></defanged=
 _div></defanged_div></defanged_div></defanged_div></defanged_div></defange=
 d_div></defanged_div></defanged_div></defanged_div></defanged_div></defang=
 ed_div></defanged_div></defanged_div></defanged_div></defanged_div></defan=
 ged_div></defanged_div></defanged_div></defanged_div></defanged_div></defa=
 nged_div></defanged_div></defanged_div></defanged_div></defanged_div></def=
 anged_div></defanged_div></defanged_div></defanged_div></defanged_div></de=
 fanged_div></defanged_div></defanged_div></defanged_div></defanged_div></d=
 efanged_div></defanged_div></defanged_div></defanged_div></defanged_div></=
 defanged_div></defanged_div></defanged_div></div></blockquote></div><br =
 class=3D""></div></body></html>=

 --Apple-Mail=_4F25A8BA-129E-42DB-A209-8E87ED994EA4--

 --Apple-Mail=_6AC504FA-53C9-4AF3-B259-FC8310601949
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP

 -----BEGIN PGP SIGNATURE-----
 Comment: GPGTools - http://gpgtools.org

 iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCXiZDrwAKCRBxESqxbLM7
 OtI4AJ914sOMGyNI4xXhC/iC/hkzm8IXhgCdE3uULuW8KpOcd4eAjRAc9wbHbmQ=
 =2TYJ
 -----END PGP SIGNATURE-----

 --Apple-Mail=_6AC504FA-53C9-4AF3-B259-FC8310601949--

From: bch <brad.harder@gmail.com>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-admin@netbsd.org, gnats-bugs@netbsd.org, misc-bug-people@netbsd.org, 
	netbsd-bugs@netbsd.org
Subject: Re: misc/54856: makefs/walk.c assertion building images
Date: Mon, 20 Jan 2020 16:47:52 -0800

 --000000000000a230f8059c9bc2ce
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 On Mon, Jan 20, 2020 at 16:20 Christos Zoulas <christos@zoulas.com> wrote:

 > Since you have a core file, can you go in gdb and print a stack trace?
 >


 Hi Christos.

 It looked poor (no debug symbols??) at the frame I was most interested in,
 but:

 gdb -c ./nbmakefs.core /usr/obj/tooldir.NetBSD-9.99.39-amd64/bin/nbmakefs

 (gdb) bt full
 #0  0x00007961e778609a in _lwp_kill () from /usr/lib/libc.so.12
 No symbol table info available.
 #1  0x00007961e778643a in abort () at /usr/src/lib/libc/stdlib/abort.c:74
         mask =3D {__bits =3D {4294967263, 4294967295, 4294967295, 429496729=
 5}}
 #2  0x00007961e77859db in __assert13 (file=3D<optimized out>, line=3D<optim=
 ized
 out>,
     function=3D<optimized out>, failedexpr=3D<optimized out>) at
 /usr/src/lib/libc/gen/assert.c:72
         buf =3D "assertion \"curnode->slink !=3D NULL\" failed: file
 \"/usr/src/tools/makefs/../../usr.sbin/makefs/walk.c\", line 480, function
 \"apply_specdir\"\n\000\027\377\177\177\000\000
 \360\027\377\177\177\000\000\222\240u\347ay\000\000\310\355\027\377\177\177=
 \000\000\f\000\000\000\000\000\000\000\063\360\027\377\177\177\000\000*\022=
 \t\020\355\003\000\000\b\002\377\377\000\000\000\000"...
         l =3D <optimized out>
 #3  0x0000000000411e8e in apply_specdir ()
 No symbol table info available.
 #4  0x0000000000411ebc in apply_specdir ()
 No symbol table info available.
 #5  0x00000000004121b3 in apply_specfile ()
 No symbol table info available.
 #6  0x000000000040e55a in main ()
 No symbol table info available.



 ** function start .../makefs/walk.c **
 --------------------------------------
     361 static void
     362 apply_specdir(const char *dir, NODE *specnode, fsnode *dirnode, int
 speconly)
     363 {
     364         char     path[MAXPATHLEN + 1];
     365         NODE    *curnode;
     366         fsnode  *curfsnode;
     367
     368         assert(specnode !=3D NULL);
     369         assert(dirnode !=3D NULL);
     370
     371         if (debug & DEBUG_APPLY_SPECFILE)
     372                 printf("apply_specdir: %s %p %p\n", dir, specnode,
 dirnode);
     373
     374         if (specnode->type !=3D F_DIR)
     375                 errx(1, "Specfile node `%s/%s' is not a directory",
     376                     dir, specnode->name);


 ** line 480 context .../makefs/walk.c **
 ----------------------------------------
     460                         stbuf.st_mtime =3D stbuf.st_atime =3D
     461                             stbuf.st_ctime =3D start_time.tv_sec;
     462 #if HAVE_STRUCT_STAT_ST_MTIMENSEC
     463                         stbuf.st_mtimensec =3D stbuf.st_atimensec =
 =3D
     464                             stbuf.st_ctimensec =3D start_time.tv_ns=
 ec;
     465 #endif
     466                         curfsnode =3D create_fsnode(".", ".",
 curnode->name,
     467                             &stbuf);
     468                         curfsnode->parent =3D dirnode->parent;
     469                         curfsnode->first =3D dirnode;
     470                         curfsnode->next =3D dirnode->next;
     471                         dirnode->next =3D curfsnode;
     472                         if (curfsnode->type =3D=3D S_IFDIR) {
     473                                         /* for dirs, make "." entry
 as well */
     474                                 curfsnode->child =3D
 create_fsnode(".", ".", ".",
     475                                     &stbuf);
     476                                 curfsnode->child->parent =3D
 curfsnode;
     477                                 curfsnode->child->first =3D
 curfsnode->child;
     478                         }
     479                         if (curfsnode->type =3D=3D S_IFLNK) {
     480                                 assert(curnode->slink !=3D NULL);
     481                                         /* for symlinks, copy the
 target */
     482                                 curfsnode->symlink =3D
 estrdup(curnode->slink);
     483                         }
     484                 }







 > christos
 >
 > On Jan 20, 2020, at 7:16 PM, bch <brad.harder@gmail.com> wrote:
 >
 >
 >
 > On Sat, Jan 18, 2020 at 11:45 Martin Husemann <martin@duskware.de> wrote:
 >
 >> The following reply was made to PR misc/54856; it has been noted by GNAT=
 S.
 >>
 >> From: Martin Husemann <martin@duskware.de>
 >> To: gnats-bugs@NetBSD.org
 >> Cc:
 >> Subject: Re: misc/54856: makefs/walk.c assertion  building images
 >> Date: Sat, 18 Jan 2020 20:42:17 +0100
 >>
 >>  I can not reproduce it:
 >
 >
 >
 > Hrm - I can still successfully reproduce the error. I=E2=80=99ve done a c=
 lean (no
 > =E2=80=9C-u=E2=80=9D) (re)build of kernel, modules and tools in case some=
  flaw was
 > =E2=80=9Cleaking=E2=80=9D into the build env. The tail of my latest effor=
 t has some
 > (undocumented) makefs debugging turned on, though it=E2=80=99s not immedi=
 ately
 > illuminating to me:
 >
 >
 > # env CDMAKEFSEXTRAOPTS=3D"-d 536870911" nice ./build.sh -j1 -u -U -x -V
 > CDMAKEFSEXTRAOPTS=3D"-d 536870911" -N2 release
 >
 >
 > [...]
 >
 >
 > apply_specdir:  spec ethers
 >
 > apply_specdir:  spec exports
 >
 > apply_specdir:  spec fstab
 >
 > apply_specdir: adding fstab
 >
 > apply_specentry: cdrom/etc/fstab
 >
 >                         changing gid from 0 to 0
 >
 >                         changing mode from 0 to 0644
 >
 >                         changing uid from 0 to 0
 >
 > apply_specdir:  spec ftpd.conf
 >
 > apply_specdir:  spec ftpwelcome
 >
 > apply_specdir:  spec gateways
 >
 > apply_specdir:  spec hesiod.conf
 >
 > apply_specdir:  spec hosts.allow
 >
 > apply_specdir:  spec hosts.deny
 >
 > apply_specdir:  spec ifaliases
 >
 > apply_specdir:  spec ipf.conf
 >
 > apply_specdir:  spec ipf6.conf
 >
 > apply_specdir:  spec ipnat.conf
 >
 > apply_specdir:  spec ipsec.conf
 >
 > apply_specdir:  spec ld.so.conf
 >
 > apply_specdir:  spec localtime
 >
 > apply_specdir: adding localtime
 >
 > [1]   Abort trap (core dumped)
 > /usr/src/obj/tooldir.NetBSD-9.99.39-amd64/bin/...
 >
 > *** [image] Error code 134
 >
 > nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms/bootcd
 >
 > 1 error
 >
 > nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms/bootcd
 >
 > *** [release-bootcd] Error code 2
 >
 >
 > nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms
 >
 > 1 error
 >
 >
 > nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms
 >
 > *** [release-cdroms] Error code 2
 >
 >
 > nbmake[3]: stopped in /usr/src/distrib/amd64
 >
 > 1 error
 >
 >
 > nbmake[3]: stopped in /usr/src/distrib/amd64
 >
 > *** [release-amd64] Error code 2
 >
 >
 > nbmake[2]: stopped in /usr/src/distrib
 >
 > 1 error
 >
 >
 > nbmake[2]: stopped in /usr/src/distrib
 >
 > *** [snap_post] Error code 2
 >
 >
 > nbmake[1]: stopped in /usr/src/etc
 >
 > 1 error
 >
 >
 > nbmake[1]: stopped in /usr/src/etc
 >
 > *** [release] Error code 2
 >
 >
 > nbmake: stopped in /usr/src
 >
 > 1 error
 >
 >
 > nbmake: stopped in /usr/src
 >
 >
 > ERROR: Failed to make release
 >
 > *** BUILD ABORTED ***
 >
 >
 >
 >
 >
 >
 >>
 >>  =3D=3D=3D> Successful make install-image
 >>  =3D=3D=3D> build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 >>  =3D=3D=3D> Summary of results:
 >>           build.sh command:    /usr/src/build.sh -O /tmp/obj -D /tmp/des=
 t
 >> -T /tmp/tools -j24 -u -U -x release install-image
 >>           build.sh started:    Sat Jan 18 19:58:34 CET 2020
 >>           NetBSD version:      9.99.39
 >>           MACHINE:             amd64
 >>           MACHINE_ARCH:        x86_64
 >>           Build platform:      NetBSD 9.99.38 amd64
 >>           HOST_SH:             /bin/sh
 >>           No $TOOLDIR/bin/nbmake, needs building.
 >>           Bootstrapping nbmake
 >>           MAKECONF file:       /etc/mk.conf
 >>           TOOLDIR path:        /tmp/tools
 >>           DESTDIR path:        /tmp/dest
 >>           RELEASEDIR path:     /tmp/obj/releasedir
 >>           Created /tmp/tools/bin/nbmake
 >>           Updated makewrapper: /tmp/tools/bin/nbmake-amd64
 >>           Successful make release
 >>           Successful make install-image
 >>           build.sh ended:      Sat Jan 18 20:39:08 CET 2020
 >>  =3D=3D=3D> .
 >>
 >>
 >>  Martin
 >>
 >>
 >
 > <sanitizer.log>
 >
 >
 >

 --000000000000a230f8059c9bc2ce
 Content-Type: text/html; charset="UTF-8"
 Content-Transfer-Encoding: quoted-printable

 <div><br></div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
 =3D"gmail_attr">On Mon, Jan 20, 2020 at 16:20 Christos Zoulas &lt;<a href=
 =3D"mailto:christos@zoulas.com">christos@zoulas.com</a>&gt; wrote:<br></div=
 ><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1=
 px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word;line-bre=
 ak:after-white-space">Since you have a core file, can you go in gdb and pri=
 nt a stack trace?<div></div></div></blockquote><div dir=3D"auto"><br></div>=
 <div dir=3D"auto"><br></div><div dir=3D"auto">Hi Christos.</div><div dir=3D=
 "auto"><br></div><div dir=3D"auto">It looked poor (no debug symbols??) at t=
 he frame I was most interested in, but:</div><div dir=3D"auto"><br></div><d=
 iv dir=3D"auto">gdb -c ./nbmakefs.core /usr/obj/tooldir.NetBSD-9.99.39-amd6=
 4/bin/nbmakefs</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div dir=
 =3D"auto">(gdb) bt full</div><div dir=3D"auto">#0 =C2=A00x00007961e778609a =
 in _lwp_kill () from /usr/lib/libc.so.12</div><div dir=3D"auto">No symbol t=
 able info available.</div><div dir=3D"auto">#1 =C2=A00x00007961e778643a in =
 abort () at /usr/src/lib/libc/stdlib/abort.c:74</div><div dir=3D"auto">=C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 mask =3D {__bits =3D {4294967263, 4294967295, 4294=
 967295, 4294967295}}</div><div dir=3D"auto">#2 =C2=A00x00007961e77859db in =
 __assert13 (file=3D&lt;optimized out&gt;, line=3D&lt;optimized out&gt;,</di=
 v><div dir=3D"auto">=C2=A0 =C2=A0 function=3D&lt;optimized out&gt;, failede=
 xpr=3D&lt;optimized out&gt;) at /usr/src/lib/libc/gen/assert.c:72</div><div=
  dir=3D"auto">=C2=A0 =C2=A0 =C2=A0 =C2=A0 buf =3D &quot;assertion \&quot;cu=
 rnode-&gt;slink !=3D NULL\&quot; failed: file \&quot;/usr/src/tools/makefs/=
 ../../usr.sbin/makefs/walk.c\&quot;, line 480, function \&quot;apply_specdi=
 r\&quot;\n\000\027\377\177\177\000\000 \360\027\377\177\177\000\000\222\240=
 u\347ay\000\000\310\355\027\377\177\177\000\000\f\000\000\000\000\000\000\0=
 00\063\360\027\377\177\177\000\000*\022\t\020\355\003\000\000\b\002\377\377=
 \000\000\000\000&quot;...</div><div dir=3D"auto">=C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 l =3D &lt;optimized out&gt;</div><div dir=3D"auto">#3 =C2=A00x000000000=
 0411e8e in apply_specdir ()</div><div dir=3D"auto">No symbol table info ava=
 ilable.</div><div dir=3D"auto">#4 =C2=A00x0000000000411ebc in apply_specdir=
  ()</div><div dir=3D"auto">No symbol table info available.</div><div dir=3D=
 "auto">#5 =C2=A00x00000000004121b3 in apply_specfile ()</div><div dir=3D"au=
 to">No symbol table info available.</div><div dir=3D"auto">#6 =C2=A00x00000=
 0000040e55a in main ()</div><div dir=3D"auto">No symbol table info availabl=
 e.</div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=3D=
 "auto"><br></div><div dir=3D"auto">** function start .../makefs/walk.c **</=
 div><div dir=3D"auto">--------------------------------------</div><div dir=
 =3D"auto">=C2=A0 =C2=A0 361 static void</div><div dir=3D"auto">=C2=A0 =C2=
 =A0 362 apply_specdir(const char *dir, NODE *specnode, fsnode *dirnode, int=
  speconly)</div><div dir=3D"auto">=C2=A0 =C2=A0 363 {</div><div dir=3D"auto=
 ">=C2=A0 =C2=A0 364 =C2=A0 =C2=A0 =C2=A0 =C2=A0 char =C2=A0 =C2=A0 path[MAX=
 PATHLEN + 1];</div><div dir=3D"auto">=C2=A0 =C2=A0 365 =C2=A0 =C2=A0 =C2=A0=
  =C2=A0 NODE =C2=A0 =C2=A0*curnode;</div><div dir=3D"auto">=C2=A0 =C2=A0 36=
 6 =C2=A0 =C2=A0 =C2=A0 =C2=A0 fsnode =C2=A0*curfsnode;</div><div dir=3D"aut=
 o">=C2=A0 =C2=A0 367</div><div dir=3D"auto">=C2=A0 =C2=A0 368 =C2=A0 =C2=A0=
  =C2=A0 =C2=A0 assert(specnode !=3D NULL);</div><div dir=3D"auto">=C2=A0 =
 =C2=A0 369 =C2=A0 =C2=A0 =C2=A0 =C2=A0 assert(dirnode !=3D NULL);</div><div=
  dir=3D"auto">=C2=A0 =C2=A0 370</div><div dir=3D"auto">=C2=A0 =C2=A0 371 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (debug &amp; DEBUG_APPLY_SPECFILE)</div><div=
  dir=3D"auto">=C2=A0 =C2=A0 372 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 printf(&quot;apply_specdir: %s %p %p\n&quot;, dir, specnode, =
 dirnode);</div><div dir=3D"auto">=C2=A0 =C2=A0 373</div><div dir=3D"auto">=
 =C2=A0 =C2=A0 374 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (specnode-&gt;type !=3D F_=
 DIR)</div><div dir=3D"auto">=C2=A0 =C2=A0 375 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 errx(1, &quot;Specfile node `%s/%s&#39; is not =
 a directory&quot;,</div><div dir=3D"auto">=C2=A0 =C2=A0 376 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dir, specnode-&gt;n=
 ame);</div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=
 =3D"auto">** line 480 context .../makefs/walk.c **</div><div dir=3D"auto">-=
 ---------------------------------------</div><div dir=3D"auto">=C2=A0 =C2=
 =A0 460 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 stbuf.st_mtime =3D stbuf.st_atime =3D</div><div dir=3D"au=
 to">=C2=A0 =C2=A0 461 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 stbuf.st_ctime =3D start_time=
 .tv_sec;</div><div dir=3D"auto">=C2=A0 =C2=A0 462 #if HAVE_STRUCT_STAT_ST_M=
 TIMENSEC</div><div dir=3D"auto">=C2=A0 =C2=A0 463 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 stbuf.st_mtimen=
 sec =3D stbuf.st_atimensec =3D</div><div dir=3D"auto">=C2=A0 =C2=A0 464 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 stbuf.st_ctimensec =3D start_time.tv_nsec;</div><div d=
 ir=3D"auto">=C2=A0 =C2=A0 465 #endif</div><div dir=3D"auto">=C2=A0 =C2=A0 4=
 66 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 curfsnode =3D create_fsnode(&quot;.&quot;, &quot;.&quot;, cur=
 node-&gt;name,</div><div dir=3D"auto">=C2=A0 =C2=A0 467 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 &amp;stbuf);</div><div dir=3D"auto">=C2=A0 =C2=A0 468 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 curfs=
 node-&gt;parent =3D dirnode-&gt;parent;</div><div dir=3D"auto">=C2=A0 =C2=
 =A0 469 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 curfsnode-&gt;first =3D dirnode;</div><div dir=3D"auto">=
 =C2=A0 =C2=A0 470 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 curfsnode-&gt;next =3D dirnode-&gt;next;</div><=
 div dir=3D"auto">=C2=A0 =C2=A0 471 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dirnode-&gt;next =3D curfsnod=
 e;</div><div dir=3D"auto">=C2=A0 =C2=A0 472 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (curfsnode-&gt;type=
  =3D=3D S_IFDIR) {</div><div dir=3D"auto">=C2=A0 =C2=A0 473 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* for dirs, make &quo=
 t;.&quot; entry as well */</div><div dir=3D"auto">=C2=A0 =C2=A0 474 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 curfsnode-&gt;child =3D create_fsnode(&quot=
 ;.&quot;, &quot;.&quot;, &quot;.&quot;,</div><div dir=3D"auto">=C2=A0 =C2=
 =A0 475 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &amp;stbuf);</d=
 iv><div dir=3D"auto">=C2=A0 =C2=A0 476 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 curfsnode-&gt;child-&gt;parent =3D curfsnode;</div><div dir=3D"auto">=
 =C2=A0 =C2=A0 477 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 curfsnode-&gt;child=
 -&gt;first =3D curfsnode-&gt;child;</div><div dir=3D"auto">=C2=A0 =C2=A0 47=
 8 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 }</div><div dir=3D"auto">=C2=A0 =C2=A0 479 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (curfsnod=
 e-&gt;type =3D=3D S_IFLNK) {</div><div dir=3D"auto">=C2=A0 =C2=A0 480 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 assert(curnode-&gt;slink !=3D NULL);</di=
 v><div dir=3D"auto">=C2=A0 =C2=A0 481 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* for symlinks, copy the target */</div><d=
 iv dir=3D"auto">=C2=A0 =C2=A0 482 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 curf=
 snode-&gt;symlink =3D estrdup(curnode-&gt;slink);</div><div dir=3D"auto">=
 =C2=A0 =C2=A0 483 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }</div><div dir=3D"auto">=C2=A0 =C2=A0 484 =C2=
 =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }</div><div dir=3D"aut=
 o">=C2=A0</div><div dir=3D"auto"><br></div></div><div dir=3D"auto"><br></di=
 v><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=3D"auto"=
 ><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor=
 der-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-wor=
 d;line-break:after-white-space"><div><br></div><div>christos<br><div><br><b=
 lockquote type=3D"cite"><div>On Jan 20, 2020, at 7:16 PM, bch &lt;<a href=
 =3D"mailto:brad.harder@gmail.com" target=3D"_blank">brad.harder@gmail.com</=
 a>&gt; wrote:</div><br><div><p><u></u><br><u></u></p><u></u><p><u></u><br><=
 u></u></p><p><u></u><u></u></p><p><u></u>On Sat, Jan 18, 2020 at 11:45 Mart=
 in Husemann &lt;<a href=3D"mailto:martin@duskware.de" target=3D"_blank">mar=
 tin@duskware.de</a>&gt; wrote:<br><u></u></p><u></u><blockquote class=3D"gm=
 ail_quote">The following reply was made to PR misc/54856; it has been noted=
  by GNATS.<br>
 <br>
 From: Martin Husemann &lt;<a href=3D"mailto:martin@duskware.de" target=3D"_=
 blank">martin@duskware.de</a>&gt;<br>
 To: <a href=3D"mailto:gnats-bugs@NetBSD.org" target=3D"_blank">gnats-bugs@N=
 etBSD.org</a><br>
 Cc: <br>
 Subject: Re: misc/54856: makefs/walk.c assertion=C2=A0 building images<br>
 Date: Sat, 18 Jan 2020 20:42:17 +0100<br>
 <br>
 =C2=A0I can not reproduce it:</blockquote><p><u></u><br><u></u></p><u></u><=
 p><u></u><br><u></u></p><u></u><p><u></u>Hrm - I can still successfully rep=
 roduce the error. I=E2=80=99ve done a clean (no =E2=80=9C-u=E2=80=9D) (re)b=
 uild of kernel, modules and tools in case some flaw was =E2=80=9Cleaking=E2=
 =80=9D into the build env. The tail of my latest effort has some (undocumen=
 ted) makefs debugging turned on, though it=E2=80=99s not immediately illumi=
 nating to me:<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u><u=
 ></u></p><p><u></u># env CDMAKEFSEXTRAOPTS=3D&quot;-d 536870911&quot; nice =
 ./build.sh -j1 -u -U -x -V CDMAKEFSEXTRAOPTS=3D&quot;-d 536870911&quot; -N2=
  release<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>[...]<u=
 ></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>apply_specdir: =
 =C2=A0spec ethers<u></u></p><u></u><p><u></u>apply_specdir: =C2=A0spec expo=
 rts<u></u></p><u></u><p><u></u>apply_specdir: =C2=A0spec fstab<u></u></p><u=
 ></u><p><u></u>apply_specdir: adding fstab<u></u></p><u></u><p><u></u>apply=
 _specentry: cdrom/etc/fstab<u></u></p><u></u><p><u></u>=C2=A0 =C2=A0 =C2=A0=
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 changing gi=
 d from 0 to 0<u></u></p><u></u><p><u></u>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 changing mode from 0 to 0=
 644<u></u></p><u></u><p><u></u>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 changing uid from 0 to 0<u></u></=
 p><u></u><p><u></u>apply_specdir: =C2=A0spec ftpd.conf<u></u></p><u></u><p>=
 <u></u>apply_specdir: =C2=A0spec ftpwelcome<u></u></p><u></u><p><u></u>appl=
 y_specdir: =C2=A0spec gateways<u></u></p><u></u><p><u></u>apply_specdir: =
 =C2=A0spec hesiod.conf<u></u></p><u></u><p><u></u>apply_specdir: =C2=A0spec=
  hosts.allow<u></u></p><u></u><p><u></u>apply_specdir: =C2=A0spec hosts.den=
 y<u></u></p><u></u><p><u></u>apply_specdir: =C2=A0spec ifaliases<u></u></p>=
 <u></u><p><u></u>apply_specdir: =C2=A0spec ipf.conf<u></u></p><u></u><p><u>=
 </u>apply_specdir: =C2=A0spec ipf6.conf<u></u></p><u></u><p><u></u>apply_sp=
 ecdir: =C2=A0spec ipnat.conf<u></u></p><u></u><p><u></u>apply_specdir: =C2=
 =A0spec ipsec.conf<u></u></p><u></u><p><u></u>apply_specdir: =C2=A0spec ld.=
 so.conf<u></u></p><u></u><p><u></u>apply_specdir: =C2=A0spec localtime<u></=
 u></p><u></u><p><u></u>apply_specdir: adding localtime<u></u></p><u></u><p>=
 <u></u>[1] =C2=A0 Abort trap (core dumped) /usr/src/obj/tooldir.NetBSD-9.99=
 .39-amd64/bin/...<u></u></p><u></u><p><u></u>*** [image] Error code 134<u><=
 /u></p><u></u><p><u></u>nbmake[5]: stopped in /usr/src/distrib/amd64/cdroms=
 /bootcd<u></u></p><u></u><p><u></u>1 error<u></u></p><u></u><p><u></u>nbmak=
 e[5]: stopped in /usr/src/distrib/amd64/cdroms/bootcd<u></u></p><u></u><p><=
 u></u>*** [release-bootcd] Error code 2<u></u></p><u></u><p><u></u><br><u><=
 /u></p><u></u><p><u></u>nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms=
 <u></u></p><u></u><p><u></u>1 error<u></u></p><u></u><p><u></u><br><u></u><=
 /p><u></u><p><u></u>nbmake[4]: stopped in /usr/src/distrib/amd64/cdroms<u><=
 /u></p><u></u><p><u></u>*** [release-cdroms] Error code 2<u></u></p><u></u>=
 <p><u></u><br><u></u></p><u></u><p><u></u>nbmake[3]: stopped in /usr/src/di=
 strib/amd64<u></u></p><u></u><p><u></u>1 error<u></u></p><u></u><p><u></u><=
 br><u></u></p><u></u><p><u></u>nbmake[3]: stopped in /usr/src/distrib/amd64=
 <u></u></p><u></u><p><u></u>*** [release-amd64] Error code 2<u></u></p><u><=
 /u><p><u></u><br><u></u></p><u></u><p><u></u>nbmake[2]: stopped in /usr/src=
 /distrib<u></u></p><u></u><p><u></u>1 error<u></u></p><u></u><p><u></u><br>=
 <u></u></p><u></u><p><u></u>nbmake[2]: stopped in /usr/src/distrib<u></u></=
 p><u></u><p><u></u>*** [snap_post] Error code 2<u></u></p><u></u><p><u></u>=
 <br><u></u></p><u></u><p><u></u>nbmake[1]: stopped in /usr/src/etc<u></u></=
 p><u></u><p><u></u>1 error<u></u></p><u></u><p><u></u><br><u></u></p><u></u=
 ><p><u></u>nbmake[1]: stopped in /usr/src/etc<u></u></p><u></u><p><u></u>**=
 * [release] Error code 2<u></u></p><u></u><p><u></u><br><u></u></p><u></u><=
 p><u></u>nbmake: stopped in /usr/src<u></u></p><u></u><p><u></u>1 error<u><=
 /u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>nbmake: stopped in =
 /usr/src<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>ERROR: =
 Failed to make release<u></u></p><u></u><p><u></u>*** BUILD ABORTED ***<u><=
 /u></p><u></u><p><u></u><br><u></u></p><u></u><div><br></div><u></u><p><u><=
 /u><br><u></u></p><u></u><p><u></u><br><u></u></p><u></u><blockquote class=
 =3D"gmail_quote"><br>
 <br>
 =C2=A0=3D=3D=3D&gt; Successful make install-image<br>
 =C2=A0=3D=3D=3D&gt; build.sh ended:=C2=A0 =C2=A0 =C2=A0 Sat Jan 18 20:39:08=
  CET 2020<br>
 =C2=A0=3D=3D=3D&gt; Summary of results:<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 build.sh command:=C2=A0 =C2=A0 /usr/src/=
 build.sh -O /tmp/obj -D /tmp/dest -T /tmp/tools -j24 -u -U -x release insta=
 ll-image<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 build.sh started:=C2=A0 =C2=A0 Sat Jan 1=
 8 19:58:34 CET 2020<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 NetBSD version:=C2=A0 =C2=A0 =C2=A0 9.99=
 .39<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 MACHINE:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0amd64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 MACHINE_ARCH:=C2=A0 =C2=A0 =C2=A0 =C2=A0=
  x86_64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Build platform:=C2=A0 =C2=A0 =C2=A0 NetB=
 SD 9.99.38 amd64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 HOST_SH:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 =C2=A0 =C2=A0/bin/sh<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 No $TOOLDIR/bin/nbmake, needs building.<=
 br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Bootstrapping nbmake<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 MAKECONF file:=C2=A0 =C2=A0 =C2=A0 =C2=
 =A0/etc/mk.conf<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TOOLDIR path:=C2=A0 =C2=A0 =C2=A0 =C2=A0=
  /tmp/tools<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 DESTDIR path:=C2=A0 =C2=A0 =C2=A0 =C2=A0=
  /tmp/dest<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 RELEASEDIR path:=C2=A0 =C2=A0 =C2=A0/tmp=
 /obj/releasedir<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Created /tmp/tools/bin/nbmake<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Updated makewrapper: /tmp/tools/bin/nbma=
 ke-amd64<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Successful make release<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Successful make install-image<br>
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 build.sh ended:=C2=A0 =C2=A0 =C2=A0 Sat =
 Jan 18 20:39:08 CET 2020<br>
 =C2=A0=3D=3D=3D&gt; .<br>
 <br>
 <br>
 =C2=A0Martin<br>
 <br>
 </blockquote><div><br></div><u></u><div><br></div><u></u>
 <span id=3D"m_851794770470245639cid:107F6563-AE54-49A1-8C98-40C9BD96EF6B@as=
 tron.com">&lt;sanitizer.log&gt;</span><u></u><u></u><u></u><u></u><u></u><u=
 ></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u>=
 <u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></=
 u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u>=
 </u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><=
 u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u=
 ><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u><=
 /u><u></u><u></u><u></u><u></u><u></u><u></u></div></blockquote></div><br><=
 /div></div></blockquote></div></div>

 --000000000000a230f8059c9bc2ce--

From: Christos Zoulas <christos@zoulas.com>
To: gnats-bugs@netbsd.org
Cc: misc-bug-people@netbsd.org,
 gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org,
 brad.harder@gmail.com
Subject: Re: misc/54856: makefs/walk.c assertion building images
Date: Mon, 20 Jan 2020 21:36:42 -0500

 --Apple-Mail=_4429A23C-8C48-4512-A29A-1ADB9F49405E
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=us-ascii

 The next step is to compile tools with debugging (MKTOOLSDEBUG=3Dyes).
 This looks like an empty spec "link" line? I thought that parsing would =
 have caught this earlier.

 christos

 --Apple-Mail=_4429A23C-8C48-4512-A29A-1ADB9F49405E
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP

 -----BEGIN PGP SIGNATURE-----
 Comment: GPGTools - http://gpgtools.org

 iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCXiZjuwAKCRBxESqxbLM7
 OtWbAJ4uJ6QpNQTEjyFHSHWA0pfdTKbZ1gCg4E+cJ71SUcuttLebX18dUSpwei8=
 =t5m4
 -----END PGP SIGNATURE-----

 --Apple-Mail=_4429A23C-8C48-4512-A29A-1ADB9F49405E--

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.