-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Discussed in #254
Originally posted by aplund September 11, 2025
I frequently get the error: "Invalid address in remote process", but don't know what to do about it. With verbose logging, there isn't actually an error reported. Could the nature of the error be logged so that one can figure out what's going wrong?
$ pystack remote $(pidof python) -v
INFO(process_remote): Analyzing process with pid 12105 using stack method StackMethod.AUTO with native mode NativeReportingMode.OFF
INFO(process_remote): Trying to stop thread 12105
INFO(process_remote): Waiting for thread 12105 to be stopped
INFO(process_remote): Thread 12105 stopped
INFO(process_remote): Trying to stop thread 12106
INFO(process_remote): Waiting for thread 12106 to be stopped
INFO(process_remote): Thread 12106 stopped
INFO(process_remote): Trying to stop thread 12107
INFO(process_remote): Waiting for thread 12107 to be stopped
INFO(process_remote): Thread 12107 stopped
INFO(process_remote): Trying to stop thread 12108
INFO(process_remote): Waiting for thread 12108 to be stopped
INFO(process_remote): Thread 12108 stopped
INFO(process_remote): Trying to stop thread 12109
INFO(process_remote): Waiting for thread 12109 to be stopped
INFO(process_remote): Thread 12109 stopped
INFO(process_remote): Trying to stop thread 12110
INFO(process_remote): Waiting for thread 12110 to be stopped
INFO(process_remote): Thread 12110 stopped
INFO(process_remote): Trying to stop thread 12111
INFO(process_remote): Waiting for thread 12111 to be stopped
INFO(process_remote): Thread 12111 stopped
INFO(process_remote): Trying to stop thread 12123
INFO(process_remote): Waiting for thread 12123 to be stopped
INFO(process_remote): Thread 12123 stopped
INFO(process_remote): Trying to stop thread 12124
INFO(process_remote): Waiting for thread 12124 to be stopped
INFO(process_remote): Thread 12124 stopped
INFO(process_remote): Trying to stop thread 12125
INFO(process_remote): Waiting for thread 12125 to be stopped
INFO(process_remote): Thread 12125 stopped
INFO(process_remote): All 10 threads stopped
INFO(parse_maps_file_for_binary): python binary first map found: VirtualMap(start=0x00000000003ff000, end=0x0000000000400000, filesize=0x1000, offset=0x0, device='103:02', flags='rw-p', inode=2322982, path='/home/austin.lund/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/bin/python3.13')
INFO(parse_maps_file_for_binary): Process does not have a libpython.so, reading from binary
INFO(parse_maps_file_for_binary): Heap map found: VirtualMap(start=0x000000004695c000, end=0x000000004697c000, filesize=0x20000, offset=0x0, device='00:00', flags='rw-p', inode=0, path='[heap]')
INFO(_get_bss): Determined exact addr of .bss section: 0x159cf40 (0x3ff000 + 0x119df40)
INFO(parse_maps_file_for_binary): bss map found: VirtualMap(start=0x000000000159cf40, end=0x0000000001620f68, filesize=0x84028, offset=0x119cf40, device='', flags='', inode=0, path='None')
INFO(process_remote): Attempting to find symbol '_PyRuntime' in /home/austin.lund/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/bin/python3.13
INFO(process_remote): Symbol '_PyRuntime' found at address 0x1557c40
INFO(process_remote): Attempting to find symbol '_PyRuntime' in /home/austin.lund/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/bin/python3.13
INFO(process_remote): Symbol '_PyRuntime' found at address 0x76dbe24fdc40
INFO(process_remote): Attempting to find symbol 'Py_Version' in /home/austin.lund/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/bin/python3.13
INFO(process_remote): Symbol 'Py_Version' found at address 0xf91d88
INFO(process_remote): Attempting to find symbol 'Py_Version' in /home/austin.lund/.local/share/uv/python/cpython-3.13.7-linux-x86_64-gnu/bin/python3.13
INFO(process_remote): Symbol 'Py_Version' found at address 0x76dbe1f37d88
INFO(get_python_version_for_process): Version found by scanning the bss section: 3.13
INFO(process_remote): Detaching from thread 12125
INFO(process_remote): Detaching from thread 12124
INFO(process_remote): Detaching from thread 12111
INFO(process_remote): Detaching from thread 12123
INFO(process_remote): Detaching from thread 12110
INFO(process_remote): Detaching from thread 12109
INFO(process_remote): Detaching from thread 12108
INFO(process_remote): Detaching from thread 12107
INFO(process_remote): Detaching from thread 12106
INFO(process_remote): Detaching from thread 12105
💀 Engine error: Invalid address in remote process 💀
```</div>
Metadata
Metadata
Assignees
Labels
No labels