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.
Responsible Changed From-To: freebsd-bugs->stas make this a ports PR, fix synopsis, and assign.
Responsible Changed From-To: stas->freebsd-ports-bugs - back to the heap
Responsible Changed From-To: freebsd-ports-bugs->ruby over to ruby
Responsible Changed From-To: ruby->swills I'll take it.
Hi, I believe this is fixed in the latest update to lang/ruby19 (Ruby 1.9.3). Can you please verify? Thanks, Steve
State Changed From-To: open->feedback - Waiting on feedback
Yes, now it works. But what about 1.8.7?
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
State Changed From-To: feedback->closed User reports issue is fixed.