Started by upstream project "librosprite" build number 253 originally caused by: Started by upstream project "buildsystem" build number 1471 originally caused by: Started by user Vincent Sanders Building remotely on ciworker0 (x86_64-linux-gnu runner) in workspace /var/lib/jenkins/workspace/scan-build-librosprite > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git://git.netsurf-browser.org/librosprite.git # timeout=10 Fetching upstream changes from git://git.netsurf-browser.org/librosprite.git > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress git://git.netsurf-browser.org/librosprite.git +refs/heads/*:refs/remotes/origin/* > git rev-parse origin/master^{commit} # timeout=10 Checking out Revision 019b9c168a050db136d127083d91238b2b5c29fc (origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 019b9c168a050db136d127083d91238b2b5c29fc > git rev-list 019b9c168a050db136d127083d91238b2b5c29fc # timeout=10 > git tag -a -f -m Jenkins Build #180 jenkins-scan-build-librosprite-180 # timeout=10 [scan-build-librosprite] $ /bin/sh -xe /tmp/hudson14535607923847624556.sh + cc -dumpmachine + export HOST=x86_64-linux-gnu + bash -ex /var/lib/jenkins/artifacts-x86_64-linux-gnu/share/netsurf-buildsystem/citools/jenkins-build.sh static + '[' xx86_64-linux-gnu = x ']' + ARTIFACT_HOME=/var/lib/jenkins/artifacts-x86_64-linux-gnu + '[' x = x ']' ++ cc -dumpmachine + BUILD=x86_64-linux-gnu + TARGET_TEST= + TARGET_INSTALL= + TARGET_COVERAGE= + TARGET_STATIC= + TARGET_COVERITY= + TARGET_DOCS= + VARIANT=release + case "$1" in + TARGET_STATIC=x86_64-linux-gnu + VARIANT=debug + export CCACHE= + CCACHE= + case ${BUILD} in + MAKE=make + mkdir -p /var/lib/jenkins/artifacts-x86_64-linux-gnu + export PREFIX=/var/lib/jenkins/artifacts-x86_64-linux-gnu + PREFIX=/var/lib/jenkins/artifacts-x86_64-linux-gnu + export PKG_CONFIG_PATH=/var/lib/jenkins/artifacts-x86_64-linux-gnu/lib/pkgconfig + PKG_CONFIG_PATH=/var/lib/jenkins/artifacts-x86_64-linux-gnu/lib/pkgconfig + export LD_LIBRARY_PATH=:/var/lib/jenkins/artifacts-x86_64-linux-gnu/lib + LD_LIBRARY_PATH=:/var/lib/jenkins/artifacts-x86_64-linux-gnu/lib + export PATH=/bin:/usr/bin:/var/lib/jenkins/artifacts-x86_64-linux-gnu/bin + PATH=/bin:/usr/bin:/var/lib/jenkins/artifacts-x86_64-linux-gnu/bin + make Q= clean HOST=x86_64-linux-gnu VARIANT=debug rm -f rm -f gmon.out rm -f rm -f rm -f rm -f rm -f -r build/docs rm -f -r build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static + '[' xx86_64-linux-gnu = x ']' + '[' xx86_64-linux-gnu = xx86_64-linux-gnu ']' + rm -rf clangScanBuildReports + CFLAGS=-Wno-error + scan-build -o clangScanBuildReports -v -v --use-cc clang --use-analyzer=/usr/bin/clang make Q= VARIANT=debug scan-build: Using '/usr/bin/clang' for static analysis scan-build: Emitting reports for this run to '/var/lib/jenkins/workspace/scan-build-librosprite/clangScanBuildReports/2024-12-10-004143-2163843-1'. mkdir -p build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static mkdir -p build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/coverage touch build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/stamp COMPILE: src/librosprite.c /usr/share/clang/scan-build-14/bin/../libexec/ccc-analyzer -MMD -MP -I/var/lib/jenkins/workspace/scan-build-librosprite/include/ -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wnested-externs -pedantic -std=c99 -Wno-format-zero-length -Wformat-security -Wstrict-aliasing=2 -Wmissing-format-attribute -Wunused -Wformat=2 -Werror-implicit-function-declaration -Wmissing-declarations -Wmissing-prototypes -Werror -Wno-error -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -g -Og -DDEBUG -std=c99 -o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_librosprite.o -c src/librosprite.c [LOCATION]: /var/lib/jenkins/workspace/scan-build-librosprite '/usr/bin/clang' '-cc1' '-triple' 'x86_64-pc-linux-gnu' '-analyze' '-disable-free' '-clear-ast-before-backend' '-disable-llvm-verifier' '-discard-value-names' '-main-file-name' 'librosprite.c' '-analyzer-store=region' '-analyzer-opt-analyze-nested-blocks' '-analyzer-checker=core' '-analyzer-checker=apiModeling' '-analyzer-checker=unix' '-analyzer-checker=deadcode' '-analyzer-checker=security.insecureAPI.UncheckedReturn' '-analyzer-checker=security.insecureAPI.getpw' '-analyzer-checker=security.insecureAPI.gets' '-analyzer-checker=security.insecureAPI.mktemp' '-analyzer-checker=security.insecureAPI.mkstemp' '-analyzer-checker=security.insecureAPI.vfork' '-analyzer-checker=nullability.NullPassedToNonnull' '-analyzer-checker=nullability.NullReturnedFromNonnull' '-analyzer-output' 'plist' '-w' '-setup-static-analyzer' '-mrelocation-model' 'pic' '-pic-level' '2' '-pic-is-pie' '-mframe-pointer=none' '-fmath-errno' '-ffp-contract=on' '-fno-rounding-math' '-mconstructor-aliases' '-funwind-tables=2' '-target-cpu' 'x86-64' '-tune-cpu' 'generic' '-debugger-tuning=gdb' '-fcoverage-compilation-dir=/var/lib/jenkins/workspace/scan-build-librosprite' '-resource-dir' '/usr/lib/llvm-14/lib/clang/14.0.6' '-I' '/var/lib/jenkins/workspace/scan-build-librosprite/include/' '-D' '_ALIGNED=__attribute__((aligned))' '-D' 'STMTEXPR=1' '-D' 'DEBUG' '-internal-isystem' '/usr/lib/llvm-14/lib/clang/14.0.6/include' '-internal-isystem' '/usr/local/include' '-internal-isystem' '/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include' '-internal-externc-isystem' '/usr/include/x86_64-linux-gnu' '-internal-externc-isystem' '/include' '-internal-externc-isystem' '/usr/include' '-Og' '-Wwrite-strings' '-Wno-format-zero-length' '-Wno-error' '-std=c99' '-fconst-strings' '-fdebug-compilation-dir=/var/lib/jenkins/workspace/scan-build-librosprite' '-ferror-limit' '19' '-fgnuc-version=4.2.1' '-analyzer-display-progress' '-analyzer-output=html' '-faddrsig' '-D__GCC_HAVE_DWARF2_CFI_ASM=1' '-o' '/var/lib/jenkins/workspace/scan-build-librosprite/clangScanBuildReports/2024-12-10-004143-2163843-1' '-x' 'c' 'src/librosprite.c' ANALYZE (Syntax): src/librosprite.c rosprite_load : 0.4 ms ANALYZE (Syntax): src/librosprite.c rosprite_destroy_sprite_area : 0.1 ms ANALYZE (Syntax): src/librosprite.c rosprite_load_palette : 0.3 ms ANALYZE (Syntax): src/librosprite.c rosprite_destroy_palette : 0.0 ms ANALYZE (Syntax): src/librosprite.c rosprite_create_file_context : 0.0 ms ANALYZE (Syntax): src/librosprite.c rosprite_destroy_file_context : 0.0 ms ANALYZE (Syntax): src/librosprite.c rosprite_file_reader : 0.0 ms ANALYZE (Syntax): src/librosprite.c rosprite_create_mem_context : 0.0 ms ANALYZE (Syntax): src/librosprite.c rosprite_destroy_mem_context : 0.0 ms ANALYZE (Syntax): src/librosprite.c rosprite_mem_reader : 0.1 ms ANALYZE (Syntax): src/librosprite.c rosprite_load_sprite : 1.1 ms ANALYZE (Syntax): src/librosprite.c rosprite_get_mode : 0.2 ms ANALYZE (Syntax): src/librosprite.c rosprite_load_high_color : 0.5 ms ANALYZE (Syntax): src/librosprite.c rosprite_fix_alpha : 0.1 ms ANALYZE (Syntax): src/librosprite.c rosprite_load_low_color : 0.5 ms ANALYZE (Syntax): src/librosprite.c rosprite_palette_lookup : 0.3 ms ANALYZE (Syntax): src/librosprite.c rosprite_init_mask_state : 0.1 ms ANALYZE (Syntax): src/librosprite.c rosprite_next_mask_pixel : 0.2 ms ANALYZE (Syntax): src/librosprite.c rosprite_upscale_color : 0.3 ms ANALYZE (Syntax): src/librosprite.c rosprite_cmyk_to_rgb : 0.1 ms ANALYZE (Syntax): src/librosprite.c rosprite_read_word : 0.0 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_mem_reader : 2.2 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_destroy_mem_context : 0.3 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_create_mem_context : 1.0 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_file_reader : 0.3 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_destroy_file_context : 0.2 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_create_file_context : 0.3 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_destroy_palette : 0.2 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_load_palette : 18.2 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_destroy_sprite_area : 17.0 ms ANALYZE (Path, Inline_Regular): /var/lib/jenkins/workspace/scan-build-librosprite/include/librosprite.h rosprite_load : 3571.5 ms ANALYZE (Path, Inline_Regular): src/librosprite.c rosprite_cmyk_to_rgb : 0.6 ms src/librosprite.c:264:3: warning: Potential leak of memory pointed to by 'sprite_area' [unix.Malloc] ERRCHK(rosprite_load_sprite(reader, ctx, &sprite)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/librosprite.c:37:33: note: expanded from macro 'ERRCHK' if (err != ROSPRITE_OK) return err; \ ^~~ src/librosprite.c:407:2: warning: Potential leak of memory pointed to by 'sprite' [unix.Malloc] ERRCHK(rosprite_read_word(reader, ctx, &nextSpriteOffset)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/librosprite.c:37:33: note: expanded from macro 'ERRCHK' if (err != ROSPRITE_OK) return err; \ ^~~ src/librosprite.c:483:3: warning: Potential leak of memory pointed to by 'header' [unix.Malloc] ERRCHK(rosprite_load_low_color(image, mask, sprite, header)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/librosprite.c:37:33: note: expanded from macro 'ERRCHK' if (err != ROSPRITE_OK) return err; \ ^~~ src/librosprite.c:612:9: warning: Potential leak of memory pointed to by 'mask_state' [unix.Malloc] return ROSPRITE_OK; ^~~~~~~~~~~ src/librosprite.c:717:4: warning: Value stored to 'translated_pixel' is never read [deadcode.DeadStores] translated_pixel = 0; ^ ~ ===-------------------------------------------------------------------------=== Analyzer timers ===-------------------------------------------------------------------------=== Total Execution Time: 3.6424 seconds (3.6502 wall clock) ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 3.5094 ( 99.0%) 0.0945 ( 95.3%) 3.6039 ( 98.9%) 3.6117 ( 98.9%) Path exploration time 0.0298 ( 0.8%) 0.0041 ( 4.1%) 0.0339 ( 0.9%) 0.0339 ( 0.9%) Path-sensitive report post-processing time 0.0040 ( 0.1%) 0.0006 ( 0.6%) 0.0047 ( 0.1%) 0.0047 ( 0.1%) Syntax-based analysis time 3.5432 (100.0%) 0.0992 (100.0%) 3.6424 (100.0%) 3.6502 (100.0%) Total 5 warnings generated. AR: build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/librosprite.a rm -f build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/librosprite.a ar cru build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/librosprite.a build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_librosprite.o ar: `u' modifier ignored since `D' is the default (see `U') scan-build: Analysis run complete. scan-build: 5 bugs found. scan-build: Run 'scan-view /var/lib/jenkins/workspace/scan-build-librosprite/clangScanBuildReports/2024-12-10-004143-2163843-1' to examine bug reports. + make Q= clean HOST=x86_64-linux-gnu VARIANT=debug rm -f rm -f gmon.out rm -f build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_librosprite.d rm -f rm -f rm -f build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_librosprite.o rm -f -r build/docs rm -f -r build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static + '[' xx86_64-linux-gnu = x ']' + '[' xx86_64-linux-gnu = x ']' Build step 'Console output (build log) parsing' changed build result to UNSTABLE Publishing Clang scan-build results Clang scan-build threshhold exceeded. Finished: UNSTABLE