Started by upstream project "libnsutils" build number 316 originally caused by: Started by upstream project "buildsystem" build number 1469 originally caused by: Started by an SCM change Building remotely on ciworker0 (x86_64-linux-gnu runner) in workspace /var/lib/jenkins/workspace/sanitize-libnsutils > 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/libnsutils.git # timeout=10 Fetching upstream changes from git://git.netsurf-browser.org/libnsutils.git > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress git://git.netsurf-browser.org/libnsutils.git +refs/heads/*:refs/remotes/origin/* > git rev-parse origin/master^{commit} # timeout=10 Checking out Revision 490205e84fad9cf927cb9c73d58caf11c7a1d97f (origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 490205e84fad9cf927cb9c73d58caf11c7a1d97f > git rev-list 490205e84fad9cf927cb9c73d58caf11c7a1d97f # timeout=10 > git tag -a -f -m Jenkins Build #80 jenkins-sanitize-libnsutils-80 # timeout=10 [sanitize-libnsutils] $ /bin/sh -xe /tmp/hudson11034669923847707574.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 sanitize + '[' 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_SANITIZE=x86_64-linux-gnu + VARIANT=debug + 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 build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_base64.d build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_time.d build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_unistd.d build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/test_base64.d rm -f rm -f rm -f build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_base64.o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_time.o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_unistd.o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/test_base64.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 ']' + '[' xx86_64-linux-gnu = x ']' + '[' xx86_64-linux-gnu = x ']' + '[' xx86_64-linux-gnu = xx86_64-linux-gnu ']' + env UBSAN_OPTIONS=print_stacktrace=1 make Q= HOST=x86_64-linux-gnu VARIANT=debug sanitize 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/base64.c ccache cc -MMD -MP -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/var/lib/jenkins/workspace/sanitize-libnsutils/include/ -I/var/lib/jenkins/workspace/sanitize-libnsutils/src -Wall -W -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -g -Og -DDEBUG -std=c99 -D_POSIX_C_SOURCE=200809L -o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_base64.o -c src/base64.c COMPILE: src/time.c ccache cc -MMD -MP -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/var/lib/jenkins/workspace/sanitize-libnsutils/include/ -I/var/lib/jenkins/workspace/sanitize-libnsutils/src -Wall -W -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -g -Og -DDEBUG -std=c99 -D_POSIX_C_SOURCE=200809L -o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_time.o -c src/time.c COMPILE: src/unistd.c ccache cc -MMD -MP -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/var/lib/jenkins/workspace/sanitize-libnsutils/include/ -I/var/lib/jenkins/workspace/sanitize-libnsutils/src -Wall -W -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -g -Og -DDEBUG -std=c99 -D_POSIX_C_SOURCE=200809L -o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_unistd.o -c src/unistd.c AR: build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/libnsutils.a rm -f build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/libnsutils.a ar cru build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/libnsutils.a build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_base64.o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_time.o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/src_unistd.o ar: `u' modifier ignored since `D' is the default (see `U') COMPILE: test/base64.c ccache cc -MMD -MP -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/var/lib/jenkins/workspace/sanitize-libnsutils/include/ -I/var/lib/jenkins/workspace/sanitize-libnsutils/src -Wall -W -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -D_ALIGNED="__attribute__((aligned))" -DSTMTEXPR=1 -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -g -Og -DDEBUG -std=c99 -D_POSIX_C_SOURCE=200809L -g -O2 -o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/test_base64.o -c test/base64.c LINK: build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/test_base64 ccache cc -o build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/test_base64 build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/test_base64.o -lm -lnsutils -Lbuild-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/ -lnsutils -fsanitize=address -fsanitize=undefined -fno-sanitize-recover -g test/runtest.sh build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static \ /var/lib/jenkins/workspace/sanitize-libnsutils/test/ test_ ================================================================= ==1822545==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000011 at pc 0x7f5ede6718a3 bp 0x7ffe340a60f0 sp 0x7ffe340a58a0 WRITE of size 2 at 0x602000000011 thread T0 #0 0x7f5ede6718a2 in scanf_common ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors_format.inc:347 #1 0x7f5ede67215f in __interceptor___isoc99_vscanf ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1527 #2 0x7f5ede672256 in __interceptor___isoc99_scanf ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1548 #3 0x56518863b333 in main test/base64.c:50 #4 0x7f5eddc46249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) #5 0x7f5eddc46304 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27304) #6 0x56518863b5d0 in _start (/var/lib/jenkins/workspace/sanitize-libnsutils/build-x86_64-linux-gnu-x86_64-linux-gnu-debug-lib-static/test_base64+0x45d0) 0x602000000011 is located 0 bytes to the right of 1-byte region [0x602000000010,0x602000000011) allocated by thread T0 here: #0 0x7f5ede6b78d5 in __interceptor_realloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:85 #1 0x7f5eddc81742 (/lib/x86_64-linux-gnu/libc.so.6+0x62742) #2 0x7f5ede672134 in __interceptor___isoc99_vscanf ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1527 SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors_format.inc:347 in scanf_common Shadow bytes around the buggy address: 0x0c047fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c047fff8000: fa fa[01]fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==1822545==ABORTING Base64 encode error '' != 'Zg==' make: *** [/var/lib/jenkins/artifacts-x86_64-linux-gnu/share/netsurf-buildsystem/makefiles/Makefile.subdir:87: test_test/] Error 2 Build step 'Execute shell' marked build as failure Finished: FAILURE