Firefox 45 crashes in Apple's LaunchServices invocation via Selenium Grid/WebDriver automation

NEW
Unassigned

Status

()

Core
Widget: Cocoa
--
critical
2 years ago
9 months ago

People

(Reporter: stephend, Unassigned)

Tracking

({crash})

45 Branch
x86_64
Mac OS X
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fromAutomation][tpi:-])

Attachments

(4 attachments)

(Reporter)

Description

2 years ago
Created attachment 8744519 [details]
apple-crash-report.txt

Build ID: Build identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0

Steps to Reproduce:

I haven't-yet reproduced this locally (i.e. no Grid/Hub set up), but in our Selenium Grid environment, we're seeing Firefox 45 crash when running some of our test automation[0], in the following stack (just the first frame - full output is attached.

Crashed Thread:        1  Dispatch queue: com.apple.root.utility-qos.overcommit

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       EXC_I386_GPFLT

Thread 0:: Dispatch queue: com.apple.main-thread
0   com.apple.HIToolbox           	0x00007fff88a0ccb5 GetCurrentEventKeyModifiers + 24

Thread 1 Crashed:: Dispatch queue: com.apple.root.utility-qos.overcommit
0   libsystem_c.dylib             	0x00007fff809837dc __findenv + 84
1   libsystem_c.dylib             	0x00007fff80983870 getenv + 29
2   com.apple.LaunchServices      	0x00007fff89a6d1d0 ___ZN14_LSPreferences13ArePersistentEv_block_invoke + 36
3   libdispatch.dylib             	0x00007fff82ce740b _dispatch_client_callout + 8
4   libdispatch.dylib             	0x00007fff82ce7303 dispatch_once_f + 67
5   com.apple.LaunchServices      	0x00007fff89a6d1a2 _LSPreferences::_LSPreferences(bool) + 364
6   com.apple.LaunchServices      	0x00007fff89a6cfe6 ___ZN14_LSPreferences4WithEPKNS_15SecurityContextEU13block_pointerFvPKvE_block_invoke + 30
7   libdispatch.dylib             	0x00007fff82ce740b _dispatch_client_callout + 8
8   libdispatch.dylib             	0x00007fff82ce7303 dispatch_once_f + 67
9   com.apple.LaunchServices      	0x00007fff89a6cfc5 _LSPreferences::With(_LSPreferences::SecurityContext const*, void (void const*) block_pointer) + 93
10  com.apple.LaunchServices      	0x00007fff89a6cf57 _LSWithMutableInsecurePreferences + 107
11  com.apple.LaunchServices      	0x00007fff89a6cecf _LSPrefsInit(long*) + 301
12  com.apple.LaunchServices      	0x00007fff89a6cbfa _LSPrefsGetApplicationCapabilityIsDisabled + 45
13  com.apple.LaunchServices      	0x00007fff89a67f40 prepareApplicationCapabilityIsDisabledValue(_LSOnDemandContext&, FSNode*, __CFString const*, unsigned int, __FileCache*, __CFString const*, __CFError**) + 375
14  com.apple.LaunchServices      	0x00007fff89a64160 LSPropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 195
15  com.apple.CoreServicesInternal	0x00007fff821536f7 prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 227
16  com.apple.CoreServicesInternal	0x00007fff82151357 _FSURLCopyResourcePropertyForKeyInternal(__CFURL const*, __CFString const*, void*, void*, __CFError**, unsigned char) + 212
17  com.apple.CoreFoundation      	0x00007fff8b10559b CFURLCopyResourcePropertyForKey + 123
18  com.apple.CoreFoundation      	0x00007fff8b105363 ____CFRunLoopSetOptionsReason_block_invoke_5 + 163
19  libdispatch.dylib             	0x00007fff82cf293d _dispatch_call_block_and_release + 12
20  libdispatch.dylib             	0x00007fff82ce740b _dispatch_client_callout + 8
21  libdispatch.dylib             	0x00007fff82ceb29b _dispatch_root_queue_drain + 1890
22  libdispatch.dylib             	0x00007fff82ceab00 _dispatch_worker_thread3 + 91
23  libsystem_pthread.dylib       	0x00007fff93fe54de _pthread_wqthread + 1129
24  libsystem_pthread.dylib       	0x00007fff93fe3341 start_wqthread + 13

[0] https://github.com/mozilla/Socorro-Tests in particular
(Reporter)

Comment 1

2 years ago
Created attachment 8744520 [details]
corresponding snippet of the Selenium log
(Reporter)

Comment 2

2 years ago
David (Burns) is there anything suspicious here, and/or do you know how/if we can debug further?  Thanks!
Flags: needinfo?(dburns)
My guess is this is a startup crash. Can you reproduce on the VM that grid is string to use?
Flags: needinfo?(dburns)
(Reporter)

Comment 4

2 years ago
(In reply to David Burns :automatedtester from comment #3)
> My guess is this is a startup crash. Can you reproduce on the VM that grid
> is string to use?

This is on a Mac Mini (native), and no, I'm currently unable to reproduce this manually.
(Reporter)

Comment 5

2 years ago
Created attachment 8748028 [details]
firefox-46-crash-stack.txt

Here's the Apple Crash Reporter output from a very recent Firefox 46 crash, which has occurred since I upgrade us, tonight.

Updated

2 years ago
Whiteboard: [fromAutomation] → [fromAutomation][tpi:?]

Updated

2 years ago
Whiteboard: [fromAutomation][tpi:?] → [fromAutomation][tpi:-]
(Reporter)

Comment 6

a year ago
Created attachment 8769915 [details]
Firefox 47.0.1 w/Selenium 2.53.1 crash stack
You need to log in before you can comment on or make changes to this bug.