http.rb:681: [BUG] Segmentation fault

DEPRECATION WARNING: Using form_for(:name, @resource) is deprecated. Please use form_for(@resource, :as => :name) instead. (called from _app_views_distribution_pay_html_erb__125060545_106373980_296134994 at /home/deploy/apps/diy/releases/20110617071202/app/views/distribution/pay.html.erb:90)

DEPRECATION WARNING: Using form_for(:name, @resource) is deprecated. Please use form_for(@resource, :as => :name) instead. (called from _app_views_distribution_pay_html_erb__125060545_106373980_296134994 at /home/deploy/apps/diy/releases/20110617071202/app/views/distribution/pay.html.erb:90)

/usr/local/lib/ruby/1.9.1/net/http.rb:681: [BUG] Segmentation fault

ruby 1.9.2p180 (2011-02-18 revision 30909) [i386-solaris2.11]

-- control frame ----------

c:0097 p:---- s:0560 b:0560 l:000559 d:000559 CFUNC :connect

c:0096 p:0011 s:0557 b:0557 l:000e58 d:000556 BLOCK /usr/local/lib/ruby/1.9.1/net/http.rb:681

c:0095 p:0031 s:0555 b:0555 l:000554 d:000554 METHOD /usr/local/lib/ruby/1.9.1/timeout.rb:44

c:0094 p:0026 s:0543 b:0543 l:000542 d:000542 METHOD /usr/local/lib/ruby/1.9.1/timeout.rb:87

c:0093 p:0444 s:0537 b:0537 l:000e58 d:000e58 METHOD /usr/local/lib/ruby/1.9.1/net/http.rb:681

c:0092 p:0011 s:0529 b:0529 l:000528 d:000528 METHOD /usr/local/lib/ruby/1.9.1/net/http.rb:640

c:0091 p:0048 s:0526 b:0526 l:000525 d:000525 METHOD /usr/local/lib/ruby/1.9.1/net/http.rb:629

c:0090 p:0025 s:0523 b:0523 l:000522 d:000522 METHOD /usr/local/lib/ruby/1.9.1/net/http.rb:1172

c:0089 p:0035 s:0516 b:0516 l:000515 d:000515 METHOD /usr/local/lib/ruby/1.9.1/net/http.rb:1129

c:0088 p:0472 s:0509 b:0509 l:000508 d:000508 METHOD /home/deploy/apps/diy/releases/20110617071202/vendor/plugins/pay_pal_sdk/lib/caller.rb:91

c:0087 p:0332 s:0498 b:0498 l:000497 d:000497 METHOD /home/deploy/apps/diy/releases/20110617071202/app/controllers/application_controller.rb:117

c:0086 p:0040 s:0495 b:0495 l:000494 d:000494 METHOD /home/deploy/apps/diy/releases/20110617071202/app/controllers/distribution_controller.rb:459

c:0085 p:0012 s:0492 b:0492 l:000491 d:000491 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal/implicit_render.rb:4

c:0084 p:0015 s:0487 b:0487 l:000486 d:000486 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/abstract_controller/base.rb:150

c:0083 p:0041 s:0482 b:0482 l:000481 d:000481 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal/rendering.rb:11

c:0082 p:0012 s:0478 b:0478 l:001d3c d:000477 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/abstract_controller/callbacks.rb:18

c:0081 p:0153 s:0476 b:0476 l:000b80 d:000475 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/callbacks.rb:456

c:0080 p:0006 s:0474 b:0474 l:000a58 d:000473 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/callbacks.rb:220

c:0079 p:0062 s:0472 b:0472 l:001d7c d:001d7c METHOD /home/deploy/apps/diy/releases/20110617071202/app/controllers/application_controller.rb:513

c:0078 p:0019 s:0467 b:0467 l:000a58 d:000a58 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/callbacks.rb:219

c:0077 p:0054 s:0463 b:0463 l:000b80 d:000b80 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/callbacks.rb:435

c:0076 p:0113 s:0457 b:0457 l:000456 d:000456 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/callbacks.rb:409

c:0075 p:0024 s:0448 b:0448 l:000447 d:000447 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/callbacks.rb:93

c:0074 p:0015 s:0442 b:0442 l:001d3c d:001d3c METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/abstract_controller/callbacks.rb:17

c:0073 p:0012 s:0437 b:0437 l:000418 d:000436 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal/instrumentation.rb:30

c:0072 p:0017 s:0433 b:0433 l:000423 d:000432 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/notifications.rb:52

c:0071 p:0032 s:0431 b:0431 l:000430 d:000430 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/notifications/instrumenter.rb:21

c:0070 p:0036 s:0424 b:0424 l:000423 d:000423 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/notifications.rb:52

c:0069 p:0152 s:0419 b:0419 l:000418 d:000418 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal/instrumentation.rb:29

c:0068 p:0012 s:0413 b:0413 l:000412 d:000412 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal/rescue.rb:17

c:0067 p:0093 s:0408 b:0408 l:000407 d:000407 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/abstract_controller/base.rb:119

c:0066 p:0084 s:0402 b:0402 l:000401 d:000401 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/abstract_controller/rendering.rb:41

c:0065 p:0048 s:0397 b:0397 l:000396 d:000396 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal.rb:138

c:0064 p:0086 s:0392 b:0392 l:000391 d:000391 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal/rack_delegation.rb:14

c:0063 p:0030 s:0386 b:0386 l:000fb4 d:000385 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_controller/metal.rb:178

c:0062 p:---- s:0383 b:0383 l:000382 d:000382 FINISH

c:0061 p:---- s:0381 b:0381 l:000380 d:000380 CFUNC :call

c:0060 p:0022 s:0377 b:0377 l:000376 d:000376 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/routing/route_set.rb:62

c:0059 p:0094 s:0371 b:0371 l:000370 d:000370 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/routing/route_set.rb:27

c:0058 p:0097 s:0365 b:0365 l:000337 d:000364 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:148

c:0057 p:0014 s:0359 b:0359 l:000343 d:000358 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:93

c:0056 p:0309 s:0354 b:0354 l:000353 d:000353 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:75

c:0055 p:0190 s:0344 b:0344 l:000343 d:000343 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.13/lib/rack/mount/code_generation.rb:92

c:0054 p:0092 s:0338 b:0338 l:000337 d:000337 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:139

c:0053 p:0025 s:0332 b:0332 l:000331 d:000331 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/routing/route_set.rb:492

c:0052 p:0015 s:0328 b:0328 l:000327 d:000327 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/best_standards_support.rb:17

c:0051 p:0093 s:0321 b:0321 l:000320 d:000320 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/head.rb:14

c:0050 p:0155 s:0314 b:0314 l:000313 d:000313 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/methodoverride.rb:24

c:0049 p:0046 s:0308 b:0308 l:000307 d:000307 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/params_parser.rb:21

c:0048 p:0054 s:0303 b:0303 l:000302 d:000302 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/flash.rb:182

c:0047 p:0027 s:0296 b:0296 l:000295 d:000295 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/session/abstract_store.rb:149

c:0046 p:0015 s:0285 b:0285 l:000284 d:000284 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/cookies.rb:302

c:0045 p:0014 s:0277 b:0277 l:001de8 d:000276 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5.rc1/lib/active_record/query_cache.rb:32

c:0044 p:0019 s:0275 b:0275 l:000274 d:000274 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5.rc1/lib/active_record/connection_adapters/abstract/query_cache.rb:28

c:0043 p:0051 s:0271 b:0271 l:000270 d:000270 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5.rc1/lib/active_record/query_cache.rb:12

c:0042 p:0019 s:0267 b:0267 l:001de8 d:001de8 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5.rc1/lib/active_record/query_cache.rb:31

c:0041 p:0015 s:0263 b:0263 l:000262 d:000262 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-3.0.5.rc1/lib/active_record/connection_adapters/abstract/connection_pool.rb:35

c:0040 p:0029 s:0259 b:0259 l:001ec8 d:000258 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/callbacks.rb:46

c:0039 p:0155 s:0257 b:0257 l:000256 d:000256 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5.rc1/lib/active_support/callbacks.rb:415

c:0038 p:0011 s:0247 b:0247 l:001ec8 d:001ec8 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/callbacks.rb:44

c:0037 p:0015 s:0243 b:0243 l:000242 d:000242 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/sendfile.rb:107

c:0036 p:0049 s:0233 b:0233 l:000232 d:000232 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/remote_ip.rb:48

c:0035 p:0017 s:0229 b:0229 l:000228 d:000228 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/show_exceptions.rb:47

c:0034 p:0027 s:0221 b:0221 l:000220 d:000220 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.5.rc1/lib/rails/rack/logger.rb:13

c:0033 p:0032 s:0217 b:0217 l:000216 d:000216 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/runtime.rb:17

c:0032 p:0014 s:0208 b:0208 l:000202 d:000207 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/lock.rb:11

c:0031 p:0019 s:0206 b:0206 l:000205 d:000205 METHOD <internal:prelude>:10

c:0030 p:0054 s:0203 b:0203 l:000202 d:000202 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.2.1/lib/rack/lock.rb:11

c:0029 p:0193 s:0198 b:0198 l:000197 d:000197 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.5.rc1/lib/action_dispatch/middleware/static.rb:30

c:0028 p:0032 s:0191 b:0191 l:000190 d:000190 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.5.rc1/lib/rails/application.rb:168

c:0027 p:0021 s:0187 b:0187 l:000186 d:000186 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.5.rc1/lib/rails/application.rb:77

c:0026 p:---- s:0182 b:0182 l:000181 d:000181 FINISH

c:0025 p:0538 s:0180 b:0180 l:000179 d:000179 METHOD /opt/local/passenger/lib/phusion_passenger/rack/request_handler.rb:96

c:0024 p:0664 s:0168 b:0168 l:000167 d:000167 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_request_handler.rb:513

c:0023 p:0175 s:0154 b:0154 l:000153 d:000153 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_request_handler.rb:274

c:0022 p:0184 s:0146 b:0146 l:000145 d:000145 METHOD /opt/local/passenger/lib/phusion_passenger/rack/application_spawner.rb:205

c:0021 p:0084 s:0134 b:0134 l:000121 d:000133 BLOCK /opt/local/passenger/lib/phusion_passenger/rack/application_spawner.rb:170

c:0020 p:0094 s:0131 b:0131 l:000130 d:000130 METHOD /opt/local/passenger/lib/phusion_passenger/utils.rb:479

c:0019 p:0063 s:0122 b:0122 l:000121 d:000121 METHOD /opt/local/passenger/lib/phusion_passenger/rack/application_spawner.rb:165

c:0018 p:0178 s:0113 b:0113 l:000112 d:000112 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_server.rb:357

c:0017 p:0048 s:0102 b:0102 l:000101 d:000101 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_server.rb:206

c:0016 p:0362 s:0095 b:0095 l:000094 d:000094 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_server.rb:180

c:0015 p:0010 s:0086 b:0086 l:000085 d:000085 METHOD /opt/local/passenger/lib/phusion_passenger/rack/application_spawner.rb:128

c:0014 p:0082 s:0081 b:0081 l:000062 d:000080 BLOCK /opt/local/passenger/lib/phusion_passenger/spawn_manager.rb:253

c:0013 p:0078 s:0078 b:0078 l:000077 d:000077 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_server_collection.rb:132

c:0012 p:0027 s:0073 b:0073 l:000062 d:000072 BLOCK /opt/local/passenger/lib/phusion_passenger/spawn_manager.rb:246

c:0011 p:0014 s:0071 b:0071 l:000065 d:000070 BLOCK /opt/local/passenger/lib/phusion_passenger/abstract_server_collection.rb:82

c:0010 p:0019 s:0069 b:0069 l:000068 d:000068 METHOD <internal:prelude>:10

c:0009 p:0013 s:0066 b:0066 l:000065 d:000065 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_server_collection.rb:79

c:0008 p:0131 s:0063 b:0063 l:000062 d:000062 METHOD /opt/local/passenger/lib/phusion_passenger/spawn_manager.rb:244

c:0007 p:0242 s:0054 b:0054 l:000053 d:000053 METHOD /opt/local/passenger/lib/phusion_passenger/spawn_manager.rb:137

c:0006 p:0066 s:0050 b:0050 l:000049 d:000049 METHOD /opt/local/passenger/lib/phusion_passenger/spawn_manager.rb:275

c:0005 p:0178 s:0041 b:0041 l:000040 d:000040 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_server.rb:357

c:0004 p:0048 s:0030 b:0030 l:000029 d:000029 METHOD /opt/local/passenger/lib/phusion_passenger/abstract_server.rb:206

c:0003 p:0768 s:0023 b:0023 l:0022bc d:000280 EVAL /opt/local/passenger/helper-scripts/passenger-spawn-server:99

c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH

c:0001 p:0000 s:0002 b:0002 l:0022bc d:0022bc TOP

export RUBYOPT="-r openssl" rails runner CheckCcPaypal.authorize_cc_payment

The above works but when i try to execute from controller action it fails and gives error segmentation fault.

Any suggestion...

I believe that Rails does not work reliably with Ruby 1.9.1. Use 1.9.2 instead.

Colin

Colin Law wrote in post #1010896: