<?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>250094</bug_id>
          
          <creation_ts>2023-01-04 11:36:57 -0800</creation_ts>
          <short_desc>run-jsc with the --debugger option should work with SIP enabled</short_desc>
          <delta_ts>2023-01-19 11:57:42 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Keith Miller">keith_miller</reporter>
          <assigned_to name="Keith Miller">keith_miller</assigned_to>
          <cc>ap</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1922919</commentid>
    <comment_count>0</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2023-01-04 11:36:57 -0800</bug_when>
    <thetext>run-jsc with the --debugger option should work with SIP enabled</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922920</commentid>
    <comment_count>1</comment_count>
      <attachid>464332</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2023-01-04 11:37:26 -0800</bug_when>
    <thetext>Created attachment 464332
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922947</commentid>
    <comment_count>2</comment_count>
      <attachid>464332</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-01-04 12:48:59 -0800</bug_when>
    <thetext>Comment on attachment 464332
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=464332&amp;action=review

This somehow lacks a commit message?

&gt; Tools/Scripts/run-jsc:56
&gt;      $jsc = $debuggerCmd . &quot; &quot; . File::Spec-&gt;catfile(jscProductDir(), &quot;jsc -- --useDollarVM=1 &quot;) . &quot;@ARGV&quot;;

Huh, this is not nice. &quot;jsc -- --useDollarVM=1 &quot; is not a path component. I&apos;d suggest improving this line while at it.

&gt; Tools/Scripts/run-jsc:62
&gt;  $ENV{&quot;DYLD_FRAMEWORK_PATH&quot;} = $dyld;

Is this still needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923521</commentid>
    <comment_count>3</comment_count>
      <attachid>464332</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2023-01-06 09:27:27 -0800</bug_when>
    <thetext>Comment on attachment 464332
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=464332&amp;action=review

&gt;&gt; Tools/Scripts/run-jsc:56
&gt;&gt;      $jsc = $debuggerCmd . &quot; &quot; . File::Spec-&gt;catfile(jscProductDir(), &quot;jsc -- --useDollarVM=1 &quot;) . &quot;@ARGV&quot;;
&gt; 
&gt; Huh, this is not nice. &quot;jsc -- --useDollarVM=1 &quot; is not a path component. I&apos;d suggest improving this line while at it.

Yeah, that&apos;s kinda weird. I&apos;ll fix.

&gt;&gt; Tools/Scripts/run-jsc:62
&gt;&gt;  $ENV{&quot;DYLD_FRAMEWORK_PATH&quot;} = $dyld;
&gt; 
&gt; Is this still needed?

I left it in case you have a custom debugger you want to use. It&apos;s also needed for the non-debugger case. Really though, I wanna know if there&apos;s a way to have the jsc binary specify where to find the library.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923547</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-01-06 10:46:27 -0800</bug_when>
    <thetext>&gt; Really though, I wanna know if there&apos;s a way to have the jsc binary specify where to find the library.

Technically, there&apos;s @rpath that can be embedded in Mach-O loader commands (`otool -l` to see those in existing binaries). 

That would be tricky, as I don&apos;t think that jsc is always at the same relative path to the framework in all CI and development scenarios. I think that your approach in this patch is better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926375</commentid>
    <comment_count>5</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2023-01-18 12:54:45 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8789</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926686</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-19 11:57:39 -0800</bug_when>
    <thetext>Committed 259103@main (0e5741eb7500): &lt;https://commits.webkit.org/259103@main&gt;

Reviewed commits have been landed. Closing PR #8789 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>464332</attachid>
            <date>2023-01-04 11:37:26 -0800</date>
            <delta_ts>2023-01-04 17:25:52 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-250094-20230104143725.patch</filename>
            <type>text/plain</type>
            <size>908</size>
            <attacher name="Keith Miller">keith_miller</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL1NjcmlwdHMvcnVuLWpzYyBiL1Rvb2xzL1NjcmlwdHMvcnVuLWpz
YwppbmRleCAxNmQ4ZThmZThkYzVmNzZmMjZlNDIwOGI1NDBlNjhiYjlhMWY0YTI3Li42MWFkMmQ1
Y2I1MDZiZmFhNGVmZjU5ZDU0MWZmZTJmZWE2NWJiMDA1IDEwMDc1NQotLS0gYS9Ub29scy9TY3Jp
cHRzL3J1bi1qc2MKKysrIGIvVG9vbHMvU2NyaXB0cy9ydW4tanNjCkBAIC00OSwxNSArNDksMTUg
QEAgR2V0T3B0aW9ucygiZGVidWdnZXIiID0+IFwkZGVidWdnZXIpOwogCiBzZXRDb25maWd1cmF0
aW9uKCk7CiAKK215ICRkeWxkID0ganNjUHJvZHVjdERpcigpOwogbXkgJGpzYzsKIGlmICgkZGVi
dWdnZXIpIHsKLSAgICBteSAkZGVidWdnZXJDbWQgPSBkZWZpbmVkKCRFTlZ7IkRFQlVHR0VSIn0p
ID8gJEVOVnsiREVCVUdHRVIifSA6ICJsbGRiIjsKKyAgICBteSAkZGVidWdnZXJDbWQgPSBkZWZp
bmVkKCRFTlZ7IkRFQlVHR0VSIn0pID8gJEVOVnsiREVCVUdHRVIifSA6ICJsbGRiIC0tb25lLWxp
bmUgJ2VudiBEWUxEX0ZSQU1FV09SS19QQVRIPSIgLiAkZHlsZCAuICInIjsKICAgICAkanNjID0g
JGRlYnVnZ2VyQ21kIC4gIiAiIC4gRmlsZTo6U3BlYy0+Y2F0ZmlsZShqc2NQcm9kdWN0RGlyKCks
ICJqc2MgLS0gLS11c2VEb2xsYXJWTT0xICIpIC4gIkBBUkdWIjsKIH0gZWxzZSB7CiAgICAgJGpz
YyA9IEZpbGU6OlNwZWMtPmNhdGZpbGUoanNjUHJvZHVjdERpcigpLCAianNjIC0tdXNlRG9sbGFy
Vk09MSAiKSAuICJAQVJHViI7CiB9CiAKLW15ICRkeWxkID0ganNjUHJvZHVjdERpcigpOwogCiAk
RU5WeyJEWUxEX0ZSQU1FV09SS19QQVRIIn0gPSAkZHlsZDsKIHByaW50IFNUREVSUiAiUnVubmlu
ZyAkY291bnQgdGltZShzKTogRFlMRF9GUkFNRVdPUktfUEFUSD0kZHlsZCAkanNjXG4iOwo=
</data>
<flag name="review"
          id="492654"
          type_id="1"
          status="+"
          setter="ap"
    />
    <flag name="commit-queue"
          id="492658"
          type_id="3"
          status="-"
          setter="ews-feeder"
    />
          </attachment>
      

    </bug>

</bugzilla>