Forum: Ruby on Rails rails 2.2.2 crash with a kernel protection failure

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
lmcdougall (Guest)
on 2009-02-08 22:19
(Received via mailing list)
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
Frederick C. (Guest)
on 2009-02-08 22:23
(Received via mailing list)
On Feb 8, 4:22 pm, lmcdougall <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
Luis M. (Guest)
on 2009-02-09 06:15
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
Frederick C. (Guest)
on 2009-02-09 10:39
(Received via mailing list)
On Feb 9, 4:15 am, Luis M. <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.
Todd S. (Guest)
on 2009-02-18 10:19
(Received via mailing list)
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>
Luis M. (Guest)
on 2009-02-18 16:41
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>

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
Todd S. (Guest)
on 2009-02-18 23:21
(Received via mailing list)
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>
Todd S. (Guest)
on 2009-02-18 23:43
(Received via mailing list)
Well it appears there is one more gem I needed to reinstall: 'rake.'
Now it works.

Of course, now I have another issue... Ugh.
Luis M. (Guest)
on 2009-02-19 01:25
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
This topic is locked and can not be replied to.