Forum: Ruby-core [ruby-trunk - Bug #6645][Open] Segmentation fault in net/http.rb

Posted by yuki24 (Yuki Nishijima) (Guest)
on 2012-06-25 17:07
(Received via mailing list)
Issue #6645 has been reported by yuki24 (Yuki Nishijima).

----------------------------------------
Bug #6645: Segmentation fault in net/http.rb
https://bugs.ruby-lang.org/issues/6645

Author: yuki24 (Yuki Nishijima)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


=begin
Today I ran into the problem titled above. The error message looks like 
this:

 /home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761: 
[BUG] Segmentation fault
 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

 -- Control frame information 
-----------------------------------------------
 c:0066 p:0015 s:0266 b:0264 l:000263 d:000263 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761
 c:0065 p:0011 s:0256 b:0256 l:000255 d:000255 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755
 c:0064 p:0048 s:0253 b:0253 l:000252 d:000252 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744
 c:0063 p:0182 s:0250 b:0250 l:000249 d:000249 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557

You can find the full stack trace here: 
((<URL:https://gist.github.com/2988740>))

I don't know how I can help the project here since this is my first time 
to report a bug, but let me know if you would like me to do something. 
Thanks!
=end
Posted by drbrain (Eric Hodel) (Guest)
on 2012-06-25 23:36
(Received via mailing list)
Issue #6645 has been updated by drbrain (Eric Hodel).


You have many C extensions loaded, one of these may be causing the 
crash.  Can you reproduce this crash without loading so many extensions? 
I see pg, hpricot, bson_ext, ruby-prof, nokogiri, bcrypt-ruby, gherkin, 
eventmachine.

Can you reproduce it with capybara-webkit and no other C extensions?

Can you reproduce it without any C extensions?
----------------------------------------
Bug #6645: Segmentation fault in net/http.rb
https://bugs.ruby-lang.org/issues/6645#change-27452

Author: yuki24 (Yuki Nishijima)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


=begin
Today I ran into the problem titled above. The error message looks like 
this:

 /home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761: 
[BUG] Segmentation fault
 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

 -- Control frame information 
-----------------------------------------------
 c:0066 p:0015 s:0266 b:0264 l:000263 d:000263 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761
 c:0065 p:0011 s:0256 b:0256 l:000255 d:000255 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755
 c:0064 p:0048 s:0253 b:0253 l:000252 d:000252 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744
 c:0063 p:0182 s:0250 b:0250 l:000249 d:000249 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557

You can find the full stack trace here: 
((<URL:https://gist.github.com/2988740>))

I don't know how I can help the project here since this is my first time 
to report a bug, but let me know if you would like me to do something. 
Thanks!
=end
Posted by naruse (Yui NARUSE) (Guest)
on 2012-06-26 11:43
(Received via mailing list)
Issue #6645 has been updated by naruse (Yui NARUSE).

Status changed from Open to Feedback

The C level stack trace says someone gives Ruby a broken array.
Anyone can make a small reproducible code?
----------------------------------------
Bug #6645: Segmentation fault in net/http.rb
https://bugs.ruby-lang.org/issues/6645#change-27475

Author: yuki24 (Yuki Nishijima)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


=begin
Today I ran into the problem titled above. The error message looks like 
this:

 /home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761: 
[BUG] Segmentation fault
 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

 -- Control frame information 
-----------------------------------------------
 c:0066 p:0015 s:0266 b:0264 l:000263 d:000263 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761
 c:0065 p:0011 s:0256 b:0256 l:000255 d:000255 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755
 c:0064 p:0048 s:0253 b:0253 l:000252 d:000252 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744
 c:0063 p:0182 s:0250 b:0250 l:000249 d:000249 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557

You can find the full stack trace here: 
((<URL:https://gist.github.com/2988740>))

I don't know how I can help the project here since this is my first time 
to report a bug, but let me know if you would like me to do something. 
Thanks!
=end
Posted by yuki24 (Yuki Nishijima) (Guest)
on 2012-07-17 13:31
(Received via mailing list)
Issue #6645 has been updated by yuki24 (Yuki Nishijima).


sorry for my late reply.

It was a bit difficult for me to reproduce this problem with a minimal 
set of code, and haven't found the one which gives a broken array.
Anyone can reproduce this?

----------------------------------------
Bug #6645: Segmentation fault in net/http.rb
https://bugs.ruby-lang.org/issues/6645#change-28173

Author: yuki24 (Yuki Nishijima)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


=begin
Today I ran into the problem titled above. The error message looks like 
this:

 /home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761: 
[BUG] Segmentation fault
 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

 -- Control frame information 
-----------------------------------------------
 c:0066 p:0015 s:0266 b:0264 l:000263 d:000263 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761
 c:0065 p:0011 s:0256 b:0256 l:000255 d:000255 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755
 c:0064 p:0048 s:0253 b:0253 l:000252 d:000252 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744
 c:0063 p:0182 s:0250 b:0250 l:000249 d:000249 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557

You can find the full stack trace here: 
((<URL:https://gist.github.com/2988740>))

I don't know how I can help the project here since this is my first time 
to report a bug, but let me know if you would like me to do something. 
Thanks!
=end
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-03 02:56
(Received via mailing list)
Issue #6645 has been updated by mame (Yusuke Endoh).


At least, we need your whole source code to reproduce.  Can you provide?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #6645: Segmentation fault in net/http.rb
https://bugs.ruby-lang.org/issues/6645#change-32267

Author: yuki24 (Yuki Nishijima)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


=begin
Today I ran into the problem titled above. The error message looks like 
this:

 /home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761: 
[BUG] Segmentation fault
 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

 -- Control frame information 
-----------------------------------------------
 c:0066 p:0015 s:0266 b:0264 l:000263 d:000263 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761
 c:0065 p:0011 s:0256 b:0256 l:000255 d:000255 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755
 c:0064 p:0048 s:0253 b:0253 l:000252 d:000252 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744
 c:0063 p:0182 s:0250 b:0250 l:000249 d:000249 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557

You can find the full stack trace here: 
((<URL:https://gist.github.com/2988740>))

I don't know how I can help the project here since this is my first time 
to report a bug, but let me know if you would like me to do something. 
Thanks!
=end
Posted by James H. (james_h98)
on 2012-12-14 02:01
This appears to be related, as we've seen this bug when dealing with
secured URLs in cucumber tests:

http://blog.lucianocosta.info/segmentation-fault-e...

While the link specifies Mac OS, we've seen and fixed it on other
platforms by recompiling with a different OpenSSL as described.
Posted by Matthew Riddle (mriddle)
on 2013-01-09 01:29
Hey guys,

I found that this issue was not related to the know OpenSSL bug that 
James mentioned. Note the line numbers of the seg fault in http.rb.

We were experiencing the same issue as yuki24 and the problem resolved 
itself when we upgraded to Ruby 1.9.3-p362.
Posted by drbrain (Eric Hodel) (Guest)
on 2013-01-25 22:43
(Received via mailing list)
Issue #6645 has been updated by drbrain (Eric Hodel).

Category set to lib
Status changed from Feedback to Rejected

No feedback that allows us to reproduce this so I'm rejecting it.
----------------------------------------
Bug #6645: Segmentation fault in net/http.rb
https://bugs.ruby-lang.org/issues/6645#change-35644

Author: yuki24 (Yuki Nishijima)
Status: Rejected
Priority: Normal
Assignee:
Category: lib
Target version:
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


=begin
Today I ran into the problem titled above. The error message looks like 
this:

 /home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761: 
[BUG] Segmentation fault
 ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

 -- Control frame information 
-----------------------------------------------
 c:0066 p:0015 s:0266 b:0264 l:000263 d:000263 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:761
 c:0065 p:0011 s:0256 b:0256 l:000255 d:000255 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755
 c:0064 p:0048 s:0253 b:0253 l:000252 d:000252 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744
 c:0063 p:0182 s:0250 b:0250 l:000249 d:000249 METHOD 
/home/yuki/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557

You can find the full stack trace here: 
((<URL:https://gist.github.com/2988740>))

I don't know how I can help the project here since this is my first time 
to report a bug, but let me know if you would like me to do something. 
Thanks!
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.