Closed Bug 1564920 Opened 2 years ago Closed 2 years ago

Intermittent gv-safebrowsing remoteautomation.py | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()]

Categories

(Testing :: Mozbase, defect, P1)

Unspecified
Android
defect

Tracking

(firefox-esr68 unaffected, firefox71 wontfix, firefox72 fixed, firefox73 fixed)

RESOLVED FIXED
mozilla73
Tracking Status
firefox-esr68 --- unaffected
firefox71 --- wontfix
firefox72 --- fixed
firefox73 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: gbrown)

References

(Blocks 1 open bug)

Details

(Keywords: crash, intermittent-failure)

Crash Data

Attachments

(3 files)

Filed by: apavel [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=255721514&repo=autoland
Full log: https://queue.taskcluster.net/v1/task/DnrHUcOZQfK-8zN_KWThLg/runs/0/artifacts/public/logs/live_backing.log


[task 2019-07-10T14:11:25.120Z] 14:11:25 INFO - TEST-START | org.mozilla.geckoview.test.AccessibilityTest.testLiveRegionImage
[task 2019-07-10T14:11:26.122Z] 14:11:26 INFO - org.mozilla.geckoview.test | INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[task 2019-07-10T14:11:26.122Z] 14:11:26 INFO - org.mozilla.geckoview.test | INSTRUMENTATION_CODE: 0
[task 2019-07-10T14:11:26.122Z] 14:11:26 INFO - Passed: 0
[task 2019-07-10T14:11:26.122Z] 14:11:26 INFO - Failed: 0
[task 2019-07-10T14:11:26.122Z] 14:11:26 INFO - Todo: 0
[task 2019-07-10T14:11:26.122Z] 14:11:26 INFO - SUITE-END | took 3s
[task 2019-07-10T14:11:26.634Z] 14:11:26 INFO - mozcrash Downloading symbols from: https://queue.taskcluster.net/v1/task/ZiXCy38kSiy0uZYf8YUYvg/artifacts/public/build/target.crashreporter-symbols.zip
[task 2019-07-10T14:11:29.714Z] 14:11:29 INFO - mozcrash Copy/paste: /builds/worker/workspace/build/linux64-minidump_stackwalk /tmp/tmpXSGDlF/760f18f9-5cfa-fbb6-6443-843829eb9547.dmp /tmp/tmpTL05Gx
[task 2019-07-10T14:11:33.713Z] 14:11:33 INFO - mozcrash Saved minidump as /builds/worker/workspace/build/blobber_upload_dir/760f18f9-5cfa-fbb6-6443-843829eb9547.dmp
[task 2019-07-10T14:11:33.714Z] 14:11:33 INFO - mozcrash Saved app info as /builds/worker/workspace/build/blobber_upload_dir/760f18f9-5cfa-fbb6-6443-843829eb9547.extra
[task 2019-07-10T14:11:33.721Z] 14:11:33 WARNING - PROCESS-CRASH | org.mozilla.geckoview.test.AccessibilityTest.testLiveRegionImage | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()]
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - Crash dump filename: /tmp/tmpXSGDlF/760f18f9-5cfa-fbb6-6443-843829eb9547.dmp
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - Operating system: Android
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - 0.0.0 Linux 3.10.0+ #260 SMP PREEMPT Fri May 19 12:48:14 PDT 2017 x86_64
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - CPU: amd64
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - family 6 model 6 stepping 3
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - 4 CPUs
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - GPU: UNKNOWN
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - Crash reason: SIGSEGV /SEGV_MAPERR
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - Crash address: 0x0
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - Process uptime: not available
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - Thread 29 (crashed)
[task 2019-07-10T14:11:33.722Z] 14:11:33 INFO - 0 libxul.so!mozilla::net::nsSocketTransport::InitiateSocket() [nsSocketTransport2.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 1285 + 0x11]
[task 2019-07-10T14:11:33.723Z] 14:11:33 INFO - rax = 0x000074f61fcbbc97 rdx = 0x0000000000000004
[task 2019-07-10T14:11:33.723Z] 14:11:33 INFO - rcx = 0x000074f6224aa4c8 rbx = 0x000074f6222a4518
[task 2019-07-10T14:11:33.723Z] 14:11:33 INFO - rsi = 0x000074f6222a3bf0 rdi = 0x000000000000001b
[task 2019-07-10T14:11:33.723Z] 14:11:33 INFO - rbp = 0x000074f6222a4630 rsp = 0x000074f6222a42b0
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - r8 = 0x0000000000000000 r9 = 0x000074f63f7fc090
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - r10 = 0x000000000000000e r11 = 0x0000000000000246
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - r12 = 0x000074f615803800 r13 = 0x0000000000000002
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - r14 = 0x0000000080004004 r15 = 0x0000000000000000
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - rip = 0x000074f61c807f06
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - Found by: given as instruction pointer in context
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - 1 libxul.so!mozilla::net::nsSocketEvent::Run() [nsSocketTransport2.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 91 + 0x3ac]
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - rbx = 0x0000000000000001 rbp = 0x000074f6222a4710
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - rsp = 0x000074f6222a4640 r12 = 0x000074f615803800
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - r13 = 0x0000000000000002 r14 = 0x0000000000000000
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - r15 = 0x0000000000000000 rip = 0x000074f61c81864f
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - 2 libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 1225 + 0xa]
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - rbx = 0x000074f6222a4780 rbp = 0x000074f6222a4c40
[task 2019-07-10T14:11:33.726Z] 14:11:33 INFO - rsp = 0x000074f6222a4720 r12 = 0x000074f615847c00
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - r13 = 0x0000000000000002 r14 = 0x00000000ffffffff
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - r15 = 0x000074f62202b740 rip = 0x000074f61c76b58a
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - 3 libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 486 + 0x10]
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - rbx = 0x000074f6222a4c5f rbp = 0x000074f6222a4c70
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - rsp = 0x000074f6222a4c50 r12 = 0x0000000000000000
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - r13 = 0x000074f621d29938 r14 = 0x000074f622039280
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - r15 = 0x0000000000000003 rip = 0x000074f61c76ca8b
[task 2019-07-10T14:11:33.727Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - 4 libxul.so!mozilla::net::nsSocketTransportService::Run() [nsSocketTransportService2.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 1011 + 0xf]
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - rbx = 0x000074f6222a4cf7 rbp = 0x000074f6222a4d60
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - rsp = 0x000074f6222a4c80 r12 = 0x0000000000000000
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - r13 = 0x000074f621d29938 r14 = 0x000074f622039280
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - r15 = 0x0000000000000003 rip = 0x000074f61c80ce59
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - 5 libxul.so!non-virtual thunk to mozilla::net::nsSocketTransportService::Run() [nsSocketTransportService2.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 0 + 0xd]
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - rbx = 0x000074f6222a4de0 rbp = 0x000074f6222a4d70
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - rsp = 0x000074f6222a4d70 r12 = 0x000074f6220392a0
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - r13 = 0x0000000000000001 r14 = 0x00000000ffffffff
[task 2019-07-10T14:11:33.728Z] 14:11:33 INFO - r15 = 0x000074f62202b740 rip = 0x000074f61c80d1dd
[task 2019-07-10T14:11:33.729Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.729Z] 14:11:33 INFO - 6 libxul.so!nsThread::ProcessNextEvent(bool, bool*) [nsThread.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 1225 + 0xa]
[task 2019-07-10T14:11:33.729Z] 14:11:33 INFO - rbx = 0x000074f6222a4de0 rbp = 0x000074f6222a52a0
[task 2019-07-10T14:11:33.729Z] 14:11:33 INFO - rsp = 0x000074f6222a4d80 r12 = 0x000074f6220392a0
[task 2019-07-10T14:11:33.729Z] 14:11:33 INFO - r13 = 0x0000000000000001 r14 = 0x00000000ffffffff
[task 2019-07-10T14:11:33.729Z] 14:11:33 INFO - r15 = 0x000074f62202b740 rip = 0x000074f61c76b58a
[task 2019-07-10T14:11:33.729Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 7 libxul.so!NS_ProcessNextEvent(nsIThread*, bool) [nsThreadUtils.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 486 + 0x10]
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rbx = 0x000074f6222a52bf rbp = 0x000074f6222a52d0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a52b0 r12 = 0x000074f6184195e0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r13 = 0x0000000000000000 r14 = 0x000074f6184195c0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r15 = 0x000074f62202b740 rip = 0x000074f61c76ca8b
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 8 libxul.so!mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [MessagePump.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 333 + 0xb]
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rbx = 0x000074f6220331c0 rbp = 0x000074f6222a5310
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a52e0 r12 = 0x000074f6184195e0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r13 = 0x0000000000000000 r14 = 0x000074f6184195c0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r15 = 0x000074f62202b740 rip = 0x000074f61cadabe7
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 9 libxul.so!MessageLoop::Run() [message_loop.cc:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 290 + 0xc]
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rbx = 0x000074f6222a5328 rbp = 0x000074f6222a5350
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a5320 r12 = 0x000074f6222a54f8
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r13 = 0x0000000000000000 r14 = 0x000074f6220331c0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r15 = 0x000074f618410d60 rip = 0x000074f61cab1cfb
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 10 libxul.so!nsThread::ThreadFunc(void*) [nsThread.cpp:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 459 + 0x8]
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rbx = 0x000074f62202b740 rbp = 0x000074f6222a53a0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a5360 r12 = 0x000074f6222a54f8
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r13 = 0x0000000000000000 r14 = 0x000074f6220331c0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r15 = 0x000074f618410d60 rip = 0x000074f61c769ce0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 11 libnss3.so!_pt_root [ptthread.c:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 198 + 0x7]
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rbx = 0x000074f622022ac0 rbp = 0x000074f6222a53e0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a53b0 r12 = 0x000074f6222a54f8
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r13 = 0x0000000000000000 r14 = 0x000074f6222a5450
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r15 = 0x0000000000000ae6 rip = 0x000074f621ef8dca
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 12 libc.so + 0x89772
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rbx = 0x000074f6222a54d0 rbp = 0x0000000000000ac2
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a53f0 r12 = 0x000074f6222a5450
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r13 = 0x000074f621ef8cd7 r14 = 0x000074f6222a5450
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - r15 = 0x000074f6222a54e8 rip = 0x000074f63ef02772
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: call frame info
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 13 libnss3.so!pt_recvfrom_cont [ptio.c:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 0 + 0x5]
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a5428 rip = 0x000074f621ef8cd7
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: stack scanning
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 14 libc.so + 0x299ec
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a5440 rip = 0x000074f63eea29ec
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: stack scanning
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 15 libc.so + 0x896c0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a5448 rip = 0x000074f63ef026c0
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: stack scanning
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 16 libc.so + 0x1ca66
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a5450 rip = 0x000074f63ee95a66
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: stack scanning
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - 17 libnss3.so!pt_recvfrom_cont [ptio.c:87a8c6317e12e1f2a7daf4b08d9935f6f610e7d0 : 0 + 0x5]
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - rsp = 0x000074f6222a54b8 rip = 0x000074f621ef8cd7
[task 2019-07-10T14:11:33.730Z] 14:11:33 INFO - Found by: stack scanning

Type: -- → defect

Is this a11y test crash related to bug 1564507 or bug 1562001?

See Also: → 1564507, 1562001

Moving to the Networking component because this is a crash in mozilla::net::nsSocketTransport::InitiateSocket().

Component: General → Networking
OS: All → Android
Product: GeckoView → Core

This crashes at https://searchfox.org/mozilla-central/rev/4436573fa3d5c4311822090e188504c10c916c6f/netwerk/base/nsSocketTransport2.cpp#1285. It's probably a bug in the test or code related to the test, because it tries to connect non-local address.

Severity: critical → normal
Priority: -- → P3
Whiteboard: [necko-triaged]

Michal or Nhi, can you help find someone to work on this issue and fix the test?

Flags: needinfo?(nhnguyen)
Flags: needinfo?(michal.novotny)

I found following in https://taskcluster-artifacts.net/DnrHUcOZQfK-8zN_KWThLg/0/public/test_info//logcat-emulator-5554.log:

07-10 15:11:25.310 2754 2790 I Gecko : FATAL ERROR: Non-local network connections are disabled and a connection attempt to shavar.services.mozilla.com (35.161.86.234) was made.
07-10 15:11:25.310 2754 2790 I Gecko : 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.

This seems to be related to safebrowsing. I have no idea why this is not disabled or redirected to localhost in tests.

Component: Networking → Safe Browsing
Flags: needinfo?(nhnguyen)
Flags: needinfo?(michal.novotny)
Priority: P3 → --
Product: Core → Toolkit
Whiteboard: [necko-triaged]

The priority flag is not set for this bug.
:dimi, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dlee)

We should probably disable SafeBrowsing update in geckoview tests like this[1]
I am not familiar with geckoview test, Chris, do you know who can guide me on this? thanks!

[1] https://searchfox.org/mozilla-central/source/testing/profiles/perf/user.js#33

Flags: needinfo?(dlee) → needinfo?(cpeterson)
Priority: -- → P2
See Also: → 1571842

(In reply to Dimi Lee [:dimi][:dlee] from comment #11)

We should probably disable SafeBrowsing update in geckoview tests like this[1]

[1] https://searchfox.org/mozilla-central/source/testing/profiles/perf/user.js#33

Is disabling these tests on GeckoView safe? Don't we want to ensure SafeBrowsing works on Android?

I am not familiar with geckoview test, Chris, do you know who can guide me on this? thanks!

^ Agi, how should Dimi disable the SafeBrowsing tests for GeckoView?

Flags: needinfo?(cpeterson) → needinfo?(agi)

(In reply to Chris Peterson [:cpeterson] from comment #13)

(In reply to Dimi Lee [:dimi][:dlee] from comment #11)

We should probably disable SafeBrowsing update in geckoview tests like this[1]

[1] https://searchfox.org/mozilla-central/source/testing/profiles/perf/user.js#33

Is disabling these tests on GeckoView safe? Don't we want to ensure SafeBrowsing works on Android?

It is not to disable Safe Browsing tests, the preference[1] is to disable Safe Browsing regular update connecting to real server.
So it also doesn't mean that we won't be able to test Safe Browsing update.

[1] https://searchfox.org/mozilla-central/source/testing/profiles/perf/user.js#33

I am not familiar with geckoview test, Chris, do you know who can guide me on this? thanks!

^ Agi, how should Dimi disable the SafeBrowsing tests for GeckoView?

I am looking for a place to set the preference for geckoview tests :)

(In reply to :Agi | ⏰ PST | he/him from comment #15)

snorp pointed out to me that the file you want to edit is https://searchfox.org/mozilla-central/source/testing/profiles/unittest-required/user.js

That is interesting, safebrowsing update actually has already been disabled in this file

I can do a quick test to see if the prefs are actually reflected since we're not 100% sure. Will report back.

Flags: needinfo?(agi)
Summary: Intermittent org.mozilla.geckoview.test.AccessibilityTest.testLiveRegionImage | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()] → Intermittent org.mozilla.geckoview.test.ZZAccessibilityTest.testLiveRegionImage | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()]
Flags: needinfo?(agi)
Summary: Intermittent org.mozilla.geckoview.test.ZZAccessibilityTest.testLiveRegionImage | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()] → Intermittent <test-name> | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()]

At least locally, reading the prefs back results in: http://192.168.0.4:8888/safebrowsing-dummy/*.

My suspect here is that we sometimes fail to load the profile properly which results in the prefs not being set correctly.

Summary: Intermittent <test-name> | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()] → Intermittent gv-safebrowsing remoteautomation.py | application crashed [@ mozilla::net::nsSocketTransport::InitiateSocket()]
Pushed by asferro@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5af4e2267dd9
[geckoview] Add logging for loading Profile. r=snorp

https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263128784&repo=mozilla-inbound&lineNumber=1423

https://taskcluster-artifacts.net/LDlYcBEHSAm2tsZGniFnsg/0/public/test_info//logcat-emulator-5554.log

08-23 13:31:23.947 2783 2808 D GeckoProfile: Loading profile at: /sdcard/tests/junit-profile name:
...
08-23 13:31:24.729 2783 2819 I Gecko : FATAL ERROR: Non-local network connections are disabled and a connection attempt to shavar.services.mozilla.com (54.148.248.23) was made.

Duplicate of this bug: 1580375
Pushed by droeh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/899aa346b320
Add browser.safebrowsing.debug to test environment prefs. r=geckoview-reviewers,agi

Log to job with huge log in comment 37 has been corrected.

Duplicate of this bug: 1583213

(In reply to Sebastian Hengst [:aryx] (needinfo on intermittent or backout) from comment #37)

Are the three recent classifications like https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedJob=267799524&revision=ddc1f2bd74c0fd97baf6470faff81466140d4593 sufficient? The additional logging bloats at least browser-chrome tests that the logs for some chunks becomes too big to parse, e.g. https://treeherder.mozilla.org/#/jobs?repo=try&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=8b7830fc20663dfae0b782f69047e01f1091dcd5&selectedJob=267939409

Yikes, didn't realize it would blow up the logs that badly. The recent classifications should have all the information we're going to get, so feel free to back out my patch.

Flags: needinfo?(droeh)
Backout by aiakab@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4ec351c24c6
Backed out changeset 899aa346b320 for causing the logs to become to big to parse.
Duplicate of this bug: 1588238
See Also: → 1596072
Duplicate of this bug: 1596072

In bug 1596072 I realized that the junit test harness is sometimes (infrequently) pushing the profile to the wrong location; thus the test prefs are never read and the test app uses the defaults, which are not allowed in the test environment.

Assignee: nobody → gbrown
Component: Safe Browsing → Mozbase
Priority: P2 → P1
Product: Toolkit → Testing
See Also: 1564507, 1562001, 15960721596967

As in bug 1596967, I found that, on the emulator, the check for directory existence
infrequently indicates that a recently created directory does not exist. The following
push() will then adjust its destination directory and push to the wrong location;
without a properly installed profile, geckoview crashes. Let's simplify this sequence
by not creating the directory beforehand and letting the push() create it. The profile
directory is a direct child of the test directory -- no need to create parents either.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/553d4050a1d2
In geckoview-junit tests, do not push profile to existing directory; r=bc
Status: NEW → RESOLVED
Closed: 2 years ago
Keywords: leave-open
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.