Skip to content

Instantly share code, notes, and snippets.

@shawn42
Created March 19, 2010 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawn42/95d3ccc14fd8fdc1febf to your computer and use it in GitHub Desktop.
Save shawn42/95d3ccc14fd8fdc1febf to your computer and use it in GitHub Desktop.
shawn42@bits ~/code/ffi-allegro (git::master) $ ruby -Ilib examples/simple_window.rb
examples/simple_window.rb:13: [BUG] Segmentation fault
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0]
-- control frame ----------
c:0010 p:---- s:0034 b:0034 l:000033 d:000033 CFUNC :start
c:0009 p:0017 s:0031 b:0031 l:000030 d:000030 METHOD examples/simple_window.rb:13
c:0008 p:---- s:0022 b:0022 l:000021 d:000021 FINISH
c:0007 p:---- s:0020 b:0020 l:000e20 d:000019 IFUNC :require
c:0006 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :call
c:0005 p:---- s:0016 b:0016 l:000015 d:000015 CFUNC :call
c:0004 p:0016 s:0011 b:0011 l:000010 d:000010 METHOD (eval):6
c:0003 p:0156 s:0006 b:0006 l:001aa8 d:001458 EVAL examples/simple_window.rb:78
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001aa8 d:001aa8 TOP
---------------------------
examples/simple_window.rb:13: [BUG] object allocation during garbage collection phase
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0]
-- control frame ----------
c:0010 p:---- s:0034 b:0034 l:000033 d:000033 CFUNC :start
c:0009 p:0017 s:0031 b:0031 l:000030 d:000030 METHOD examples/simple_window.rb:13
c:0008 p:---- s:0022 b:0022 l:000021 d:000021 FINISH
c:0007 p:---- s:0020 b:0020 l:000e20 d:000019 IFUNC :require
c:0006 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :call
c:0005 p:---- s:0016 b:0016 l:000015 d:000015 CFUNC :call
c:0004 p:0016 s:0011 b:0011 l:000010 d:000010 METHOD (eval):6
c:0003 p:0156 s:0006 b:0006 l:001aa8 d:001458 EVAL examples/simple_window.rb:78
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001aa8 d:001aa8 TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
examples/simple_window.rb:13:in `start'
examples/simple_window.rb:13:in `run'
(eval):6:in `call'
(eval):6:in `call'
(eval):6:in `al_run_main'
examples/simple_window.rb:78:in `<main>'
-- C level backtrace information -------------------------------------------
0x100109ebd 0 ruby 0x0000000100109ebd rb_vm_bugreport + 77
0x100028694 1 ruby 0x0000000100028694 report_bug + 260
0x100028828 2 ruby 0x0000000100028828 rb_bug + 200
0x10003b4fb 3 ruby 0x000000010003b4fb rb_newobj + 203
0x1000050cf 4 ruby 0x00000001000050cf ary_alloc + 15
0x100005193 5 ruby 0x0000000100005193 ary_new + 35
0x1000f9b60 6 ruby 0x00000001000f9b60 rb_make_backtrace + 48
0x100109ea0 7 ruby 0x0000000100109ea0 rb_vm_bugreport + 48
0x100028694 8 ruby 0x0000000100028694 report_bug + 260
0x100028828 9 ruby 0x0000000100028828 rb_bug + 200
0x1000b44d4 10 ruby 0x00000001000b44d4 sigsegv + 132
0x7fff806f5eaa 11 libSystem.B.dylib 0x00007fff806f5eaa _sigtramp + 26
0x0 12 ??? 0x0000000000000000 0x0 + 0
0x10003a57c 13 ruby 0x000000010003a57c mark_current_machine_context + 124
0x10003a6fc 14 ruby 0x000000010003a6fc garbage_collect + 332
0x10003b1c0 15 ruby 0x000000010003b1c0 rb_gc + 16
0x10003b1d9 16 ruby 0x000000010003b1d9 rb_gc_start + 9
0x1000fa214 17 ruby 0x00000001000fa214 vm_call_cfunc + 340
0x1000fbae0 18 ruby 0x00000001000fbae0 vm_call_method + 896
0x1000fca2c 19 ruby 0x00000001000fca2c vm_exec_core + 3180
0x100101cc3 20 ruby 0x0000000100101cc3 vm_exec + 1203
0x100103c30 21 ruby 0x0000000100103c30 vm_call0 + 624
0x10002ecd6 22 ruby 0x000000010002ecd6 rb_method_call + 406
0x10002f9de 23 ruby 0x000000010002f9de bmcall + 206
0x100103923 24 ruby 0x0000000100103923 rb_vm_invoke_proc + 1123
0x100103d11 25 ruby 0x0000000100103d11 vm_call0 + 849
0x1000fb3d8 26 ruby 0x00000001000fb3d8 rb_funcall2 + 296
0x1002beecc 27 ffi_c.bundle 0x00000001002beecc callback_invoke + 668
0x1002c7310 28 ffi_c.bundle 0x00000001002c7310 ffi_closure_unix64_inner + 1240
0x1002c74fe 29 ffi_c.bundle 0x00000001002c74fe ffi_closure_unix64 + 70
0x7fff8359ee99 30 Foundation 0x00007fff8359ee99 __NSThread__main__ + 1429
0x7fff806cef8e 31 libSystem.B.dylib 0x00007fff806cef8e _pthread_start + 331
0x7fff806cee41 32 libSystem.B.dylib 0x00007fff806cee41 thread_start + 13
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment