-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement debug symbol generation during the build process for Windows. #21733
Comments
Update 03-22-2024 |
ETA is delayed as work was being done on the issue wazuh-keystore directories are being created for agents #22616 with very high priority. |
Managed to extract debug information from a debug Windows executable compiled in Linux with -g flag, but only in a machine with Visual Studio installed. Failed to extract debug info in a clean VM. |
cv2pdb returns an error if Visual Studio is not installed. Seems to be looking for missing libraries. Installation instructions mention a version (10) of the libraries that were part of VS2010, which has been discontinued by Microsoft, both for support and even for download. Looking for a way to get a clean, matching set of these libraries or a way to use newer ones (current version is 14). |
@aritosteles Which actual version of the community edition is needed? 2022 or 2019 it's ok? |
2019 works. We should try and see if the VC++ 2019 redistributable does the trick (instead of a full VS installation). |
As requested in issue 1004, by management decision, Visual Studio Community 2022 will be installed to prevent errors because of missing dependencies. |
Status: Finished writing standalone powershell script to extract debug information using cv2pdb. |
Description
Currently, Windows packages generated do not include debug symbols, which can hinder debugging efforts when issues arise. This issue aims to implement the necessary steps to generate packages with debug symbols for Windows installer packages.
Proposed Solution
Research guidelines
NOTE: This is not a step-by-step process, but a research kickoff.
Prequisites: Windows >= 8.1
make TARGET=winagent DEBUG=yes .
$ & "C:\Program Files (x86)\VisualD\cv2pdb\cv2pdb.exe" "C:\Program Files (x86)\ossec-agent\ossec-agent.exe" "C:\Program Files (x86)\ossec-agent\ossec-agent.exe"
Definition of Done
The text was updated successfully, but these errors were encountered: