Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JRuby 1.6RC2
    • Component/s: None
    • Labels:
      None
    • Environment:
      jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-07-14 b7f083a) (Java HotSpot(TM) Client VM 1.6.0_10) [x86-java]
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      def go
      sleep
      end
      def go2
      sleep
      end
      Thread.new

      { go }

      Thread.new

      { go2 }

      sleep 1
      p Thread.list.map(&:backtrace)

      This code should output 3 different backtraces.
      Instead I get:

      C:\dev\ruby>c:\dev\ruby\downloads\jruby\bin\jruby --1.9 jruby_bug.rb
      [["jruby_bug.rb:10:in `<main>'"], ["jruby_bug.rb:10:in `<main>'"], ["jruby_bug.rb:10:in `<main>'"]]

      Thanks!

        Activity

        Hide
        Thomas E Enebo added a comment -

        Fixed in commit b3e5d47.

        Show
        Thomas E Enebo added a comment - Fixed in commit b3e5d47.

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Roger Pack
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: