Sha256: 3fee853010101b86e78f31e02b0f783a592ddcbad3fc3083df0690df5f1eedcd

Contents?: true

Size: 1.24 KB

Versions: 25

Compression:

Stored size: 1.24 KB

Contents

# From Vlad Jebelev:
# 
# - if I have a require statement after "require 'curb'" and there is a 
# POST with at least 1 field, the script will fail with a segmentation 
# fault, e.g. the following sequence fails every time for me (Ruby 1.8.5):
# -----------------------------------------------------------------
# require 'curb'
# require 'uri'
#  
#  url = 'https://www.google.com/accounts/ServiceLoginAuth'
#   
#  c = Curl::Easy.http_post(
#         'https://www.google.com/accounts/ServiceLoginAuth',
#               [Curl:: PostField.content('ltmpl','m_blanco')] ) do |curl|
#  end
#  ------------------------------------------------------------------
#  :..dev/util$ ruby seg.rb
#  seg.rb:6: [BUG] Segmentation fault
#  ruby 1.8.5 (2006-08-25) [i686-linux]
#                
#  Aborted
#  ------------------------------------------------------------------
#
$:.unshift(File.join(File.dirname(__FILE__), '..', 'ext'))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'curb'
require 'uri'
 
url = 'https://www.google.com/accounts/ServiceLoginAuth'
 
c = Curl::Easy.http_post('https://www.google.com/accounts/ServiceLoginAuth',
                         Curl:: PostField.content('ltmpl','m_blanco')) #do
#                         end

puts "success"

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
taf2-curb-0.2.7.4 tests/require_last_or_segfault_script.rb
taf2-curb-0.2.8.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.3.0.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.3.5.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.3.6.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.0.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.1.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.2.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.3.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.4.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.5.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.6.0 tests/require_last_or_segfault_script.rb
taf2-curb-0.4.8.0 tests/require_last_or_segfault_script.rb
curb-0.3.7 tests/require_last_or_segfault_script.rb
curb-0.4.2.0 tests/require_last_or_segfault_script.rb
curb-0.4.4.0 tests/require_last_or_segfault_script.rb
curb-0.4.8.0 tests/require_last_or_segfault_script.rb
curb-0.3.1 tests/require_last_or_segfault_script.rb
curb-0.1.4 tests/require_last_or_segfault_script.rb
curb-0.1.0 tests/require_last_or_segfault_script.rb