Closed Bug 1052227 Opened 6 years ago Closed 5 years ago

Intermittent B2G mochitest "FATAL ERROR: Non-local network connections are disabled and a connection attempt to inapp-pay-test.paas.allizom.org (63.245.215.73) was made." ([@ nsSocketTransport::InitiateSocket()], mozrunner-startup)

Categories

(Core Graveyard :: DOM: Apps, defect)

x86_64
Linux
defect
Not set

Tracking

(firefox38 unaffected, firefox39 unaffected, firefox40 fixed, firefox-esr31 unaffected, b2g-v2.1 fixed, b2g-v2.1S fixed, b2g-v2.2 fixed, b2g-master fixed)

RESOLVED FIXED
2.2 S9 (3apr)
Tracking Status
firefox38 --- unaffected
firefox39 --- unaffected
firefox40 --- fixed
firefox-esr31 --- unaffected
b2g-v2.1 --- fixed
b2g-v2.1S --- fixed
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: nigelb, Assigned: ferjm)

References

()

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 1 obsolete file)

b2g_ubuntu64_vm mozilla-inbound opt test mochitest-1 on 2014-08-11 17:40:32 PDT for push 4b96541d8a0d
slave: tst-linux64-spot-348
https://tbpl.mozilla.org/php/getParsedLog.php?id=45708666&tree=Mozilla-Inbound

17:47:07     INFO -  217 INFO -*- Webapps.jsm : Checking manifest at http://mochi.test:8888/manifest.webapp
17:47:07     INFO -  218 INFO -*- Webapps.jsm : Checking manifest at http://inapp-pay-test.paas.allizom.org/manifest.webapp
17:47:07     INFO -  219 INFO -*- Webapps.jsm : Checking manifest at https://marketplace.allizom.org/manifest.webapp
17:47:07     INFO -  220 INFO -*- Webapps.jsm : Checking manifest at https://marketplace.firefox.com/packaged.webapp
17:47:07     INFO -  221 INFO -*- Webapps.jsm : Checking manifest at http://example.org/manifest.webapp
17:47:07     INFO -  222 INFO -*- Webapps.jsm : Checking manifest at https://example.com/manifest.webapp
17:47:07     INFO -  223 INFO -*- Webapps.jsm : Checking manifest at http://test1.example.org/manifest.webapp
17:47:07     INFO -  224 INFO -*- Webapps.jsm : Checking manifest at http://test1.example.org:8000/manifest.webapp
17:47:07     INFO -  225 INFO -*- Webapps.jsm : Checking manifest at http://sub1.test1.example.org/manifest.webapp
17:47:07     INFO -  226 INFO -*- Webapps.jsm : Checking manifest at https://example.com/manifest_priv.webapp
17:47:07     INFO -  227 INFO -*- Webapps.jsm : Checking manifest at https://example.com/manifest_cert.webapp
17:47:07     INFO -  228 INFO -*- Webapps.jsm : Checking manifest at https://example.com/manifest_csp_cert.webapp
17:47:07     INFO -  229 INFO -*- Webapps.jsm : Checking manifest at https://example.com/manifest_csp_inst.webapp
17:47:07     INFO -  230 INFO -*- Webapps.jsm : Checking manifest at https://example.com/manifest_csp_priv.webapp
17:47:07     INFO -  231 INFO -*- Webapps.jsm : Checking manifest at https://acertified.com/manifest.webapp
17:47:07     INFO -  232 INFO -*- Webapps.jsm : Checking manifest at https://aprivileged.com/manifest.webapp
17:47:07     INFO -  233 INFO -*- Webapps.jsm : Checking manifest at http://127.0.0.1:8888/sample.manifest
17:47:07     INFO -  234 INFO -*- Webapps.jsm : Checking manifest at http://127.0.0.1:8888/sample.manifest
17:47:07     INFO -  235 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  System JS : ERROR file:///builds/slave/test/build/application/b2g/components/nsHandlerService.js:120 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]
17:47:07     INFO -  236 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  237 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  238 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  239 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  240 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  241 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  242 INFO -*- Webapps.jsm : checkForUpdate error NETWORK_ERROR
17:47:07     INFO -  243 INFO FATAL ERROR: Non-local network connections are disabled and a connection attempt to inapp-pay-test.paas.allizom.org (63.245.215.73) was made.
17:47:07     INFO -  244 INFO You should only access hostnames available via the test networking proxy (if running mochitests) or from a test-specific httpd.js server (if running xpcshell tests). Browser services should be disabled or redirected to a local server.
17:47:07     INFO -  System JS : ERROR file:///builds/slave/test/build/application/b2g/components/nsHandlerService.js:120 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]
17:47:07     INFO -  System JS : ERROR file:///builds/slave/test/build/application/b2g/components/nsHandlerService.js:120 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]
17:47:07     INFO -  System JS : ERROR file:///builds/slave/test/build/application/b2g/components/nsHandlerService.js:120 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]
17:47:07     INFO -  System JS : ERROR file:///builds/slave/test/build/application/b2g/components/nsHandlerService.js:120 - NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIProperties.get]
17:47:07     INFO -  TEST-INFO | Main app process: killed by SIGSEGV
17:47:07  WARNING -  TEST-UNEXPECTED-FAIL | automation.py | application terminated with exit code 11
17:47:07     INFO -  runtests.py | Application ran for: 0:02:51.640758
17:47:07     INFO -  zombiecheck | Reading PID log: /tmp/tmp2ghoRZpidlog
17:47:07     INFO -  ==> process 2012 launched child process 2053
17:47:07     INFO -  zombiecheck | Checking for orphan process with PID: 2053
17:47:07     INFO -  mozcrash INFO | Downloading symbols from: https://ftp-ssl.mozilla.org/pub/mozilla.org/b2g/tinderbox-builds/mozilla-inbound-linux64_gecko/1407801723/en-US/b2g-34.0a1.en-US.linux-x86_64.crashreporter-symbols.zip
17:47:17  WARNING -  PROCESS-CRASH | automation.py | application crashed [@ nsSocketTransport::InitiateSocket()]
17:47:17     INFO -  Crash dump filename: /tmp/tmpvy9vja/minidumps/69150b65-dfab-6890-7e028a68-480365d3.dmp
17:47:17     INFO -  Operating system: Linux
17:47:17     INFO -                    0.0.0 Linux 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64
17:47:17     INFO -  CPU: amd64
17:47:17     INFO -       family 6 model 62 stepping 4
17:47:17     INFO -       1 CPU
17:47:17     INFO -  Crash reason:  SIGSEGV
17:47:17     INFO -  Crash address: 0x0
17:47:17     INFO -  Thread 4 (crashed)
17:47:17     INFO -   0  libxul.so!nsSocketTransport::InitiateSocket() [nsSocketTransport2.cpp:4b96541d8a0d : 1202 + 0x0]
17:47:17     INFO -      rbx = 0x00007ffb369b1e60   r12 = 0x00007ffb369b1ef8
17:47:17     INFO -      r13 = 0x0000000000000001   r14 = 0x0000000000000000
17:47:17     INFO -      r15 = 0x00007ffb400ff700   rip = 0x00007ffb4b5d2d31
17:47:17     INFO -      rsp = 0x00007ffb400fea80   rbp = 0x00007ffb312b9940
17:47:17     INFO -      Found by: given as instruction pointer in context
17:47:17     INFO -   1  libxul.so!nsSocketTransport::OnSocketEvent(unsigned int, tag_nsresult, nsISupports*) [nsSocketTransport2.cpp:4b96541d8a0d : 1727 + 0x7]
17:47:17     INFO -      rbx = 0x00007ffb369b1e60   r12 = 0x00007ffb31c26be0
17:47:17     INFO -      r13 = 0x0000000000000001   r14 = 0x0000000000000000
17:47:17     INFO -      r15 = 0x00007ffb400ff700   rip = 0x00007ffb4b5d3431
17:47:17     INFO -      rsp = 0x00007ffb400fec10   rbp = 0x0000000000000000
17:47:17     INFO -      Found by: call frame info
17:47:17     INFO -   2  libxul.so!nsSocketEvent::Run() [nsSocketTransport2.cpp:4b96541d8a0d : 82 + 0x12]
17:47:17     INFO -      rbx = 0x00007ffb4eb55f80   r12 = 0x00007ffb400feccf
17:47:17     INFO -      r13 = 0x00007ffb4eb98701   r14 = 0x0000000000000000
17:47:17     INFO -      r15 = 0x00007ffb400ff700   rip = 0x00007ffb4b5d35af
17:47:17     INFO -      rsp = 0x00007ffb400fec40   rbp = 0x0000000000000000
17:47:17     INFO -      Found by: call frame info
17:47:17     INFO -   3  libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:4b96541d8a0d : 770 + 0x5]
17:47:17     INFO -      rbx = 0x00007ffb4eb55f80   r12 = 0x00007ffb400feccf
17:47:17     INFO -      r13 = 0x00007ffb4eb98701   r14 = 0x0000000000000000
17:47:17     INFO -      r15 = 0x00007ffb400ff700   rip = 0x00007ffb4b5978d7
17:47:17     INFO -      rsp = 0x00007ffb400fec50   rbp = 0x0000000000000000
17:47:17     INFO -      Found by: call frame info
17:47:17     INFO -   4  libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:4b96541d8a0d : 265 + 0xd]
17:47:17     INFO -      rbx = 0x00007ffb4eb98601   r12 = 0x0000000000000000
17:47:17     INFO -      r13 = 0x00007ffb4eb98720   r14 = 0x0000000000000000
17:47:17     INFO -      r15 = 0x00007ffb400ff700   rip = 0x00007ffb4b5ac6bd
17:47:17     INFO -      rsp = 0x00007ffb400fecc0   rbp = 0x00007ffb4eb55f80
17:47:17     INFO -      Found by: call frame info
Summary: Intermittent Webapps.jsm | application crashed [@ nsSocketTransport::InitiateSocket()] after Non-local network connections are disabled and a connection attempt to inapp-pay-test.paas.allizom.org (63.245.215.73) was made → Intermittent B2G desktop mochitest "FATAL ERROR: Non-local network connections are disabled and a connection attempt to inapp-pay-test.paas.allizom.org (63.245.215.73) was made." [@ nsSocketTransport::InitiateSocket()]
Blocks: 1053163
No longer blocks: 1053163
Depends on: 1053163
https://tbpl.mozilla.org/php/getParsedLog.php?id=45952074&tree=Mozilla-Inbound
Summary: Intermittent B2G desktop mochitest "FATAL ERROR: Non-local network connections are disabled and a connection attempt to inapp-pay-test.paas.allizom.org (63.245.215.73) was made." [@ nsSocketTransport::InitiateSocket()] → Intermittent B2G mochitest "FATAL ERROR: Non-local network connections are disabled and a connection attempt to inapp-pay-test.paas.allizom.org (63.245.215.73) was made." ([@ nsSocketTransport::InitiateSocket()], mozrunner-startup)
B2G mochitest-chrome appears to be tickling this somewhat regularly.
Flags: needinfo?(jgriffin)
Needinfo'ing a few people on the B2G; can someone help us figure out how to avoid making this request in emulator tests?

03-25 10:48:44.582 I/Gecko   (  731): FATAL ERROR: Non-local network connections are disabled and a connection attempt to inapp-pay-test.paas.allizom.org (63.245.215.73) was made.
Flags: needinfo?(mhenretty)
Flags: needinfo?(jlal)
Flags: needinfo?(jgriffin)
Flags: needinfo?(felash)
Fernando, any ideas here?
Flags: needinfo?(mhenretty) → needinfo?(ferjmoreno)
I was gonna ask Ferjm too ;)
Flags: needinfo?(felash)
Not sure exactly what's going on here.

We are doing non-local network requests when checking for updates. I guess that happens when we initially launch the emulator. It is failing for http://inapp-pay-test.paas.allizom.org/manifest.webapp but I suspect that it would also fail for any of the other checks that are not in [1](?). It seems that we have this list of applications [2] plus the hosted ones from [3] (?).

We fixed a very similar issue for the in-app payments test app at bug 1053163. I suggested there to move this test app to a packaged app. It might be the time to do that.

[1] https://mxr.mozilla.org/mozilla-central/source/build/pgo/server-locations.txt
[2] https://mxr.mozilla.org/mozilla-central/source/testing/profiles/webapps_mochitest.json
[3] https://mxr.mozilla.org/gaia/source/build/config/phone/apps-engineering.list#4
Flags: needinfo?(ferjmoreno)
Assignee: nobody → ferjmoreno
Flags: needinfo?(jlal)
Attachment #8583886 - Flags: review?(kumar.mcmillan)
Comment on attachment 8583886 [details] [review]
[gaia] ferjm:bug1052227.inapppaytestapp > mozilla-b2g:master

Thanks. I'm r+ but I added some comments.
Attachment #8583886 - Flags: review?(kumar.mcmillan) → review+
Attachment #8583886 - Attachment is obsolete: true
Comment on attachment 8585504 [details] [review]
[gaia] ferjm:bug1052227.inapppaytestapp-2 > mozilla-b2g:master

Thanks Kumar. I followed the approach that you mentioned on github. Now we are embedding the remote inapp tester in an iframe within a packaged app.
Attachment #8585504 - Flags: review?(kumar.mcmillan)
Attachment #8585504 - Flags: review?(kumar.mcmillan) → review+
It seems that the patch solved the issue

https://treeherder.mozilla.org/#/jobs?repo=try&revision=0e8e2a947cfb
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Actually, it is still failing :(. No idea why...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
It seems that the try build that I linked in comment 141 was using an old gaia. A more recent one gives all green and the orange has not been reported for a while, so I am closing this one again. Sorry for the noise.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=d0eba222413d
Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.