Closed Bug 1648941 Opened 4 years ago Closed 4 years ago

[Automated review] source-test-coverity-coverity fails

Categories

(Developer Infrastructure :: Source Code Analysis, defect, P3)

Tracking

(firefox88 fixed)

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: saschanaz, Assigned: andi)

Details

Attachments

(1 file)

Phabricator URL: https://phabricator.services.mozilla.com/D81210

Rebasing doesn't help, I have no idea why.

Error seems to be

[task 2020-06-27T13:42:36.193Z] * Configuring /builds/worker/fetches/clang/bin/clang++ as a C compiler
[task 2020-06-27T13:42:36.194Z] [STATUS] clangcxxcc-config-0: Running sanity tests on native compiler
[task 2020-06-27T13:42:36.216Z] Error: Unable to run native compiler sanity test
[task 2020-06-27T13:42:36.217Z] Error generating configuration for compiler clang++ of type clangcxxcc
[task 2020-06-27T13:42:36.217Z] --force given, creating configuration anyway
[task 2020-06-27T13:42:36.218Z] * Configuring /builds/worker/fetches/clang/bin/clang++ as an Objective-C compiler

The severity field is not set for this bug.
:andi, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bpostelnicu)

This happened because coverity crashed:

[task 2020-06-27T13:46:09.438Z] cov-internal-emit-clang linux64 2020.03
[task 2020-06-27T13:46:09.438Z]   0x000000000093d6d0
[task 2020-06-27T13:46:09.438Z]   0x00000000005af76c
[task 2020-06-27T13:46:09.438Z]   0x000000000066dee8
[task 2020-06-27T13:46:09.438Z]   0x000000000058c08b
[task 2020-06-27T13:46:09.438Z]   0x000000000066e068
[task 2020-06-27T13:46:09.438Z]   0x00000000005972ad
[task 2020-06-27T13:46:09.438Z]   0x000000000066ebe8
[task 2020-06-27T13:46:09.438Z]   0x0000000000a34bae
[task 2020-06-27T13:46:09.438Z]   0x000000000061784a
[task 2020-06-27T13:46:09.438Z]   0x0000000000606eba
[task 2020-06-27T13:46:09.438Z]   0x000000000057e220
[task 2020-06-27T13:46:09.438Z]   0x000000000042aa3e
[task 2020-06-27T13:46:09.438Z]   0x000000000042efff
[task 2020-06-27T13:46:09.438Z]   0x0000000000554b04
[task 2020-06-27T13:46:09.438Z]   0x000000000054e0c2
[task 2020-06-27T13:46:09.438Z]   0x0000000000a5c455
[task 2020-06-27T13:46:09.438Z]   0x000000000043b59e
[task 2020-06-27T13:46:09.438Z] libc.so.6 linux64 2020.03
[task 2020-06-27T13:46:09.438Z]   0x000000000002409b

I don't remember seeing crashes in a while and unfortunately I cannot reproduce it.

Severity: -- → S3
Flags: needinfo?(bpostelnicu)
Priority: -- → P3

I've been seeing this failure for almost all the patches touching layout code recently like https://phabricator.services.mozilla.com/D99838#3242288

