Bug 161551 - lang/ruby19 fails to handle a signal (TERM, HUP, etc)
Summary: lang/ruby19 fails to handle a signal (TERM, HUP, etc)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 18:50 UTC by Andrey Cherkashin
Modified: 2011-12-29 22:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherkashin 2011-10-13 18:50:09 UTC
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-10-14 22:15:43 UTC
Responsible Changed
From-To: freebsd-bugs->stas

make this a ports PR, fix synopsis, and assign.
Comment 2 Thomas Abthorpe freebsd_committer freebsd_triage 2011-11-05 04:13:34 UTC
Responsible Changed
From-To: stas->freebsd-ports-bugs

- back to the heap
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2011-11-12 02:39:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ruby

over to ruby
Comment 4 Steve Wills freebsd_committer freebsd_triage 2011-12-29 02:38:25 UTC
Responsible Changed
From-To: ruby->swills

I'll take it.
Comment 5 Steve Wills freebsd_committer freebsd_triage 2011-12-29 02:39:41 UTC
Hi,

I believe this is fixed in the latest update to lang/ruby19 (Ruby
1.9.3). Can you please verify?

Thanks,
Steve
Comment 6 Steve Wills freebsd_committer freebsd_triage 2011-12-29 02:40:48 UTC
State Changed
From-To: open->feedback

- Waiting on feedback
Comment 7 Andrey Cherkashin 2011-12-29 02:44:49 UTC
Yes, now it works. But what about 1.8.7?
Comment 8 Steve Wills freebsd_committer freebsd_triage 2011-12-29 03:38:33 UTC
On 12/28/11 22:20, Andrey Cherkashin wrote:
> The following reply was made to PR ports/161551; it has been noted by GNATS.
> 
> From: Andrey Cherkashin <andoriyu@gmail.com>
> To: bug-followup@FreeBSD.org,
>  andoriyu@gmail.com
> Cc:  
> Subject: Re: ports/161551: lang/ruby19 fails to handle a signal (TERM, HUP, etc)
> Date: Wed, 28 Dec 2011 18:44:49 -0800
> 
>  Yes, now it works. 

Great!

> But what about 1.8.7?

What about it? Are you saying 1.8.7 has this problem too? If so, I can
only recommend using 1.9.3 instead and see this as another reason we
need to move to 1.9 as the default version of Ruby.

Steve
Comment 9 Steve Wills freebsd_committer freebsd_triage 2011-12-29 22:28:54 UTC
State Changed
From-To: feedback->closed

User reports issue is fixed.