-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix segfaults in release build C-variadic fns #58985
Conversation
@alexreg #58980 is actually very similar to that ICE I hit towards the end of the development of the original PR. I took the wrong route in fixing it which allows the segfault to happen. The segfault occurs because the "spoofed" |
6abae8c
to
1c47274
Compare
`va_start` and `va_end` must be called to initialize/cleanup the "spoofed" `VaList` in a Rust defined C-variadic function even if the `VaList` is not used.
@bors r+ p=1 fixes feature that is broken in release mode |
📌 Commit 1d72037 has been approved by |
🌲 The tree is currently closed for pull requests below priority 500, this pull request will be tested once the tree is reopened |
☀️ Test successful - checks-travis, status-appveyor |
va_start
andva_end
must be called to initialize/cleanup the"spoofed"
VaList
in a Rust defined C-variadic function even ifthe
VaList
is not used.r? @alexreg
Fixes: #58980