JRuby

Mongrel clashes with JVM for the right to handle SIGUSR1

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.x+
  • Fix Version/s: JRuby 1.0.3, JRuby 1.1RC2
  • Component/s: JRuby-extras
  • Labels:
    None
  • Environment:
    JRuby trunk, rev 4178
    JVM 1.6.0-b105
    Ubuntu 7.0 desktop
    mongrel-1.0.1-jruby.gem
    Rails 1.2.3
    skeleton Rails app produced by 'rails foo'
  • Number of attachments :
    0

Description

run jruby script/server webrick - everything starts and works fine and dandy
run jruby script/server mongrel - exception is thrown when Mongrel tries to set up a signal handler for USR1

relevant bits of the stack trace:

Signal.java:149:in `sun.misc.Signal.handle': java.lang.IllegalArgumentException: Signal already used by VM: SIGUSR1 (NativeException)
...
from Main.java:96:in `org.jruby.Main.main'
from /home/alexeyv/src/jruby/jruby/lib/ruby/gems/1.8/gems/mongrel-1.0.1-jruby/lib/mongrel/configurator.rb:362:in `setup_signals'
...

JVM handles USR1 itself. I tried passing java a -XX:+UseAltSigs option, but it didn't help.

Issue Links

Activity

Hide
Ola Bini added a comment -

I'm not seeing this. JRuby trunk and several revisions back. Same Rails and mongrel. I'm on MacOS X. Works with both Java 1.5 and 1.6.

Show
Ola Bini added a comment - I'm not seeing this. JRuby trunk and several revisions back. Same Rails and mongrel. I'm on MacOS X. Works with both Java 1.5 and 1.6.
Hide
Alexey Verkhovsky added a comment -

I'm seeing it all the time though (on Ubuntu). Had to comment out Mongrel's signal-handlers initialization so that I ca run it at all.

Show
Alexey Verkhovsky added a comment - I'm seeing it all the time though (on Ubuntu). Had to comment out Mongrel's signal-handlers initialization so that I ca run it at all.
Hide
Uwe Kubosch added a comment -

I am also seeing this on Fedora 7 Linux, every time.

Show
Uwe Kubosch added a comment - I am also seeing this on Fedora 7 Linux, every time.
Hide
Ola Bini added a comment -

Fixed

Show
Ola Bini added a comment - Fixed

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: