-
Notifications
You must be signed in to change notification settings - Fork 30k
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 build doesn't work on Windows #25593
Comments
cc @nodejs/platform-windows |
Confirmed. Line 121 in 17c6b1d
|
They are already in the dependency order, aren't they? |
I think there is something more subtle that is related to I found my patch: #25596 |
The static init order thing is irrelevant, they are all in the same translation unit here. |
That's a usage, not a definition. |
Are we sure those two lines are not part of some other static construction? Line 121 in 17c6b1d
|
Based on grepping the source code for |
Narrowing it down was easy, I just pressed F5 and saw that the I'm now trying to come up with a minimal test case. |
From
I wonder if |
@seishun I think this means that |
Correct, this is from the |
Too difficult, the bug disappears when removing random lines. Is there someone in the Visual Studio team we could ping here? |
Andrew moved to Facebook. We can submit an issue to https://developercommunity.visualstudio.com/spaces/62/index.html they are much more responsive then they used to be. |
PR-URL: nodejs#25596 Fixes: nodejs#25593 Refs: https://developercommunity.visualstudio.com/content/problem/432157/dynamic-initializers-out-of-order.html Reviewed-By: Bartosz Sosnowski <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: #25596 Fixes: #25593 Refs: https://developercommunity.visualstudio.com/content/problem/432157/dynamic-initializers-out-of-order.html Reviewed-By: Bartosz Sosnowski <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs#26280 Fixes: nodejs#25593 Reviewed-By: Joyee Cheung <[email protected]>
* header explicit usage, order, and reduce use of `*-inl.h` * pointer -> const reference when possible * no variable recyclicng * `std::begin/end` prefered over `instance.begin/end` * `USE` for explicit unused resaults PR-URL: nodejs#26280 Fixes: nodejs#25593 Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: #26280 Fixes: #25593 Reviewed-By: Joyee Cheung <[email protected]>
* header explicit usage, order, and reduce use of `*-inl.h` * pointer -> const reference when possible * no variable recyclicng * `std::begin/end` prefered over `instance.begin/end` * `USE` for explicit unused resaults PR-URL: #26280 Fixes: #25593 Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: nodejs#26280 Fixes: nodejs#25593 Reviewed-By: Joyee Cheung <[email protected]>
* header explicit usage, order, and reduce use of `*-inl.h` * pointer -> const reference when possible * no variable recyclicng * `std::begin/end` prefered over `instance.begin/end` * `USE` for explicit unused resaults PR-URL: nodejs#26280 Fixes: nodejs#25593 Reviewed-By: Joyee Cheung <[email protected]>
Backport-PR-URL: #26649 PR-URL: #26280 Fixes: #25593 Reviewed-By: Joyee Cheung <[email protected]>
* header explicit usage, order, and reduce use of `*-inl.h` * pointer -> const reference when possible * no variable recyclicng * `std::begin/end` prefered over `instance.begin/end` * `USE` for explicit unused resaults Backport-PR-URL: #26649 PR-URL: #26280 Fixes: #25593 Reviewed-By: Joyee Cheung <[email protected]>
* header explicit usage, order, and reduce use of `*-inl.h` * pointer -> const reference when possible * no variable recyclicng * `std::begin/end` prefered over `instance.begin/end` * `USE` for explicit unused resaults Backport-PR-URL: #26649 PR-URL: #26280 Fixes: #25593 Reviewed-By: Joyee Cheung <[email protected]>
A debug build built using
vcbuild debug
and the latest VS2017 exits immediately. It seems to be a compiler bug: theEnvironmentOptionsParser
instance is initialized before theDebugOptionsParser
instance, causing a segfault. I would like someone to confirm the issue before I continue looking into it.The text was updated successfully, but these errors were encountered: