<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>223476</bug_id>
          
          <creation_ts>2021-03-18 13:45:40 -0700</creation_ts>
          <short_desc>[iOS 14.5 beta] Crash in call to logger() in UserMediaPermissionRequestManagerProxy::computeFilteredDeviceList</short_desc>
          <delta_ts>2021-03-19 10:45:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>222236</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=220471</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ali Juma">ajuma</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1741393</commentid>
    <comment_count>0</comment_count>
    <who name="Ali Juma">ajuma</who>
    <bug_when>2021-03-18 13:45:40 -0700</bug_when>
    <thetext>Chrome for iOS is getting reports of a crash that&apos;s new in iOS 14.5 beta (first seen in beta 2) with the following stack:

CRASHED [EXC_BAD_ACCESS / KERN_INVALID_ADDRESS @ 0x00000020 ]
Stack Quality84%Show frame trust levels
0x0000000196b2debc	(WebKit + 0x00367ebc)		WebKit::WebPageProxy::logger()
0x0000000196b2de70	(WebKit + 0x00367e70)		WebKit::WebPageProxy::logger()
0x0000000196aee014	(WebKit + 0x00328014)		WTF::Detail::CallableWrapper&lt;WebKit::UserMediaPermissionRequestManagerProxy::computeFilteredDeviceList(bool, WTF::CompletionHandler&lt;void (WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;)&gt;&amp;&amp;)::$_12, void, WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;&gt;::call(WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;)
0x00000001988ff584	(WebCore + 0x00000000019ae584)		WTF::Detail::CallableWrapper&lt;WebCore::RealtimeMediaSourceCenter::getMediaStreamDevices(WTF::CompletionHandler&lt;void (WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;)&gt;&amp;&amp;)::$_25, void, WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;&gt;::call(WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;)
0x00000001988fba10	(WebCore + 0x00000000019aaa10)		WTF::Detail::CallableWrapper&lt;WebCore::RealtimeMediaSourceCenter::getMediaStreamDevices(WTF::CompletionHandler&lt;void (WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;)&gt;&amp;&amp;)::CaptureDeviceAccumulator::accumulate()::&apos;lambda&apos;(WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;), void, WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;&gt;::~CallableWrapper()
0x0000000196f810d0	(WebCore + 0x000300d0)		WTF::BlockPtr&lt;void ()&gt; WTF::BlockPtr&lt;void ()&gt;::fromCallable&lt;WebCore::AVAudioSessionCaptureDeviceManager::getCaptureDevices(WTF::CompletionHandler&lt;void (WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;)&gt;&amp;&amp;)::$_5::operator()()::&apos;lambda&apos;()&gt;(WebCore::AVAudioSessionCaptureDeviceManager::getCaptureDevices(WTF::CompletionHandler&lt;void (WTF::Vector&lt;WebCore::CaptureDevice, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;)&gt;&amp;&amp;)::$_5::operator()()::&apos;lambda&apos;())::&apos;lambda&apos;(void*)::__invoke(void*)
0x000000018a50f2ac	(libdispatch.dylib + 0x000602ac)		_dispatch_call_block_and_release
0x000000018a510294	(libdispatch.dylib + 0x00061294)		_dispatch_client_callout
0x000000018a4f2484	(libdispatch.dylib + 0x00043484)		_dispatch_main_queue_callback_4CF$VARIANT$armv81
0x000000018a857560	(CoreFoundation + 0x0009a560)		__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
0x000000018a8519c0	(CoreFoundation + 0x000949c0)		__CFRunLoopRun
0x000000018a850a98	(CoreFoundation + 0x00093a98)		CFRunLoopRunSpecific
0x00000001a14a256c	(GraphicsServices + 0x0000356c)		GSEventRunModal
0x000000018d16cc2c	(UIKitCore + 0x00b2ec2c)		-[UIApplication _run]
0x000000018d1721a8	(UIKitCore + 0x00b341a8)		UIApplicationMain
0x0000000100a124ec	(Chrome -chrome_exe_main.mm:71)		main
0x000000018a52f13c	(libdyld.dylib + 0x0000113c)		start

It looks like the call to ALWAYS_LOG in UserMediaPermissionRequestManagerProxy::computeFilteredDeviceList is crashing because m_page is null (and hence the call to logger() crashes). 

Looking at the code, I don&apos;t see how this can be null though.

The most recent code change in this area seems to be from bug 220471, in January.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741723</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-03-19 09:07:36 -0700</bug_when>
    <thetext>Isn&apos;t it a dupe of https://bugs.webkit.org/show_bug.cgi?id=222236</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741728</commentid>
    <comment_count>2</comment_count>
    <who name="Ali Juma">ajuma</who>
    <bug_when>2021-03-19 09:15:37 -0700</bug_when>
    <thetext>Yes, it sounds like a duplicate of that. We have crashes in beta 2 and beta 3, but none so far in beta 4, so if that&apos;s consistent with where bug 222236 has been fixed, we can close this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741781</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2021-03-19 10:45:34 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 222236 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>