Closed Bug 1723309 Opened 3 years ago Closed 3 years ago

Perma Linux asan devtools/shared/heapsnapshot/tests/xpcshell/test_census_diff_01.js | xpcshell return code: 1 when Gecko 92 merges to Beta on 2021-08-09

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1723294
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox90 --- unaffected
firefox91 --- unaffected
firefox92 --- affected

People

(Reporter: dluca, Unassigned)

References

(Regression)

Details

(Keywords: regression)

[Tracking Requested - why for this release]:

Central-as-beta-simulation:
https://treeherder.mozilla.org/jobs?repo=try&revision=ddf5d450f31d9f818689d5fe3e8d497add35bd1d&searchStr=linux%2C18.04%2Cx64%2Cwebrender%2Casan%2Copt%2Cxpcshell%2Ctests%2Ctest-linux1804-64-asan-qr%2Fopt-xpcshell-e10s%2Cx5

Log:
https://treeherder.mozilla.org/logviewer?job_id=346988420&repo=try

INFO -  TEST-START | dom/push/test/xpcshell/test_clearAll_successful.js
[task 2021-07-31T12:25:42.342Z] 12:25:42     INFO -  TEST-PASS | dom/push/test/xpcshell/test_clearAll_successful.js | took 1550ms
[task 2021-07-31T12:25:42.343Z] 12:25:42     INFO -  Retrying tests that failed when run in parallel.
[task 2021-07-31T12:25:42.345Z] 12:25:42     INFO -  TEST-START | devtools/shared/heapsnapshot/tests/xpcshell/test_census_diff_01.js
[task 2021-07-31T12:25:43.260Z] 12:25:43  WARNING -  TEST-UNEXPECTED-FAIL | devtools/shared/heapsnapshot/tests/xpcshell/test_census_diff_01.js | xpcshell return code: 1
[task 2021-07-31T12:25:43.260Z] 12:25:43     INFO -  TEST-INFO took 912ms
[task 2021-07-31T12:25:43.260Z] 12:25:43     INFO -  >>>>>>>
[task 2021-07-31T12:25:43.261Z] 12:25:43     INFO -  PID 25513 | /builds/worker/checkouts/gecko/dom/security/nsContentSecurityUtils.cpp:1095:8: runtime error: load of value 80, which is not a valid value for type 'bool'
[task 2021-07-31T12:25:43.261Z] 12:25:43     INFO -  PID 25513 |     #0 0x7f2d1d570e13 in nsContentSecurityUtils::ValidateScriptFilename(char const*, bool) /builds/worker/checkouts/gecko/dom/security/nsContentSecurityUtils.cpp:1095:8
[task 2021-07-31T12:25:43.261Z] 12:25:43     INFO -  PID 25513 |     #1 0x7f2d22112698 in MaybeValidateFilename /builds/worker/checkouts/gecko/js/src/vm/JSScript.cpp:1662:7
[task 2021-07-31T12:25:43.261Z] 12:25:43     INFO -  PID 25513 |     #2 0x7f2d22112698 in js::ScriptSourceObject::initFromOptions(JSContext*, JS::Handle<js::ScriptSourceObject*>, JS::ReadOnlyCompileOptions const&) /builds/worker/checkouts/gecko/js/src/vm/JSScript.cpp:1688:8
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #3 0x7f2d227c955d in InstantiateScriptSourceObject /builds/worker/checkouts/gecko/js/src/frontend/Stencil.cpp:949:10
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #4 0x7f2d227c955d in js::frontend::CompilationStencil::instantiateStencilAfterPreparation(JSContext*, js::frontend::CompilationInput&, js::frontend::CompilationStencil const&, js::frontend::CompilationGCOutput&) /builds/worker/checkouts/gecko/js/src/frontend/Stencil.cpp:1375:10
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #5 0x7f2d2271f30f in js::frontend::InstantiateStencils(JSContext*, js::frontend::CompilationInput&, js::frontend::CompilationStencil const&, js::frontend::CompilationGCOutput&) /builds/worker/checkouts/gecko/js/src/frontend/BytecodeCompiler.cpp:388:10
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #6 0x7f2d22720939 in CompileEvalScriptImpl<char16_t> /builds/worker/checkouts/gecko/js/src/frontend/BytecodeCompiler.cpp:475:10
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #7 0x7f2d22720939 in js::frontend::CompileEvalScript(JSContext*, JS::ReadOnlyCompileOptions const&, JS::SourceText<char16_t>&, JS::Handle<js::Scope*>, JS::Handle<JSObject*>) /builds/worker/checkouts/gecko/js/src/frontend/BytecodeCompiler.cpp:490:10
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #8 0x7f2d21d00ea5 in EvalKernel(JSContext*, JS::Handle<JS::Value>, EvalType, js::AbstractFramePtr, JS::Handle<JSObject*>, unsigned char*, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/builtin/Eval.cpp:339:13
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #9 0x7f2d21cfeff7 in js::IndirectEval(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/src/builtin/Eval.cpp:370:10
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #10 0x7f2d21c97481 in CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:402:13
[task 2021-07-31T12:25:43.262Z] 12:25:43     INFO -  PID 25513 |     #11 0x7f2d21c97481 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:487:12
[task 2021-07-31T12:25:43.263Z] 12:25:43     INFO -  PID 25513 |     #12 0x7f2d21c7ef8d in CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:551:10
[task 2021-07-31T12:25:43.263Z] 12:25:43     INFO -  PID 25513 |     #13 0x7f2d21c7ef8d in Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3240:16
[task 2021-07-31T12:25:43.263Z] 12:25:43     INFO -  PID 25513 |     #14 0x7f2d21c69175 in js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:371:13
[task 2021-07-31T12:25:43.263Z] 12:25:43     INFO -  PID 25513 |     #15 0x7f2d21c9abb3 in js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:741:13
[task 2021-07-31T12:25:43.266Z] 12:25:43     INFO -  PID 25513 |     #16 0x7f2d21ee76cd in JS_ExecuteScript(JSContext*, JS::Handle<JSScript*>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:515:10
[task 2021-07-31T12:25:43.266Z] 12:25:43     INFO -  PID 25513 |     #17 0x7f2d18ef9d57 in Load(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:407:12
[task 2021-07-31T12:25:43.267Z] 12:25:43     INFO -  PID 25513 |     #18 0x7f2d21c97481 in CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:402:13
[task 2021-07-31T12:25:43.267Z] 12:25:43     INFO -  PID 25513 |     #19 0x7f2d21c97481 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:487:12
[task 2021-07-31T12:25:43.267Z] 12:25:43     INFO -  PID 25513 |     #20 0x7f2d21c7ef8d in CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:551:10
[task 2021-07-31T12:25:43.267Z] 12:25:43     INFO -  PID 25513 |     #21 0x7f2d21c7ef8d in Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3240:16
[task 2021-07-31T12:25:43.267Z] 12:25:43     INFO -  PID 25513 |     #22 0x7f2d21c69175 in js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:371:13
[task 2021-07-31T12:25:43.268Z] 12:25:43     INFO -  PID 25513 |     #23 0x7f2d21c9abb3 in js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:741:13
[task 2021-07-31T12:25:43.268Z] 12:25:43     INFO -  PID 25513 |     #24 0x7f2d21ee8499 in EvaluateSourceBuffer<mozilla::Utf8Unit> /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:584:10
[task 2021-07-31T12:25:43.268Z] 12:25:43     INFO -  PID 25513 |     #25 0x7f2d21ee8499 in JS::Evaluate(JSContext*, JS::ReadOnlyCompileOptions const&, JS::SourceText<mozilla::Utf8Unit>&, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:592:10
[task 2021-07-31T12:25:43.268Z] 12:25:43     INFO -  PID 25513 |     #26 0x7f2d18eba6d2 in ProcessArgs(mozilla::dom::AutoJSAPI&, char**, int, XPCShellDirProvider*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:983:11
[task 2021-07-31T12:25:43.269Z] 12:25:43     INFO -  PID 25513 |     #27 0x7f2d18eb6c57 in XRE_XPCShellMain(int, char**, char**, XREShellData const*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:1393:16
[task 2021-07-31T12:25:43.269Z] 12:25:43     INFO -  PID 25513 |     #28 0x55d2b570d005 in main /builds/worker/checkouts/gecko/js/xpconnect/shell/xpcshell.cpp:82:27
[task 2021-07-31T12:25:43.269Z] 12:25:43     INFO -  PID 25513 |     #29 0x7f2d10d0fb96 in __libc_start_main /tmp/glibc/csu/../csu/libc-start.c:310
[task 2021-07-31T12:25:43.269Z] 12:25:43     INFO -  PID 25513 |     #30 0x55d2b565e5ac in _start (/builds/worker/workspace/build/application/firefox/xpcshell+0x545ac)
[task 2021-07-31T12:25:43.270Z] 12:25:43     INFO -  PID 25513 | SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /builds/worker/checkouts/gecko/dom/security/nsContentSecurityUtils.cpp:1095:8 in
[task 2021-07-31T12:25:43.270Z] 12:25:43     INFO -  <<<<<<<
[task 2021-07-31T12:25:43.271Z] 12:25:43     INFO -  TEST-START | devtools/shared/heapsnapshot/tests/xpcshell/test_census_diff_03.js

Today's central-as-beta simulation had several permanent xpcshell and mochitest failures. From comment 0:

builds/worker/checkouts/gecko/dom/security/nsContentSecurityUtils.cpp:1095:8: runtime error: load of value 80, which is not a valid value for type 'bool'
Component: Memory → Sanitizers
Product: DevTools → Core
Summary: TEST-UNEXPECTED-FAIL Perma | devtools/shared/heapsnapshot/tests/xpcshell/test_census_diff_01.js | xpcshell return code: 1 when Gecko 92 merges to Beta on 2021-08-09 → Perma Linux asan devtools/shared/heapsnapshot/tests/xpcshell/test_census_diff_01.js | xpcshell return code: 1 when Gecko 92 merges to Beta on 2021-08-09

Bug added the code referenced in comment 0. Jan, you check what's going on here or redirect to e.g. arai? Thank you in advance.

Component: Sanitizers → JavaScript Engine
Flags: needinfo?(jdemooij)
Regressed by: 1722775
Version: Firefox 92 → unspecified
Has Regression Range: --- → yes
Keywords: regression

Note that a patch has been provided on https://bugzilla.mozilla.org/show_bug.cgi?id=1723294, for the same issue most likely

(In reply to Julian Descottes [:jdescottes] from comment #6)

Note that a patch has been provided on https://bugzilla.mozilla.org/show_bug.cgi?id=1723294, for the same issue most likely

Clearing the NI based on this...

Flags: needinfo?(jdemooij)

central-as-beta simulation with the patch from bug 1723294 doesn't observe the xpcshell failures.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.