Bug #3586
closedUsing Nokogiri-1.4.2 with ruby 1.9.2dev (2010-07-06 revision 28549) and Rails3.beta4
Description
=begin
This error occurs when I start the local rails server. I saw an error similar to this regarding Nokogiri mentioning this was a ruby problem, although I'm unsure. I apologize if it isn't.
=== CONSOLE OUTPUT ===
project tjk$ rails server
/Users/tjk/Desktop/project/mysql/gems/nokogiri-1.4.2/lib/nokogiri/nokogiri.bundle: [BUG] Segmentation fault
ruby 1.9.2dev (2010-07-06 revision 28549) [x86_64-darwin10.2.0]
-- control frame ----------
c:0030 p:-542383754 s:0093 b:0093 l:000092 d:000092 TOP
c:0029 p:---- s:0091 b:0091 l:000090 d:000090 CFUNC :require
c:0028 p:0012 s:0087 b:0087 l:000070 d:000086 BLOCK /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:212
c:0027 p:0005 s:0085 b:0085 l:000075 d:000084 BLOCK /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:198
c:0026 p:0046 s:0083 b:0083 l:000082 d:000082 METHOD /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:554
c:0025 p:0041 s:0076 b:0076 l:000075 d:000075 METHOD /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:198
c:0024 p:0013 s:0071 b:0071 l:000070 d:000070 METHOD /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:212
c:0023 p:0186 s:0066 b:0066 l:000065 d:000065 TOP /Users/tjk/Desktop/project/mysql/gems/nokogiri-1.4.2/lib/nokogiri.rb:13
c:0022 p:---- s:0064 b:0064 l:000063 d:000063 FINISH
c:0021 p:---- s:0062 b:0062 l:000061 d:000061 CFUNC :require
c:0020 p:0047 s:0058 b:0058 l:000040 d:000057 BLOCK /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:46
c:0019 p:---- s:0054 b:0054 l:000053 d:000053 FINISH
c:0018 p:---- s:0052 b:0052 l:000051 d:000051 CFUNC :each
c:0017 p:0026 s:0049 b:0049 l:000040 d:000048 BLOCK /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:41
c:0016 p:---- s:0046 b:0046 l:000045 d:000045 FINISH
c:0015 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC :each
c:0014 p:0052 s:0041 b:0041 l:000040 d:000040 METHOD /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:40
c:0013 p:0021 s:0036 b:0036 l:000035 d:000035 METHOD /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler.rb:89
c:0012 p:0079 s:0032 b:0032 l:000031 d:000031 TOP /Users/tjk/Desktop/project/config/application.rb:7
c:0011 p:---- s:0030 b:0030 l:000029 d:000029 FINISH
c:0010 p:---- s:0028 b:0028 l:000027 d:000027 CFUNC :require
c:0009 p:0016 s:0024 b:0024 l:000015 d:000023 BLOCK /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0.beta4/lib/rails/commands.rb:28
c:0008 p:---- s:0021 b:0021 l:000020 d:000020 FINISH
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :tap
c:0006 p:0456 s:0016 b:0016 l:000015 d:000015 TOP /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0.beta4/lib/rails/commands.rb:27
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require
c:0003 p:0061 s:0006 b:0006 l:001588 d:002448 EVAL script/rails:6
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001588 d:001588 TOP¶
-- Ruby level backtrace information ----------------------------------------
script/rails:6:in <main>' script/rails:6:in
require'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0.beta4/lib/rails/commands.rb:27:in <top (required)>' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0.beta4/lib/rails/commands.rb:27:in
tap'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0.beta4/lib/rails/commands.rb:28:in block in <top (required)>' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/railties-3.0.0.beta4/lib/rails/commands.rb:28:in
require'
/Users/tjk/Desktop/project/config/application.rb:7:in <top (required)>' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler.rb:89:in
gem_require'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:40:in require' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:40:in
each'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:41:in block in require' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:41:in
each'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:46:in block (2 levels) in require' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/bundler-0.9.26/lib/bundler/runtime.rb:46:in
require'
/Users/tjk/Desktop/project/mysql/gems/nokogiri-1.4.2/lib/nokogiri.rb:13:in <top (required)>' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:212:in
require'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:198:in load_dependency' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:554:in
new_constants_in'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:198:in block in load_dependency' /Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:212:in
block in require'
/Users/tjk/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/dependencies.rb:212:in `require'
-- C level backtrace information -------------------------------------------
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap
=end
Updated by tenderlovemaking (Aaron Patterson) almost 15 years ago
=begin
Hi TJ,
On Mon, Jul 19, 2010 at 01:30:41PM +0900, TJ Koblentz wrote:
Bug #3586: Using Nokogiri-1.4.2 with ruby 1.9.2dev (2010-07-06 revision 28549) and Rails3.beta4
http://redmine.ruby-lang.org/issues/show/3586Author: TJ Koblentz
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2010-07-06 revision 28549) [x86_64-darwin10.2.0]This error occurs when I start the local rails server. I saw an error similar to this regarding Nokogiri mentioning this was a ruby problem, although I'm unsure. I apologize if it isn't.
=== CONSOLE OUTPUT ===
project tjk$ rails server
/Users/tjk/Desktop/project/mysql/gems/nokogiri-1.4.2/lib/nokogiri/nokogiri.bundle: [BUG] Segmentation fault
It looks like you're using rvm. Did you make sure to install nokogiri
with 1.8 and 1.9 with rvm? Nokogiri will definitely break if you
compile it with 1.8 then try to use it with 1.9.
--
Aaron Patterson
http://tenderlovemaking.com/
Attachment: (unnamed)
=end
Updated by tjko (TJ Koblentz) almost 15 years ago
=begin
Hello Aaron,
Thanks for getting back to me. I have to head to work right now but as soon as I get back I'll look into this problem again. I think my error could stem from the fact that I attempted to package Nokogiri with Bundler even though it seems not to have Gemspec file...
When I get back I will install the gem separately and see if that eliminates the issue.
As far as mixing 1.9 and 1.8, for this particular case, I've been in 1.9.2dev the whole time.
Once again, thanks so much for getting back to me.
--
TJ
=end
Updated by tenderlovemaking (Aaron Patterson) almost 15 years ago
=begin
On Mon, Jul 19, 2010 at 11:59:04PM +0900, TJ Koblentz wrote:
Issue #3586 has been updated by TJ Koblentz.
Hello Aaron,
Thanks for getting back to me. I have to head to work right now but as soon as I get back I'll look into this problem again. I think my error could stem from the fact that I attempted to package Nokogiri with Bundler even though it seems not to have Gemspec file...
When I get back I will install the gem separately and see if that eliminates the issue.
As far as mixing 1.9 and 1.8, for this particular case, I've been in 1.9.2dev the whole time.
Once again, thanks so much for getting back to me.
No problem! Let us know what you find, and we'll make sure to get this
bug fixed.
--
Aaron Patterson
http://tenderlovemaking.com/
Attachment: (unnamed)
=end
Updated by akr (Akira Tanaka) almost 14 years ago
- Project changed from 8 to Ruby
Updated by naruse (Yui NARUSE) almost 14 years ago
- Status changed from Open to Closed