[task 2020-12-15T20:58:52.949Z] [STATUS] Compiling Unified_cpp_layout_generic0.cpp
[task 2020-12-15T20:58:52.949Z] /builds/worker/workspace/coverity/cov-analysis-linux64-2020.09/bin/cov-internal-emit-clang --emit_pch_dependencies --dir=/builds/worker/workspace/coverity/data-coverity/v2020.09/idir --ignore_path=/tmp/cov-worker/61e5b81e70681939734233734c6005bc --preimacros /builds/worker/workspace/coverity/data-coverity/v2020.09/idir/emit/0e9e456e6ee9/config/18b21d9e739c9fbb7c86346874d7a95d/clangcxx-config-0/coverity-macro-compat.h --pre_preinclude /builds/worker/workspace/coverity/data-coverity/v2020.09/idir/emit/0e9e456e6ee9/config/18b21d9e739c9fbb7c86346874d7a95d/clangcxx-config-0/coverity-compiler-compat.h --no-builtin-include-paths -w --no_predefines --comp_ver 10.0.0 -target x86_64-unknown-linux-gnu -resource-dir /builds/worker/fetches/clang/lib/clang/10.0.0 --no_predefines --preinclude /builds/worker/workspace/coverity/cov-analysis-linux64-2020.09/config/template-clangcxx-config-0/../user_nodefs.h --c++ -std=gnu++17 -o /dev/null -c -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/dist/stl_wrappers -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/dist/system_wrappers -include /builds/worker/checkouts/gecko/config/gcc_hidden.h -fstack-protector-strong -ftrivial-auto-var-init=pattern -I/builds/worker/checkouts/gecko/layout/generic -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/layout/generic -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/ipc/ipdl/_ipdlheaders -I/builds/worker/checkouts/gecko/ipc/chromium/src -I/builds/worker/checkouts/gecko/ipc/glue -I/builds/worker/checkouts/gecko/dom/plugins/base -I/builds/worker/checkouts/gecko/layout/base -I/builds/worker/checkouts/gecko/layout/forms -I/builds/worker/checkouts/gecko/layout/painting -I/builds/worker/checkouts/gecko/layout/style -I/builds/worker/checkouts/gecko/layout/tables -I/builds/worker/checkouts/gecko/layout/xul -I/builds/worker/checkouts/gecko/docshell/base -I/builds/worker/checkouts/gecko/dom/base -I/builds/worker/checkouts/gecko/dom/html -I/builds/worker/checkouts/gecko/dom/xul -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/dist/include -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/dist/include/nspr -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/dist/include/nss -fPIC -include /builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/mozilla-config.h -Qunused-arguments -Qunused-arguments -fno-sized-deallocation -fno-aligned-new -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -Os -fno-omit-frame-pointer -funwind-tables -I/builds/worker/checkouts/gecko/obj-x86_64-pc-linux-gnu/dist/include/cairo -I/builds/worker/checkouts/gecko/widget/gtk/compat-gtk3 -pthread -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fexperimental-new-pass-manager -ferror-limit=0 --sys_include /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8 --sys_include /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8 --sys_include /usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/backward --sys_include /usr/local/include --sys_include /builds/worker/fetches/clang/lib/clang/10.0.0/include --sys_include /usr/include/x86_64-linux-gnu --sys_include /usr/include -DDEBUG=1 -DIMPL_LIBXUL -DMOZILLA_CLIENT -DMOZILLA_INTERNAL_API -DMOZ_HAS_MOZGLUE -DOS_LINUX=1 -DOS_POSIX=1 -DSTATIC_EXPORTABLE_JS_API -D_FORTIFY_SOURCE=2 -x c++ Unified_cpp_layout_generic0.cpp 
[task 2020-12-15T20:59:20.804Z] 
[task 2020-12-15T20:59:20.805Z] catastrophic signal: 11 (SIGSEGV)
[task 2020-12-15T20:59:20.805Z] faulting data pointer: 0x0000000000000030
[task 2020-12-15T20:59:20.805Z] call stack backtrace:
[task 2020-12-15T20:59:20.805Z] cov-internal-emit-clang linux64 2020.09
[task 2020-12-15T20:59:20.805Z]   0x0000000000a27960
[task 2020-12-15T20:59:20.805Z]   0x00000000005c2413
[task 2020-12-15T20:59:20.805Z]   0x00000000006e76e8
[task 2020-12-15T20:59:20.805Z]   0x00000000005c373b
[task 2020-12-15T20:59:20.805Z]   0x00000000006e7868
[task 2020-12-15T20:59:20.805Z]   0x00000000005cf0ed
[task 2020-12-15T20:59:20.805Z]   0x00000000006e8468
[task 2020-12-15T20:59:20.805Z]   0x00000000008c828e
[task 2020-12-15T20:59:20.805Z]   0x000000000062413a
[task 2020-12-15T20:59:20.805Z]   0x00000000006137ea
[task 2020-12-15T20:59:20.805Z]   0x0000000000586c50
[task 2020-12-15T20:59:20.805Z]   0x000000000042bd1e
[task 2020-12-15T20:59:20.805Z]   0x0000000000430016
[task 2020-12-15T20:59:20.805Z]   0x000000000055b7d6
[task 2020-12-15T20:59:20.805Z]   0x00000000005559c2
[task 2020-12-15T20:59:20.805Z]   0x0000000000a1865c
[task 2020-12-15T20:59:20.805Z]   0x000000000043c10e
[task 2020-12-15T20:59:20.805Z] libc.so.6 linux64 2020.09
[task 2020-12-15T20:59:20.805Z]   0x000000000002409b
[task 2020-12-15T20:59:20.823Z] WARNING: cov-internal-emit-clang returned with code 4 for Unified_cpp_layout_generic0.cpp
Assignee: nobody → bpostelnicu
Status: NEW → ASSIGNED

Finally we got a workaround for this issue under Case# 00847671 by Synopsis development team. I hope this will be fixed in the next major release.

Attachment #9204820 - Attachment description: Bug 1648941 - fir for Coverity tatic Analysis crash in layout. r=marco → Bug 1648941 - fix for Coverity Static Analysis crash in layout. r=marco
Pushed by bpostelnicu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eb62bb0dd93b fix for Coverity Static Analysis crash in layout. r=marco
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: