[users at bb.net] warningPattern: scope of the search
Martin Liška
mliska at suse.cz
Wed Aug 15 09:05:48 UTC 2018
Hello.
I've got a build step where I do a grepping:
```
find gcc/testsuite -name "*.log" | xargs cat | grep -v "Fortran runtime error:" | grep -v "fortran/simplify.c:" | grep -B10 -A10 "runtime error:" || true
in dir /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir (timeout 1200 secs)
watching logfiles {}
argv: b'find gcc/testsuite -name "*.log" | xargs cat | grep -v "Fortran runtime error:" | grep -v "fortran/simplify.c:" | grep -B10 -A10 "runtime error:" || true'
environment:
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HOME=/home/marxin
LC_CTYPE=en_US.UTF-8
LOGNAME=marxin
PATH=/usr/bin:/bin
PWD=/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir
SHELL=/bin/sh
SHLVL=1
USER=marxin
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_ID=3
_=/usr/bin/buildbot-worker
using PTY: False
PASS: gcc.dg/strlenopt-53.c scan-tree-dump-times gimple "strlen" 0
PASS: gcc.dg/strlenopt-53.c scan-tree-dump-times ccp1 "call_in_true_branch_not_eliminated" 0
Executing on host: /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/xgcc -B/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/ /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/testsuite/gcc.dg/strlenopt-54.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -O2 -Wall -fdump-tree-optimized -S -o strlenopt-54.s (timeout = 300)
spawn -ignore SIGHUP /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/xgcc -B/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/ /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/testsuite/gcc.dg/strlenopt-54.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -O2 -Wall -fdump-tree-optimized -S -o strlenopt-54.s
PASS: gcc.dg/strlenopt-54.c (test for excess errors)
PASS: gcc.dg/strlenopt-54.c scan-tree-dump-times optimized "strlen" 0
PASS: gcc.dg/strlenopt-54.c scan-tree-dump-times optimized "call_in_true_branch_not_eliminated" 0
Executing on host: /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/xgcc -B/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/ /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/testsuite/gcc.dg/strlenopt-55.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -O1 -Wall -fdump-tree-gimple -fdump-tree-optimized -S -o strlenopt-55.s (timeout = 300)
spawn -ignore SIGHUP /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/xgcc -B/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/ /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/testsuite/gcc.dg/strlenopt-55.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -O1 -Wall -fdump-tree-gimple -fdump-tree-optimized -S -o strlenopt-55.s
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/testsuite/gcc.dg/strlenopt-55.c:127:3: warning: unsigned conversion from 'int' to 'short unsigned int' changes value from '65536' to '0' [-Woverflow]
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775805 * 8 cannot be represented in type 'long int'
PASS: gcc.dg/strlenopt-55.c (test for warnings, line 127)
FAIL: gcc.dg/strlenopt-55.c (test for excess errors)
Excess errors:
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775805 * 8 cannot be represented in type 'long int'
PASS: gcc.dg/strlenopt-55.c scan-tree-dump-times gimple "strlen" 0
PASS: gcc.dg/strlenopt-55.c scan-tree-dump-times gimple "memcmp" 0
PASS: gcc.dg/strlenopt-55.c scan-tree-dump-times gimple "strcmp" 0
PASS: gcc.dg/strlenopt-55.c scan-tree-dump-times optimized "call_in_true_branch_not_eliminated" 0
Executing on host: /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/xgcc -B/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/ IBM10478573.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -lm -o IBM10478573.exe (timeout = 300)
spawn -ignore SIGHUP /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/xgcc -B/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc/ IBM10478573.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -lm -o IBM10478573.exe
Setting LD_LIBRARY_PATH to :/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/./libatomic/.libs::/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/gcc:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/./libatomic/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libsanitizer/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libvtv/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libssp/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libgomp/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libitm/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libatomic/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/./gcc:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/./prev-gcc:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libsanitizer/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libvtv/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libssp/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libgomp/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libitm/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/x86_64-pc-linux-gnu/libatomic/.libs:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/./gcc:/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/objdir/./prev-gcc
Execution timeout is: 300
spawn [open ...]
program finished with exit code 0
elapsedTime=0.309999
```
and I set warningPattern=".*runtime error:.*" and I see following hits:
find gcc/testsuite -name "*.log" | xargs cat | grep -v "Fortran runtime error:" | grep -v "fortran/simplify.c:" | grep -B10 -A10 "runtime error:" || true
argv: b'find gcc/testsuite -name "*.log" | xargs cat | grep -v "Fortran runtime error:" | grep -v "fortran/simplify.c:" | grep -B10 -A10 "runtime error:" || true'
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775805 * 8 cannot be represented in type 'long int'
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-ubsan/build/gcc/poly-int.h:1095:5: runtime error: signed integer overflow: 9223372036854775805 * 8 cannot be represented in type 'long int'
Issue is that first 2 lines are from debug output of Buildbot and are not result of the command executed.
Is it an issue?
Thanks,
Martin
More information about the users
mailing list