Description
The TestCompletion test failed in case of the remote target Linux AArch64 (Jetson AGX/Cortex a78 board with Ubuntu 22.04, the host is Windows). LoadImage() installs the .so image to the remote target with correct permissions. But PlatformPOSIX::DoLoadImage() reports the following error:
dlopen error: untu\tests\functionalities\completion\1\TestCompletion.test_process_unload\libshared.so: cannot open shared object file: No such file or directory
Note 1: The path separator is \
in the error message, but lldb.SBFileSpec(remote_path, False)
is used with the correct remote_path and the file libshared.so
is correctly installed to the remote target. I have no idea where /
has been converted to \
.
Note 2: The tests directory is /home/ubuntu/tests
. The path in the error message is cropped at the beginning (exactly 8 chars /home/ub
) and probably some useful info in the error message is cropped too.
Note 3: All dlopen error
messages contain a hardcoded description except the last one where token == 0
in lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp, line 903:
lldb::addr_t token = process->ReadPointerFromMemory(return_addr, utility_error);
So, most probably this error is caused here.