Project

General

Profile

Bug #4182

Possible Ruby1.9.2/Sqlite3 bug when used with Rails 2.3.8 and TOG 0.6

Added by alexbottoni (Alessandro Bottoni) over 9 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]
Backport:
[ruby-core:33797]

Description

=begin
I installed RVM 1.1.6, Ruby 1.9.2, RubyGems 1.3.7 , Rails 2.3.9 and tog 0,6 (http://www.toghq.com/) on LinuxMint 10 Julia. I generated a TOG project with this command line:

rails 2.3.8 hello_tog -m http://tr.im/tog_current

So far, all worked fine. I accessed localhost:3000 and clicked on "About your application's environment" and I got this error message:

alex@laptop $ ./script/server=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-12-21 15:53:26] INFO WEBrick 1.3.1
[2010-12-21 15:53:26] INFO ruby 1.9.2 (2010-08-18) [i686-linux]
[2010-12-21 15:53:26] INFO WEBrick::HTTPServer#start: pid=25337 port=3000
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:13: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

-- control frame ----------
c:0043 p:---- s:0211 b:0211 l:000210 d:000210 CFUNC :initialize
c:0042 p:---- s:0209 b:0209 l:000208 d:000208 CFUNC :new
c:0041 p:0082 s:0204 b:0204 l:000203 d:000203 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:13
c:0040 p:0045 s:0199 b:0199 l:000198 d:000198 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:22
c:0039 p:0011 s:0196 b:0196 l:000195 d:000195 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:24
c:0038 p:0048 s:0192 b:0192 l:000178 d:000191 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:18
c:0037 p:---- s:0189 b:0189 l:000188 d:000188 FINISH
c:0036 p:---- s:0187 b:0187 l:000186 d:000186 CFUNC :loop
c:0035 p:0009 s:0184 b:0184 l:000178 d:000183 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:18
c:0034 p:0019 s:0182 b:0182 l:000181 d:000181 METHOD /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201
c:0033 p:0013 s:0179 b:0179 l:000178 d:000178 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:18
c:0032 p:0047 s:0176 b:0173 l:000172 d:000172 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:98
c:0031 p:0033 s:0169 b:0169 l:000168 d:000168 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:32
c:0030 p:0018 s:0164 b:0164 l:000163 d:000163 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specificat
c:0029 p:0011 s:0161 b:0161 l:000160 d:000160 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specificat
c:0028 p:0043 s:0158 b:0158 l:000157 d:000157 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9
c:0027 p:0019 s:0154 b:0154 l:002300 d:002300 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28
c:0026 p:0015 s:0150 b:0150 l:000149 d:000149 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:36
c:0025 p:0015 s:0146 b:0146 l:000145 d:000145 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25
c:0024 p:0015 s:0139 b:0139 l:000138 d:000138 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/head.rb:9
c:0023 p:0155 s:0132 b:0132 l:000131 d:000131 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/methodoverride.rb:24
c:0022 p:0046 s:0126 b:0126 l:000125 d:000125 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15
c:0021 p:0078 s:0121 b:0121 l:000120 d:000120 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99
c:0020 p:0015 s:0111 b:0111 l:000110 d:000110 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26
c:0019 p:0014 s:0106 b:0106 l:000100 d:000105 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0018 p:0019 s:0104 b:0104 l:000103 d:000103 METHOD internal:prelude:10
c:0017 p:0054 s:0101 b:0101 l:000100 d:000100 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0016 p:0024 s:0096 b:0096 l:000086 d:000095 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114
c:0015 p:0040 s:0094 b:0094 l:000093 d:000093 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34
c:0014 p:0038 s:0087 b:0087 l:000086 d:000086 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108
c:0013 p:0193 s:0083 b:0083 l:000082 d:000082 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/static.rb:31
c:0012 p:0167 s:0076 b:0076 l:000063 d:000075 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:47
c:0011 p:---- s:0069 b:0069 l:000068 d:000068 FINISH
c:0010 p:---- s:0067 b:0067 l:000066 d:000066 CFUNC :each
c:0009 p:0064 s:0064 b:0064 l:000063 d:000063 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:41
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/content_length.rb:13
c:0006 p:0331 s:0042 b:0042 l:000041 d:000041 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:00091c d:000008 BLOCK /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP


-- Ruby level backtrace information ----------------------------------------
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in
service'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/content_length.rb:13:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in
each'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in block in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in
run'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in block in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11:in
call'
internal:prelude:10:in synchronize'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11:in
block in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/head.rb:9:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in cache'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in
connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in retrieve_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
retrieve_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in
checkout'
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
block in checkout'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in loop'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in
block (2 levels) in checkout'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in checkout_new_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in
new_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in sqlite3_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in
new'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in `initialize'

-- C level backtrace information -------------------------------------------
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_vm_bugreport+0x72) [0xc67262]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x534a7) [0xb414a7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_bug+0x3a) [0xb4159a]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_check_type+0xbd) [0xb417cd]
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/sqlite3-ruby-1.3.2/lib/sqlite3/sqlite3_native.so(+0x36d7) [0x7ed6d7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x163868) [0xc51868]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16fdf0) [0xc5ddf0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_obj_call_init+0x50) [0xb436e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_class_new_instance+0x3a) [0xb91dea]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x163868) [0xc51868]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x173fc7) [0xc61fc7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x169199) [0xc57199]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16e5e0) [0xc5c5e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x1717f4) [0xc5f7f4]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_rescue2+0x169) [0xb43ab9]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x164b55) [0xc52b55]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16384d) [0xc5184d]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x173fc7) [0xc61fc7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x169199) [0xc57199]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16e5e0) [0xc5c5e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_yield+0x62) [0xc5f362]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_ary_each+0x52) [0xb0f3a2]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16384d) [0xc5184d]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x173fc7) [0xc61fc7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x169199) [0xc57199]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16e5e0) [0xc5c5e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_vm_invoke_proc+0x2e1) [0xc5d8a1]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x17f210) [0xc6d210]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x17f322) [0xc6d322]
/lib/libpthread.so.0(+0x5cc9) [0x115cc9]
/lib/libc.so.6(clone+0x5e) [0x5dc69e]

[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

Annullato
alex@laptop ~/Projects/hello_tog $

Sqlite 3 was installed via RubyGems:

gem install sqlite3-ruby

Reported as suggested.
=end

#1

Updated by alexbottoni (Alessandro Bottoni) over 9 years ago

=begin
Same problem with MySQL, as well:

alex@laptop ~/Projects/hello_tog $ gem install mysql

alex@laptop ~/Projects/hello_tog $ script/server=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-12-21 17:07:24] INFO WEBrick 1.3.1
[2010-12-21 17:07:24] INFO ruby 1.9.2 (2010-08-18) [i686-linux]
[2010-12-21 17:07:24] INFO WEBrick::HTTPServer#start: pid=26362 port=3000
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:619: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

-- control frame ----------
c:0046 p:---- s:0242 b:0242 l:000241 d:000241 CFUNC :real_connect
c:0045 p:0235 s:0232 b:0232 l:000231 d:000231 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:619
c:0044 p:0048 s:0228 b:0228 l:000227 d:000227 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:203
c:0043 p:---- s:0221 b:0221 l:000220 d:000220 FINISH
c:0042 p:---- s:0219 b:0219 l:000218 d:000218 CFUNC :new
c:0041 p:0299 s:0212 b:0212 l:000211 d:000211 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:75
c:0040 p:0045 s:0199 b:0199 l:000198 d:000198 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:22
c:0039 p:0011 s:0196 b:0196 l:000195 d:000195 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:24
c:0038 p:0048 s:0192 b:0192 l:000178 d:000191 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:18
c:0037 p:---- s:0189 b:0189 l:000188 d:000188 FINISH
c:0036 p:---- s:0187 b:0187 l:000186 d:000186 CFUNC :loop
c:0035 p:0009 s:0184 b:0184 l:000178 d:000183 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:18
c:0034 p:0019 s:0182 b:0182 l:000181 d:000181 METHOD /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201
c:0033 p:0013 s:0179 b:0179 l:000178 d:000178 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:18
c:0032 p:0047 s:0176 b:0173 l:000172 d:000172 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:98
c:0031 p:0033 s:0169 b:0169 l:000168 d:000168 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:32
c:0030 p:0018 s:0164 b:0164 l:000163 d:000163 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specificat
c:0029 p:0011 s:0161 b:0161 l:000160 d:000160 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specificat
c:0028 p:0043 s:0158 b:0158 l:000157 d:000157 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9
c:0027 p:0019 s:0154 b:0154 l:000e18 d:000e18 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28
c:0026 p:0015 s:0150 b:0150 l:000149 d:000149 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:36
c:0025 p:0015 s:0146 b:0146 l:000145 d:000145 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25
c:0024 p:0015 s:0139 b:0139 l:000138 d:000138 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/head.rb:9
c:0023 p:0155 s:0132 b:0132 l:000131 d:000131 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/methodoverride.rb:24
c:0022 p:0046 s:0126 b:0126 l:000125 d:000125 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15
c:0021 p:0078 s:0121 b:0121 l:000120 d:000120 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99
c:0020 p:0015 s:0111 b:0111 l:000110 d:000110 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26
c:0019 p:0014 s:0106 b:0106 l:000100 d:000105 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0018 p:0019 s:0104 b:0104 l:000103 d:000103 METHOD internal:prelude:10
c:0017 p:0054 s:0101 b:0101 l:000100 d:000100 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0016 p:0024 s:0096 b:0096 l:000086 d:000095 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114
c:0015 p:0040 s:0094 b:0094 l:000093 d:000093 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34
c:0014 p:0038 s:0087 b:0087 l:000086 d:000086 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108
c:0013 p:0193 s:0083 b:0083 l:000082 d:000082 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/static.rb:31
c:0012 p:0167 s:0076 b:0076 l:000063 d:000075 BLOCK /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:47
c:0011 p:---- s:0069 b:0069 l:000068 d:000068 FINISH
c:0010 p:---- s:0067 b:0067 l:000066 d:000066 CFUNC :each
c:0009 p:0064 s:0064 b:0064 l:000063 d:000063 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:41
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/content_length.rb:13
c:0006 p:0331 s:0042 b:0042 l:000041 d:000041 METHOD /home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:001dfc d:000008 BLOCK /home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP


