1. 06 Mar, 2016 2 commits
    • Kouhei Sutou's avatar
      Fix segmentation fault by backtrace and GC · f1eb3aea
      Kouhei Sutou authored
      GitHub: fix #3122
      
      It reverts #3126. #3126 fixes the segmentation fault but generates
      broken backtrace.
      
      This change fixes the segmentation fault and generates correct
      backtrace. The strategy of this change is "generating backtrace while
      irep is alive".
      
      /tmp/test.rb:
          def gen
            e0 = nil
            begin
              1.times {
                raise 'foobar'
              }
            rescue => e
              e0 = e
            end
            e0
          end
      
          e = gen
          GC.start
          gen
          GC.start
      
          puts e.backtrace.join("\n")
      
      Run:
      
          % bin/mruby /tmp/test.rb
          /tmp/test.rb:5:in Object.gen
          /home/kou/work/ruby/mruby.kou/mrblib/numeric.rb:77:in Integral#times
          /tmp/test.rb:4:in Object.gen
          /tmp/test.rb:13
      
      FYI:
      
          % ruby -v /tmp/test.rb
          ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu]
          /tmp/test.rb:5:in `block in gen'
          /tmp/test.rb:4:in `times'
          /tmp/test.rb:4:in `gen'
          /tmp/test.rb:13:in `<main>'
      f1eb3aea
    • Kouhei Sutou's avatar
      Revert "Merge pull request #3126 from jbreeden/backtrace_irep_null_check" · d77c72da
      Kouhei Sutou authored
      This reverts commit bf7719fe, reversing
      changes made to 4f4fa0ad.
      
      We should get backtrace while irep is alive.
      d77c72da
  2. 05 Mar, 2016 3 commits
  3. 29 Feb, 2016 1 commit
  4. 26 Feb, 2016 1 commit
  5. 24 Feb, 2016 2 commits
  6. 22 Feb, 2016 2 commits
  7. 19 Feb, 2016 1 commit
  8. 17 Feb, 2016 3 commits
  9. 16 Feb, 2016 3 commits
  10. 15 Feb, 2016 2 commits
  11. 11 Feb, 2016 13 commits
  12. 10 Feb, 2016 2 commits
  13. 05 Feb, 2016 3 commits
  14. 04 Feb, 2016 2 commits