RTRLIB Testing

Build: #107 was successful

Job: Clang Static Analyzer was successful

Job result summary

Completed
Duration
37 seconds
Agent
clang1002.lab.netdef.org
Successful since
#88 ()

Error summary

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

++ echo Clang Static Analyzer
++ cut '-d ' -f 1
+ vm=Clang
++ cut -d_ -f 1
++ echo Clang
+ host=Clang.lab.netdef.org
+ [[ -z rtrlib ]]
+ PROJECT=rtrlib
+ DIRECTORY=rtrlib-source
+ buildnum=107
+ echo 'Unpack Source'
+ tar xzf rtrlib-source.tar.gz
+ vm=
+ host=
+ sshport=
+ PROJECT=rtrlib
+ DIRECTORY=rtrlib-source
+ CLANGVER=8
+ buildnum=107
+ echo 'CMAKE Debug'
+ cd rtrlib-source
+ export CC=clang-8
+ CC=clang-8
+ scan-build-8 cmake -D CMAKE_BUILD_TYPE=Debug .
+ '[' /home/ci/bamboo-agent-home/temp/RPKI-RTRLIB-CLANGANALYZER-107-ScriptBuildTask-6621461355633052938.sh -ne 0 ']'
/home/ci/bamboo-agent-home/temp/RPKI-RTRLIB-CLANGANALYZER-107-ScriptBuildTask-6621461355633052938.sh: line 24: [: /home/ci/bamboo-agent-home/temp/RPKI-RTRLIB-CLANGANALYZER-107-ScriptBuildTask-6621461355633052938.sh: integer expression expected
1 warning generated.
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_pfx_locks.c:171:3: warning: 1st function call argument is an uninitialized value
                pthread_join(threads[i], NULL);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:32:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  {"93.175.146.0", 24, 12654, BGP_PFXV_STATE_VALID},
   ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:33:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  {"2001:7fb:fd02::", 48, 12654, BGP_PFXV_STATE_VALID},
   ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:34:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  {"93.175.147.0", 24, 12654, BGP_PFXV_STATE_INVALID},
   ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:35:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  {"2001:7fb:fd03::", 48, 12654, BGP_PFXV_STATE_INVALID},
   ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:36:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  {"84.205.83.0",  24, 12654, BGP_PFXV_STATE_NOT_FOUND},
   ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:37:3: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  {"2001:7fb:ff03::", 48, 12654, BGP_PFXV_STATE_NOT_FOUND},
   ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c: In function ‘connection_status_callback’:
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:44:68: warning: unused parameter ‘group’ [-Wunused-parameter]
static void connection_status_callback(const struct rtr_mgr_group *group,
                                                                    ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:46:37: warning: unused parameter ‘socket’ [-Wunused-parameter]
            const struct rtr_socket *socket,
                                     ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:47:18: warning: unused parameter ‘data’ [-Wunused-parameter]
            void *data)
                  ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c: In function ‘main’:
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:16:25: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
#define RPKI_CACHE_HOST "rpki-validator.realmv6.org"
                         ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:63:38: note: in expansion of macro ‘RPKI_CACHE_HOST’
  struct tr_tcp_config tcp_config = { RPKI_CACHE_HOST,
                                      ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:17:25: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
#define RPKI_CACHE_POST "8283"
                         ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:64:10: note: in expansion of macro ‘RPKI_CACHE_POST’
          RPKI_CACHE_POST,
          ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_live_validation.c:110:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (result != q.val) {
              ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/rtrlib/rtr/packets.c:569:9: warning: Value stored to 'error' is never read
        error = RTR_SUCCESS;
        ^       ~~~~~~~~~~~
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/rtrlib/rtr/packets.c:613:13: warning: Value stored to 'error' is never read
            error = RTR_SUCCESS;
            ^       ~~~~~~~~~~~
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/rtrlib/rtr/packets.c:1433:2: warning: Declared variable-length array (VLA) has zero size
        char pdu[erroneous_pdu_len];
        ^~~~~~~~ ~~~~~~~~~~~~~~~~~
3 warnings generated.
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/third-party/mustach/mustach.c: In function ‘memfile_open’:
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/third-party/mustach/mustach.c:63:34: warning: unused parameter ‘buffer’ [-Wunused-parameter]
static FILE *memfile_open(char **buffer, size_t *size)
                                  ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/third-party/mustach/mustach.c:63:50: warning: unused parameter ‘size’ [-Wunused-parameter]
static FILE *memfile_open(char **buffer, size_t *size)
                                                  ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c: In function ‘connection_status_callback’:
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c:21:68: warning: unused parameter ‘group’ [-Wunused-parameter]
static void connection_status_callback(const struct rtr_mgr_group *group,
                                                                    ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c:23:37: warning: unused parameter ‘socket’ [-Wunused-parameter]
            const struct rtr_socket *socket,
                                     ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c:24:18: warning: unused parameter ‘data’ [-Wunused-parameter]
            void *data)
                  ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c: In function ‘connection_error’:
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c:40:4: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
    ;
    ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c: In function ‘main’:
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rpki-rov.c:107:5: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
     ;
     ^
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_trie.c:146:2: warning: Value stored to 'result' is never read
        result = trie_lookup_exact(&n1, &addr, 16, &lvl, &found);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rtrclient.c:477:2: warning: Value stored to 'i' is never read
        i = 0;
        ^   ~
1 warning generated.
+ echo 'scan-build-8 -maxloop 16 make -j5'
+ cd /home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/clang
+ mv 2019-07-18-103957-30632-1/index.html 2019-07-18-103957-30632-1/report-14bdb8.html 2019-07-18-103957-30632-1/report-169e7a.html 2019-07-18-103957-30632-1/report-1fdf0a.html 2019-07-18-103957-30632-1/report-3be92c.html 2019-07-18-103957-30632-1/report-5d3f82.html 2019-07-18-103957-30632-1/report-608cac.html 2019-07-18-103957-30632-1/report-6696db.html 2019-07-18-103957-30632-1/report-860d77.html 2019-07-18-103957-30632-1/report-87d0f1.html 2019-07-18-103957-30632-1/report-978c6a.html 2019-07-18-103957-30632-1/report-9c8643.html 2019-07-18-103957-30632-1/report-a124f1.html 2019-07-18-103957-30632-1/report-c4eb59.html 2019-07-18-103957-30632-1/report-d21a58.html 2019-07-18-103957-30632-1/report-e3fb7b.html 2019-07-18-103957-30632-1/report-f464cf.html 2019-07-18-103957-30632-1/report-fd6f35.html 2019-07-18-103957-30632-1/scanview.css 2019-07-18-103957-30632-1/sorttable.js .
+ rm -rf 2019-07-18-103957-30632-1
+ '[' 8 '<' 6.0 ']'
+ SUBDIR=8
+ '[' YES '!=' '' ']'
+ /home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/ci/clang/check_clang_output.rb -v --index ./index.html --srcversion ../README.SourceVersion.txt --out ../clang_check.txt --configure ../rtrlib-source/my_config.sh --make ../rtrlib-source/my_make_cmd.txt --sqlprefix /home/clang_data/8/rtrlib