Issue 134299
Summary Segmentation fault on LLDB debugger attach to non rooted Android
Labels new issue
Assignees
Reporter syahmizul
    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.


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to