-- Ruby level backtrace information ----------------------------------------
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread'
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
run'
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in
service'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/content_length.rb:13:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in
each'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in block in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in
run'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in block in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11:in
call'
internal:prelude:10:in synchronize'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/lock.rb:11:in
block in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.1.0/lib/rack/head.rb:9:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in
call'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in cache'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in
connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in retrieve_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
retrieve_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in
checkout'
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
block in checkout'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in loop'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in
block (2 levels) in checkout'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in checkout_new_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in
new_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:75:in mysql_connection'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:75:in
new'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:203:in initialize'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:619:in
connect'
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:619:in `real_connect'

-- C level backtrace information -------------------------------------------
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_vm_bugreport+0x72) [0xf41262]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x534a7) [0xe1b4a7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_bug+0x3a) [0xe1b59a]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_check_type+0xbd) [0xe1b7cd]
/home/alex/.rvm/gems/ruby-1.9.2-p0/gems/mysql-2.8.1/lib/mysql_api.so(+0xf66d) [0x51366d]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x163868) [0xf2b868]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x173fc7) [0xf3bfc7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x169199) [0xf31199]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16e5e0) [0xf365e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16fd3a) [0xf37d3a]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_obj_call_init+0x50) [0xe1d6e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_class_new_instance+0x3a) [0xe6bdea]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x163868) [0xf2b868]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x173fc7) [0xf3bfc7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x169199) [0xf31199]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16e5e0) [0xf365e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x1717f4) [0xf397f4]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_rescue2+0x169) [0xe1dab9]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x164b55) [0xf2cb55]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16384d) [0xf2b84d]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x173fc7) [0xf3bfc7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x169199) [0xf31199]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16e5e0) [0xf365e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_yield+0x62) [0xf39362]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_ary_each+0x52) [0xde93a2]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16384d) [0xf2b84d]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x173fc7) [0xf3bfc7]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x169199) [0xf31199]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x16e5e0) [0xf365e0]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(rb_vm_invoke_proc+0x2e1) [0xf378a1]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x17f210) [0xf47210]
/home/alex/.rvm/rubies/ruby-1.9.2-p0/lib/libruby.so.1.9(+0x17f322) [0xf47322]
/lib/libpthread.so.0(+0x5cc9) [0x44ccc9]
/lib/libc.so.6(clone+0x5e) [0x21269e]

[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

Annullato
alex@laptop ~/Projects/hello_tog $

Here my MySQL version:
$ mysql --version
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i686) using readline 6.1

Here my database.yml:

development:
adapter: mysql
database: railsapp_development
username: root
password: mypwd
host: localhost

=end

#2

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Rejected

=begin
You use an extension library for ruby 1.8 with ruby 1.9.

=end

Also available in: Atom PDF