Closed Bug 1330835 Opened 5 years ago Closed 5 years ago

certutil returns 3 when conduct mochitest with ASan on Windows

Categories

(NSS :: Tools, defect)

Unspecified
Windows
defect
Not set
normal

Tracking

(firefox53 affected)

RESOLVED WORKSFORME
Tracking Status
firefox53 --- affected

People

(Reporter: ting, Assigned: ting)

References

Details

When I run mochitest on Windows with ASan:

  $ ASAN_SYMBOLIZER_PATH=/c/w/tools/clang/x64/bin/llvm-symbolizer.exe ./mach mochitest

I got this error everywhere:

  dir: accessible/tests/browser
  Increasing default timeout to 90 seconds on ASAN
  mozprofile.addons WARNING | Could not install c:\w\fx\mc\obj-asan\_tests\testing\mochitest\extensions\mozscreenshots: [Errno 2] No such file or directory: 'c:\\w\\fx\\mc\\obj-asan\\_tests\\testing\\mochitest\\extensions\\mozscreenshots\\install.rdf'
  =================================================================
  AddressSanitizer: nested bug in the same thread, aborting.

  1 ERROR TEST-UNEXPECTED-FAIL | runtests.py | Certificate integration failed
  Buffered messages finished

It's because the certutil call:

  https://dxr.mozilla.org/mozilla-central/rev/048240a074e841c425a4da4707cf8e353074ec1d/testing/mochitest/runtests.py#1603

returns 3, this does not happen on Linux.
Assignee: nobody → janus926
Status: NEW → ASSIGNED
Component: Security: PSM → Tools
Product: Core → NSS
Version: Trunk → trunk
Ting, do you still get this error? I wasn't able to reproduce on my machine; certutil returned 0 and the tests started running. I was using a fresh LLVM from a few hours ago, if that makes a difference.
Flags: needinfo?(janus926)
I still get this error with the binaries I built from r286542. I'll update my test result with the latest LLVM later, thanks for the information!
Flags: needinfo?(janus926)
Like what :dmajor said, I can't reproduce the error with the latest LLVM r292767 and m-c https://hg.mozilla.org/mozilla-central/rev/bd0cd9af94d9.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
Running mochitests on Try now has the same error message:

https://treeherder.mozilla.org/logviewer.html#?job_id=107228936&repo=try&lineNumber=1645

07:34:46     INFO -  TEST-SKIP | accessible/tests/mochitest/tree/test_applicationacc.xul | took 0ms
07:34:46     INFO -  mozprofile.addons WARNING | Could not install Z:\task_1497511817\build\tests\mochitest\extensions\mozscreenshots: [Errno 2] No such file or directory: 'Z:\\task_1497511817\\build\\tests\\mochitest\\extensions\\mozscreenshots\\install.rdf'
07:34:46     INFO -  INFO | runtests.py | ASan using symbolizer at Z:\task_1497511817\build\application\firefox\llvm-symbolizer.exe
07:34:47     INFO -  INFO | runtests.py | ASan running in default memory configuration
07:34:47    ERROR -  0 ERROR TEST-UNEXPECTED-FAIL | runtests.py | Certificate integration failed
07:34:47     INFO -  Buffered messages finished
07:34:47     INFO -  SUITE-END | took 0s
(In reply to Ting-Yu Chou [:ting] from comment #4)
> Running mochitests on Try now has the same error message:

Weird, I can't reproduce locally with the latest m-c and LLVM r293859.
Actually it returns 0xc0000142, filed bug 1373562.
You need to log in before you can comment on or make changes to this bug.