Giter Club home page Giter Club logo

Comments (23)

hanshasselberg avatar hanshasselberg commented on August 27, 2024

Thanks for reporting! Will look into it.

from ethon.

deanmarano avatar deanmarano commented on August 27, 2024

I'm seeing this issue as well - any ideas as to what it could be?

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

@deanmarano How can I reproduce it?

from ethon.

erwanlr avatar erwanlr commented on August 27, 2024

(If you want a smaller piece of code, this one https://gist.github.com/erwanlr/5099652 also have the issue)

from ethon.

dwaynemac avatar dwaynemac commented on August 27, 2024

i'm having this problem too.

from ethon.

dwaynemac avatar dwaynemac commented on August 27, 2024

has anyone found some work around at least? I can't even run rake tasks :(

from ethon.

erwanlr avatar erwanlr commented on August 27, 2024

With the master version, the error is the same but from a different gem :o

/home/erwan/.rvm/gems/ruby-1.9.3-p362/gems/ffi-1.6.0/lib/ffi/autopointer.rb:158: [BUG] Segmentation fault
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0082 p:---- s:0326 b:0326 l:000325 d:000325 CFUNC  :multi_cleanup
c:0081 p:---- s:0324 b:0324 l:000323 d:000323 CFUNC  :call
c:0080 p:0015 s:0320 b:0320 l:000319 d:000319 METHOD /home/erwan/.rvm/gems/ruby-1.9.3-p362/gems/ffi-1.6.0/lib/ffi/autopointer.rb:158
c:0079 p:0026 s:0316 b:0316 l:000315 d:000315 METHOD /home/erwan/.rvm/gems/ruby-1.9.3-p362/gems/ffi-1.6.0/lib/ffi/autopointer.rb:134

Full Trace : https://gist.github.com/erwanlr/d7728c5728cf046213c6

from ethon.

jonesdeini avatar jonesdeini commented on August 27, 2024

Any fix or workaround for this? I get this error when using typhoeus with delayed_job
Here is my mega-long stack trace https://gist.github.com/jonesdeini/360b17b95afaadea7d3c

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

I'll have some time at the end of the week and I'm going to fix some bugs! Will see how hard that one is...

from ethon.

jonesdeini avatar jonesdeini commented on August 27, 2024

Let me know if you need any more information or if there is anything I can do to help. Typhoeus is such a cool project and I would love to help out if possible. Thank you for all your hard work!

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

@jonesdeini Thanks for the kind words! Any help is highly appreciated! You could for example go ahead and fix bugs. Some of them are less complex like typhoeus/typhoeus#233 or #32. I you would like to do something else thats cool too. Just email me if you need a pointer if you run into a problem or have question!

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

@erwanlr @dwaynemac @jonesdeini could somebody provide code to reproduce your issue? wpscan test suite works for me and the gist doesn't raise anything. Tested with Typhoeus 0.6.3 and Ethon 0.5.11.

from ethon.

erwanlr avatar erwanlr commented on August 27, 2024

What version of ruby are you using ?

I've retested the gist (https://gist.github.com/erwanlr/5099652, spec_helper.rb & test_spec.rb have to be moved in a spec directory, then you run rspec), and ruby 1.9.3p194 & 1.9.3p362

Like I said 1 month ago, the error is the same but from a different gem :

erwan@t-009:~/Progs/test/hydra-issue$ rspec 
....

Finished in 0.02571 seconds
4 examples, 0 failures
/home/erwan/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.8.1/lib/ffi/autopointer.rb:158: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0006 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :multi_cleanup
c:0005 p:---- s:0016 b:0016 l:000015 d:000015 CFUNC  :call
c:0004 p:0015 s:0012 b:0012 l:000011 d:000011 METHOD /home/erwan/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.8.1/lib/ffi/autopointer.rb:158
c:0003 p:0026 s:0008 b:0008 l:000007 d:000007 METHOD /home/erwan/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.8.1/lib/ffi/autopointer.rb:134
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001a78 d:001a78 TOP   

-- Ruby level backtrace information ----------------------------------------
/home/erwan/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.8.1/lib/ffi/autopointer.rb:134:in `call'
/home/erwan/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.8.1/lib/ffi/autopointer.rb:158:in `release'
/home/erwan/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.8.1/lib/ffi/autopointer.rb:158:in `call'
/home/erwan/.rvm/gems/ruby-1.9.3-p194/gems/ffi-1.8.1/lib/ffi/autopointer.rb:158:in `multi_cleanup'

-- C level backtrace information -------------------------------------------
Segmentation fault

from ethon.

dwaynemac avatar dwaynemac commented on August 27, 2024

i'll try to look into it. We've downgraded to Typhoeus 0.5.0.alpha and are with this version because we have some deadlines right now. As soon as I can I'll retest this.

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

@erwanlr I've made the following changes - not important imho:

$ git diff
diff --git a/Gemfile b/Gemfile
index cf4084c..9b0e300 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,5 +1,5 @@
 source "http://rubygems.org"

-gem 'typhoeus', '>=0.6.2'
+gem 'typhoeus', path: "../typhoeus"
 gem 'webmock', '>=1.9.3'
 gem 'rspec', :require => 'spec'
diff --git a/spec_helper.rb b/spec_helper.rb
index 91f968a..a009505 100644
--- a/spec_helper.rb
+++ b/spec_helper.rb
@@ -1,4 +1,4 @@
 # spec/spec_helper.rb

 require 'webmock/rspec'
-require File.expand_path(File.dirname(__FILE__) + '/../test')
+require_relative 'test'
diff --git a/test_spec.rb b/test_spec.rb
index 64258a9..da94664 100644
--- a/test_spec.rb
+++ b/test_spec.rb
@@ -1,6 +1,6 @@
 # spec/test_spec.rb

-require 'spec_helper'
+require_relative 'spec_helper'

 describe Foo do
   let(:url) { 'http://google.com' }
@@ -13,7 +13,7 @@ describe Foo do

       context "when concurrency = #{concurrency}" do
         it 'returns all the files' do
-          foo.retrieve_files(concurrency).should == foo.urls
+          foo.retrieve_files(concurrency).sort.should == foo.urls
         end
       end
     end

and I get the following result:

$ bundle exec rspec test_spec.rb
....

Finished in 0.02728 seconds
4 examples, 0 failures

with the following versions:

$ ruby --version
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.0]
$ curl --version
curl 7.28.0 (x86_64-apple-darwin12.2.0) libcurl/7.28.0 OpenSSL/0.9.8r zlib/1.2.5 c-ares/1.9.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz

