History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1277
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ola Bini
Reporter: Alexey Verkhovsky
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
JRuby

Mongrel clashes with JVM for the right to handle SIGUSR1

Created: 17/Aug/07 01:16 AM   Updated: 22/Dec/07 06:26 AM
Component/s: JRuby-extras
Affects Version/s: JRuby 1.1+
Fix Version/s: JRuby 1.0.3, JRuby 1.1RC2

Time Tracking:
Not Specified

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'
Issue Links:
Duplicate
 


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Ola Bini - 17/Aug/07 06:09 PM
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.

Alexey Verkhovsky - 18/Aug/07 05:59 PM
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.

Uwe Kubosch - 13/Sep/07 10:34 AM
I am also seeing this on Fedora 7 Linux, every time.

Ola Bini - 19/Nov/07 03:37 AM
Fixed