Closed Bug 1018414 Opened 10 years ago Closed 10 years ago

content/base/test/unit/test_error_codes.js crashes with "non-local" connection on OS X

Categories

(Core :: DOM: Core & HTML, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32
Tracking Status
firefox31 --- fixed
firefox32 --- fixed
firefox-esr24 --- fixed
b2g-v1.3 --- fixed
b2g-v1.3T --- fixed
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Attachments

(1 file)

With the patches from bug 995417 applied:

13:05:34     INFO -  TEST-INFO | /builds/slave/talos-slave/test/build/tests/xpcshell/tests/content/base/test/unit/test_error_codes.js | running test ...
13:05:35  WARNING -  TEST-UNEXPECTED-FAIL | /builds/slave/talos-slave/test/build/tests/xpcshell/tests/content/base/test/unit/test_error_codes.js | test failed (with xpcshell return code: 1), see following log:
13:05:35     INFO -  >>>>>>>
13:05:35     INFO -  DMD[4338] $DMD = '(null)'
13:05:35     INFO -  DMD[4338] DMD is not enabled
13:05:35     INFO -  [4338] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/slave/try-osx64-d-000000000000000000/build/toolkit/crashreporter/nsExceptionHandler.cpp, line 2158
13:05:35     INFO -  TEST-INFO | (xpcshell/head.js) | test MAIN run_test pending (1)
13:05:35     INFO -  TEST-INFO | (xpcshell/head.js) | test pending (2)
13:05:35     INFO -  TEST-INFO | (xpcshell/head.js) | test MAIN run_test finished (2)
13:05:35     INFO -  TEST-INFO | (xpcshell/head.js) | running event loop
13:05:35     INFO -  Testing error returned by async XHR when the network is offline
13:05:35     INFO -  [4338] WARNING: NS_ENSURE_SUCCESS(rv, nsresult::NS_ERROR_UNEXPECTED) failed with result 0x80004005: file /builds/slave/try-osx64-d-000000000000000000/build/extensions/cookie/nsPermissionManager.cpp, line 444
13:05:35     INFO -  [4338] WARNING: Forcing memory-only entry since CacheFileIOManager doesn't have mCacheDirectory.: file /builds/slave/try-osx64-d-000000000000000000/build/netwerk/cache2/CacheFile.cpp, line 474
13:05:35     INFO -  TEST-PASS | /builds/slave/talos-slave/test/build/tests/xpcshell/tests/content/base/test/unit/test_error_codes.js | [doAsyncRequest_onError : 21] 2152398864 == 2152398864
13:05:35     INFO -  Testing error returned by aync XHR when the connection is refused
13:05:35     INFO -  [4338] WARNING: Non-local hostname localhost resolved: 0:0: file /builds/slave/try-osx64-d-000000000000000000/build/netwerk/dns/nsHostResolver.cpp, line 1193
13:05:35     INFO -  BAD CONNECT: connecting to localhost 0
13:05:35     INFO -  Hit MOZ_CRASH(Attempting to connect to non-local address!) at /builds/slave/try-osx64-d-000000000000000000/build/netwerk/base/src/nsSocketTransport2.cpp:1190
13:05:35     INFO -  nsXPTCStubBase::Stub249()+0x00054AFA [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x00116A9A]
13:05:35     INFO -  XRE_AddJarManifestLocation+0x0000BB9C [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x000B398C]
13:05:35     INFO -  UNKNOWN [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x0001E793]
13:05:35     INFO -  nsXPTCStubBase::Stub249()+0x00057355 [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x001192F5]
13:05:35     INFO -  nsXPTCStubBase::Stub249()+0x00057B0D [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x00119AAD]
13:05:35     INFO -  XRE_AddJarManifestLocation+0x0000BB9C [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x000B398C]
13:05:35     INFO -  UNKNOWN [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x0001E793]
13:05:35     INFO -  JS::CompileOptions::introductionScript() const+0x002B30E2 [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x003F24C2]
13:05:35     INFO -  JS::CompileOptions::introductionScript() const+0x0028C7D3 [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x003CBBB3]
13:05:35     INFO -  XRE_AddJarManifestLocation+0x0000A19C [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/XUL +0x000B1F8C]
13:05:35     INFO -  PR_GetThreadName+0x00000270 [/builds/slave/talos-slave/test/build/application/FirefoxNightlyDebug.app/Contents/MacOS/libnss3.dylib +0x00228760]
13:05:35     INFO -  _pthread_start+0x00000147 [/usr/lib/system/libsystem_c.dylib +0x00014782]
13:05:35     INFO -  <<<<<<<
13:05:50  WARNING -  PROCESS-CRASH | /builds/slave/talos-slave/test/build/tests/xpcshell/tests/content/base/test/unit/test_error_codes.js | application crashed [@ nsSocketTransport::InitiateSocket()]

Apparently, Macs not being able to resolve localhost is a known problem:

https://discussions.apple.com/thread/2613868

I think this test should really just be spinning up a local HTTP server anyway.
For whatever reason, some OS X machines, like our minis on TBPL, can't
correctly resolve localhost.  This deficiency causes problems in a
no-external-connections world, because localhost looks like an external host
when it's really not.  Instead of trying to change the configuration of all our
minis, or trying to rewrite the test (the obvious method of using a local HTTP
server just for the test didn't work, because we really need a "can't connect"
rather than just a 404), just disable the test on OS X.
Attachment #8432700 - Flags: review?(bugs)
Comment on attachment 8432700 [details] [diff] [review]
skip test_error_codes.js on OS X

oh well. use linux.
Attachment #8432700 - Flags: review?(bugs) → review+
Assignee: nobody → nfroyd
https://hg.mozilla.org/mozilla-central/rev/4cc3b00d4ece
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: