This project is archived and is in readonly mode.

#5020 ✓invalid
David Sedeño

mysql adapter: [BUG] unknown type 0x22 (0xc given)

Reported by David Sedeño | June 30th, 2010 @ 03:18 PM

Ruby version 1.9.2-preview3

Rails beta4

[2010-06-30 16:20:10] INFO WEBrick::HTTPServer#start: pid=20770 port=3001 /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:597: [BUG] unknown type 0x22 (0xc given) ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux]

-- control frame ---------- c:0046 p:---- s:0240 b:0240 l:000239 d:000239 CFUNC :real_connect
c:0045 p:0235 s:0230 b:0230 l:000229 d:000229 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:
c:0044 p:0048 s:0226 b:0226 l:000225 d:000225 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:
c:0043 p:---- s:0219 b:0219 l:000218 d:000218 FINISH
c:0042 p:---- s:0217 b:0217 l:000216 d:000216 CFUNC :new
c:0041 p:0339 s:0210 b:0210 l:000209 d:000209 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:
c:0040 p:0045 s:0197 b:0197 l:000196 d:000196 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0039 p:0011 s:0194 b:0194 l:000193 d:000193 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0038 p:0048 s:0190 b:0190 l:000176 d:000189 BLOCK /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0037 p:---- s:0187 b:0187 l:000186 d:000186 FINISH
c:0036 p:---- s:0185 b:0185 l:000184 d:000184 CFUNC :loop
c:0035 p:0009 s:0182 b:0182 l:000176 d:000181 BLOCK /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0034 p:0019 s:0180 b:0180 l:000179 d:000179 METHOD /home/david/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/monitor.rb:201
c:0033 p:0013 s:0177 b:0177 l:000176 d:000176 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0032 p:0047 s:0174 b:0171 l:000170 d:000170 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0031 p:0033 s:0167 b:0167 l:000166 d:000166 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0030 p:0018 s:0162 b:0162 l:000161 d:000161 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0029 p:0011 s:0159 b:0159 l:000158 d:000158 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0028 p:0043 s:0156 b:0156 l:000155 d:000155 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/query_cache.rb:11
c:0027 p:0019 s:0152 b:0152 l:001448 d:001448 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/query_cache.rb:30
c:0026 p:0015 s:0148 b:0148 l:000147 d:000147 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connecti
c:0025 p:0031 s:0144 b:0144 l:001010 d:000143 BLOCK /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:46
c:0024 p:0235 s:0142 b:0142 l:000141 d:000141 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activesupport-3.0.0.beta4/lib/active_support/callbacks.rb:414
c:0023 p:0024 s:0132 b:0132 l:000131 d:000131 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activesupport-3.0.0.beta4/lib/active_support/callbacks.rb:88
c:0022 p:0013 s:0126 b:0126 l:001010 d:001010 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:44
c:0021 p:0015 s:0122 b:0122 l:000121 d:000121 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/sendfile.rb:105
c:0020 p:0049 s:0112 b:0112 l:000111 d:000111 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/remote_ip.rb:48
c:0019 p:0015 s:0108 b:0108 l:000107 d:000107 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/show_exceptions.rb:48
c:0018 p:0027 s:0100 b:0100 l:000099 d:000099 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/rack/logger.rb:14
c:0017 p:0032 s:0096 b:0096 l:000095 d:000095 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/runtime.rb:17
c:0016 p:0052 s:0087 b:0087 l:000086 d:000086 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activesupport-3.0.0.beta4/lib/active_support/cache/strategy/local_cache.rb:72
c:0015 p:0014 s:0083 b:0083 l:000077 d:000082 BLOCK /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0014 p:0019 s:0081 b:0081 l:000080 d:000080 METHOD <internal:prelude>:10
c:0013 p:0054 s:0078 b:0078 l:000077 d:000077 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/lock.rb:11
c:0012 p:0193 s:0073 b:0073 l:000072 d:000072 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/static.rb:30
c:0011 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/application.rb:145
c:0010 p:0021 s:0062 b:0062 l:000061 d:000061 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/application.rb:81
c:0009 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/rack/log_tailer.rb:15
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD /home/david/.rvm/gems/ruby-1.9.2-preview3/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/david/.rvm/gems/ruby-1.9.2-preview3/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/david/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /home/david/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:0020cc d:000008 BLOCK /home/david/.rvm/rubies/ruby-1.9.2-preview3/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/david/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/server.rb:183:in block in start_thread' /home/david/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/httpserver.rb:70:inrun' /home/david/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/webrick/httpserver.rb:111:in service' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:inservice' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/content_length.rb:13:in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/rack/log_tailer.rb:15:incall' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/application.rb:81:in method_missing' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/application.rb:145:incall' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/static.rb:30:in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/lock.rb:11:incall' <internal:prelude>:10:in synchronize'<br/> /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/lock.rb:11:inblock in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activesupport-3.0.0.beta4/lib/active_support/cache/strategy/local_cache.rb:72:in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/runtime.rb:17:incall' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/railties-3.0.0.beta4/lib/rails/rack/logger.rb:14:in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/show_exceptions.rb:48:incall' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/remote_ip.rb:48:in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/rack-1.1.0/lib/rack/sendfile.rb:105:incall' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:44:in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activesupport-3.0.0.beta4/lib/active_support/callbacks.rb:88:inrun_callbacks' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activesupport-3.0.0.beta4/lib/active_support/callbacks.rb:414:in _run_call_callbacks' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/actionpack-3.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:46:inblock in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:365:in call' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/query_cache.rb:30:incall' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/query_cache.rb:11:in cache' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_specification.rb:95:inconnection' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_specification.rb:103:in retrieve_connection' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:330:inretrieve_connection' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:99:in connection' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:185:incheckout' /home/david/.rvm/rubies/ruby-1.9.2-preview3/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:186:inblock in checkout' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:186:in loop' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:190:inblock (2 levels) in checkout' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:248:in checkout_new_connection' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/abstract/connection_pool.rb:226:innew_connection' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:35:in mysql_connection' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:35:innew' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:163:in initialize' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:597:inconnect' /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/activerecord-3.0.0.beta4/lib/active_record/connection_adapters/mysql_adapter.rb:597:in real_connect'

-- C level backtrace information ------------------------------------------- /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby(rb_vm_bugreport+0xbd) [0x816f9fd] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81af991] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby(rb_bug+0x28) [0x81afa28] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby(rb_check_type+0xce) [0x81b0ace] /home/david/.rvm/gems/ruby-1.9.2-preview3/gems/mysql-2.8.1/lib/mysql_api.so [0xb703558d] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x815a58d] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x8162802] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x8163f14] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81695c4] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x815fb52] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby(rb_obj_call_init+0x42) [0x805dca2] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby(rb_class_new_instance+0x2a) [0x8099e9a] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x815a58d] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x8162802] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x8163f14] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81695c4] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x816b1bd] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby(rb_rescue2+0x141) [0x805dec1] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x815b394] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x8162802] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x8163f14] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81695c4] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x815fb52] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x816224a] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81626b3] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x8163f14] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81695c4] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby(rb_vm_invoke_proc+0x76) [0x8169db6] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81767e5] /home/david/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby [0x81768ce] /lib/tls/i686/cmov/libpthread.so.0 [0xb789d4ff] /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xb77b25ee]

Comments and changes to this ticket

  • José Valim

    José Valim June 30th, 2010 @ 03:57 PM

    • State changed from “new” to “invalid”
    • Importance changed from “” to “Low”

    Sorry, but this is not a Rails bug, but MySQL one. Unfortunately, I don't know a workaround.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages