-
Notifications
You must be signed in to change notification settings - Fork 15
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
Debug package repository to avoid GDB: "this=<optimized out>" #157
Comments
Since upgraded to 2.11 I also had crashes with references to GDB, report output:
|
Hello @bunghi and thank you for reporting! Please could you open a separate issue? This one is not about a particular crash, but about debugging crashes in general. Best, |
Already here: Icinga/icinga2#7532 |
@bunghi As mentioned the linked issue, yours is different. New issue please. @Al2Klimov As noted over at GitLab, I don't think that's a good idea. For immediate development tests, you may use branches and artifacts, for the long run, we should discuss with @lippserd whether we want a dedicated repository with debug packages. They run slower (in some regions 10 times slower with an increased memory overhead) and do not qualify for test environments or customer tests. |
Sure, I could misuse our GitLab for making packages for my private setup, but others can't. |
... so +1 for (possibly extra) debug packages. |
Or even better: public Docker images to be run with a local Icinga 2 Git repo mounted in which automatically build packages. |
I don't really see the use case for these packages. If we are debugging something ourselves or some user is with our help, we can also build these packages on demand. I mean what are the odds that some user is really debugging on their own on a level where they are fiddling around in GDB and miss debug information, but are not able to build icinga2 themselves? So in my opinion, it would be enough to have something like "for debug packages, uncomment the following lines" somewhere in our source packages. |
I've spotted a crash and v2.11 even helped me reproducing it by letting it occur more often (destiny's irony).
However even with the snapshots I hit the breakpoint, but get this:
Please could you build the snapshots with
-O0
,-Og
,-g
or similar so nothing gets optimized out?The text was updated successfully, but these errors were encountered: