Build #23

FRR-Clang8-Build

Build: #23 was successful

Job: Static Analyzer (Clang) was successful

Stages & jobs

  1. Get Sourcecode

  2. Basic Tests

Job result summary

Completed
Duration
17 minutes
Flags
Custom revision
Agent
clang1001.lab.netdef.org
Successful since
#2 ()

Error summary

The build generated some errors. See the full build log for more details.

++ echo Static Analyzer '(Clang)'
++ cut '-d ' -f 1
+ vm=Static
++ echo Static
++ cut -d_ -f 1
+ host=Static.lab.netdef.org
+ [[ -z frr ]]
+ PROJECT=frr
+ DIRECTORY=frr-source
+ buildnum=23
+ echo 'Unpack Source'
+ tar xzf frr-source.tar.gz
++ echo Static Analyzer '(Clang)'
++ cut '-d ' -f 1
+ vm=Static
++ cut -d_ -f 1
++ echo Static
+ host=Static.lab.netdef.org
+ [[ -z frr ]]
+ PROJECT=frr
+ DIRECTORY=frr-source
+ buildnum=23
+ echo 'Bootstrap Autotools on vm Static with hostname Static.lab.netdef.org'
++ pwd
+ errorlog=/home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_bootstrap.txt
+ rm -f /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_bootstrap.txt
+ echo -n '#!/bin/sh
if [ "`uname`" = "OpenBSD" ]; then
        export AUTOCONF_VERSION=2.69
        export AUTOMAKE_VERSION=1.15
fi
./bootstrap.sh
'
+ chmod 755 ./my_bootstrap.sh
+ cat ./my_bootstrap.sh
+ cd frr-source
+ ../my_bootstrap.sh
+ tee -a /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_bootstrap.txt
+ '[' 0 -ne 0 ']'
+ rm -f /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_bootstrap.txt
++ cut '-d ' -f 1
++ echo Static Analyzer '(Clang)'
+ vm=Static
++ echo Static
++ cut -d_ -f 1
+ host=Static.lab.netdef.org
+ [[ -z frr ]]
+ PROJECT=frr
+ DIRECTORY=frr-source
+ buildnum=23
+ [[ -z 8 ]]
+ CLANGVER=8
+ echo 'Configure frr for clang 8 on vm Static with hostname Static.lab.netdef.org'
++ pwd
+ errorlog=/home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_configure.txt
+ rm -f /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_configure.txt
+ cd frr-source
+ echo -n '#!/bin/sh
if [ "`uname`" = "NetBSD" ]; then
        MAKE=gmake
        export LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib"
        export CPPFLAGS="-I/usr/pkg/include"
elif [ "`uname`" = "FreeBSD" ]; then
        MAKE=gmake
        export MAKE
elif [ "`uname`" = "OpenBSD" ]; then
        MAKE=gmake
        export MAKE
fi
'
+ echo 'export CC=clang-8'
+ echo -n 'scan-build-8 '
+ echo './configure CFLAGS="-std=gnu99 -g -Os" --enable-vtysh \
    --enable-ospfclient=yes \
    --enable-ospfapi=yes --enable-multipath=0 --enable-rtadv \
    --enable-user=root --enable-tcp-zebra --enable-fpm --enable-pimd \'
+ echo '    --enable-watchfrr \'
+ echo -n '       '
+ echo ' --prefix=`pwd`/usr_local'
+ chmod 755 ./my_config.sh
+ cat my_config.sh
+ ./my_config.sh
+ tee -a /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_configure.txt
+ cp config.status ..
+ '[' 0 -ne 0 ']'
+ rm -f /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/log_configure.txt
+ rm -f ../config.log
# define BUFSIZ _IO_BUFSIZ
                ^~~~~~~~~~
/usr/include/libio.h:43:20: note: expanded from macro '_IO_BUFSIZ'
#define _IO_BUFSIZ _G_BUFSIZ
                   ^~~~~~~~~
/usr/include/_G_config.h:56:19: note: expanded from macro '_G_BUFSIZ'
#define _G_BUFSIZ 8192
                  ^~~~
lib/if.c:551:2: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(logbuf) or lower
        IFF_OUT_LOG(IFF_IPV4, "IPv4");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/if.c:528:24: note: expanded from macro 'IFF_OUT_LOG'
                strlcat(logbuf, STR, BUFSIZ);                                  \
                                     ^~~~~~
