I can read from my amazon bucket, but write kept failing.
s3 = AWS::S3.new
bucket = s3.buckets['tmp']
obj = bucket.objects["test.rtf"]
obj.write(:file => "/Volumes/.../test.rtf")
It will Seg fault. No useful information is given to help me debug it. Any ideas?
I am using AWS-SDK gem, Rails 3.1.3, Ruby 1.9.3
It turns out that my HTTP/SSL library was broken because I used to use Port and I switch to RVM. Ruby was pointing to both libraries and the HTTP/SSL library was causing the error. I remove SSL library and reinstalled it using RVM. It solved the error.