This project is archived and is in readonly mode.
Segmentation fault in ActiveSupport::Multibyte::UnicodeDatabase on MRI 1.8.7-p248
-
Seth Ladd
I just ran into this. I have the same version of Ruby (installed via rvm) on a Mac OS X Leopard machine.
-
Seth Ladd
Looks like all you can do for now is downgrade to ruby-1.8.7-p174
-
Anthony Eden
Have you tried going to ruby-1.8.7-p249? I just tried:
~ [ruby-1.8.7-p249]$ irb -rubygems ruby-1.8.7-p249 > require 'active_support'
=> true ruby-1.8.7-p249 > ActiveSupport::Multibyte::UnicodeDatabase.new.codepoints
=> {6148=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4b48 @code=6148, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 10247=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4af8 @code=10247, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 43039=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4b98 @code=43039, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 67633=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4be8 @code=67633, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 194702=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4d50 @code=194702, @decomp_mapping=[24266], @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 4099=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4968 @code=4099, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>,... etc ... -
Anthony Eden
Have you tried going to ruby-1.8.7-p249? I just tried:
~ [ruby-1.8.7-p249]$ irb -rubygems ruby-1.8.7-p249 > require 'active_support'
=> true ruby-1.8.7-p249 > ActiveSupport::Multibyte::UnicodeDatabase.new.codepoints
=> {6148=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4b48 @code=6148, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 10247=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4af8 @code=10247, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 43039=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4b98 @code=43039, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 67633=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4be8 @code=67633, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 194702=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4d50 @code=194702, @decomp_mapping=[24266], @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>, 4099=>#<ActiveSupport::Multibyte::Codepoint:0x1018d4968 @code=4099, @decomp_mapping=nil, @decomp_type=nil, @lowercase_mapping=0, @combining_class=0, @uppercase_mapping=0>,... etc ... -
Rhett Sutphin
I still see the problem with 1.8.7-p249. What platform are you using, Anthony?
-
Denis Odorcic
I can confirm that I get this problem all the time as well in 1.8.7-p249 and 248. I use the same setups as you guys as well.
-
Jeremy Kemper
- State changed from new to wontfix
Sorry about this, but it's a Ruby issue. Please do raise it on http://redmine.ruby-lang.org/
-
Rhett Sutphin
- Tag changed from 1.8.7, crash, ruby to 1.8.7, crash, documentation, ruby
Per the original report, it has been reported at ruby-lang: http://redmine.ruby-lang.org/issues/show/2557 .
I appreciate that it's not something that can be fixed in rails, but given that 3.0 is going to be 1.8.7+ and that AS segfaults on a popular platform for rails development on the current release of 1.8.7, it seems like something you'd want to list in the release notes.
-
Jeremy Kemper
Definitely for the release notes. This is unfortunate :(
Do you get the same crash on Rails 2.3? On git master?
-
Rhett Sutphin
I had done my testing on master, so yes to that. I just tried 2-3-stable and it segfaults the same way there.
-
Jeremy Kemper
Thanks for verifying, Rhett. Pretty major regression.
-
Jeremy Kemper
Look like all we need is a new 1.8.7 release, since it's fixed in ruby svn already. Whew!
-
Rhett Sutphin
- Tag changed from 1.8.7, crash, documentation, ruby to os x, 1.8.7, crash, documentation, ruby
it's fixed in ruby svn already
Would that it were so. With a just-installed 1.8.7 from SVN HEAD (rvm's 1.8.7-head), I still get the segfault on OS X.
On the bright side, I finally got around to trying this on something other than OS X. The segfault does not occur on Ubuntu (kernel version 2.6.28-18-server) with 1.8.7-p249. Seems like it is OS X-only.