[#47409] [ruby-trunk - Feature #6973][Open] Add an #integral? method to Numeric to test for whole-number values — "regularfry (Alex Young)" <alex@...>

12 messages 2012/09/03

[#47481] [ruby-trunk - Bug #7008][Open] rake is crashing when trying to compile ffi gem — "drookie (Eugene M. Zheganin Eugene M. Zheganin)" <eugene@...>

10 messages 2012/09/12

[#47505] [ruby-trunk - Feature #7019][Open] allow `private` and `protected` keywords to take blocks — "alexeymuranov (Alexey Muranov)" <redmine@...>

15 messages 2012/09/13

[#47582] [ruby-trunk - Bug #7037][Open] float formatting inconsistently rounds half to even — "headius (Charles Nutter)" <headius@...>

14 messages 2012/09/19

[#47638] [ruby-trunk - Bug #7046][Open] ERB#run and ERB#result are not safe for concurrent use — "headius (Charles Nutter)" <headius@...>

11 messages 2012/09/21

[#47655] [ruby-trunk - Feature #7051][Open] Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread. — "sam.saffron (Sam Saffron)" <sam.saffron@...>

13 messages 2012/09/23

[#47657] [ruby-trunk - Feature #7055][Open] Allow `.foo=` as a synonym of `self.foo=` — "alexeymuranov (Alexey Muranov)" <redmine@...>

11 messages 2012/09/23

[#47730] [ruby-trunk - Bug #7085][Open] Subversion → GitHub gateway stops. — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

27 messages 2012/09/29

[#47735] [ruby-trunk - Bug #7087][Open] ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist — "rklemme (Robert Klemme)" <shortcutter@...>

10 messages 2012/09/29

[#47759] [ruby-trunk - Bug #7092][Open] StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives — "jayferd (Jay Adkisson)" <jjmadkisson@...>

8 messages 2012/09/30

[ruby-core:47541] [ruby-trunk - Bug #6764] IO#read(size, buf) causes can't set length of shared string in trunk (2.0.0dev)

From: "h.shirosaki (Hiroshi Shirosaki)" <h.shirosaki@...>
Date: 2012-09-15 12:05:01 UTC
List: ruby-core #47541
Issue #6764 has been updated by h.shirosaki (Hiroshi Shirosaki).

File fix_read_buf.patch added

I see this bug with rubyzip. I tried to create a patch.
----------------------------------------
Bug #6764: IO#read(size, buf) causes can't set length of shared string in trunk (2.0.0dev)
https://bugs.ruby-lang.org/issues/6764#change-29324

Author: nahi (Hiroshi Nakamura)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-07-11 trunk 36357) [i686-linux] 


=begin
http://travis-ci.org/#!/nahi/httpclient/jobs/1842569

  Error: test_post_with_custom_multipart_and_file(TestHTTPClient)
    RuntimeError: can't set length of shared string
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/http.rb:561:in `read'
       558:
       559:       def dump_file(io, dev)
       560:         buf = ''
    => 561:         while !io.read(@chunk_size, buf).nil?
       562:           dev << buf
       563:         end
       564:       end
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/http.rb:561:in `dump_file'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/http.rb:483:in `block in dump'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/http.rb:480:in `each'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/http.rb:480:in `dump'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/http.rb:896:in `dump'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/session.rb:612:in `block in query'
  /home/vagrant/.rvm/rubies/ruby-head/lib/ruby/2.0.0/timeout.rb:68:in `timeout'
  /home/vagrant/.rvm/rubies/ruby-head/lib/ruby/2.0.0/timeout.rb:99:in `timeout'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/session.rb:610:in `query'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient/session.rb:161:in `query'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient.rb:1060:in `do_get_block'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient.rb:869:in `block in do_request'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient.rb:956:in `protect_keep_alive_disconnected'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient.rb:870:in `do_request'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient.rb:756:in `request'
  /home/vagrant/builds/nahi/httpclient/lib/httpclient.rb:666:in `post'
  /home/vagrant/builds/nahi/httpclient/test/test_httpclient.rb:769:in `block in test_post_with_custom_multipart_and_file'
  /home/vagrant/builds/nahi/httpclient/test/test_httpclient.rb:765:in `open'
  /home/vagrant/builds/nahi/httpclient/test/test_httpclient.rb:765:in `test_post_with_custom_multipart_and_file'
=end


-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next