Subject: nbmtree crash with build.sh install=/
To: None <current-users@NetBSD.org>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: current-users
Date: 10/13/2007 13:27:05
Heyas folks --

I can't seem to install world after a successful build on current:

installsets ===> distrib/sets   (with: INSTALLDIR=/ INSTALLSETS=)
( cat /export/home/jmcneill/branches/HEAD/src/etc/mtree/NetBSD.dist ; 
echo '/unset all' ;  cat 
/export/home/jmcneill/branches/HEAD/src/destdir.amd64/METALOG )  | 
/export/home/jmcneill/branches/HEAD/src/tooldir.NetBSD-4.99.31-x86_64/bin/nbmtree 
-C -k all -N /export/home/jmcneill/branches/HEAD/src/etc > 
/export/home/jmcneill/branches/HEAD/src/destdir.amd64/METALOG.new &&  ( rm 
-f /export/home/jmcneill/branches/HEAD/src/destdir.amd64/METALOG ;  mv 
/export/home/jmcneill/branches/HEAD/src/destdir.amd64/METALOG.new 
/export/home/jmcneill/branches/HEAD/src/destdir.amd64/METALOG )
[1]   Done                    (cat /export/hom... |
       Segmentation fault (core dumped) /export/home/jmc...

*** Failed target: 
/export/home/jmcneill/branches/HEAD/src/destdir.amd64/METALOG.sanitised

Core was generated by `nbmtree'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ffd9c6b4a in strlen () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007f7ffd9c6b4a in strlen () from /usr/lib/libc.so.12
#1  0x00007f7ffd9bfdd7 in __vfprintf_unlocked () from /usr/lib/libc.so.12
#2  0x00007f7ffd9c0bc4 in vfprintf () from /usr/lib/libc.so.12
#3  0x00007f7ffd9bb6ce in printf () from /usr/lib/libc.so.12
#4  0x0000000000405331 in dump_nodes ()
#5  0x00000000004050ba in main ()

Cheers,
Jared