Here is the output of running Ruby.app/Contents/MacOS/Ruby -- at the moment I have only this Mac and this OS X at my disposal, but as soon as I can I'll try with a different Mac or with a OS X VM.
/Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu/swig_patches.rb:19: [BUG] Illegal instruction at 0x0000010c7107d6
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin11.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
-- Control frame information -----------------------------------------------
c:0006 p:---- s:0026 e:000025 CFUNC :initialize
c:0005 p:0097 s:0019 e:000018 METHOD /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu/swig_patches.rb:19
c:0004 p:0012 s:0010 e:000009 METHOD /Users/alessandro/Downloads/Ruby.app/Contents/Resources/main.rb:5 [FINISH]
c:0003 p:---- s:0007 e:000006 CFUNC :new
c:0002 p:0037 s:0004 E:000750 EVAL /Users/alessandro/Downloads/Ruby.app/Contents/Resources/main.rb:24 [FINISH]
c:0001 p:0000 s:0002 E:001ab0 TOP [FINISH]
-- Ruby level backtrace information ----------------------------------------
/Users/alessandro/Downloads/Ruby.app/Contents/Resources/main.rb:24:in
<main>'
/Users/alessandro/Downloads/Ruby.app/Contents/Resources/main.rb:24:in
new'
/Users/alessandro/Downloads/Ruby.app/Contents/Resources/main.rb:5:in
initialize'
/Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu/swig_patches.rb:19:in
initialize'
/Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu/swig_patches.rb:19:in
initialize'
-- Machine register context ------------------------------------------------
rax: 0x0000000000000001 rbx: 0x000000010aff1630 rcx: 0x00000001020b49b0
rdx: 0x000000000000a150 rdi: 0x0000000105d94568 rsi: 0x000000010ae43400
rbp: 0x00007fff5fbfbbd0 rsp: 0x00007fff5fbfbac0 r8: 0x0000000000000004
r9: 0x000000010aff19d0 r10: 0x000000000c015806 r11: 0x000000010af00000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x000000010af8a010
r15: 0x00007fff5fbfbac0 rip: 0x000000010c7107d6 rfl: 0x0000000000010246
-- C level backtrace information -------------------------------------------
0 libruby.2.2.0.dylib 0x0000000100275089 rb_print_backtrace + 25
1 libruby.2.2.0.dylib 0x00000001002751bc rb_vm_bugreport + 172
2 libruby.2.2.0.dylib 0x000000010006b429 rb_bug_context + 457
3 libruby.2.2.0.dylib 0x00000001001a892d sigill + 93
4 libsystem_platform.dylib 0x000000010723752a _sigtramp + 26
5 gosu.bundle 0x000000010c7107d6 Cocoa_InitModes + 231
6 ??? 0x00007fff042717c0 0x0 + 140733263058880
-- Other runtime information -----------------------------------------------
* Loaded script: /Users/alessandro/Downloads/Ruby.app/Contents/Resources/main.rb
* Loaded features:
0 enumerator.so
1 rational.so
2 complex.so
3 rubygems.rb
4 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/enc/encdb.bundle
5 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/enc/trans/transdb.bundle
6 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/unicode_normalize.rb
7 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/rbconfig.rb
8 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu.bundle
9 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu/swig_patches.rb
10 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu/patches.rb
11 /Users/alessandro/Downloads/Ruby.app/Contents/Resources/lib/gosu.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
Don't forget to include the above Crash Report log file.
For details:
http://www.ruby-lang.org/bugreport.htmlAbort trap: 6`