RTRLIB Testing

Build: #102 was successful

Job: Clang Static Analyzer was successful

Job result summary

Completed
Duration
44 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
++ echo Clang
++ cut -d_ -f 1
+ host=Clang.lab.netdef.org
+ [[ -z rtrlib ]]
+ PROJECT=rtrlib
+ DIRECTORY=rtrlib-source
+ buildnum=102
+ echo 'Unpack Source'
+ tar xzf rtrlib-source.tar.gz
+ vm=
+ host=
+ sshport=
+ PROJECT=rtrlib
+ DIRECTORY=rtrlib-source
+ CLANGVER=8
+ buildnum=102
+ 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-102-ScriptBuildTask-7188384421567664341.sh -ne 0 ']'
/home/ci/bamboo-agent-home/temp/RPKI-RTRLIB-CLANGANALYZER-102-ScriptBuildTask-7188384421567664341.sh: line 24: [: /home/ci/bamboo-agent-home/temp/RPKI-RTRLIB-CLANGANALYZER-102-ScriptBuildTask-7188384421567664341.sh: integer expression expected
    ^
/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/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/tools/rtrclient.c:265:2: warning: Value stored to 'i' is never read
        i = 0;
        ^   ~
1 warning generated.
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_dynamic_groups.c: In function ‘connection_status_callback’:
/home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/rtrlib-source/tests/test_dynamic_groups.c:13: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_dynamic_groups.c:15: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_dynamic_groups.c:16: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_dynamic_groups.c:71:11: warning: Potential leak of memory pointed to by 'group2.sockets'
                        return EXIT_FAILURE;
                               ^~~~~~~~~~~~
/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_ht_spkitable.c:628:2: warning: Value stored to 'i' is never read
        i = 0;
        ^   ~
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/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.
+ echo 'scan-build-8 -maxloop 16 make -j5'
+ cd /home/ci/bamboo-agent-home/xml-data/build-dir/RPKI-RTRLIB-CLANGANALYZER/clang
+ mv 2019-06-03-141407-9716-1/index.html 2019-06-03-141407-9716-1/report-0bf25c.html 2019-06-03-141407-9716-1/report-0f32be.html 2019-06-03-141407-9716-1/report-23ebae.html 2019-06-03-141407-9716-1/report-2be6ec.html 2019-06-03-141407-9716-1/report-3a4682.html 2019-06-03-141407-9716-1/report-5e2f9d.html 2019-06-03-141407-9716-1/report-657433.html 2019-06-03-141407-9716-1/report-65db4b.html 2019-06-03-141407-9716-1/report-6af214.html 2019-06-03-141407-9716-1/report-7fab66.html 2019-06-03-141407-9716-1/report-84d415.html 2019-06-03-141407-9716-1/report-8e9732.html 2019-06-03-141407-9716-1/report-91b1ce.html 2019-06-03-141407-9716-1/report-9a0466.html 2019-06-03-141407-9716-1/report-a20793.html 2019-06-03-141407-9716-1/report-acd8f0.html 2019-06-03-141407-9716-1/report-cb7b51.html 2019-06-03-141407-9716-1/scanview.css 2019-06-03-141407-9716-1/sorttable.js .
+ rm -rf 2019-06-03-141407-9716-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