Closed Bug 1199472 Opened 9 years ago Closed 8 years ago

Intermittent test_encryption.js | xpcshell return code: 0 | :0: error: 127.0.0.1:36766 uses an invalid security certificate.

Categories

(DevTools :: Framework, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: RyanVM, Unassigned)

References

Details

(Keywords: intermittent-failure)

      No description provided.
This also happens on emulator-x86-kk opt, https://treeherder.allizom.org/logviewer.html#?job_id=3657639&repo=b2g-inbound

19:44:42  WARNING -  TEST-UNEXPECTED-FAIL | devtools/shared/security/tests/unit/test_encryption.js | xpcshell return code: 0
19:44:42     INFO -  TEST-INFO took 47238ms
19:44:42     INFO -  >>>>>>>
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | xpcw: cd /data/local/tests/xpc/devtools/shared/security/tests/unit
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | xpcw: xpcshell -r /data/local/tests/xpc/c/httpd.manifest -m -s -e const _HEAD_JS_PATH = "/data/local/tests/xpc/head.js"; -e const _MOZINFO_JS_PATH = "/data/local/tests/xpc/p/mozinfo.json"; -e const _TESTING_MODULES_DIR = "/data/local/tests/xpc/m"; -f /data/local/tests/xpc/head.js -e const _SERVER_ADDR = "localhost" -e const _HEAD_FILES = ["/data/local/tests/xpc/devtools/shared/security/tests/unit/head_dbg.js"]; -e const _TAIL_FILES = []; -e const _JSDEBUGGER_PORT = 0; -e const _TEST_FILE = ["test_encryption.js"]; -e const _TEST_NAME = "devtools/shared/security/tests/unit/test_encryption.js" -e _execute_test(); quit(0);
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | *****************************************************************
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | ***
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | *** This is stdout. Most of the useful output will be in logcat.
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | ***
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | *****************************************************************
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | JavaScript strict warning: resource://devtools/shared/Loader.jsm, line 462: ReferenceError: reference to undefined property Services.appinfo.name
19:44:42     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
19:44:42     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
19:44:42     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
19:44:42     INFO -  running event loop
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | resource://devtools/shared/Loader.jsm:462: strict error: ReferenceError: reference to undefined property Services.appinfo.name
19:44:42     INFO -  "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "ReferenceError: reference to undefined property Services.appinfo.name" {file: "resource://devtools/shared/Loader.jsm" line: 462}]"
19:44:42     INFO -  devtools/shared/security/tests/unit/test_encryption.js | Starting
19:44:42     INFO -  (xpcshell/head.js) | test pending (2)
19:44:42     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
19:44:42     INFO -  (xpcshell/head.js) | test run_next_test 1 pending (2)
19:44:42     INFO -  (xpcshell/head.js) | test finished (2)
19:44:42     INFO -  devtools/shared/security/tests/unit/test_encryption.js | Starting
19:44:42     INFO -  (xpcshell/head.js) | test pending (2)
19:44:42     INFO -  TEST-PASS | devtools/shared/security/tests/unit/test_encryption.js |  - 0 listening sockets - 0 == 0
19:44:42     INFO -  TEST-PASS | devtools/shared/security/tests/unit/test_encryption.js |  - Socket listener created - {} == true
19:44:42     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
19:44:42     INFO -  TEST-PASS | devtools/shared/security/tests/unit/test_encryption.js |  - 1 listening socket - 1 == 1
19:44:42     INFO -  Unexpected exception NS_ERROR_NET_RESET: Component returned failure code: 0x804b0014 (NS_ERROR_NET_RESET) [nsIInputStream.available]
19:44:42     INFO -  onInputStreamReady@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/security/socket.js:300:9
19:44:42     INFO -  _do_main@/data/local/tests/xpc/head.js:208:5
19:44:42     INFO -  _execute_test@/data/local/tests/xpc/head.js:541:5
19:44:42     INFO -  @-e:1:1
19:44:42     INFO -  _getTransport<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/security/socket.js:116:23
19:44:42     INFO -  DebuggerSocket.connect<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/security/socket.js:80:25
19:44:42     INFO -  DebuggerClient.socketConnect@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/client/main.js:322:10
19:44:42     INFO -  @test_encryption.js:45:25
19:44:42     INFO -  _run_next_test@/data/local/tests/xpc/head.js:1541:9
19:44:42     INFO -  do_execute_soon/<.run@/data/local/tests/xpc/head.js:681:9
19:44:42     INFO -  _do_main@/data/local/tests/xpc/head.js:208:5
19:44:42     INFO -  _execute_test@/data/local/tests/xpc/head.js:541:5
19:44:42     INFO -  @-e:1:1
19:44:42     INFO -  exiting test
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | :0: error: 127.0.0.1:36766 uses an invalid security certificate.
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | The certificate is not trusted because it is self-signed.
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | The certificate is only valid for devtools
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | Error code: <a id="errorCode" title="SEC_ERROR_UNKNOWN_ISSUER">SEC_ERROR_UNKNOWN_ISSUER</a>
19:44:42     INFO -  "head_dbg.js got console message: 127.0.0.1:36766 uses an invalid security certificate.
19:44:42     INFO -  The certificate is not trusted because it is self-signed.
19:44:42     INFO -  The certificate is only valid for devtools
19:44:42     INFO -  Error code: <a id="errorCode" title="SEC_ERROR_UNKNOWN_ISSUER">SEC_ERROR_UNKNOWN_ISSUER</a>
19:44:42     INFO -  "
19:44:42     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "127.0.0.1:36766 uses an invalid security certificate.
19:44:42     INFO -  The certificate is not trusted because it is self-signed.
19:44:42     INFO -  The certificate is only valid for devtools
19:44:42     INFO -  Error code: <a id="errorCode" title="SEC_ERROR_UNKNOWN_ISSUER">SEC_ERROR_UNKNOWN_ISSUER</a>
19:44:42     INFO -  "]"
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | JavaScript error: /data/local/tests/xpc/head.js, line 506: TypeError: _testLogger is undefined
19:44:42     INFO -  PROCESS | devtools/shared/security/tests/unit/test_encryption.js | JavaScript error: /data/local/tests/xpc/devtools/shared/security/tests/unit/head_dbg.js, line 74: TypeError: xpcInspector is undefined
19:44:42     INFO -  <<<<<<<
Summary: Intermittent test_encryption.js | xpcshell return code: 0 → Intermittent test_encryption.js | xpcshell return code: 0 | :0: error: 127.0.0.1:36766 uses an invalid security certificate.
Blocks: 1192135
Priority: -- → P2
test_encryption.js is disabled on emulator-x86-kk in bug 1242820.
I cannot reproduce this bug after a few tries on my local emulator-x86-kk build.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.