{"issue":{"title":"Weird segfaults when running the tutorial code on Linux","created_at":"2011-12-23T05:58:54Z","milestone":null,"user":{"id":20201,"login":"icco","url":"https://api.github.com/users/icco","avatar_url":"https://secure.gravatar.com/avatar/229e3746f6f5100c1d7d5d7a8a5b82d5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"229e3746f6f5100c1d7d5d7a8a5b82d5"},"updated_at":"2011-12-23T07:02:36Z","labels":[],"state":"closed","id":2644880,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-23T07:02:36Z","html_url":"https://github.com/jlnr/gosu/issues/111","body":"Specifically Ubuntu Maverick (10.10 I think...).\r\n\r\nExecuting [the tutorial](https://github.com/jlnr/gosu/blob/master/examples/Tutorial.rb) or [the chipmunk tutorial](https://github.com/jlnr/gosu/blob/master/examples/ChipmunkIntegration.rb) both end in similar segfaults.\r\n\r\nRuby 1.9.2\r\n\r\nThis is the output from ChipmunkIntegration.rb\r\n\r\n    game.rb:134: [BUG] Segmentation fault\r\n    ruby 1.9.2p136 (2010-12-25 revision 30365) [i686-linux]\r\n    \r\n    -- control frame ----------\r\n    c:0008 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC  :initialize\r\n    c:0007 p:---- s:0024 b:0024 l:000023 d:000023 CFUNC  :new\r\n    c:0006 p:0063 s:0018 b:0018 l:000017 d:000017 METHOD game.rb:134\r\n    c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH\r\n    c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC  :new\r\n    c:0003 p:0133 s:0007 b:0007 l:0005b4 d:0021c8 EVAL   game.rb:277\r\n    c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH\r\n    c:0001 p:0000 s:0002 b:0002 l:0005b4 d:0005b4 TOP   \r\n    ---------------------------\r\n    -- Ruby level backtrace information ----------------------------------------\r\n    game.rb:277:in `<main>'\r\n    game.rb:277:in `new'\r\n    game.rb:134:in `initialize'\r\n    game.rb:134:in `new'\r\n    game.rb:134:in `initialize'\r\n    \r\n    -- C level backtrace information -------------------------------------------\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(rb_vm_bugreport+0x72) [0x289a22]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x53637) [0x163637]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(rb_bug+0x3a) [0x16372a]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x106ae4) [0x216ae4]\r\n    [0xd0540c]\r\n    /home/nat/.rvm/gems/ruby-1.9.2-p136/gems/gosu-0.7.41/lib/gosu.so(+0x5ff5e) [0x4d3f5e]\r\n    /home/nat/.rvm/gems/ruby-1.9.2-p136/gems/gosu-0.7.41/lib/gosu.so(_ZN4Gosu13loadImageFileERNS_6BitmapERKSbIwSt11char_traitsIwESaIwEE+0x6f) [0x4d415f]\r\n    /home/nat/.rvm/gems/ruby-1.9.2-p136/gems/gosu-0.7.41/lib/gosu.so(_ZN4Gosu10loadBitmapERNS_6BitmapEm+0xac) [0x49814c]\r\n    /home/nat/.rvm/gems/ruby-1.9.2-p136/gems/gosu-0.7.41/lib/gosu.so(+0x2487a) [0x49887a]\r\n    /home/nat/.rvm/gems/ruby-1.9.2-p136/gems/gosu-0.7.41/lib/gosu.so(+0x24c11) [0x498c11]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x163d58) [0x273d58]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x17031f) [0x28031f]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(rb_obj_call_init+0x50) [0x165870]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(rb_class_new_instance+0x3a) [0x1b403a]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x163d58) [0x273d58]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x17474e) [0x28474e]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x169692) [0x279692]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x16eac8) [0x27eac8]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x170262) [0x280262]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(rb_obj_call_init+0x50) [0x165870]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(rb_class_new_instance+0x3a) [0x1b403a]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x163d58) [0x273d58]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x17474e) [0x28474e]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x169692) [0x279692]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x16eac8) [0x27eac8]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(rb_iseq_eval_main+0x1f5) [0x27eef5]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(+0x55efa) [0x165efa]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(ruby_exec_node+0x25) [0x165f35]\r\n    /home/nat/.rvm/rubies/ruby-1.9.2-p136/lib/libruby.so.1.9(ruby_run_node+0x35) [0x167745]\r\n    ruby(main+0x68) [0x8048748]\r\n    /lib/libc.so.6(__libc_start_main+0xe7) [0x32dce7]\r\n    ruby() [0x8048641]\r\n    \r\n    [NOTE]\r\n    You may have encountered a bug in the Ruby interpreter or extension libraries.\r\n    Bug reports are welcome.\r\n    For details: http://www.ruby-lang.org/bugreport.html\r\n    \r\n    aborted\r\n\r\nI'll see if I can narrow it down to something more specific.","number":111,"url":"https://api.github.com/repos/jlnr/gosu/issues/111","comments":2,"assignee":null},"comment":{"created_at":"2011-12-23T07:02:35Z","user":{"id":20201,"login":"icco","url":"https://api.github.com/users/icco","avatar_url":"https://secure.gravatar.com/avatar/229e3746f6f5100c1d7d5d7a8a5b82d5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"229e3746f6f5100c1d7d5d7a8a5b82d5"},"updated_at":"2011-12-23T07:02:35Z","id":3258578,"body":"Nevermind, I'm an idiot. Forgot the media folder... #facepalm.","url":"https://api.github.com/repos/jlnr/gosu/issues/comments/3258578"},"action":"created"}