Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6758445

loop heads that are exception entry points can crash during count_edges/mark_loops

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • hs14
    • hs10
    • hotspot
    • b08
    • sparc
    • solaris_9
    • Verified

        Ok, I've just attached the files...too complicated to find somewhere to put them..

        test.class is the class "ruby.test". jruby.jar is JRuby's jar. Run with:

        java -client -cp jruby.jar:. ruby.test

        (assuming you put the test.class in ./ruby)

        It should crash under any version of JDK 6 client compiler.

        I've also attached the Ruby source. If you want to just run it directly, and JRuby will compile it before run, do it like this:

        java -jar jruby.jar org.jruby.Main test.rb

        - Charlie
        $ok = true

        def getc
         if $ok
           $ok = false
           nil
         else
           $ok = true
           50
         end
        end

        def gets
         c = getc or return
         l = ""
         begin
           l.concat c unless c == "\r"
           break if c == "\n"
         end while c = getc
         l
        end

        loop { gets }

              never Tom Rodriguez
              never Tom Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: