Skip to content
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

Windows: Dynamically link Boost DLLs (avoid static linking) and ship them in sbin/ #7478

Closed
wants to merge 1 commit into from

Conversation

dnsmichi
Copy link
Contributor

@dnsmichi dnsmichi commented Sep 6, 2019

This comes with the motivation to avoid bundling Boost context
into our main binary. Whenever the context library allocates
stack memory, or does something weird, we want to see this
in the stack traces as origin from an external DLL and not the
main icinga2.exe binary.

TL;DR - this doesn't solve #7431 but makes debugging and development
a bit more easy. And it follows the Windows approach with DLLs.

…them in sbin/

This comes with the motivation to avoid bundling Boost context
into our main binary. Whenever the context library allocates
stack memory, or does something weird, we want to see this
in the stack traces as origin from an external DLL and not the
main icinga2.exe binary.

TL;DR - this doesn't fix #7431 but makes debugging and development
a bit more easy. And it follows the Windows approach with DLLs.
@dnsmichi dnsmichi added this to the 2.11.0 milestone Sep 6, 2019
@dnsmichi dnsmichi added area/setup Installation, systemd, sample files area/windows Windows agent and plugins core/quality Improve code, libraries, algorithms, inline docs labels Sep 6, 2019
@dnsmichi
Copy link
Contributor Author

dnsmichi commented Sep 6, 2019

Thanks to @LordHepipud for the inspiration 👍

@dnsmichi
Copy link
Contributor Author

dnsmichi commented Sep 9, 2019

Has no direct impact on the issue.

The tests currently fail because they do not find the DLLs in the build installation directory in debug\Bin\Debug\Debug.

@dnsmichi
Copy link
Contributor Author

It doesn't have an influence on the Windows crash itself, and requires build chain changes. As such, I'll look into this after 2.11 has been released. Therefore moved to 2.12.

@dnsmichi dnsmichi modified the milestones: 2.11.0, 2.12.0 Sep 12, 2019
@dnsmichi dnsmichi modified the milestones: 2.12.0, 2.13.0 Oct 8, 2019
@dnsmichi dnsmichi added the stalled Blocked or not relevant yet label Nov 15, 2019
@dnsmichi dnsmichi removed this from the 2.13.0 milestone Nov 15, 2019
@dnsmichi
Copy link
Contributor Author

dnsmichi commented Feb 7, 2020

Does not add to the solution, and I don't see any benefit in the future either.

@dnsmichi dnsmichi closed this Feb 7, 2020
@dnsmichi dnsmichi removed the stalled Blocked or not relevant yet label Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/setup Installation, systemd, sample files area/windows Windows agent and plugins core/quality Improve code, libraries, algorithms, inline docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant