Sha256: 839138ab1208f948777649220d40d176bc63a78557a9ba7da0bbec2c7e15f9b2

Contents?: true

Size: 1.28 KB

Versions: 90

Compression:

Stored size: 1.28 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.expand_path(File.join(File.dirname(__FILE__), '..', 'ext')))
$:.unshift(File.expand_path(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

90 entries across 90 versions & 7 rubygems

Version Path
curb-1.0.6 tests/require_last_or_segfault_script.rb
curb-1.0.5 tests/require_last_or_segfault_script.rb
curb-1.0.4 tests/require_last_or_segfault_script.rb
curb-1.0.3 tests/require_last_or_segfault_script.rb
curb-1.0.2 tests/require_last_or_segfault_script.rb
curb-1.0.1 tests/require_last_or_segfault_script.rb
curb-1.0.0 tests/require_last_or_segfault_script.rb
curb-0.9.11 tests/require_last_or_segfault_script.rb
curb-0.9.10 tests/require_last_or_segfault_script.rb
curb-0.9.9 tests/require_last_or_segfault_script.rb
curb-0.9.8 tests/require_last_or_segfault_script.rb
curb-0.9.7 tests/require_last_or_segfault_script.rb
curb-0.9.6 tests/require_last_or_segfault_script.rb
curb-0.9.5 tests/require_last_or_segfault_script.rb
curb-0.9.4 tests/require_last_or_segfault_script.rb
curb-0.9.3 tests/require_last_or_segfault_script.rb
curb-0.9.2 tests/require_last_or_segfault_script.rb
curb-0.9.1 tests/require_last_or_segfault_script.rb
curb-0.9.0 tests/require_last_or_segfault_script.rb
curb-0.8.8 tests/require_last_or_segfault_script.rb