Thank you Craig! Since your patch was accepted, this ticket is now resolved for me. I'll also mark my Ruby Github PR as resolved by your PR.aaron@serendipity.cx (Aaron Stone)
Normally a PR would be against trunk, but trunk has moved all Win32-specific code out of lib/securerandom.rb, so if the same problem exists on trunk it will require a different solution.aaron@serendipity.cx (Aaron Stone)
Between Ruby 2.1 and 2.2, lib/securerandom.rb was modified to assume that if /mswin|mingw/ =~ RUBY_PLATFORM then Win32 libraries are available. This is not true for a cross-compile environment, however. So the pre-Ruby-2.2 checks to use ...aaron@serendipity.cx (Aaron Stone)
In Ruby 2.2.0, the Win32API.new method fails when an Array is given for the import argument. In all previous versions, it can be either an Array or a String. The mistake occurred when Aaron Patterson converted to Fiddle and expected t...aaron@serendipity.cx (Aaron Stone)
The error also shows up here: https://github.com/iconara/cql-rb/issues/68 This is not an issue with the applications or the gems, or that eventmachine is written in C++. It's an MRI Ruby problem in the 2.0 implementation of Queue.pop,...aaron@serendipity.cx (Aaron Stone)
Note: Sidekiq does not appear to be using eventmachine, which has a similar bug at #9132. Any ideas on what is going on here? I can reproduce the bug from all releases of Ruby 2.0.0pxxx including 2.0.0p598.aaron@serendipity.cx (Aaron Stone)