<?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>230702</bug_id>
          
          <creation_ts>2021-09-23 11:33:41 -0700</creation_ts>
          <short_desc>api-ios tests passed (instead of crash or timeout) on buggy patch for Bug 230227</short_desc>
          <delta_ts>2021-09-27 15:47:56 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=230227</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="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>dewei_zhu</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1796590</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2021-09-23 11:33:41 -0700</bug_when>
    <thetext>api-ios tests in TestWebKitAPI passed (instead of crashing) on patch for Bug 230227.

The original commit for Bug 230227 had a bug where `m_weakObserver` was not set on non-macOS platforms (including Mac Catalyst and iOS), which should have caused crashes when running api-ios tests, but did not:

  Bug 230227:  &lt;https://bugs.webkit.org/show_bug.cgi?id=230227&gt;
  Original commit:  &lt;https://commits.webkit.org/changeset/282632/webkit&gt;
  Commit to fix the bug:  &lt;https://trac.webkit.org/changeset/282849/webkit&gt;
  Test run missing failures:  &lt;https://ews-build.webkit.org/#/builders/9/builds/54899&gt;

I&apos;m still trying to reproduce the expected failure locally, but I&apos;m filing this to track the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1796591</commentid>
    <comment_count>1</comment_count>
      <attachid>439073</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2021-09-23 11:35:54 -0700</bug_when>
    <thetext>Created attachment 439073
Back out the fix from r282849

This patch should cause crashes in api-ios tests.

Posting this to test that theory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797306</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-09-26 14:19:25 -0700</bug_when>
    <thetext>Were you able to reproduce locally?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797672</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2021-09-27 15:36:00 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; Were you able to reproduce locally?

No, a ridiculous number of iossim tests timed out even with the bug fixed (on both Big Sur and Monterey), so I gave up trying locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1797679</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-09-27 15:47:56 -0700</bug_when>
    <thetext>(On the other hand, I know of at least 3 people who could reproduce locally, including myself :P so SOMETHING interesting is happening here... but maybe it doesn&apos;t matter)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>439073</attachid>
            <date>2021-09-23 11:35:54 -0700</date>
            <delta_ts>2021-09-23 11:35:54 -0700</delta_ts>
            <desc>Back out the fix from r282849</desc>
            <filename>CFNotificationCenter-nullptr-iOS-crash.diff</filename>
            <type>text/plain</type>
            <size>1225</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvVUlQcm9jZXNzL0NvY29hL1dlYlByb2Nlc3NQb29s
Q29jb2EubW0gYi9Tb3VyY2UvV2ViS2l0L1VJUHJvY2Vzcy9Db2NvYS9XZWJQcm9jZXNzUG9vbENv
Y29hLm1tCmluZGV4IGNiODhmZGUyNmI0NC4uNjI2NGI5YjNkM2Y4IDEwMDY0NAotLS0gYS9Tb3Vy
Y2UvV2ViS2l0L1VJUHJvY2Vzcy9Db2NvYS9XZWJQcm9jZXNzUG9vbENvY29hLm1tCisrKyBiL1Nv
dXJjZS9XZWJLaXQvVUlQcm9jZXNzL0NvY29hL1dlYlByb2Nlc3NQb29sQ29jb2EubW0KQEAgLTcy
NSw4ICs3MjUsNiBAQCB2b2lkIFdlYlByb2Nlc3NQb29sOjpyZW1vdmVDRk5vdGlmaWNhdGlvbk9i
c2VydmVyKENGU3RyaW5nUmVmIG5hbWUsIENGTm90aWZpY2F0aQogCiB2b2lkIFdlYlByb2Nlc3NQ
b29sOjpyZWdpc3Rlck5vdGlmaWNhdGlvbk9ic2VydmVycygpCiB7Ci0gICAgbV93ZWFrT2JzZXJ2
ZXIgPSBhZG9wdE5TKFtbV0tQcm9jZXNzUG9vbFdlYWtPYnNlcnZlciBhbGxvY10gaW5pdFdpdGhX
ZWFrUHRyOm1ha2VXZWFrUHRyKCp0aGlzKV0pOwotCiAjaWYgIVBMQVRGT1JNKElPU19GQU1JTFkp
CiAgICAgbV9wb3dlck9ic2VydmVyID0gbWFrZVVuaXF1ZTxXZWJDb3JlOjpQb3dlck9ic2VydmVy
Pihbd2Vha1RoaXMgPSBtYWtlV2Vha1B0cih0aGlzKV0gewogICAgICAgICBpZiAod2Vha1RoaXMp
CkBAIC03ODQs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