/usr/include/stdio.h:127:17: note: expanded from macro 'BUFSIZ'
# define BUFSIZ _IO_BUFSIZ
                ^~~~~~~~~~
/usr/include/libio.h:43:20: note: expanded from macro '_IO_BUFSIZ'
#define _IO_BUFSIZ _G_BUFSIZ
                   ^~~~~~~~~
/usr/include/_G_config.h:56:19: note: expanded from macro '_G_BUFSIZ'
#define _G_BUFSIZ 8192
                  ^~~~
lib/if.c:552:2: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(logbuf) or lower
        IFF_OUT_LOG(IFF_IPV6, "IPv6");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/if.c:525:25: note: expanded from macro 'IFF_OUT_LOG'
                        strlcat(logbuf, ",", BUFSIZ);                          \
                                             ^~~~~~
/usr/include/stdio.h:127:17: note: expanded from macro 'BUFSIZ'
# define BUFSIZ _IO_BUFSIZ
                ^~~~~~~~~~
/usr/include/libio.h:43:20: note: expanded from macro '_IO_BUFSIZ'
#define _IO_BUFSIZ _G_BUFSIZ
                   ^~~~~~~~~
/usr/include/_G_config.h:56:19: note: expanded from macro '_G_BUFSIZ'
#define _G_BUFSIZ 8192
                  ^~~~
lib/if.c:552:2: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(logbuf) or lower
        IFF_OUT_LOG(IFF_IPV6, "IPv6");
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/if.c:528:24: note: expanded from macro 'IFF_OUT_LOG'
                strlcat(logbuf, STR, BUFSIZ);                                  \
                                     ^~~~~~
/usr/include/stdio.h:127:17: note: expanded from macro 'BUFSIZ'
# define BUFSIZ _IO_BUFSIZ
                ^~~~~~~~~~
/usr/include/libio.h:43:20: note: expanded from macro '_IO_BUFSIZ'
#define _IO_BUFSIZ _G_BUFSIZ
                   ^~~~~~~~~
/usr/include/_G_config.h:56:19: note: expanded from macro '_G_BUFSIZ'
#define _G_BUFSIZ 8192
                  ^~~~
lib/if.c:554:23: warning: The third argument allows to potentially copy more bytes than it should. Replace with the value sizeof(logbuf) or lower
        strlcat(logbuf, ">", BUFSIZ);
                             ^~~~~~
/usr/include/stdio.h:127:17: note: expanded from macro 'BUFSIZ'
# define BUFSIZ _IO_BUFSIZ
                ^~~~~~~~~~
/usr/include/libio.h:43:20: note: expanded from macro '_IO_BUFSIZ'
#define _IO_BUFSIZ _G_BUFSIZ
                   ^~~~~~~~~
/usr/include/_G_config.h:56:19: note: expanded from macro '_G_BUFSIZ'
#define _G_BUFSIZ 8192
                  ^~~~
43 warnings generated.
ospfd/ospf_vty.c:9739:9: warning: Dereference of null pointer
                                                                rn->p.u.prefix4));
                                                                ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9775:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9786:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9800:9: warning: Dereference of null pointer
                                                                rn->p.u.prefix4));
                                                                ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9811:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9822:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
6 warnings generated.
bgpd/bgp_route.c:432:45: warning: Access to field 'host' results in a dereference of a null pointer (loaded from field 'peer')
                sprintf(buf, "path %s (addpath rxid %d)", pi->peer->host,
                                                          ^~~~~~~~~~~~~~
bgpd/bgp_route.c:435:27: warning: Access to field 'host' results in a dereference of a null pointer (loaded from field 'peer')
                sprintf(buf, "path %s", pi->peer->host);
                                        ^~~~~~~~~~~~~~
2 warnings generated.
+ echo 'scan-build-8 -maxloop 16 make -j5'
+ cd /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/clang
+ mv 2019-04-07-031055-2313-1/index.html 2019-04-07-031055-2313-1/report-04d732.html 2019-04-07-031055-2313-1/report-0d5f7c.html 2019-04-07-031055-2313-1/report-0fa348.html 2019-04-07-031055-2313-1/report-108774.html 2019-04-07-031055-2313-1/report-11cffc.html 2019-04-07-031055-2313-1/report-148414.html 2019-04-07-031055-2313-1/report-17ad1c.html 2019-04-07-031055-2313-1/report-1d867d.html 2019-04-07-031055-2313-1/report-200da7.html 2019-04-07-031055-2313-1/report-29bc83.html 2019-04-07-031055-2313-1/report-2a6b49.html 2019-04-07-031055-2313-1/report-2aef83.html 2019-04-07-031055-2313-1/report-2d8e35.html 2019-04-07-031055-2313-1/report-2e57e0.html 2019-04-07-031055-2313-1/report-314d7d.html 2019-04-07-031055-2313-1/report-349a3c.html 2019-04-07-031055-2313-1/report-37ec0f.html 2019-04-07-031055-2313-1/report-3b12ef.html 2019-04-07-031055-2313-1/report-4224bd.html 2019-04-07-031055-2313-1/report-44ddf0.html 2019-04-07-031055-2313-1/report-46c00e.html 2019-04-07-031055-2313-1/report-4cb7ff.html 2019-04-07-031055-2313-1/report-4d1bbf.html 2019-04-07-031055-2313-1/report-4d593a.html 2019-04-07-031055-2313-1/report-4e6d18.html 2019-04-07-031055-2313-1/report-4ecc04.html 2019-04-07-031055-2313-1/report-4f6032.html 2019-04-07-031055-2313-1/report-5116cc.html 2019-04-07-031055-2313-1/report-55dc43.html 2019-04-07-031055-2313-1/report-5873d7.html 2019-04-07-031055-2313-1/report-69f122.html 2019-04-07-031055-2313-1/report-6aa2d7.html 2019-04-07-031055-2313-1/report-6f1170.html 2019-04-07-031055-2313-1/report-6fc9e0.html 2019-04-07-031055-2313-1/report-71ab7e.html 2019-04-07-031055-2313-1/report-728fe2.html 2019-04-07-031055-2313-1/report-745d2d.html 2019-04-07-031055-2313-1/report-7c180d.html 2019-04-07-031055-2313-1/report-87c601.html 2019-04-07-031055-2313-1/report-8cdc94.html 2019-04-07-031055-2313-1/report-9797e0.html 2019-04-07-031055-2313-1/report-983aa2.html 2019-04-07-031055-2313-1/report-986d1a.html 2019-04-07-031055-2313-1/report-9a991a.html 2019-04-07-031055-2313-1/report-9e4c13.html 2019-04-07-031055-2313-1/report-9faffc.html 2019-04-07-031055-2313-1/report-ae50b6.html 2019-04-07-031055-2313-1/report-b0fb9b.html 2019-04-07-031055-2313-1/report-b29c33.html 2019-04-07-031055-2313-1/report-ccf229.html 2019-04-07-031055-2313-1/report-cd01a2.html 2019-04-07-031055-2313-1/report-d07f4c.html 2019-04-07-031055-2313-1/report-d5d99d.html 2019-04-07-031055-2313-1/report-dc564e.html 2019-04-07-031055-2313-1/report-dc67b5.html 2019-04-07-031055-2313-1/report-dc7f5c.html 2019-04-07-031055-2313-1/report-dd7b33.html 2019-04-07-031055-2313-1/report-e43b1d.html 2019-04-07-031055-2313-1/report-ea0399.html 2019-04-07-031055-2313-1/report-ebe3ea.html 2019-04-07-031055-2313-1/report-eeab8f.html 2019-04-07-031055-2313-1/report-f009b5.html 2019-04-07-031055-2313-1/report-f0fa33.html 2019-04-07-031055-2313-1/report-f177e4.html 2019-04-07-031055-2313-1/report-faca5e.html 2019-04-07-031055-2313-1/report-fb6727.html 2019-04-07-031055-2313-1/scanview.css 2019-04-07-031055-2313-1/sorttable.js .
+ rm -rf 2019-04-07-031055-2313-1
+ '[' 8 '<' 6.0 ']'
+ SUBDIR=8
+ '[' YES '!=' '' ']'
+ /home/ci/bamboo-agent-home/xml-data/build-dir/TESTING-FRRCLANG8-STATICANALYZER/ci/clang/check_clang_output.rb -v --index ./index.html --srcversion ../README.SourceVersion.txt --out ../clang_check.txt --configure ../frr-source/my_config.sh --make ../frr-source/my_make_cmd.txt --sqlprefix /home/clang_data/8/frr