Skip to content

[Runtime][Win32] Fix fatalError() backtraces. #75108

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

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Jul 9, 2024

We were calling SymInitialize() multiple times, which is wrong, which was making the SymbolInfo::lookup() call fail. Also, we weren't fetching the module names, so we should do that too.

rdar://130992923

We were calling `SymInitialize()` multiple times, which is wrong, which
was making the `SymbolInfo::lookup()` call fail.  Also, we weren't
fetching the module names, so we should do that too.

rdar://130992923
@al45tair al45tair requested a review from mikeash as a code owner July 9, 2024 17:52
@al45tair al45tair requested review from compnerd, mikeash and grynspan and removed request for mikeash July 9, 2024 17:52
@al45tair
Copy link
Contributor Author

al45tair commented Jul 9, 2024

@swift-ci Please smoke test

Prefer `ZeroMemory()` to `::memset()` here.

Use `sizeof(*wszBuffer)` instead of `sizeof(WCHAR)`, just in case.

Don't use `*this=other`, because that motivates tests around `::free()`,
but instead pull the shared code out into some private functions.

Also, fix `SymbolInfo()` to initialize the pointer members.

rdar://130992923
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair requested review from compnerd and grynspan July 10, 2024 11:24
Fix an unused variable warning in `Errors.cpp`.

Use brace initialization syntax in `SymbolInfo.cpp` rather than using
a constructor call.

rdar://130992923
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair enabled auto-merge July 11, 2024 10:54
@al45tair al45tair merged commit e2c7ec6 into swiftlang:main Jul 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants