Procursus icon indicating copy to clipboard operation
Procursus copied to clipboard

Launching app using pwndbg crashes lldbg server

Open moritztim opened this issue 7 months ago • 9 comments

See https://github.com/pwndbg/pwndbg/issues/2845#issuecomment-2785009108 for stack trace and potentially important context

moritztim avatar Apr 08 '25 01:04 moritztim

Attaching it from the start causes a crash aswell

% lldb-server g --attach 5045 192.168.0.46:1234
PLEASE submit a bug report to https://github.com/ProcursusTeam/Procursus/issues and include the crash backtrace.
Stack dump:
0.	Program arguments: lldb-server g --attach 5045 192.168.0.46:1234
1.	Program arguments: lldb-server g --attach 5045 192.168.0.46:1234
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  lldb-server              0x000000010211e598 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  lldb-server              0x0000000103dc9818 llvm::sys::RunSignalHandlers() + 128
2  lldb-server              0x00000001012f3f50 llvm::sys::RemoveFileOnSignal(llvm::StringRef, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*) + 1000
3  libsystem_platform.dylib 0x00000001febef2f4 <redacted> + 52
4  lldb-server              0x0000000104dbd6ac lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::AttachToProcess(unsigned long long) + 196
5  lldb-server              0x0000000102e71c50 lldb_private::URI::Parse(llvm::StringRef) + 1720
6  lldb-server              0x0000000101972a64 main_gdbserver(int, char**) + 4164
7  lldb-server              0x000000010541abf8 main + 188
8  dyld                     0x0000000106a24344 start + 1860
zsh: trace trap  lldb-server g --attach 5045 192.168.0.46:1234

moritztim avatar Apr 08 '25 02:04 moritztim

Server log
% lldb-server g 192.168.0.46:1234 --log-channels gdb-remote
lldb-server-local_build
Connection established.
1744141247.610915899 <   1> read packet: +
1744141247.613375902 GDBRemoteCommunication.cpp:ReadPacket                        discarding spurious `+` packet
1744141247.613600016 <  19> read packet: $QStartNoAckMode#b0
1744141247.614435911 <   1> send packet: +
1744141247.618158102 <   6> send packet: $OK#9a
1744141247.622814894 <   1> read packet: +
1744141247.622869015 <  86> read packet: $qSupported:xmlRegisters=i386,arm,mips,arc;multiprocess+;fork-events+;vfork-events+#2e
1744141247.627530098 < 141> send packet: $PacketSize=131072;QStartNoAckMode+;qEcho+;native-signals+;QThreadSuffixSupported+;QListThreadsInStopReply+;qXfer:features:read+;QNonStop+#09
1744141247.632210970 <  26> read packet: $QThreadSuffixSupported#e4
1744141247.633605003 <   6> send packet: $OK#9a
1744141247.638067007 <  27> read packet: $QListThreadsInStopReply#21
1744141247.638892889 <   6> send packet: $OK#9a
1744141247.642643929 <  13> read packet: $qHostInfo#9b
1744141247.649346113 < 452> send packet: $triple:61726d36342d6170706c652d696f73;ptrsize:8;vendor:apple;cputype:16777228;cpusubtype:0;ostype:ios;watchpoint_exceptions_received:before;endian:little;os_version:16.7.10;os_build:323048333530;os_kernel:44617277696e204b65726e656c2056657273696f6e2032322e362e303a20547565204a756c2020322032303a34373a33352050445420323032343b20726f6f743a786e752d383739362e3134322e312e3730332e387e312f52454c454153455f41524d36345f5438303135;hostname:3132372e302e302e31;#73
1744141247.654526949 <  10> read packet: $vCont?#49
1744141247.655203104 <  19> send packet: $vCont;c;C;s;S;t#11
1744141247.659218073 <  27> read packet: $qVAttachOrWaitSupported#38
1744141247.660062075 <   6> send packet: $OK#9a
1744141247.663691044 <  23> read packet: $QEnableErrorStrings#8c
1744141247.664450884 <   6> send packet: $OK#9a
1744141247.671542883 <  16> read packet: $qProcessInfo#dc
1744141247.672295094 <   7> send packet: $E44#ad
1744141247.680583954 <   6> read packet: $qC#b4
1744141247.680758953 <   7> send packet: $E44#ad
1744141247.686865091 <  16> read packet: $qfThreadInfo#bb
1744141247.688067913 <   6> send packet: $OK#9a
1744141251.896980047 <  21> read packet: $QSetDisableASLR:0#cd
1744141251.897382021 <   6> send packet: $OK#9a
1744141251.902576923 <  23> read packet: $QSetDetachOnError:0#f7
1744141251.902842999 <   6> send packet: $OK#9a
1744141251.907424927 <  21> read packet: $QLaunchArch:arm64#0e
1744141251.910734892 <   6> send packet: $OK#9a
1744141251.915528059 <  36> read packet: $QEnvironment:COLORTERM=truecolor#f3
1744141251.916534901 <   6> send packet: $OK#9a
1744141251.921071053 <  36> read packet: $QEnvironment:CUDA_PATH=/opt/cuda#54
1744141251.921314955 <   6> send packet: $OK#9a
1744141251.926898003 <  70> read packet: $QEnvironment:DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus#7f
1744141251.927110910 <   6> send packet: $OK#9a
1744141251.932391882 <  66> read packet: $QEnvironment:DEBUGINFOD_URLS=https://debuginfod.archlinux.org #4d
1744141251.932625055 <   6> send packet: $OK#9a
1744141251.938002110 <  38> read packet: $QEnvironment:DESKTOP_SESSION=gnome#10
1744141251.938209057 <   6> send packet: $OK#9a
1744141251.942536116 <  27> read packet: $QEnvironment:DISPLAY=:0#dd
1744141251.942756891 <   6> send packet: $OK#9a
1744141251.948363066 <  33> read packet: $QEnvironment:GDMSESSION=gnome#6f
1744141251.948579073 <   6> send packet: $OK#9a
1744141251.954014063 <  37> read packet: $QEnvironment:GDM_LANG=en_US.UTF-8#12
1744141251.954221010 <   6> send packet: $OK#9a
1744141251.958268881 <  39> read packet: $QEnvironment:GNOME_SETUP_DISPLAY=:1#a3
1744141251.958476067 <   6> send packet: $OK#9a
1744141251.962872982 <  51> read packet: $QEnvironment:GRADLE_HOME=/usr/share/java/gradle#ce
1744141251.963080883 <   6> send packet: $OK#9a
1744141251.968554974 <  32> read packet: $QEnvironment:HOME=/home/moti#46
1744141251.968755007 <   6> send packet: $OK#9a
1744141251.974275112 <  63> read packet: $QEnvironment:INVOCATION_ID=22ce04709d3e42458909fb5870d7dce8#b3
1744141251.974507093 <   6> send packet: $OK#9a
1744141251.979682922 <  39> read packet: $QEnvironment:JOURNAL_STREAM=9:26023#13
1744141251.979892015 <   6> send packet: $OK#9a
1744141251.985644102 <  33> read packet: $QEnvironment:LANG=en_US.UTF-8#db
1744141251.985861063 <   6> send packet: $OK#9a
1744141251.989204884 < 110> read packet: $QEnvironment:LLDB_DEBUGSERVER_PATH=/nix/store/hy0f3v2gmm8y8zy3k6vf0hiy326zfzjv-lldb-19.1.7/bin/lldb-server#3a
1744141251.989463091 <   6> send packet: $OK#9a
1744141251.995831966 <  29> read packet: $QEnvironment:LOGNAME=moti#19
1744141251.996047974 <   6> send packet: $OK#9a
1744141252.003140926 <  42> read packet: $QEnvironment:MAIL=/var/spool/mail/moti#0e
1744141252.003350019 <   6> send packet: $OK#9a
1744141252.008105993 <  32> read packet: $QEnvironment:MANAGERPID=1966#0b
1744141252.008332014 <   6> send packet: $OK#9a
1744141252.011451960 < 208> read packet: $QEnvironment:MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/app-dbus\x2d:1.5\x2dcom.gexperts.Tilix.slice/dbus-:[email protected]/memory.pressure#97
1744141252.011683941 <   6> send packet: $OK#9a
1744141252.015993118 <  67> read packet: $QEnvironment:MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=#e7
1744141252.016206026 <   6> send packet: $OK#9a
1744141252.023359060 <  53> read packet: $QEnvironment:MKLROOT=/opt/intel/oneapi/mkl/latest#2c
1744141252.023581028 <   6> send packet: $OK#9a
1744141252.028882027 <  31> read packet: $QEnvironment:MOTD_SHOWN=pam#bd
1744141252.029093981 <   6> send packet: $OK#9a
1744141252.038942099 <  83> read packet: $QEnvironment:NIX_PROFILES=/nix/var/nix/profiles/default /home/moti/.nix-profile#d4
1744141252.039156914 <   6> send packet: $OK#9a
1744141252.047034025 <  69> read packet: $QEnvironment:NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt#72
1744141252.047243118 <   6> send packet: $OK#9a
1744141252.051604033 <  43> read packet: $QEnvironment:NVCC_CCBIN=/usr/bin/g++-13#b3
1744141252.051822901 <   6> send packet: $OK#9a
1744141252.064100981 <  34> read packet: $QEnvironment:OLDPWD=/home/moti#e7
1744141252.064305067 <   6> send packet: $OK#9a
1744141252.069483995 < 513> read packet: $QEnvironment:PATH=/nix/store/hy0f3v2gmm8y8zy3k6vf0hiy326zfzjv-lldb-19.1.7/bin:/home/moti/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/nix/store/cs3n7xg33clcixkb20b44c2ynir2fly0-python3.12-pwntools-4.14.0/bin:/nix/store/107mky2vrnqxa9fb8ybygak8jng6i5p6-python3.12-ropper-1.13.10/bin#ee
1744141252.069828987 <   6> send packet: $OK#9a
1744141252.076488018 <  47> read packet: $QEnvironment:PWD=/home/moti/Projects/pwndbg#32
1744141252.076849937 <   6> send packet: $OK#9a
1744141252.084239006 < 105> read packet: $QEnvironment:PWNDBG_LLDBINIT_DIR=/nix/store/30xm2kydwk8gd4994swjiq4f9m3iqsg3-pwndbg-lldb/share/pwndbg#8d
1744141252.084461927 <   6> send packet: $OK#9a
1744141252.089665890 < 102> read packet: $QEnvironment:SESSION_MANAGER=local/thinkpad:@/tmp/.ICE-unix/2077,unix/thinkpad:/tmp/.ICE-unix/2077#ca
1744141252.089956999 <   6> send packet: $OK#9a
1744141252.098221064 <  35> read packet: $QEnvironment:SHELL=/usr/bin/zsh#4a
1744141252.098457098 <   6> send packet: $OK#9a
1744141252.106328011 <  24> read packet: $QEnvironment:SHLVL=1#17
1744141252.106528044 <   6> send packet: $OK#9a
1744141252.114984989 <  53> read packet: $QEnvironment:SSH_AUTH_SOCK=/run/user/1000/gcr/ssh#b5
1744141252.115202904 <   6> send packet: $OK#9a
1744141252.122363091 <  38> read packet: $QEnvironment:SYSTEMD_EXEC_PID=2878#1f
1744141252.122565985 <   6> send packet: $OK#9a
1744141252.127079010 <  36> read packet: $QEnvironment:TERM=xterm-256color#ae
1744141252.127278090 <   6> send packet: $OK#9a
1744141252.140649080 <  62> read packet: $QEnvironment:TILIX_ID=cf75807e-7ec8-4278-8d47-3b9156e959fa#10
1744141252.140860081 <   6> send packet: $OK#9a
1744141252.149055958 <  26> read packet: $QEnvironment:USER=moti#55
1744141252.149259090 <   6> send packet: $OK#9a
1744141252.156976938 <  30> read packet: $QEnvironment:USERNAME=moti#76
1744141252.157191038 <   6> send packet: $OK#9a
1744141252.162507057 <  33> read packet: $QEnvironment:VTE_VERSION=8000#99
1744141252.162712097 <   6> send packet: $OK#9a
1744141252.169528961 <  42> read packet: $QEnvironment:WAYLAND_DISPLAY=wayland-0#2f
1744141252.169779062 <   6> send packet: $OK#9a
1744141252.176809072 <  70> read packet: $QEnvironment:XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.KOEN42#c6
1744141252.177078009 <   6> send packet: $OK#9a
1744141252.185022116 <  42> read packet: $QEnvironment:XDG_CURRENT_DESKTOP=GNOME#b1
1744141252.185241938 <   6> send packet: $OK#9a
1744141252.194036007 < 203> read packet: $QEnvironment:XDG_DATA_DIRS=/home/moti/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/home/moti/.nix-profile/share:/nix/var/nix/profiles/default/share#3b
1744141252.194300890 <   6> send packet: $OK#9a
1744141252.200984955 <  39> read packet: $QEnvironment:XDG_MENU_PREFIX=gnome-#44
1744141252.201211929 <   6> send packet: $OK#9a
1744141252.207417011 <  47> read packet: $QEnvironment:XDG_RUNTIME_DIR=/run/user/1000#63
1744141252.207618952 <   6> send packet: $OK#9a
1744141252.214020014 <  39> read packet: $QEnvironment:XDG_SESSION_CLASS=user#57
1744141252.214236021 <   6> send packet: $OK#9a
1744141252.219769001 <  42> read packet: $QEnvironment:XDG_SESSION_DESKTOP=gnome#52
1744141252.220020056 <   6> send packet: $OK#9a
1744141252.225574970 <  41> read packet: $QEnvironment:XDG_SESSION_TYPE=wayland#54
1744141252.225816965 <   6> send packet: $OK#9a
1744141252.232321024 <  44> read packet: $QEnvironment:__ETC_PROFILE_NIX_SOURCED=1#5a
1744141252.232702017 <   6> send packet: $OK#9a
1744141252.239537954 < 175> read packet: $vRun;2f7661722f636f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f30354233304445462d313342312d343543362d383443362d3438303445373444393144442f53696d436974792e617070#92
PLEASE submit a bug report to https://github.com/ProcursusTeam/Procursus/issues and include the crash backtrace.
Stack dump:
0.	Program arguments: lldb-server g 192.168.0.46:1234 --log-channels gdb-remote
1.	Program arguments: lldb-server g 192.168.0.46:1234 --log-channels gdb-remote
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  lldb-server              0x0000000102a0a598 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  lldb-server              0x00000001046b5818 llvm::sys::RunSignalHandlers() + 128
2  lldb-server              0x0000000101bdff50 llvm::sys::RemoveFileOnSignal(llvm::StringRef, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*) + 1000
3  libsystem_platform.dylib 0x000000020c5ab2f4 <redacted> + 52
4  lldb-server              0x0000000105682f0c lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::LaunchProcess() + 436
5  lldb-server              0x000000010557906c isl_val_is_zero + 1196
6  lldb-server              0x0000000103694c34 lldb_private::IRMemoryMap::Malloc(unsigned long, unsigned char, unsigned int, lldb_private::IRMemoryMap::AllocationPolicy, bool, lldb_private::Status&) + 10796
7  lldb-server              0x0000000101e407d8 lldb_private::process_gdb_remote::GDBRemoteCommunicationServer::GetPacketAndSendResponse(lldb_private::Timeout<std::__1::ratio<1l, 1000000l>>, lldb_private::Status&, bool&, bool&) + 824
8  lldb-server              0x000000010381cff8 SymbolFileDWARFDwo::FindCompleteObjCDefinitionTypeForDIE(DWARFDIE const&, lldb_private::ConstString, bool) + 3424
9  lldb-server              0x0000000105c5c220 lldb_private::MainLoopPosix::RunImpl::ProcessEvents() + 124
10 lldb-server              0x0000000105c56b68 lldb_private::MainLoopPosix::Run() + 204
11 lldb-server              0x000000010225eaf4 main_gdbserver(int, char**) + 4308
12 lldb-server              0x0000000105d06bf8 main + 188
13 dyld                     0x000000010740c344 start + 1860
zsh: trace trap  lldb-server g 192.168.0.46:1234 --log-channels gdb-remote
Pwndbg log
warning: ignoring untrusted substituter 'https://pwndbg.cachix.org', you are not a trusted user.
Run `man nix.conf` for more information on the `substituters` configuration option.
warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user
pwndbg: loaded 153 pwndbg commands and 0 shell commands.
------- tip of the day (some of these don't work in LLDB yet!) (disable with set show-tips off) -------
Use $base("heap") to get the start address of a [heap] memory page
pwndbg-lldb> log enable gdb-remote all
pwndbg-lldb> platform select remote-ios
Platform: remote-ios
 Connected: no
  SDK Path: error: unable to locate SDK
pwndbg-lldb> target create ~/SimCity
Current executable set to '~/SimCity' (arm64)
pwndbg-lldb> lldb
(lldb)  now entering LLDB mode. In this mode, certain commands may cause Pwndbg to break. Proceed with caution.
30DEF-13B1-45C6-84C6-4804E74D91DD/SimCity.app/'))leSpec(lldb.SBFileSpec('/var/containers/Bundle/Application/05B 
True
(lldb) ^D
pwndbg-lldb> process connect -p gdb-remote connect://192.168.0.140:1234   
python3.12       ProcessGDBRemote::ConnectToDebugserver Connecting to connect://192.168.0.140:1234
python3.12       <   1> send packet: +
python3.12       history[1] tid=0xa8f8 <   1> send packet: +
python3.12       <  19> send packet: $QStartNoAckMode#b0
python3.12       <   1> read packet: +
python3.12       <   6> read packet: $OK#9a
python3.12       <   1> send packet: +
python3.12       <  86> send packet: $qSupported:xmlRegisters=i386,arm,mips,arc;multiprocess+;fork-events+;vfork-events+#2e
python3.12       < 141> read packet: $PacketSize=131072;QStartNoAckMode+;qEcho+;native-signals+;QThreadSuffixSupported+;QListThreadsInStopReply+;qXfer:features:read+;QNonStop+#09
python3.12       <  26> send packet: $QThreadSuffixSupported#e4
python3.12       <   6> read packet: $OK#9a
python3.12       <  27> send packet: $QListThreadsInStopReply#21
python3.12       <   6> read packet: $OK#9a
python3.12       <  13> send packet: $qHostInfo#9b
python3.12       < 452> read packet: $triple:61726d36342d6170706c652d696f73;ptrsize:8;vendor:apple;cputype:16777228;cpusubtype:0;ostype:ios;watchpoint_exceptions_received:before;endian:little;os_version:16.7.10;os_build:323048333530;os_kernel:44617277696e204b65726e656c2056657273696f6e2032322e362e303a20547565204a756c2020322032303a34373a33352050445420323032343b20726f6f743a786e752d383739362e3134322e312e3730332e387e312f52454c454153455f41524d36345f5438303135;hostname:3132372e302e302e31;#73
python3.12       GDBRemoteCommunicationClient::GetHostInfo parsed host architecture as arm64, triple as arm64-apple-ios from triple text arm64-apple-ios
python3.12       <  10> send packet: $vCont?#49
python3.12       <  19> read packet: $vCont;c;C;s;S;t#11
python3.12       <  27> send packet: $qVAttachOrWaitSupported#38
python3.12       <   6> read packet: $OK#9a
python3.12       <  23> send packet: $QEnableErrorStrings#8c
python3.12       <   6> read packet: $OK#9a
python3.12       ProcessGDBRemote::StartAsyncThread ()
b-remote.async>  ProcessGDBRemote::AsyncThread(pid = 0) thread starting...
python3.12       <  16> send packet: $qProcessInfo#dc
b-remote.async>  ProcessGDBRemote::AsyncThread(pid = 0) listener.WaitForEvent (NULL, event_sp)...
python3.12       <   7> read packet: $E44#ad
python3.12       <   6> send packet: $qC#b4
python3.12       <   7> read packet: $E44#ad
python3.12       <  16> send packet: $qfThreadInfo#bb
python3.12       <   6> read packet: $OK#9a
python3.12       ProcessGDBRemote::DoConnectRemote pid 0: normalizing target architecture initial triple: arm64-apple-ios13.0.0 (GetTarget().GetArchitecture().IsValid() true, m_gdb_comm.GetHostArchitecture().IsValid(): true)
python3.12       ProcessGDBRemote::DoConnectRemote pid 0: normalized target architecture triple: arm64-apple-ios13.0.0
pwndbg-lldb> process launch
python3.12       ProcessGDBRemote::DoLaunch() entered
python3.12       ProcessGDBRemote::DoLaunch no STDIO paths given via launch_info
python3.12       ProcessGDBRemote::DoLaunch final STDIO paths after all adjustments: stdin=<null>, stdout=<null>, stderr=<null>
python3.12       <  21> send packet: $QSetDisableASLR:0#cd
python3.12       <   6> read packet: $OK#9a
python3.12       <  23> send packet: $QSetDetachOnError:0#f7
python3.12       <   6> read packet: $OK#9a
python3.12       <  21> send packet: $QLaunchArch:arm64#0e
python3.12       <   6> read packet: $OK#9a
python3.12       <  32> send packet: $QEnvironment:ASCIINEMA_REC=1#51
python3.12       <   6> read packet: $OK#9a
python3.12       <  36> send packet: $QEnvironment:COLORTERM=truecolor#f3
python3.12       <   6> read packet: $OK#9a
python3.12       <  36> send packet: $QEnvironment:CUDA_PATH=/opt/cuda#54
python3.12       <   6> read packet: $OK#9a
python3.12       <  70> send packet: $QEnvironment:DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus#7f
python3.12       <   6> read packet: $OK#9a
python3.12       <  66> send packet: $QEnvironment:DEBUGINFOD_URLS=https://debuginfod.archlinux.org #4d
python3.12       <   6> read packet: $OK#9a
python3.12       <  38> send packet: $QEnvironment:DESKTOP_SESSION=gnome#10
python3.12       <   6> read packet: $OK#9a
python3.12       <  27> send packet: $QEnvironment:DISPLAY=:0#dd
python3.12       <   6> read packet: $OK#9a
python3.12       <  33> send packet: $QEnvironment:GDMSESSION=gnome#6f
python3.12       <   6> read packet: $OK#9a
python3.12       <  37> send packet: $QEnvironment:GDM_LANG=en_US.UTF-8#12
python3.12       <   6> read packet: $OK#9a
python3.12       <  39> send packet: $QEnvironment:GNOME_SETUP_DISPLAY=:1#a3
python3.12       <   6> read packet: $OK#9a
python3.12       <  51> send packet: $QEnvironment:GRADLE_HOME=/usr/share/java/gradle#ce
python3.12       <   6> read packet: $OK#9a
python3.12       <  32> send packet: $QEnvironment:HOME=/home/moti#46
python3.12       <   6> read packet: $OK#9a
python3.12       <  63> send packet: $QEnvironment:INVOCATION_ID=22ce04709d3e42458909fb5870d7dce8#b3
python3.12       <   6> read packet: $OK#9a
python3.12       <  39> send packet: $QEnvironment:JOURNAL_STREAM=9:26023#13
python3.12       <   6> read packet: $OK#9a
python3.12       <  33> send packet: $QEnvironment:LANG=en_US.UTF-8#db
python3.12       <   6> read packet: $OK#9a
python3.12       < 110> send packet: $QEnvironment:LLDB_DEBUGSERVER_PATH=/nix/store/hy0f3v2gmm8y8zy3k6vf0hiy326zfzjv-lldb-19.1.7/bin/lldb-server#3a
python3.12       <   6> read packet: $OK#9a
python3.12       <  29> send packet: $QEnvironment:LOGNAME=moti#19
python3.12       <   6> read packet: $OK#9a
python3.12       <  42> send packet: $QEnvironment:MAIL=/var/spool/mail/moti#0e
python3.12       <   6> read packet: $OK#9a
python3.12       <  32> send packet: $QEnvironment:MANAGERPID=1966#0b
python3.12       <   6> read packet: $OK#9a
python3.12       < 208> send packet: $QEnvironment:MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/app-dbus\x2d:1.5\x2dcom.gexperts.Tilix.slice/dbus-:[email protected]/memory.pressure#97
python3.12       <   6> read packet: $OK#9a
python3.12       <  67> send packet: $QEnvironment:MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=#e7
python3.12       <   6> read packet: $OK#9a
python3.12       <  53> send packet: $QEnvironment:MKLROOT=/opt/intel/oneapi/mkl/latest#2c
python3.12       <   6> read packet: $OK#9a
python3.12       <  31> send packet: $QEnvironment:MOTD_SHOWN=pam#bd
python3.12       <   6> read packet: $OK#9a
python3.12       <  83> send packet: $QEnvironment:NIX_PROFILES=/nix/var/nix/profiles/default /home/moti/.nix-profile#d4
python3.12       <   6> read packet: $OK#9a
python3.12       <  69> send packet: $QEnvironment:NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt#72
python3.12       <   6> read packet: $OK#9a
python3.12       <  43> send packet: $QEnvironment:NVCC_CCBIN=/usr/bin/g++-13#b3
python3.12       <   6> read packet: $OK#9a
python3.12       <  50> send packet: $QEnvironment:OLDPWD=/home/moti/Projects/pwndbg#11
python3.12       <   6> read packet: $OK#9a
python3.12       < 513> send packet: $QEnvironment:PATH=/nix/store/hy0f3v2gmm8y8zy3k6vf0hiy326zfzjv-lldb-19.1.7/bin:/home/moti/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/nix/store/cs3n7xg33clcixkb20b44c2ynir2fly0-python3.12-pwntools-4.14.0/bin:/nix/store/107mky2vrnqxa9fb8ybygak8jng6i5p6-python3.12-ropper-1.13.10/bin#ee
python3.12       <   6> read packet: $OK#9a
python3.12       <  47> send packet: $QEnvironment:PWD=/home/moti/Projects/pwndbg#32
python3.12       <   6> read packet: $OK#9a
python3.12       < 105> send packet: $QEnvironment:PWNDBG_LLDBINIT_DIR=/nix/store/30xm2kydwk8gd4994swjiq4f9m3iqsg3-pwndbg-lldb/share/pwndbg#8d
python3.12       <   6> read packet: $OK#9a
python3.12       < 102> send packet: $QEnvironment:SESSION_MANAGER=local/thinkpad:@/tmp/.ICE-unix/2077,unix/thinkpad:/tmp/.ICE-unix/2077#ca
python3.12       <   6> read packet: $OK#9a
python3.12       <  35> send packet: $QEnvironment:SHELL=/usr/bin/zsh#4a
python3.12       <   6> read packet: $OK#9a
python3.12       <  24> send packet: $QEnvironment:SHLVL=2#18
python3.12       <   6> read packet: $OK#9a
python3.12       <  53> send packet: $QEnvironment:SSH_AUTH_SOCK=/run/user/1000/gcr/ssh#b5
python3.12       <   6> read packet: $OK#9a
python3.12       <  38> send packet: $QEnvironment:SYSTEMD_EXEC_PID=2878#1f
python3.12       <   6> read packet: $OK#9a
python3.12       <  36> send packet: $QEnvironment:TERM=xterm-256color#ae
python3.12       <   6> read packet: $OK#9a
python3.12       <  62> send packet: $QEnvironment:TILIX_ID=cf75807e-7ec8-4278-8d47-3b9156e959fa#10
python3.12       <   6> read packet: $OK#9a
python3.12       <  26> send packet: $QEnvironment:USER=moti#55
python3.12       <   6> read packet: $OK#9a
python3.12       <  30> send packet: $QEnvironment:USERNAME=moti#76
python3.12       <   6> read packet: $OK#9a
python3.12       <  33> send packet: $QEnvironment:VTE_VERSION=8000#99
python3.12       <   6> read packet: $OK#9a
python3.12       <  42> send packet: $QEnvironment:WAYLAND_DISPLAY=wayland-0#2f
python3.12       <   6> read packet: $OK#9a
python3.12       <  70> send packet: $QEnvironment:XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.KOEN42#c6
python3.12       <   6> read packet: $OK#9a
python3.12       <  42> send packet: $QEnvironment:XDG_CURRENT_DESKTOP=GNOME#b1
python3.12       <   6> read packet: $OK#9a
python3.12       < 203> send packet: $QEnvironment:XDG_DATA_DIRS=/home/moti/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/home/moti/.nix-profile/share:/nix/var/nix/profiles/default/share#3b
python3.12       <   6> read packet: $OK#9a
python3.12       <  39> send packet: $QEnvironment:XDG_MENU_PREFIX=gnome-#44
python3.12       <   6> read packet: $OK#9a
python3.12       <  47> send packet: $QEnvironment:XDG_RUNTIME_DIR=/run/user/1000#63
python3.12       <   6> read packet: $OK#9a
python3.12       <  39> send packet: $QEnvironment:XDG_SESSION_CLASS=user#57
python3.12       <   6> read packet: $OK#9a
python3.12       <  42> send packet: $QEnvironment:XDG_SESSION_DESKTOP=gnome#52
python3.12       <   6> read packet: $OK#9a
python3.12       <  41> send packet: $QEnvironment:XDG_SESSION_TYPE=wayland#54
python3.12       <   6> read packet: $OK#9a
python3.12       <  44> send packet: $QEnvironment:__ETC_PROFILE_NIX_SOURCED=1#5a
python3.12       <   6> read packet: $OK#9a
python3.12       < 175> send packet: $vRun;2f7661722f636f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f30354233304445462d313342312d343543362d383443362d3438303445373444393144442f53696d436974792e617070#92
python3.12       failed to connect to debugserver: Cannot launch '/var/containers/Bundle/Application/05B30DEF-13B1-45C6-84C6-4804E74D91DD/SimCity.app': Sending vRun packet failed
Could not launch process: Cannot launch '/var/containers/Bundle/Application/05B30DEF-13B1-45C6-84C6-4804E74D91DD/SimCity.app': Sending vRun packet failed
pwndbg-lldb>

moritztim avatar Apr 08 '25 19:04 moritztim

I couldn't figure out from the documentation or a quick search of the source code which log channels are available in lldb besides packets, which doesn't seem to be helpful

I've enabled verbose debugging this time:
pwndbg-lldb> process launch
ProcessGDBRemote::DoLaunch() entered
ProcessGDBRemote::DoLaunch no STDIO paths given via launch_info
ProcessGDBRemote::DoLaunch final STDIO paths after all adjustments: stdin=<null>, stdout=<null>, stderr=<null>
<  21> send packet: $QSetDisableASLR:0#cd
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  23> send packet: $QSetDetachOnError:0#f7
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  21> send packet: $QLaunchArch:arm64#0e
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  36> send packet: $QEnvironment:COLORTERM=truecolor#f3
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  36> send packet: $QEnvironment:CUDA_PATH=/opt/cuda#54
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  70> send packet: $QEnvironment:DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus#7f
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  66> send packet: $QEnvironment:DEBUGINFOD_URLS=https://debuginfod.archlinux.org #4d
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  38> send packet: $QEnvironment:DESKTOP_SESSION=gnome#10
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  27> send packet: $QEnvironment:DISPLAY=:0#dd
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  33> send packet: $QEnvironment:GDMSESSION=gnome#6f
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  37> send packet: $QEnvironment:GDM_LANG=en_US.UTF-8#12
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  39> send packet: $QEnvironment:GNOME_SETUP_DISPLAY=:1#a3
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  51> send packet: $QEnvironment:GRADLE_HOME=/usr/share/java/gradle#ce
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  32> send packet: $QEnvironment:HOME=/home/moti#46
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  63> send packet: $QEnvironment:INVOCATION_ID=22ce04709d3e42458909fb5870d7dce8#b3
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  39> send packet: $QEnvironment:JOURNAL_STREAM=9:26023#13
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  33> send packet: $QEnvironment:LANG=en_US.UTF-8#db
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
< 110> send packet: $QEnvironment:LLDB_DEBUGSERVER_PATH=/nix/store/hy0f3v2gmm8y8zy3k6vf0hiy326zfzjv-lldb-19.1.7/bin/lldb-server#3a
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  29> send packet: $QEnvironment:LOGNAME=moti#19
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  42> send packet: $QEnvironment:MAIL=/var/spool/mail/moti#0e
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  32> send packet: $QEnvironment:MANAGERPID=1966#0b
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
< 208> send packet: $QEnvironment:MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/app.slice/app-dbus\x2d:1.5\x2dcom.gexperts.Tilix.slice/dbus-:[email protected]/memory.pressure#97
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  67> send packet: $QEnvironment:MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=#e7
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  53> send packet: $QEnvironment:MKLROOT=/opt/intel/oneapi/mkl/latest#2c
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  31> send packet: $QEnvironment:MOTD_SHOWN=pam#bd
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  83> send packet: $QEnvironment:NIX_PROFILES=/nix/var/nix/profiles/default /home/moti/.nix-profile#d4
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  69> send packet: $QEnvironment:NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt#72
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  43> send packet: $QEnvironment:NVCC_CCBIN=/usr/bin/g++-13#b3
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  53> send packet: $QEnvironment:OLDPWD=/home/moti/Projects/Procursus#65
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
< 513> send packet: $QEnvironment:PATH=/nix/store/hy0f3v2gmm8y8zy3k6vf0hiy326zfzjv-lldb-19.1.7/bin:/home/moti/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/nix/store/cs3n7xg33clcixkb20b44c2ynir2fly0-python3.12-pwntools-4.14.0/bin:/nix/store/107mky2vrnqxa9fb8ybygak8jng6i5p6-python3.12-ropper-1.13.10/bin#ee
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  47> send packet: $QEnvironment:PWD=/home/moti/Projects/pwndbg#32
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
< 105> send packet: $QEnvironment:PWNDBG_LLDBINIT_DIR=/nix/store/30xm2kydwk8gd4994swjiq4f9m3iqsg3-pwndbg-lldb/share/pwndbg#8d
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
< 102> send packet: $QEnvironment:SESSION_MANAGER=local/thinkpad:@/tmp/.ICE-unix/2077,unix/thinkpad:/tmp/.ICE-unix/2077#ca
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  35> send packet: $QEnvironment:SHELL=/usr/bin/zsh#4a
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  24> send packet: $QEnvironment:SHLVL=1#17
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  53> send packet: $QEnvironment:SSH_AUTH_SOCK=/run/user/1000/gcr/ssh#b5
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  38> send packet: $QEnvironment:SYSTEMD_EXEC_PID=2878#1f
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  36> send packet: $QEnvironment:TERM=xterm-256color#ae
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  62> send packet: $QEnvironment:TILIX_ID=cf75807e-7ec8-4278-8d47-3b9156e959fa#10
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  26> send packet: $QEnvironment:USER=moti#55
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  30> send packet: $QEnvironment:USERNAME=moti#76
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  33> send packet: $QEnvironment:VTE_VERSION=8000#99
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  42> send packet: $QEnvironment:WAYLAND_DISPLAY=wayland-0#2f
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  70> send packet: $QEnvironment:XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.KOEN42#c6
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  42> send packet: $QEnvironment:XDG_CURRENT_DESKTOP=GNOME#b1
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
< 203> send packet: $QEnvironment:XDG_DATA_DIRS=/home/moti/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/home/moti/.nix-profile/share:/nix/var/nix/profiles/default/share#3b
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  39> send packet: $QEnvironment:XDG_MENU_PREFIX=gnome-#44
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  47> send packet: $QEnvironment:XDG_RUNTIME_DIR=/run/user/1000#63
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  39> send packet: $QEnvironment:XDG_SESSION_CLASS=user#57
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  42> send packet: $QEnvironment:XDG_SESSION_DESKTOP=gnome#52
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  41> send packet: $QEnvironment:XDG_SESSION_TYPE=wayland#54
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
<  44> send packet: $QEnvironment:__ETC_PROFILE_NIX_SOURCED=1#5a
Read(buffer, sizeof(buffer), timeout = 5000000 us, status = success, error = ) => bytes_read = 6
GDBRemoteCommunication::CheckForPacket adding 6 bytes: $OK#9a
<   6> read packet: $OK#9a
< 175> send packet: $vRun;2f7661722f636f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f30354233304445462d313342312d343543362d383443362d3438303445373444393144442f53696d436974792e617070#92
Read(buffer, sizeof(buffer), timeout = 10000000 us, status = end of file, error = ) => bytes_read = 0
failed to connect to debugserver: Cannot launch '/var/containers/Bundle/Application/05B30DEF-13B1-45C6-84C6-4804E74D91DD/SimCity.app': Sending vRun packet failed
Could not launch process: Cannot launch '/var/containers/Bundle/Application/05B30DEF-13B1-45C6-84C6-4804E74D91DD/SimCity.app': Sending vRun packet failed
pwndbg-lldb> 

moritztim avatar Apr 08 '25 19:04 moritztim

This seems to be the relevant source code: https://github.com/llvm/llvm-project/blob/76d722732d7b417438f7aee8c36d79bf4feb2e97/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp#L343-L389

moritztim avatar Apr 08 '25 20:04 moritztim

It does not work even with a simple process that lldb can normally attach to

% sleep 100 &                                  
[1] 1111
% lldb-server g 192.168.0.46:1234 --attach 1111
PLEASE submit a bug report to https://github.com/ProcursusTeam/Procursus/issues and include the crash backtrace.
Stack dump:
0.	Program arguments: lldb-server g 192.168.0.46:1234 --attach 1111
1.	Program arguments: lldb-server g 192.168.0.46:1234 --attach 1111
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  lldb-server              0x000000010617e598 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  lldb-server              0x0000000107e29818 llvm::sys::RunSignalHandlers() + 128
2  lldb-server              0x0000000105353f50 llvm::sys::RemoveFileOnSignal(llvm::StringRef, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*) + 1000
3  libsystem_platform.dylib 0x000000020c5ab2f4 <redacted> + 52
4  lldb-server              0x0000000108e1d6ac lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::AttachToProcess(unsigned long long) + 196
5  lldb-server              0x0000000106ed1c50 lldb_private::URI::Parse(llvm::StringRef) + 1720
6  lldb-server              0x00000001059d2a64 main_gdbserver(int, char**) + 4164
7  lldb-server              0x000000010947abf8 main + 188
8  dyld                     0x000000010abd8344 start + 1860
zsh: trace trap  lldb-server g 192.168.0.46:1234 --attach 1111
% lldb                                         
(lldb) process attach --pid 111
Process 111 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00000001fd0b9030 libsystem_kernel.dylib`mach_msg2_trap + 8
libsystem_kernel.dylib`mach_msg2_trap:
->  0x1fd0b9030 <+8>: ret    

libsystem_kernel.dylib`macx_swapon:
    0x1fd0b9034 <+0>: mov    x16, #-0x30
    0x1fd0b9038 <+4>: svc    #0x80
    0x1fd0b903c <+8>: ret    
Target 0: (MobileGestaltHelper) stopped.
Executable module set to "/usr/libexec/MobileGestaltHelper".
Architecture set to: arm64-apple-ios-.
(lldb)

moritztim avatar Apr 08 '25 21:04 moritztim

hello

Nicholaus D Jefferson

On Tue, Apr 8, 2025 at 4:19 PM Moritz Tim W. @.***> wrote:

It seems like the problem is that lldb thinks its attached to a process when it isn't. Normal lldb:

Moritzs-iPhone:~ mobile% lldb (lldb) process status*error: *invalid target, create a target using the 'target create' command

lldb-server:

% lldb-server g 192.168.0.46:1234 lldb-server-local_build Connection established.

% lldb (lldb) process connect connect://192.168.0.140:1234 (lldb) process status Process 0 is running.

— Reply to this email directly, view it on GitHub https://github.com/ProcursusTeam/Procursus/issues/1461#issuecomment-2787685254, or unsubscribe https://github.com/notifications/unsubscribe-auth/BOOZPP56TQNJS2QJ34NNFLT2YQ4NLAVCNFSM6AAAAAB2U7RT7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBXGY4DKMRVGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***> moritztim left a comment (ProcursusTeam/Procursus#1461) https://github.com/ProcursusTeam/Procursus/issues/1461#issuecomment-2787685254

It seems like the problem is that lldb thinks its attached to a process when it isn't. Normal lldb:

Moritzs-iPhone:~ mobile% lldb (lldb) process status*error: *invalid target, create a target using the 'target create' command

lldb-server:

% lldb-server g 192.168.0.46:1234 lldb-server-local_build Connection established.

% lldb (lldb) process connect connect://192.168.0.140:1234 (lldb) process status Process 0 is running.

— Reply to this email directly, view it on GitHub https://github.com/ProcursusTeam/Procursus/issues/1461#issuecomment-2787685254, or unsubscribe https://github.com/notifications/unsubscribe-auth/BOOZPP56TQNJS2QJ34NNFLT2YQ4NLAVCNFSM6AAAAAB2U7RT7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBXGY4DKMRVGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

JSTigerB8 avatar Apr 11 '25 05:04 JSTigerB8

Hello 👋

moritztim avatar Apr 11 '25 06:04 moritztim

Sorry so late . I have two questions-#1 The following blue tooth “ virtual devices” came up around my devices KSO3-220F8D

QFX PBX-8074

  • How can I disable them securely and what others should I be looking for ?

#2 ~~. How do I remove certain source codes on an iPhone aNd reset them back to normal. I can Not enter a //Cmd or //Run prompt to clear them out . it’s already bad that there are UTM trackers on every filtered url on my Chromebook

Nicholaus D Jefferson

On Fri, Apr 11, 2025 at 1:26 AM Moritz Tim W. @.***> wrote:

Hello 👋

— Reply to this email directly, view it on GitHub https://github.com/ProcursusTeam/Procursus/issues/1461#issuecomment-2795951340, or unsubscribe https://github.com/notifications/unsubscribe-auth/BOOZPP4J3LXJ7UEDKGN35FL2Y5OBDAVCNFSM6AAAAAB2U7RT7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJVHE2TCMZUGA . You are receiving this because you commented.Message ID: @.***> moritztim left a comment (ProcursusTeam/Procursus#1461) https://github.com/ProcursusTeam/Procursus/issues/1461#issuecomment-2795951340

Hello 👋

— Reply to this email directly, view it on GitHub https://github.com/ProcursusTeam/Procursus/issues/1461#issuecomment-2795951340, or unsubscribe https://github.com/notifications/unsubscribe-auth/BOOZPP4J3LXJ7UEDKGN35FL2Y5OBDAVCNFSM6AAAAAB2U7RT7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJVHE2TCMZUGA . You are receiving this because you commented.Message ID: @.***>

JSTigerB8 avatar Apr 11 '25 07:04 JSTigerB8

Dear Nicholaus I have opened an Issue on the GitHub website with a question about this project. GitHub then sent you an email, letting you know that there's a new issue. Then you replied with unrelated questions.

Please open your own issue on the GitHub website: https://github.com/ProcursusTeam/Procursus/issues, but make sure to search existing issues that may have already solved your problem.

moritztim avatar Apr 11 '25 21:04 moritztim