Skip to content

Instantly share code, notes, and snippets.

@rubiii
Created February 7, 2011 09:32
Show Gist options
  • Save rubiii/814182 to your computer and use it in GitHub Desktop.
Save rubiii/814182 to your computer and use it in GitHub Desktop.
$ rails console
Loading development environment (Rails 3.0.3)
ruby-1.9.2-p136 :001 > client = Savon::Client.new do
ruby-1.9.2-p136 :002 > wsdl.document = "https://www.usacycling.org/xml/riderinfo.php?wsdl"
ruby-1.9.2-p136 :003?> end
=> #<Savon::Client:0x00000104f5b978 @original_self=main, @wsdl=#<Savon::WSDL::Document:0x00000104f5b6d0 @request=#<HTTPI::Request:0x00000104f5b680>, @document="https://www.usacycling.org/xml/riderinfo.php?wsdl">, @http=#<HTTPI::Request:0x00000104f5b680>>
ruby-1.9.2-p136 :004 > client.wsdl.soap_actions
Retrieving WSDL from: https://www.usacycling.org/xml/riderinfo.php?wsdl
HTTPI tried to use the httpclient adapter, but was unable to find the library in the LOAD_PATH. Falling back to using the net_http adapter now.
HTTPI executes HTTP GET using the net_http adapter
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:677: [BUG] Segmentation fault
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
-- control frame ----------
c:0044 p:---- s:0164 b:0164 l:000163 d:000163 CFUNC :connect
c:0043 p:0440 s:0161 b:0161 l:000ec8 d:000ec8 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:677
c:0042 p:0011 s:0154 b:0154 l:000153 d:000153 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:637
c:0041 p:0048 s:0151 b:0151 l:000150 d:000150 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:626
c:0040 p:0070 s:0148 b:0147 l:000146 d:000146 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi/adapter/net_http.rb:74
c:0039 p:0015 s:0142 b:0142 l:000141 d:000141 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi/adapter/net_http.rb:22
c:0038 p:0038 s:0138 b:0138 l:000126 d:000137 BLOCK /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi.rb:86
c:0037 p:0112 s:0134 b:0134 l:000133 d:000133 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi.rb:189
c:0036 p:0060 s:0127 b:0127 l:000126 d:000126 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi.rb:84
c:0035 p:0022 s:0122 b:0122 l:000116 d:000121 BLOCK /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/request.rb:21
c:0034 p:0098 s:0120 b:0120 l:000119 d:000119 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/request.rb:30
c:0033 p:0025 s:0117 b:0117 l:000116 d:000116 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/request.rb:21
c:0032 p:0049 s:0114 b:0114 l:000113 d:000113 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:93
c:0031 p:0066 s:0111 b:0111 l:000110 d:000110 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:77
c:0030 p:0053 s:0108 b:0107 l:000106 d:000106 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:105
c:0029 p:0025 s:0103 b:0103 l:000102 d:000102 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:46
c:0028 p:0017 s:0100 b:0100 l:001a58 d:000099 EVAL (irb):4
c:0027 p:---- s:0098 b:0098 l:000097 d:000097 FINISH
c:0026 p:---- s:0096 b:0096 l:000095 d:000095 CFUNC :eval
c:0025 p:0028 s:0089 b:0089 l:000088 d:000088 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/workspace.rb:80
c:0024 p:0033 s:0082 b:0081 l:000080 d:000080 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/context.rb:254
c:0023 p:0031 s:0076 b:0076 l:000c78 d:000075 BLOCK /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:159
c:0022 p:0042 s:0068 b:0068 l:000067 d:000067 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:273
c:0021 p:0011 s:0063 b:0063 l:000c78 d:000062 BLOCK /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:156
c:0020 p:0144 s:0059 b:0059 l:000042 d:000058 BLOCK /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:243
c:0019 p:---- s:0056 b:0056 l:000055 d:000055 FINISH
c:0018 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC :loop
c:0017 p:0009 s:0051 b:0051 l:000042 d:000050 BLOCK /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:229
c:0016 p:---- s:0049 b:0049 l:000048 d:000048 FINISH
c:0015 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC :catch
c:0014 p:0023 s:0043 b:0043 l:000042 d:000042 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:228
c:0013 p:0046 s:0040 b:0040 l:000c78 d:000c78 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:155
c:0012 p:0011 s:0037 b:0037 l:000c58 d:000036 BLOCK /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:70
c:0011 p:---- s:0035 b:0035 l:000034 d:000034 FINISH
c:0010 p:---- s:0033 b:0033 l:000032 d:000032 CFUNC :catch
c:0009 p:0183 s:0029 b:0029 l:000c58 d:000c58 METHOD /Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:69
c:0008 p:0210 s:0024 b:0024 l:0008b0 d:0008b0 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/railties-3.0.3/lib/rails/commands/console.rb:44
c:0007 p:0019 s:0020 b:0020 l:000019 d:000019 METHOD /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/railties-3.0.3/lib/rails/commands/console.rb:8
c:0006 p:0430 s:0016 b:0016 l:000015 d:000015 TOP /Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/railties-3.0.3/lib/rails/commands.rb:23
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:0014e8 d:0023f8 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:0014e8 d:0014e8 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
script/rails:6:in `<main>'
script/rails:6:in `require'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/railties-3.0.3/lib/rails/commands.rb:23:in `<top (required)>'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/railties-3.0.3/lib/rails/commands/console.rb:8:in `start'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/railties-3.0.3/lib/rails/commands/console.rb:44:in `start'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:69:in `start'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:69:in `catch'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:70:in `block in start'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:155:in `eval_input'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `each_top_level_statement'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `block in each_top_level_statement'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/ruby-lex.rb:243:in `block (2 levels) in each_top_level_statement'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:156:in `block in eval_input'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:273:in `signal_status'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb.rb:159:in `block (2 levels) in eval_input'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/context.rb:254:in `evaluate'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
(irb):4:in `irb_binding'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:46:in `soap_actions'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:105:in `parser'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:77:in `document'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/document.rb:93:in `http_request'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/request.rb:21:in `response'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/request.rb:30:in `with_logging'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/savon-0.8.5/lib/savon/wsdl/request.rb:21:in `block in response'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi.rb:84:in `get'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi.rb:189:in `with_adapter'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi.rb:86:in `block in get'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi/adapter/net_http.rb:22:in `get'
/Users/crankharder/.rvm/gems/ruby-1.9.2-p136@app/gems/httpi-0.7.9/lib/httpi/adapter/net_http.rb:74:in `do_request'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:626:in `start'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:677:in `connect'
/Users/crankharder/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:677:in `connect'
-- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment