i’m investigating chef-client segfault on FreeBSD. it’s hard to reproduce
the issue but it happens often, saying “[BUG] Bus Error”. it usually happens
somewhere in lib/chef/mixin/command/unix.rb.
ruby -v: ruby 1.8.7 (2011-06-30 patchlevel 352) [amd64-freebsd8]
uname -smr: FreeBSD 8.2-RELEASE-p1 amd64
so i built ruby with WITH_DEBUG=y, CFLAGS=-O0 and no strip. after 24 hours,
if you have similar issue, try disabling optimization. add the following to
/etc/make.conf and rebuild the port.
CFLAGS= -O -pipe