Edit: I've also just tested it successfully with the latest libcurl version:

$ curl --version
curl 7.30.0 (x86_64-apple-darwin12.3.0) libcurl/7.30.0 OpenSSL/0.9.8r zlib/1.2.5 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz

from ethon.

erwanlr avatar erwanlr commented on August 27, 2024

Humm, I'm using curl 7.29, and in the 7.30 changelog I saw this : http://sourceforge.net/p/curl/bugs/1194/ (from http://curl.haxx.se/changes.html#7_30_0)

I will update curl to the 7.30 and retry tomorrow

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

Very good catch!

from ethon.

jonesdeini avatar jonesdeini commented on August 27, 2024

I upgraded curl to 7.30 and still have the same error.

$ curl --version
curl 7.30.0 (x86_64-unknown-linux-gnu) libcurl/7.30.0 OpenSSL/1.0.1e zlib/1.2.8 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP 

It appears my example will be dependant on Rails since delayed_job depends on ActiveRecord.
Hopefully I will be able to extract an example which does not depend on Rails.

from ethon.

erwanlr avatar erwanlr commented on August 27, 2024

Works for me

from ethon.

linrock avatar linrock commented on August 27, 2024

I ran rspec against curl versions 7.28.1, 7.29.0, 7.30.0, and 7.31.0. Only 7.29.0 segfaults (in multi_cleanup). Must be because of the bug linked by @erwanlr.

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

thanks @linrock. I'm going to close this issue then. Happy to reopen when necessary.

from ethon.

AndreasSoiron avatar AndreasSoiron commented on August 27, 2024

I got problems with curl 7.30.0 in OS X 10.9. Updating to curl 7.33 fixed it for me.

from ethon.

hanshasselberg avatar hanshasselberg commented on August 27, 2024

@AndreasSoiron thanks for reporting!

from ethon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.