snoopy
snoopy copied to clipboard
Loading dynamic libraries causes core dump
Checklist before starting to submit this bug report
I confirm that:
- [X] I am submitting a bug report! :)
- [X] I have tested this with the latest stable Snoopy version (or the latest master build).
- [X] I have checked the FAQ.
- [X] I have read Snoopy's documentation here and here.
- [] I have searched Snoopy issues for an existing issue that matches my problem, and found none.
Bug description
I compiled the code into a dynamic library file locally and loaded the dynamic library through the cp command, but a segmentation error occurred when I used this command for the second time.
When something went wrong, there were disastrous consequences:
Bug reproduction steps
My debugging command is as follows:
strace \cp -pf /root/hids-wazuh_agent4.3.8_0.4.1_0731/tools/snoopy/libsnoopy.so* /usr/local/lib/
I think the cp command caused the so file to be truncated. I want to know how to ensure that replacing the so file is a safe operation in this environment where the process cannot be stopped and restarted.
Expected result
<FILLIN>
Actual result
<FILLIN>