NetBSD-Bugs archive

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

Re: misc/54856: makefs/walk.c assertion building images



The following reply was made to PR misc/54856; it has been noted by GNATS.

From: bch <brad.harder%gmail.com@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>
Cc: gnats-admin%netbsd.org@localhost, gnats-bugs%netbsd.org@localhost, misc-bug-people%netbsd.org@localhost, 
	netbsd-bugs%netbsd.org@localhost
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@localhost> 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@localhost> wrote:
 >
 >
 >
 > On Sat, Jan 18, 2020 at 11:45 Martin Husemann <martin%duskware.de@localhost> wrote:
 >
 >> The following reply was made to PR misc/54856; it has been noted by GNAT=
 S.
 >>
 >> From: Martin Husemann <martin%duskware.de@localhost>
 >> To: gnats-bugs%NetBSD.org@localhost
 >> 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@localhost";>christos%zoulas.com@localhost</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@localhost"; target=3D"_blank">brad.harder%gmail.com@localhost</=
 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@localhost"; target=3D"_blank">mar=
 tin%duskware.de@localhost</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@localhost"; target=3D"_=
 blank">martin%duskware.de@localhost</a>&gt;<br>
 To: <a href=3D"mailto:gnats-bugs%NetBSD.org@localhost"; 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--
 


Home | Main Index | Thread Index | Old Index