RTRLIB Testing

Build: #93 was successful

Job: Clang Static Analyzer was successful

Job result summary

Completed
Duration
36 seconds
Agent
clang1001.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
++ echo Clang
++ cut -d_ -f 1
+ host=Clang.lab.netdef.org
+ [[ -z rtrlib ]]
+ PROJECT=rtrlib
+ DIRECTORY=rtrlib-source
+ buildnum=93
+ echo 'Unpack Source'
+ tar xzf rtrlib-source.tar.gz
+ vm=
+ host=
+ sshport=
+ PROJECT=rtrlib
+ DIRECTORY=rtrlib-source
+ CLANGVER=8
+ buildnum=93
+ 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-93-ScriptBuildTask-2881598006006625362.sh -ne 0 ']'
/home/ci/bamboo-agent-home/temp/RPKI-RTRLIB-CLANGANALYZER-93-ScriptBuildTask-2881598006006625362.sh: line 24: [: /home/ci/bamboo-agent-home/temp/RPKI-RTRLIB-CLANGANALYZER-93-ScriptBuildTask-2881598006006625362.sh: integer expression expected
                               ^~~~~~~~~~~~
/usr/include/stdlib.h:133:22: note: expanded from macro 'EXIT_FAILURE'
#define EXIT_FAILURE    1       /* Failing exit status.  */
                        ^
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 "8282"
                         ^
/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:573: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:617: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:1440: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/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/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/tools/rtrclient.c:92:2: warning: Value stored to 'i' is never read
        i = 0;
        ^   ~
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tools/rtrclient.c:209:22: warning: Result of 'malloc' is converted to a pointer of type 'struct rtr_socket *', which is incompatible with sizeof operand type 'struct rtr_socket'
        groups[0].sockets = malloc(1 * sizeof(rtr));
                            ^~~~~~     ~~~~~~~~~~~
2 warnings 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-04-11-200213-15479-1/index.html 2019-04-11-200213-15479-1/report-05fb7a.html 2019-04-11-200213-15479-1/report-18c4ce.html 2019-04-11-200213-15479-1/report-4ee859.html 2019-04-11-200213-15479-1/report-5594b3.html 2019-04-11-200213-15479-1/report-55a04f.html 2019-04-11-200213-15479-1/report-55c02e.html 2019-04-11-200213-15479-1/report-574e10.html 2019-04-11-200213-15479-1/report-5aa0e6.html 2019-04-11-200213-15479-1/report-5cf09f.html 2019-04-11-200213-15479-1/report-719b30.html 2019-04-11-200213-15479-1/report-8cede2.html 2019-04-11-200213-15479-1/report-9569a3.html 2019-04-11-200213-15479-1/report-9b662a.html 2019-04-11-200213-15479-1/report-a68b61.html 2019-04-11-200213-15479-1/report-a9f01e.html 2019-04-11-200213-15479-1/report-cf60c7.html 2019-04-11-200213-15479-1/report-d99f19.html 2019-04-11-200213-15479-1/report-f1eeab.html 2019-04-11-200213-15479-1/scanview.css 2019-04-11-200213-15479-1/sorttable.js .
+ rm -rf 2019-04-11-200213-15479-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