You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test case crashes when compiled with gccgo. The parameter s is read from the wrong position on the stack. The problem is most likely that the empty struct field in large leads to a disagreement between the Go code and libffi.
The libffi library doesn't understand zero-sized objects.
When we see a zero-sized field in a struct, just skip it when
converting to the FFI data structures. There is no value to pass in
any case, so not telling libffi about the field doesn't affect
anything.
The test case for this is https://golang.org/cl/123316.
Fixesgolang/go#26335
Reviewed-on: https://go-review.googlesource.com/123335
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262651 138bc75d-0d04-0410-961f-82ee72b054a4
This test case crashes when compiled with gccgo. The parameter
s
is read from the wrong position on the stack. The problem is most likely that the empty struct field inlarge
leads to a disagreement between the Go code and libffi.The text was updated successfully, but these errors were encountered: