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
With a 64-bit Windows build of Ruby (ruby 2.1.0p0 (2013-12-25 revision 44422) [x64-mswin64_120]), just starting irb segfaults when calling GetConsoleScreenBufferInfo.
The Fiddle signatures for winapi calls are wrong. They treat pointers and handles as 32-bit values: Parameters are declared using "L" (long) but should be "P", and an "S" parameter pointer is unpacked using "l!" but should use "q!".
The text was updated successfully, but these errors were encountered:
I personally don't have a mswin build, can you reproduce this with
mingw-w64 one?
Patches to correct this are welcome :-)
Sorry for top posting. Sent from mobile.
On Jan 10, 2014 12:13 PM, "Nico Rieck" [email protected] wrote:
With a 64-bit Windows build of Ruby (ruby 2.1.0p0 (2013-12-25 revision
44422) [x64-mswin64_120]), just starting irb segfaults when calling
GetConsoleScreenBufferInfo.
The Fiddle signatures for winapi calls are wrong. They treat pointers and
handles as 32-bit values: Parameters are declared using "L" (long) but
should be "P", and an "S" parameter pointer is unpacked using "l!" but
should use "q!".
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/99
.
This is Windows 8 and x64-mswin64 specific issue.
You should use DL::PackInfo::PACK_MAP[DL::TYPE_VOIDP] instead of "l!"
Refer to https://bugs.ruby-lang.org/issues/7492
With a 64-bit Windows build of Ruby (ruby 2.1.0p0 (2013-12-25 revision 44422) [x64-mswin64_120]), just starting irb segfaults when calling GetConsoleScreenBufferInfo.
The Fiddle signatures for winapi calls are wrong. They treat pointers and handles as 32-bit values: Parameters are declared using "L" (long) but should be "P", and an "S" parameter pointer is unpacked using "l!" but should use "q!".
The text was updated successfully, but these errors were encountered: