# Rails 2.2.2 crash with a kernel protection failure

**URL:** <https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787>\
**Category:** Rails\
**Created:** [February 8, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787 "2009-02-08T21:19:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 8, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/1 "2009-02-08T21:19:51Z")

</div>

I am using OS X 10.5.6 gem 1.3.1 and ruby ruby 1.8.7 (2008-08-11  
patchlevel 72) [i686-darwin9.6.0]  
This is the firs time I am trying rails (ever).

At the shell I am trying rails blog and I get

/Library/Ruby/Gems/1.8/gems/hpricot-0.6.164/lib/universal-java1.6/  
fast\_xs.bundle: [BUG] Bus Error  
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]

Abort trap

on a popup I get ruby quit unexpectedly.

EXEC\_BAD\_ACCESS(SIGABRT)  
KERN\_PROTECTION\_FAILURE at  
0x00000000

Can someone pleas give me some direction on how to solve this problem.

Thank you all  
-L

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 8, 2009, 9:23pm UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/2 "2009-02-08T21:23:22Z")

</div>

On Feb 8, 4:22 pm, lmcdougall [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am using OS X 10.5.6 gem 1.3.1 and ruby ruby 1.8.7 (2008-08-11  
> patchlevel 72) [i686-darwin9.6.0]  
> This is the firs time I am trying rails (ever).

As a random guess, perhaps the version of fast\_xs you have was  
compiled against a previous version of ruby (eg the 1.8.6 version that  
comes with OS X). Try removing the hpricot gem and reinstalling it.

Fred

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 9, 2009, 5:15am UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/3 "2009-02-09T05:15:35Z")

</div>

Frederick C. wrote:

> As a random guess, perhaps the version of fast\_xs you have was  
> compiled against a previous version of ruby (eg the 1.8.6 version that  
> comes with OS X). Try removing the hpricot gem and reinstalling it.
> 
> Fred

Thanks Fred!  
That did the trick.

But now Iam getting :  
script/server  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.bundle:  
[BUG] Bus Error  
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]

Abort trap

I did run update\_rubygems before this error. Is that means I have to  
manually remove each gem? That would sound a bit expensive!

-Luis

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 9, 2009, 9:39am UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/4 "2009-02-09T09:39:23Z")

</div>

On Feb 9, 4:15 am, Luis M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> But now Iam getting :  
> script/server  
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1. 8/gems/fcgi-0.8.7/lib/fcgi.bundle:  
> [BUG] Bus Error  
> ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]
> 
> Abort trap
> 
> I did run update\_rubygems before this error. Is that means I have to  
> manually remove each gem? That would sound a bit expensive!

only those with a native C component. gem may have a handy shortcut  
for that, don’t know off the top of my head.

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 18, 2009, 9:19am UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/5 "2009-02-18T09:19:50Z")

</div>

Luis,

Did you ever figure this out? I am in the same boat.

Todd

On Feb 9, 1:38 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 18, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/6 "2009-02-18T22:21:05Z")

</div>

Hi Luis,

I did remove and reinstall each gem. It worked fine and only took a  
few minutes.

Now I have a new issue I hope someone can help me out with. I am  
tried to upgrade from source (which I think may have been a mistake,  
but it’s what I’m used to).

I can get the server to start but when I run ‘rake’ I get the  
following.

rake aborted!  
Cipher is not a class  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/  
1.8/openssl/cipher.rb:22  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’  
_snip_

I am guessing that, like my gems, the openssl lib is not compatible  
with 1.8.7. Furthermore, Ruby is still looking in /System/Library/  
Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8 for libraries.

Is this an issue? Is there an easy way to fix this openssl issue or  
do more problems await me down the road? More generally, can I do a  
clean, new install with the libs in, say, /usr/lib/ruby that way I  
know that everything is up-to-date and compatible?

Thanks,  
Todd

On Feb 18, 7:41 am, Luis M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 18, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/7 "2009-02-18T15:41:04Z")

</div>

Todd Siegel wrote:

> Luis,
> 
> Did you ever figure this out? I am in the same boat.
> 
> Todd
> 
> On Feb 9, 1:38ï¿½am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Todd,

I did try to research by looking into the forums but no one came with a  
better  
answer than Freds one.  
Since I was not in the mood to is one by one and I have other equipment  
I can use in the meanwhile, I resorted to a drastic solution.

Todd, this is probably not what you want to hear but is what I did:

1. Clone my internal disk to an external
2. Re install (wipe clean first) Leopard
3. Got all Leopard updates installed
4. Used supper duper to create a “virgin backup” using sandbox.
5. Migrate the user from the clone .  
Now I can start playing with the installation and if something goes  
wrong I can restore that sandbox  
and go back to safe point.

The other options is to keep an eye on this post, I am starting to make  
the Ruby and Rails upgrade today to see if I can come up with a better  
technical solution.  
I will post my finding.

Good luck  
-Luis

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 18, 2009, 10:43pm UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/8 "2009-02-18T22:43:30Z")

</div>

Well it appears there is one more gem I needed to reinstall: ‘rake.’  
Now it works.

Of course, now I have another issue… Ugh.

---

<div class="post-metadata">

**Author:** ![lmcdougall](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Post date:** [February 19, 2009, 12:25am UTC](https://www.ruby-forum.com/t/rails-2-2-2-crash-with-a-kernel-protection-failure/159787/9 "2009-02-19T00:25:44Z")

</div>

Todd Siegel wrote:

> Well it appears there is one more gem I needed to reinstall: ‘rake.’  
> Now it works.
> 
> Of course, now I have another issue… Ugh.

Todd, so far so good.  
I got all of my gems installed and it is working.

I guess that you like me and others have being updating incrementally.  
One of my updates  
got messed up and that started the chain of events. At least that was my  
case.

-Luis
