-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
STATUS_STACK_BUFFER_OVERRUN on Windows 11 when using rust-lld with dylib #100519
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesA-linkersArea: linkers... you gotta love linkersArea: linkers... you gotta love linkersC-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsS-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesA-linkersArea: linkers... you gotta love linkersArea: linkers... you gotta love linkersC-bugCategory: This is a bug.Category: This is a bug.O-windowsOperating system: WindowsOperating system: WindowsS-needs-reproStatus: This issue has no reproduction and needs a reproduction to make progress.Status: This issue has no reproduction and needs a reproduction to make progress.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
On Windows 11 when linking a
dylibwhich usesXInput1_4.dllusingrust-lldthe compiled binary will crash will a message:STATUS_STACK_BUFFER_OVERRUN.This issue was originally reported on Bevy project: bevyengine/bevy#2921
Here is a minimal example that reproduces the error: https://github.com/afonsolage/xinput_link_example
The error won't happens when using MSVC
link.exeMeta
rustc --version --verbose:Windows version: