Created
April 4, 2011 10:13
-
-
Save hh/901415 to your computer and use it in GitHub Desktop.
Pass in what should be a string as a symbol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm use 1.9.2@arfail | |
Using /Users/codecafe/.rvm/gems/ruby-1.9.2-p180 with gemset arfail | |
$ gem install sqlite3 activerecord | |
Fetching: sqlite3-1.3.3.gem (100%) | |
Building native extensions. This could take a while... | |
Successfully installed sqlite3-1.3.3 | |
Fetching: activesupport-3.0.5.gem (100%) | |
Fetching: builder-2.1.2.gem (100%) | |
Fetching: i18n-0.5.0.gem (100%) | |
Fetching: activemodel-3.0.5.gem (100%) | |
Fetching: arel-2.0.9.gem (100%) | |
Fetching: tzinfo-0.3.26.gem (100%) | |
Fetching: activerecord-3.0.5.gem (100%) | |
Successfully installed activesupport-3.0.5 | |
Successfully installed builder-2.1.2 | |
Successfully installed i18n-0.5.0 | |
Successfully installed activemodel-3.0.5 | |
Successfully installed arel-2.0.9 | |
Successfully installed tzinfo-0.3.26 | |
Successfully installed activerecord-3.0.5 | |
8 gems installed | |
$ cat << EOF > arbug.rb | |
heredoc> require 'sqlite3' | |
heredoc> require 'active_record' | |
heredoc> ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => :memory) | |
heredoc> ActiveRecord::Base.connection.create_table(:table_name) do |t| | |
heredoc> t.column :colomn_name, :integer | |
heredoc> end | |
heredoc> EOF | |
$ ruby arbug.rb | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:27: [BUG] Segmentation fault | |
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] | |
-- control frame ---------- | |
c:0018 p:---- s:0058 b:0058 l:000057 d:000057 CFUNC :initialize | |
c:0017 p:---- s:0056 b:0056 l:000055 d:000055 CFUNC :new | |
c:0016 p:0211 s:0051 b:0051 l:000050 d:000050 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter. | |
c:0015 p:0045 s:0046 b:0046 l:000045 d:000045 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0014 p:0011 s:0043 b:0043 l:000042 d:000042 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0013 p:0048 s:0039 b:0039 l:000025 d:000038 BLOCK /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0012 p:---- s:0036 b:0036 l:000035 d:000035 FINISH | |
c:0011 p:---- s:0034 b:0034 l:000033 d:000033 CFUNC :loop | |
c:0010 p:0009 s:0031 b:0031 l:000025 d:000030 BLOCK /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0009 p:0019 s:0029 b:0029 l:000028 d:000028 METHOD /Users/codecafe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201 | |
c:0008 p:0013 s:0026 b:0026 l:000025 d:000025 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0007 p:0030 s:0023 b:0020 l:000019 d:000019 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0006 p:0033 s:0017 b:0017 l:000016 d:000016 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0005 p:0018 s:0012 b:0012 l:000011 d:000011 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0004 p:0011 s:0009 b:0009 l:000008 d:000008 METHOD /Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connect | |
c:0003 p:0069 s:0006 b:0006 l:0014e8 d:0005f8 EVAL arbug.rb:4 | |
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH | |
c:0001 p:0000 s:0002 b:0002 l:0014e8 d:0014e8 TOP | |
--------------------------- | |
-- Ruby level backtrace information ---------------------------------------- | |
arbug.rb:4:in `<main>' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:89:in `connection' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:97:in `retrieve_connection' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:317:in `retrieve_connection' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:94:in `connection' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:186:in `checkout' | |
/Users/codecafe/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:187:in `block in checkout' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:187:in `loop' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:191:in `block (2 levels) in checkout' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:237:in `checkout_new_connection' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:229:in `new_connection' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:27:in `sqlite3_connection' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:27:in `new' | |
/Users/codecafe/.rvm/gems/ruby-1.9.2-p180@arfail/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:27:in `initialize' | |
-- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment