<?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>272442</bug_id>
          
          <creation_ts>2024-04-09 23:27:55 -0700</creation_ts>
          <short_desc>[iOS] Cannot attach lldb to WebContent process</short_desc>
          <delta_ts>2024-04-10 17:53:31 -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>WebKit Misc.</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>271664</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=272400</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2027357</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-04-09 23:27:55 -0700</bug_when>
    <thetext>Apply the fix for https://bugs.webkit.org/show_bug.cgi?id=272400 and start a MobileMiniBrowser or Safari.
Then trying to attach to WebContent process launched by MobileMiniBrowser or Safari.

Expected result:
lldb attaches to WebContent process

Actual result:
lldb fails to attach to WebContent process with the following error:

attach failed (Not allowed to attach to process.  Look in the console messages (Console.app), near the debugserver entries, when the attach failed.  The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)

Could not attach to pid : “77141”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: attach failed (Not allowed to attach to process.  Look in the console messages (Console.app), near the debugserver entries, when the attach failed.  The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)
User Info: {
    DVTErrorCreationDateKey = &quot;2024-04-10 06:25:15 +0000&quot;;
    DVTRadarComponentKey = 855031;
    IDERunOperationFailingWorker = DBGLLDBLauncher;
    RawUnderlyingErrorMessage = &quot;attach failed (Not allowed to attach to process.  Look in the console messages (Console.app), near the debugserver entries, when the attach failed.  The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)&quot;;
}
--
Could not attach to pid : “77141”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: attach failed (Not allowed to attach to process.  Look in the console messages (Console.app), near the debugserver entries, when the attach failed.  The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)
User Info: {
    DVTRadarComponentKey = 855031;
    IDERunOperationFailingWorker = DBGLLDBLauncher;
    RawUnderlyingErrorMessage = &quot;attach failed (Not allowed to attach to process.  Look in the console messages (Console.app), near the debugserver entries, when the attach failed.  The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)&quot;;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    &quot;device_model&quot; = &quot;iPhone15,4&quot;;
    &quot;device_osBuild&quot; = &quot;17.4 (21E213)&quot;;
    &quot;device_platform&quot; = &quot;com.apple.platform.iphonesimulator&quot;;
    &quot;dvt_coredevice_version&quot; = &quot;355.24&quot;;
    &quot;dvt_mobiledevice_version&quot; = &quot;1643.100.58&quot;;
    &quot;launchSession_schemeCommand&quot; = Run;
    &quot;launchSession_state&quot; = 1;
    &quot;launchSession_targetArch&quot; = arm64;
    &quot;operation_duration_ms&quot; = 144;
    &quot;operation_errorCode&quot; = 3;
    &quot;operation_errorDomain&quot; = IDEDebugSessionErrorDomain;
    &quot;operation_errorWorker&quot; = DBGLLDBLauncher;
    &quot;operation_name&quot; = IDERunOperationWorkerGroup;
    &quot;param_debugger_attachToExtensions&quot; = 0;
    &quot;param_debugger_attachToXPC&quot; = 1;
    &quot;param_debugger_type&quot; = 3;
    &quot;param_destination_isProxy&quot; = 0;
    &quot;param_destination_platform&quot; = &quot;com.apple.platform.iphonesimulator&quot;;
    &quot;param_diag_MainThreadChecker_stopOnIssue&quot; = 0;
    &quot;param_diag_MallocStackLogging_enableDuringAttach&quot; = 0;
    &quot;param_diag_MallocStackLogging_enableForXPC&quot; = 0;
    &quot;param_diag_allowLocationSimulation&quot; = 0;
    &quot;param_diag_checker_tpc_enable&quot; = 0;
    &quot;param_diag_gpu_frameCapture_enable&quot; = 0;
    &quot;param_diag_gpu_shaderValidation_enable&quot; = 0;
    &quot;param_diag_gpu_validation_enable&quot; = 1;
    &quot;param_diag_memoryGraphOnResourceException&quot; = 0;
    &quot;param_diag_queueDebugging_enable&quot; = 1;
    &quot;param_diag_runtimeProfile_generate&quot; = 0;
    &quot;param_diag_sanitizer_asan_enable&quot; = 0;
    &quot;param_diag_sanitizer_tsan_enable&quot; = 0;
    &quot;param_diag_sanitizer_tsan_stopOnIssue&quot; = 0;
    &quot;param_diag_sanitizer_ubsan_stopOnIssue&quot; = 0;
    &quot;param_diag_showNonLocalizedStrings&quot; = 0;
    &quot;param_diag_viewDebugging_enabled&quot; = 1;
    &quot;param_diag_viewDebugging_insertDylibOnLaunch&quot; = 1;
    &quot;param_install_style&quot; = 2;
    &quot;param_launcher_UID&quot; = 2;
    &quot;param_launcher_allowDeviceSensorReplayData&quot; = 0;
    &quot;param_launcher_kind&quot; = 0;
    &quot;param_launcher_style&quot; = 99;
    &quot;param_launcher_substyle&quot; = 256;
    &quot;param_runnable_appExtensionHostRunMode&quot; = 0;
    &quot;param_structuredConsoleMode&quot; = 0;
    &quot;param_testing_launchedForTesting&quot; = 0;
    &quot;param_testing_suppressSimulatorApp&quot; = 0;
    &quot;param_testing_usingCLI&quot; = 0;
    &quot;sdk_canonicalName&quot; = &quot;iphonesimulator17.4&quot;;
    &quot;sdk_osVersion&quot; = &quot;17.4&quot;;
    &quot;sdk_variant&quot; = iphonesimulator;
}
--


System Information

macOS Version 14.3.1 (Build 23D60)
Xcode 15.3 (22618) (Build 15E204a)
Timestamp: 2024-04-09T23:25:15-07:00</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027613</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-04-10 17:10:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/126240547&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027614</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-04-10 17:10:43 -0700</bug_when>
    <thetext>I think that this is a dupe of bug 271664.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027623</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-04-10 17:53:31 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>