NetBSD-Bugs archive

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

toolchain/40094: Failure building netbsd-4{,-0} branches on netbsd-5 host



>Number:         40094
>Category:       toolchain
>Synopsis:       Failure building netbsd-4{,-0} branches on netbsd-5 host
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 03 10:35:00 +0000 2008
>Originator:     Adrian Portelli
>Release:        NetBSD 5.0_BETA
>Organization:
STIndustries
>Environment:
NetBSD 5.0_BETA (amd64)
>Description:
I upgraded my build box to netbsd-5 and have started to try and do some
builds of the netbsd-4{,-0} branches.  All the builds fail at the same
point regardless of architecture (sparc,sparc64,amd64,i386).  With a
little bit of digging I think it's mtree that's causing the segfault.
If I manually run the command and replace 'nbmtree' with just 'mtree' it works 
fine.

gdb on the core file from nbmtree gives up the following if it helps:

Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ffd9c838a in strlen () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007f7ffd9c838a in strlen () from /usr/lib/libc.so.12
#1  0x00007f7ffd9c10cd in __vfprintf_unlocked () from /usr/lib/libc.so.12
#2  0x00007f7ffd9c21e4 in vfprintf () from /usr/lib/libc.so.12
#3  0x00007f7ffd9bd4de in printf () from /usr/lib/libc.so.12
#4  0x000000000040521c in dump_nodes ()
#5  0x00000000004050aa in main ()
(gdb)
>How-To-Repeat:
The following segment of code during a release build causes nbmtree to dump 
core:

( /var/scratch/builds/4/tools.amd64/bin/nbcat \
        /var/scratch/source/cvs/src-4/etc/mtree/NetBSD.dist ;  \
        echo '/unset all' ;  \
        /var/scratch/builds/4/tools.amd64/bin/nbcat \
        /var/scratch/builds/4/dest.amd64/METALOG ) | \
        /var/scratch/builds/4/tools.amd64/bin/nbmtree -C -k all -N \
                /var/scratch/source/cvs/src-4/etc > \
                /var/scratch/builds/4/dest.amd64/METALOG.new &&  \
        ( rm -f /var/scratch/builds/4/dest.amd64/METALOG ;  \
        mv /var/scratch/builds/4/dest.amd64/METALOG.new \
                /var/scratch/builds/4/dest.amd64/METALOG )

>Fix:



Home | Main Index | Thread Index | Old Index