Issue #4912 has been updated by Yui NARUSE.

Assignee set to Shota Fukumori


----------------------------------------
Bug #4912: Segmentation fault while HTTPS request
http://redmine.ruby-lang.org/issues/4912

Author: Juan de Bravo
Status: Feedback
Priority: Normal
Assignee: Shota Fukumori
Category: 
Target version: 
ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]


Hi,

I'm throwing a SOAP request to a third party using soap4r (git://github.com/noeticpenguin/soap4r-noeticpenguin.git) and I'm getting this stacktrace. It's weird because it seems some kind of incompatibility with another gems, but in another cleaner gemset it doesn't happen:

ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]

-- control frame ----------
c:0048 p:---- s:0237 b:0237 l:000236 d:000236 CFUNC  :connect
c:0047 p:0049 s:0234 b:0234 l:000233 d:000233 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:276
c:0046 p:0166 s:0230 b:0230 l:000178 d:000229 BLOCK  /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:712
c:0045 p:0109 s:0228 b:0228 l:0005a0 d:0005a0 METHOD /Users/jdbd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:57
c:0044 p:0026 s:0216 b:0216 l:000215 d:000215 METHOD /Users/jdbd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:87
c:0043 p:0043 s:0210 b:0210 l:000178 d:000178 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:704
c:0042 p:0020 s:0205 b:0205 l:000204 d:000204 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:568
c:0041 p:0063 s:0201 b:0201 l:000200 d:000200 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:158
c:0040 p:0161 s:0195 b:0195 l:000194 d:000194 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:991
c:0039 p:0021 s:0183 b:0183 l:000176 d:000182 BLOCK  /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:800
c:0038 p:0009 s:0181 b:0181 l:000180 d:000180 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:887
c:0037 p:0149 s:0177 b:0177 l:000176 d:000176 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:799
c:0036 p:0063 s:0162 b:0162 l:000161 d:000161 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:697
c:0035 p:0030 s:0152 b:0152 l:000151 d:000151 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:619
c:0034 p:0248 s:0145 b:0145 l:000144 d:000144 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/streamHandler.rb:237
c:0033 p:0022 s:0132 b:0132 l:000131 d:000131 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/streamHandler.rb:171
c:0032 p:0247 s:0126 b:0126 l:000125 d:000125 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/rpc/proxy.rb:186
c:0031 p:0287 s:0115 b:0115 l:000114 d:000114 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/rpc/proxy.rb:149
c:0030 p:0029 s:0102 b:0102 l:000101 d:000101 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/rpc/driver.rb:151
c:0029 p:0061 s:0097 b:0097 l:000096 d:000096 METHOD (eval):6
c:0028 p:0113 s:0093 b:0092 l:000091 d:000091 METHOD /Users/jdbd/projects/TID/10_fridays/wcm/lib/jajah_client.rb:18
c:0027 p:0021 s:0085 b:0085 l:001ea8 d:000084 BLOCK  /Users/jdbd/projects/TID/10_fridays/wcm/lib/tasks/conferences_handler.rake:7
c:0026 p:---- s:0083 b:0083 l:000082 d:000082 FINISH
c:0025 p:---- s:0081 b:0081 l:000080 d:000080 CFUNC  :call
c:0024 p:0043 s:0076 b:0076 l:000067 d:000075 BLOCK  /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:636
c:0023 p:---- s:0073 b:0073 l:000072 d:000072 FINISH
c:0022 p:---- s:0071 b:0071 l:000070 d:000070 CFUNC  :each
c:0021 p:0171 s:0068 b:0068 l:000067 d:000067 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:631
c:0020 p:0110 s:0064 b:0064 l:000058 d:000063 BLOCK  /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:597
c:0019 p:0019 s:0062 b:0062 l:000061 d:000061 METHOD /Users/jdbd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201
c:0018 p:0033 s:0059 b:0059 l:000058 d:000058 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:590
c:0017 p:0048 s:0053 b:0053 l:000052 d:000052 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:583
c:0016 p:0045 s:0048 b:0048 l:000047 d:000047 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2051
c:0015 p:0012 s:0041 b:0041 l:000026 d:000040 BLOCK  /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2029
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :each
c:0012 p:0069 s:0033 b:0033 l:000026 d:000032 BLOCK  /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2029
c:0011 p:0009 s:0031 b:0031 l:000030 d:000030 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2068
c:0010 p:0011 s:0027 b:0027 l:000026 d:000026 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2023
c:0009 p:0029 s:0024 b:0024 l:000017 d:000023 BLOCK  /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2001
c:0008 p:0009 s:0022 b:0022 l:000021 d:000021 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2068
c:0007 p:0011 s:0018 b:0018 l:000017 d:000017 METHOD /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:1998
c:0006 p:0036 s:0015 b:0015 l:000014 d:000014 TOP    /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/bin/rake:31
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:0014e8 d:001510 EVAL   /Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/bin/rake:19
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 ----------------------------------------
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/bin/rake:19:in `<main>'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/bin/rake:19:in `load'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/jdbd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/jdbd/projects/TID/10_fridays/wcm/lib/tasks/conferences_handler.rake:7:in `block (2 levels) in <top (required)>'
/Users/jdbd/projects/TID/10_fridays/wcm/lib/jajah_client.rb:18:in `create_conference'
(eval):6:in `initCall1'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/rpc/driver.rb:151:in `call'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/rpc/proxy.rb:149:in `call'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/rpc/proxy.rb:186:in `route'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/streamHandler.rb:171:in `send'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/bundler/gems/soap4r-noeticpenguin-cd6c0f91eeec/lib/soap/streamHandler.rb:237:in `send_post'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:619:in `post'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:697:in `request'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:799:in `do_request'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:887:in `protect_keep_alive_disconnected'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:800:in `block in do_request'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient.rb:991:in `do_get_block'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:158:in `query'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:568:in `query'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:704:in `connect'
/Users/jdbd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
/Users/jdbd/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:57:in `timeout'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:712:in `block in connect'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:276:in `ssl_connect'
/Users/jdbd/.rvm/gems/ruby-1.9.2-p180@wcm2/gems/httpclient-2.1.7.2/lib/httpclient/session.rb:276:in `connect'

-- C level backtrace information -------------------------------------------

$ruby -v

ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]

$rvm -v

rvm 1.5.2 by Wayne E. Seguin (wayneeseguin / gmail.com) [http://rvm.beginrescueend.com/]


-- 
http://redmine.ruby-lang.org