-
Notifications
You must be signed in to change notification settings - Fork 362
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
seg-fault in v1.8 release #294
Comments
Can you share any surrounding code? Looks a bit like Apps are trying to be deleted twice. Is this a drop in replacement for 1.7, or have you started making 1.8 related changes? |
the code starts brand new and the the CLI11.hpp is a copy from the release page. The seg-fault issue is not always reproducible. The code snippet looks like below:
|
what is the code around line 478?, just want to make sure that is the end of the main function, not somewhere in the middle. |
I'm at a workshop at NYU and didn't bring my computer (not intentionally), so can't check yet, will be high priority when I get back. Have you triggered it with the code snippet above? What platform are you on? Linux gcc? |
You are not storing any subcommands in smart pointers, are you? Just making sure. They are internally in smart pointers and get deleted for you. Just a thought. |
|
Ouch. I’d like to find out what is happening so you don’t have to leave the App leaking. Can you stick a msg in the destructor of App (include the name, since subcommands are Apps) and see if it runs twice when not leaked? I have one idea I’ll check when I can. Are you doing anything else “interesting” with subcommands the the real code? |
Thanks. I will do it when available. No, I don’t do anything fancy related to subcommand. The code I show here is exactly the structure and usage in my prod code |
This is probably related to my application in which there is memory overrun problem elsewhere. Will keep monitoring if the crash happens again. Thanks ! |
Let me know if it turns out to be related to CLI11! |
Tried using v1.8 release (the single CLI11.hpp file) in my project, got seg-fault, the following is the trace.
The text was updated successfully, but these errors were encountered: