New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Redis crashes after attaching scope when setting value. #1293
Comments
Hi @the-data-sherpa I was able to reproduce Your issue. From the description You have provided, I concluded that in Your environment the
Details description of the issue (developer notes):Redis-server received
After the attach I was able to figure out that the following code fails:
The message above can be misleading but the fun hook applies also to __write_libc. Our code must cover the case when funchook install fails @the-data-sherpa I will get back to You. |
Thank you for the quick work on providing the workaround. You are correct that |
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
- the funhook install can fail in scenario where systemd `MemoryDenyWriteExecute` setting is on ``` ...Attempts to create memory mappings that are writable and executable at the same time, or to change existing memory mappings to become executable, or mapping shared memory segments as executable, are prohibited... ``` Ref: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Closes: #1293
Steps To Reproduce
Install Redis
apt install redis -y
Fresh install of Appscope
https://appscope.dev/docs/downloading
Confirm Redis is running
redis 1218513 1 0 17:25 ? 00:00:00 /usr/bin/redis-server 127.0.0.1:6379
Attach Appscope to the process
Set value in Redis and cause Redis to crash (new PID)
Same behavior when using GET command for Redis
No issue when running commands without Appscope attached
From Redis-server.log
Environment
Requested priority
Medium
Relevant log output
No response
The text was updated successfully, but these errors were encountered: