<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/134299>134299</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Segmentation fault on LLDB debugger attach to non rooted Android
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          syahmizul
      </td>
    </tr>
</table>

<pre>
    When I try to attach the debugger to an already executing process,it throws an error saying "Segmentation fault"
But this error seems to be gone when I root my device and run `su` and `setenforce 0` before running the LLDB server.
Now,currently I do have devices that are rootable but I'm just curious how would I get around this if rooting is not possible? I also have attempted another way which is to `launch` the app instead of `attaching` to it,but I'm quite unsure on how to achieve this,this is what I tried,based on asking LLM bots : 

- `platform process launch -- am start -n com.example.app/.MainActivity` (doesn't work,it says unknown syntax or something)
- adb shell am start -n <package_name>/<activity_name> (Claude told me this,basically to start the app first,which is basically just attaching to it afterwards,which doesn't work,so I'm not sure why it would suggest this.)

So,the possible ways I could think of now is just to find the correct way to launch the application,I don't see any other way I can get this to work without rooting.


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkVMGO4jgQ_RpzKTUKBqabAweGWSSknr3MYY-ril0QTzuurF0mk_36lR2gtZoTwvFzvVfvVWFK7hqI9mr7VW2_LTBLx3GfJux692_2i5bttP-rowBnkDiBMKAImg6kI7DU5uuVYj0OgD4S2gnoF5ksLlxhiGwoJaWPTkC6yGMqFylGjpBwKneU1j_o2lMQFMcBLpi9KK1Vc_iaC8qlB4CoT6VWS3DlQDDOxCKzQD-BpZszBBgsxBxAfWlSVl-aelD-kFC4cDQETTlu6cKRytVQeBRB7-_fvkKieKO4VM3hTx6VPpocIwXxE5zBMnR4o3upBNKhAJZXmAVbT9BmgbPSrz38zEnA5Og4J-h4hJGzt3CGKxUM52Bnde5S4YWESxBYYOCUXOtJrU9wB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