Skip to content

windows: avoid runtime crash in fromSysTime #10720

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

Closed
wants to merge 1 commit into from

Conversation

marler8997
Copy link
Contributor

@marler8997 marler8997 commented Jan 29, 2022

NOTE: currently a draft because I may have a fix for the root cause soon

A workaround for issue #10719. Removes the temporary i128 local variable adjusted_epoch which prevents a segfault from occuring on my machine. It's unclear as to why. See issue #10719 for more details.

While I was editing this function I also added a bit of clarity in the doc comment to make it clear that "file time" was referring the SysTime in the function name fromSysTime.

@marler8997 marler8997 force-pushed the windowsSysTime branch 5 times, most recently from b728c41 to bd824dd Compare January 29, 2022 09:31
@marler8997 marler8997 marked this pull request as ready for review January 29, 2022 09:38
A workaround for issue ziglang#10719.  Removes the temporary i128 local variable `adjusted_epoch` which prevents the segfault from occuring.  It's unclear as to why. See issue ziglang#10719 for more details.
@marler8997 marler8997 marked this pull request as draft January 29, 2022 21:39
@marler8997
Copy link
Contributor Author

Closing in favor of the real fix here: #10729

@marler8997 marler8997 closed this Jan 30, 2022
@marler8997 marler8997 deleted the windowsSysTime branch January 30, 2022 03:13
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.

1 participant