Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2011 17:44:09 GMT
From:      Andrey Cherkashin <andoriyu@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/161551: Ruby 1.9.2 fails to handle a signal (TERM, HUP, etc)
Message-ID:  <201110131744.p9DHi9Lx047635@red.freebsd.org>
Resent-Message-ID: <201110131750.p9DHo9FI018974@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         161551
>Category:       misc
>Synopsis:       Ruby 1.9.2 fails to handle a signal (TERM, HUP, etc)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 13 17:50:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Cherkashin
>Release:        FreeBSD 9.0-BETA3
>Organization:
>Environment:
FreeBSD freebsd 9.0-BETA3 FreeBSD 9.0-BETA3 #0 r225816+a1b6562: Thu Sep 29 06:46:06 PDT 2011     root@freebsd:/sys/i386/compile/XEN  i386
>Description:
When you start a ruby daemon, and sending a signal (i.e. HUP) RubyVM fails with:
Illegal instruction: 4 (core dumped)

System ruby (from ports) works fine. Meanwhile ruby installed from rvm doesn't.
>How-To-Repeat:
Run this ruby script:
trap(:HUP) do
  puts "HUP received"
end
puts "#$$ ready to receive SIGHUP"
sleep

And send hip signal.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110131744.p9DHi9Lx047635>