#44 ✓invalid
Jonah Fox

GC error ?

Reported by Jonah Fox | July 18th, 2008 @ 04:05 AM

I keep getting the following (in Rails)

Assertion failure: !rt->gcRunning, at jsgc.c:1737

Trace/BPT trap

It seems to occur after a second web request

I'm doing something like :

def transist event

johnson = Johnson::Runtime.new

js_scripts = ... load files

johnson.evaluate(js_scripts)

end

is this incorrect ?

Comments and changes to this ticket

  • Ripta Pasay

    Ripta Pasay July 20th, 2008 @ 02:44 PM

    • Assigned user cleared.
    • Tag set to gc, osx, spidermonkey

    The assertion failure seems to only happen when the second request doesn't use Johnson::Runtime, but the first does. For example,

    class HomeController < ApplicationController
      
      def index
      end
      
      def johnson
        js = Johnson::Runtime.new
        render :text => js.evaluate("new Date()")
      end
      
    end
    

    The behavior I'm consistently seeing is:

    • Requesting /home/index (zero or more times), and then /home/johnson (one or more times) completes without any error.
    • Requesting /home/johnson (one or more times), then /home/index errors out when /home/index is requested.

    I've only tested this on OS X 10.4 running Rails 2.1.0 and latest Johnson (July 6, 2008) on ruby 1.8.6-pl0.

    The ruby backtrace is attached.

    Let me know how I can help.

  • Ripta Pasay

    Ripta Pasay July 20th, 2008 @ 02:52 PM

    Oops... I guess I cleared the assigned field, and Lighthouse ain't telling me who it was assigned to originally. Sigh.

  • Jonah Fox

    Jonah Fox July 21st, 2008 @ 02:10 AM

    This is the exact error I am seeing,

  • Jonah Fox

    Jonah Fox July 21st, 2008 @ 09:54 AM

    I also occasionally see :

    /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285: [BUG] Segmentation fault

    ruby 1.8.6 (2008-03-03) [universal-darwin9.0]

    Abort trap

    It seems to happen in place of the assertion failure.

  • John Barnette

    John Barnette July 21st, 2008 @ 09:59 AM

    • Assigned user set to “Aaron Patterson”

    Shooting this over to AP, since he was looking for it.

  • Jonah Fox

    Jonah Fox July 22nd, 2008 @ 01:50 AM

    OK - more info

    Tried in Merb (mongrel) - no failure.

    Tried in Rails with Thin backend - no failure.

    so it looks like it's something to do with mongrel on Rails

    weird ?

  • Jonah Fox

    Jonah Fox August 17th, 2008 @ 09:00 AM

    New info - not sure if it helps, but Johnson doesn't crash when running on Passenger.

    So that's just mongrel/rails where it crashes.

    J

  • John Barnette

    John Barnette July 29th, 2009 @ 02:33 PM

    • State changed from “new” to “invalid”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Attachments

Pages