Comments (10)
What process are to trying to inject to? Could you post here its /proc/<pid>/maps
?
from pyinjector.
It's pylsp, here is the file maps.txt.
from pyinjector.
Your environment seems a bit unusual - is it possible /usr/lib64/libc.so.6
is not a symlink on your machine? Please post the output of ls -l /usr/lib64/libc.so.6
from pyinjector.
> ls -l /usr/lib64/libc.so.6
-rwxr-xr-x 1 root root 2,5M Dec 6 00:00 /usr/lib64/libc.so.6
Indeed, it's not a symlink. It's on openSUSE Tumbleweed.
from pyinjector.
Fixing this requires a change in kubo/injector - https://github.com/kubo/injector/blob/master/src/linux/elf.c#L257 will need to support libc.so.6
(and probably libc.so
too) instead of just libc-2.xx.so
. I see this issue has surfaced in kubo/injector as well - kubo/injector#15.
Until it is resolved, there is a hacky workaround,
Run:
mkdir /tmp/libc && \
sudo ln /usr/lib64/libc.so.6 /tmp/libc/libc-2.31.so && \
ln -s libc-2.31.so /tmp/libc/libc.so.6 && \
ln -s libc.so.6 /tmp/libc/libc.so
And then run processes you want to inject with LD_LIBRARY_PATH
set:
LD_LIBRARY_PATH=/tmp/libc <cmd_to_debug>
from pyinjector.
Ran the above with the difference that I used symbolic links everywhere, as /tmp is a different filesystem, to no avail; the error message is the same.
from pyinjector.
The hard link is required, try running it as I posted just in a different directory in the same filesystem.
from pyinjector.
Kubo has fixed the issue in injector, I released pyinjector==1.0.6
with these changes. Please let me know if it works for you :)
from pyinjector.
The new version works fine, thank you for the prompt response!
from pyinjector.
Great to hear, thank you for posting the issue :)
from pyinjector.
Related Issues (20)
- How to use? HOT 11
- undefined symbol: injector_attach HOT 1
- Verify injector ABI in tests or compile directly using Python-C API HOT 1
- Use the new uninject API in kubo/injector
- Add windows-2022 to CI when issues with pip not finding msvc are solved
- Impossible to compile with PyInstaller or Py2Exe HOT 10
- Return DLL Handle HOT 4
- Have appropriate exceptions for different return values from `injector_attach`
- add support on > 3.10 HOT 1
- Help please HOT 1
- Failure to inject on Mac HOT 8
- Build wheels for Mac
- Cannot install on win10 via pip HOT 1
- [Enhancement/Question] inject into Wine processes on Linux HOT 1
- Question! HOT 1
- "No module named pyinjector" HOT 1
- Add support for windows HOT 6
- pyinstaller problem HOT 1
- How do you use this HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyinjector.