Unicorn failed to handle signals

Eric Wong normalperson at yhbt.net
Fri Oct 7 02:35:47 EDT 2011

(please don't send the same message twice in a short time period)

Andrey Cherkashin <andoriyu at gmail.com> wrote:
> I have a problem with unicorn and signals.
> FreeBSD freebsd 9.0-BETA3 FreeBSD 9.0-BETA3 #0 r225816+a1b6562: Thu Sep 29 06:46:06 PDT 2011     root at freebsd:/sys/i386/compile/XEN  i386
> ruby 1.9.2p290 (2011-07-09 revision 32553) [i386-freebsd9.0]
> unicorn (4.1.1)

> Every time when I trying to send a signal (HUP, TERM, etc) I get this:
> Illegal instruction: 4 (core dumped) I have no idea how to deal with
> core dump, so here it is: http://www.misprint.org.ru/ruby.core

You can run gdb on it:

$ gdb /path/to/ruby /path/to/core

Then type "bt" to get a backtrace and you can learn other commands.

I suspect this is a bug somewhere in FreeBSD 9.0 BETA3 itself, and
not Unicorn or Ruby.

Can you test some simple scripts using trap?

Something along the lines of:
---------------------- 8< ---------------------
trap(:HUP) do
  puts "HUP received"
puts "#$$ ready to receive SIGHUP"


More information about the mongrel-unicorn mailing list