Project

General

Profile

Activity

From 01/30/2013 to 02/05/2013

02/05/2013

11:56 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
rb_callccから呼ばれるrb_vm_stack_to_heapでも、
同様にIFUNCの対応が必要ということのようです。
以下のパッチで直りましたがどうでしょうか。
~~~diff
diff --git a/vm.c b/vm.c
index ef5dd97..1429cce 100644
--- a/vm.c
+++ b/vm.c
@@ -556,7 +556,7 @@ void
rb_vm_stack_to_heap(rb_thre...
ktsj (Kazuki Tsujimoto)
05:23 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
(2013/02/05 16:47), ktsj (Kazuki Tsujimoto) wrote:
> が、次のコードがSEGVするようになってしまいました。

がーん.callcc 使ったコードなんて知らん,とは言えないかなぁ.
これは何が起きている?

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
04:47 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
ご対応ありがとうございます。
が、次のコードがSEGVするようになってしまいました。
~~~ruby
require 'continuation'

tp = TracePoint.new(:raise) do |tp|
tp.binding
end
tp.enable do
obj = Object.new
class << obj
include Enumerable
def each
...
ktsj (Kazuki Tsujimoto)
03:23 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
> Issue #7774 has been reported by ktsj (Kazuki Tsujimoto).
>
> ----------------------------------------
> Bug #7774: IFUNC上のbinding呼び出しでSEGV
> https://bugs.ruby-lang.org/issues/7774

 ご報告,ありがとうございました.多分,治ったんじゃないかと思います.

...
ko1 (Koichi Sasada)
03:05 PM Bug #7774 (Closed): IFUNC上のbinding呼び出しでSEGV
This issue was solved with changeset r39067.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c (rb_binding_new_with_cfp): permit to create binding ob...
ko1 (Koichi Sasada)
10:50 PM Bug #7784 (Assigned): [mingw] r39055 creates test failures and functionality loss
luislavena (Luis Lavena)
03:19 PM Bug #7784: [mingw] r39055 creates test failures and functionality loss
it doesn't solve the issue, but why is the permissions check not being isolated to only gem push? jonforums (Jon Forums)
02:54 PM Bug #7784 (Closed): [mingw] r39055 creates test failures and functionality loss
The r39055 patch for rubygems security (lib/rubygems/config_file.rb) causes 11 `make test-all` failures
http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/659/console
and loss of gem command functionality due to typical defa...
jonforums (Jon Forums)
09:06 PM Revision ee074d4b (git): Missed comment from r39079
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
08:58 PM Revision dfb30ef5 (git): * lib/racc/parser.rb: Hide copyright notice from Racc doc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
08:52 PM Revision afea6f47 (git): * doc/rubygems/*: Removed outdated documentation files
* lib/rubygems/LICENSE.txt: Include license file
* lib/rubygems.rb: Move Gem module documentation so rdoc can parse it
and link to LICENSE.txt
* lib/rubygems/*: Hide useless documentation from Gem module rdoc
git-svn-id: svn+ssh://ci...
zzak (zzak _)
06:44 PM Revision 55f11348 (git): * doc/security.rdoc: Remove documentation for unsafe CSV.load which
was deleted in r39077
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
06:28 PM Revision b614d782 (git): * lib/csv.rb: Remove the dangerous serialization feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e James Edward Gray II
05:14 PM Bug #7781: Ruby fails make test on Cygwin for test_io.rb.
I am sorry to say that cygwin is not supported currently.
Of course, we always welcome patches for cygwin (and its maintainer,
if possible).
usa (Usaku NAKAMURA)
03:10 AM Bug #7781: Ruby fails make test on Cygwin for test_io.rb.
I also get these stack errors when I run rails -v (inside any app directory) or bundle install:
Chloe@dumbopc /cygdrive/c/Sites/testapp
$ rails -v
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:23: stack level too deep ...
starrychloe (Chloe S)
04:50 PM Revision 3221e7d2 (git): add contributor to ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:25 PM Bug #7722 (Closed): [rubyspec] failure in core/marshal/dump_spec.rb
This issue was solved with changeset r39069.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_method.c: drop include_all flag
* vm_method.c (rb_obj_re...
nobu (Nobuyoshi Nakada)
03:58 PM Bug #7722: [rubyspec] failure in core/marshal/dump_spec.rb
The issue is that `rb_obj_respond_to` sends a second argument (include private) even when the user method doesn't accept one.
It should be fixed to only send one in those cases.
This is exactly what `check_funcall_respond_to` does ...
marcandre (Marc-Andre Lafortune)
03:57 PM Revision 5b15e5a3 (git): * lib/irb.rb: Remove example from restrictions, it works [Github #246]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:55 PM Revision 1e32d0fc (git): * 2013-02-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:55 PM Revision ca016c70 (git): * vm.c (rb_vm_stack_to_heap): call rb_vm_get_binding_creatable_next_cfp
instead of rb_vm_get_ruby_level_next_cfp to prevent a segfault by
calling Kernel#callcc. See r39067 for more details.
[ruby-dev:46908] [ruby-trunk - Bug #7774]
* test/ruby/test_settracefunc.rb: add a test.
git-svn-id: svn+ssh://ci....
ktsj (Kazuki Tsujimoto)
02:43 PM Bug #7777 (Closed): wrong use of "Raise" method in matrix.rb
This issue was solved with changeset r39065.
py, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/matrix.rb: Fix error message, patch by pypypy [Bug #7777]
marcandre (Marc-Andre Lafortune)
02:39 PM Bug #5715 (Closed): +/-1 ** Bignum returns different results than +/-1 ** Fixnum
This issue was solved with changeset r39063.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* rational.c (nurat_expt): Deal with special cases for rationals ...
marcandre (Marc-Andre Lafortune)
02:39 PM Bug #5713 (Closed): Fixnum#** returns Infinity for 0 ** negative Bignum
This issue was solved with changeset r39063.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* rational.c (nurat_expt): Deal with special cases for rationals ...
marcandre (Marc-Andre Lafortune)
12:50 PM Bug #7715 (Closed): Lazy enumerators should want to stay lazy.
This issue was solved with changeset r39058.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c: Use to_enum for Enumerable methods returnin...
marcandre (Marc-Andre Lafortune)
07:32 AM Bug #7715: Lazy enumerators should want to stay lazy.
Patch updated, rdoc improved too.
Makes for a clean API for Lazy#new also, and there's even less code (~20 loc).
I'll review the patch one last time before committing it (in about 5 hours).
marcandre (Marc-Andre Lafortune)
12:49 PM Bug #7248 (Closed): Shouldn't Enumerator::Lazy.new be private?
This issue was solved with changeset r39057.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c: Finalize and document Lazy.new. [Bug #7248]...
marcandre (Marc-Andre Lafortune)
11:13 AM Bug #7782: Struct both has and does not have an allocator
I am not positive about adding exception classes. So far, TypeError only caused by inexistence of allocator.
Matz.
matz (Yukihiro Matsumoto)
10:54 AM Bug #7782: Struct both has and does not have an allocator
So you think rescuing the error is good enough. Ok, I'll handle it that way. Would it be prudent to make the error very specific, e.g. `UndefinedAllocatorError`. So that rescue clauses can be sure to catch that specifically?
trans (Thomas Sawyer)
09:41 AM Bug #7782 (Closed): Struct both has and does not have an allocator
"allocator" in the error message does not mean #allocate method, but internal C function (thus TypeError not NoMethodError).
We haven't provide the way to check if a class can be allocated, except for actually allocating an object.
I d...
matz (Yukihiro Matsumoto)
01:33 AM Bug #7782 (Closed): Struct both has and does not have an allocator
=begin
One the one hand:
>> Struct.allocate
TypeError: allocator undefined for Struct
from (irb):1:in `allocate'
from (irb):1
from /opt/Ruby/1.9.3-p327/bin/irb:12:in `<main>'
But on the other:
...
trans (Thomas Sawyer)
11:03 AM Bug #7656: Handful of documentations
interesting, doing a little bootleg debugging
<patch>
diff --git a/lib/pp.rb b/lib/pp.rb
index 6e0c797..681956d 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -145,13 +145,16 @@ class PP < PrettyPrint
def pp(obj)
id = obj....
vbatts (Vincent Batts)
09:56 AM Bug #7780: Marshal & YAML should deserialize only basic types by default.
Thanks.
Note that I was proposing to issue a warning once, not for every call.
Also, the most pressing issue is for YAML, and as you can read, I am not the only one wishing to adopt this migration path.
marcandre (Marc-Andre Lafortune)
09:28 AM Bug #7780 (Assigned): Marshal & YAML should deserialize only basic types by default.
Oh, I am sorry, I have misread your proposal. You have posted migration path.
But still numerous warning messages might cause serious problems for programs like dRuby that use marshal extensively.
So I propose to postpone the change ...
matz (Yukihiro Matsumoto)
09:49 AM Revision 81f9052c (git): * doc/security.rdoc: add regex, eval and drb sections
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Charlie Somerville
08:24 AM Revision bd5efa7f (git): * lib/rdoc/servlet.rb: Fixed root search paths, filesystem paths
instead of HTTP paths were returned.
* test/rdoc/test_rdoc_servlet.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:37 AM Revision 627a0825 (git): * lib/rubygems/config_file.rb: Ignore permissions check on windows.
Windows writes 0600 file as 0644 permissions making the check
useless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:25 AM Revision a106b310 (git): vm_method.c: drop include_all flag
* vm_method.c (rb_obj_respond_to): drop optional include_all flag if
respond_to? method is defined in old style. [Bug #7722]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:24 AM Revision 8efeb603 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:04 AM Revision 88101695 (git): * proc.c (rb_binding_new_with_cfp): permit to create binding object
of IFUNC frame.
When `rb_binding_new_with_cfp()' is called, VM finds out the first
normal (has iseq) frame and create a binding object of this frame
and create Env objects. `ep's of related frames are updated
(`ep's point Env obj...
ko1 (Koichi Sasada)
05:52 AM Revision 757bbe87 (git): * enumerator.c: Remove rdoc that is obsolete because of lazy
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:43 AM Revision 9a912c66 (git): * lib/matrix.rb: Fix error message, patch by pypypy [Bug #7777]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:39 AM Revision d22ce4a5 (git): * numeric.c (fix_pow): Handle special cases when base is 0, -1 or +1
[Bug #5713] [Bug #5715]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:39 AM Revision 8797ebd6 (git): * rational.c (nurat_expt): Deal with special cases for rationals 0, ±1
[bug #5713] [bug #5715]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:39 AM Revision 075ae295 (git): * numeric.c: Fix rdoc for Fixnum#**
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:23 AM Feature #7783: Add support for sqrt of very large numbers
Anytime! zzak (zzak _)
05:01 AM Feature #7783 (Closed): Add support for sqrt of very large numbers
Nice find, Zachary!
I happened to talk with Santiago about this. Closing...
MartinBosslet (Martin Bosslet)
04:58 AM Feature #7783: Add support for sqrt of very large numbers
Hey zzak, had no idea about that. Thanks!
So we can close this one.
spastorino (Santiago Pastorino)
04:47 AM Feature #7783: Add support for sqrt of very large numbers
=begin
Hello Mr. Pastorino!
It seems to work when I use the mathn library, which implements sqrt(3)
(({irb(main):001:0> require 'mathn' #=> true}))
(({irb(main):002:0> Math.sqrt(2**6456) #=> 53067179215503898168575338070}))
=end
zzak (zzak _)
04:36 AM Feature #7783: Add support for sqrt of very large numbers
/RSA the/when/ spastorino (Santiago Pastorino)
04:35 AM Feature #7783 (Closed): Add support for sqrt of very large numbers
Currently ...
irb(main):001:0> Math.sqrt(2**6456)
=> Infinity
I wanted to do something like this to show an example of how RSA could break RSA the public modulus N is generated incorrectly.
In Python you can do it using http://...
spastorino (Santiago Pastorino)
04:45 AM Revision 55f0fa5a (git): test_range.rb: refine message
* test/ruby/test_range.rb (TestRange#test_bsearch_with_mathn): refine
failure messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:27 AM Revision 490f1fc0 (git): console.c: default by stty raw
* ext/io/console/console.c (rawmode_opt): use default values by `stty
raw`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:23 AM Feature #6362: Modular exponentiation/inverse
This would be a great thing to have +1000 spastorino (Santiago Pastorino)
03:51 AM Revision e29e4b55 (git): * range.c: Use div instead of / for bsearch
* test/ruby/test_range.rb: Test showing bug when requiring mathn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
03:49 AM Revision 1677cbce (git): * enumerator.c: Use to_enum for Enumerable methods returning Enumerators.
This makes Lazy#cycle no longer needed, so it was removed.
Make Enumerator#chunk and slice_before return lazy Enumerators.
[Bug #7715]
* internal.h: Remove ref to rb_enum_cycle_size; no longer needed
* enum.c: Make enum_cycle_size ...
Marc-Andre Lafortune
03:49 AM Revision 44cd5f21 (git): * enumerator.c: Finalize and document Lazy.new. [Bug #7248]
Add Lazy#to_enum and simplify Lazy#size.
* test/ruby/test_lazy_enumerator.rb: tests for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
03:49 AM Revision 5af821c6 (git): * enumerator.c: Fix and improve rdoc for to_enum
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:37 AM Revision 1633e543 (git): * lib/rubygems/commands/push_command.rb: Fixed credential download for
`gem push --host`
* lib/rubygems/gemcutter_utilities.rb: ditto.
* test/rubygems/test_gem_commands_push_command.rb: Test for the above.
* test/rubygems/test_gem_gemcutter_utilities.rb: ditto.
* lib/rubygems/config_file.rb: Abort if t...
drbrain (Eric Hodel)
01:18 AM Revision 6dfd5669 (git): * doc/security.rdoc: Wrap security guide at 80 columns
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
01:14 AM Revision 47da37b0 (git): * doc/security.rdoc: Grammatical error on security guide
Patch by Josh Bassett [Github fixes #245]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
01:13 AM Revision acd3f3e7 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:01 AM Revision c50b3288 (git): * lib/racc/parser.rb: Update #do_parse and #yyparse from upstream
See [Github tenderlove/racc@7d954b5]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
12:56 AM Revision 941ea371 (git): * lib/racc: Merge Racc documentation downstream, add grammar ref file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)

02/04/2013

11:04 PM Revision f11ff34d (git): * lib/irb.rb, lib/irb/ext/save-history.rb: Add documentation on how to
enabled irb history [ruby-core:51347] [Bug #7679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
10:36 PM Revision e195e181 (git): * lib/irb.rb, lib/irb/context.rb: Add documentation on how to enable
auto-indentation and autocompletion using irbrc and irb_context
[ruby-core:51209] [Bug #7642] and [ruby-core:51348] [Bug #7680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:20 PM Revision 9cfc40ab (git): * doc/standard_library.rdoc: Document list of libraries and extensions
and their purpose or short description
* lib/README: Remove lib/README in favor of doc/standard_library.rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:39 PM Revision 53bc3490 (git): * ext/json/lib/json.rb: Move module overview definition for rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:59 PM Revision f691d4a5 (git): * 2013-02-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:59 PM Revision 2a970150 (git): * lib/tracer.rb: Move class overview definition and reformat
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:01 PM Bug #7781 (Rejected): Ruby fails make test on Cygwin for test_io.rb.
When compiling Ruby on Cygwin.com, it fails 'make test' for test_io.rb.
Chloe@dumbopc ~/ruby-1.9.3-p374
$ uname -a
CYGWIN_NT-5.1 dumbopc 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin
$ ./ruby -v
ruby 1.9.3p374 (2013-01-15 revisi...
starrychloe (Chloe S)
04:52 PM Bug #7715: Lazy enumerators should want to stay lazy.
Patch almost done, which also fixes #7248
https://github.com/marcandre/ruby/compare/marcandre:master...marcandre:lazy
Still missing:
- tweak inspect
- fix .lazy.size
- couple more tests
marcandre (Marc-Andre Lafortune)
09:12 AM Bug #7715: Lazy enumerators should want to stay lazy.
I believe I have found the key to resolve this issue, Lazy.new issue [#7248] and others.
We simply need to specialize `to_enum/enum_for` for lazy enumerators.
In the same way, RETURN_SIZED_ENUMERATOR should return a lazy enumerator...
marcandre (Marc-Andre Lafortune)
03:26 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
matz (Yukihiro Matsumoto) wrote:
> Your proposed change will crash many programs including dRuby.
Could you please elaborate? By crash, do you mean break?
The proposed change simply adds a warning to YAML.load; do you consider tha...
marcandre (Marc-Andre Lafortune)
02:54 PM Bug #7780 (Rejected): Marshal & YAML should deserialize only basic types by default.
Your proposed change will crash many programs including dRuby.
So it's too late for 2.0.0.
Don't get me wrong by rejecting this issue.
I am not against the idea of restriction itself. "secure by default" sounds nice, but this idea r...
matz (Yukihiro Matsumoto)
01:45 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
What about using load for the safe method and load! for the non-safe method? That would be the Ruby way.
Otherwise, in particular for Yaml, I think it's way better to have load and dangerous_load rather than load and safe_load.
duerst (Martin Dürst)
01:05 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
Just read the comments in the post I referred to (http://nedbatchelder.com/blog/201302/war_is_peace.html)
There's an informative comment from Nick Coghlan, a CPython core dev. He also advocates "Security by default", and gives the exa...
marcandre (Marc-Andre Lafortune)
12:54 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
mame (Yusuke Endoh) wrote:
> I think that this issue is not a bug, but a new feature.
I would rather not argue about this.
> ...
This is worth arguing over.
What downside do you see to my proposition?
What upsides do you see t...
marcandre (Marc-Andre Lafortune)
12:33 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
mame (Yusuke Endoh) wrote:
> I agree with charliesome; I think that this issue is not a bug, but a new feature.
> ...
Let me clarify what I meant.
I think Marshal.load is ok to be dangerous, as Marshal is something that it very coup...
Anonymous
12:29 PM Bug #7780 (Assigned): Marshal & YAML should deserialize only basic types by default.
Is this related to #7759?
charliesome (Charlie Somerville) wrote:
> Please note that I do not consider this a vulnerability in Ruby. Marshal is dangerous by design. This is an education problem - we need to document the fact that it ...
mame (Yusuke Endoh)
12:05 PM Bug #7780: Marshal & YAML should deserialize only basic types by default.
For reference, the vulnerabilities I'm referring to are the two major Rails vulnerabilities CVE-2013-0156, CVE-2013-0333, that affected the vast majority of installed rails applications, and even Rails app running locally on port 3000, t... marcandre (Marc-Andre Lafortune)
11:30 AM Bug #7780 (Closed): Marshal & YAML should deserialize only basic types by default.
YAML is a wonderful, powerful and expressive format to serialize data in a human readable way.
It can be used, for example, to read and write nice configuration files, to store strings, numbers, dates & times in a hash.
YAML.load w...
marcandre (Marc-Andre Lafortune)
02:11 PM Feature #7639: More freedom for location of comments
It was meant to be and has been an experimental feature, so let's not take it for granted as established one.
We already have it so why not extend it is not the way to go.
If a problem is found, we need to reconsider and address downsi...
knu (Akinori MUSHA)
11:20 AM Feature #7639: More freedom for location of comments
> alexeymuranov (Alexey Muranov)
Allowing a line to start with a period was a change introduced in Ruby 1.9. It is not what I am newly proposing here. If you are against it, that would be a claim against that feature introduced in the...
sawa (Tsuyoshi Sawada)
03:44 AM Feature #7639: More freedom for location of comments
As for me, i do not like to continue a line by starting the following one with a dot: it is not clear immediately if the first line is over, and does not allow to copy-paste the code into IRB. alexeymuranov (Alexey Muranov)
12:23 PM Revision d06141cd (git): io-console.gemspec: 0.4.1
* ext/io/console/io-console.gemspec: bump to 0.4.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:17 PM Bug #6967 (Closed): Vector#inner_product は複素数ベクトルのとき不適切
Fixed with r38983 (not sure why redmine didn't link the commit & close the issue).
ありがとうございます。
marcandre (Marc-Andre Lafortune)
12:15 PM Revision 1a15c377 (git): io-console.gemspec: limit date length
* ext/io/console/io-console.gemspec: limit Date keyword length to get rid of locale format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:09 PM Revision 36ed400f (git): io-console.gemspec: update
* ext/io/console/io-console.gemspec: use Date keyword and add licenses.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:15 AM Bug #7779 (Closed): embedded rubygems 2.0.0.rc.2 mangles --user-install
This is low priority for my usage, and while I'm not investigating the issue anytime soon, I'm surfacing it here in case it's not my system issue and it affects 2.0.0 readiness. I didn't see anything similar on RG's GH issue tracker.
...
jonforums (Jon Forums)
06:19 AM Revision a9cbe8c7 (git): init.c: declaration-after-statement
* ext/socket/init.c (cloexec_accept): fix declaration-after-statement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:10 AM Revision 523292d6 (git): console.c: initialize
* ext/io/console/console.c (rawmode_opt): initialize options for the
case all options are not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:36 AM Bug #7778 (Rejected): Irb loading generates 17x more open/stat system calls when a locale is set
Hello,
I did just found out that when I have a locale set (e.g. cs_CZ in my case), irb does some extra finding for rb/so files which are being required. That slows down loading time and if you have many rubygems, loading can be really...
lzap (Lukas Zapletal)
04:31 AM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Ok the above looks like bug in lib/irb/locale.rb:
LC_ALL=C strace irb < /dev/null 2>&1 | grep ENOENT | wc -l
293
It not only triples amount of stat/open calls, it is like 17.5x faster. I am filling new bugreport for this.
lzap (Lukas Zapletal)
04:24 AM Bug #7158: require is slow in its bookkeeping; can make Rails startup 2.2x faster
Hello,
I am trying Ruby 2.0 RC1 which should contain this fix, but I think I still see many stat and open syscalls with ENOENT result. The number is slightly lower.
$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
$ ...
lzap (Lukas Zapletal)
03:46 AM Revision 4cb4c929 (git): * vm_dump.c (control_frame_dump): capitalize prefix of `ep'
if `ep' points an env object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:50 AM Revision 9e5167c3 (git): English.rb: no set
* lib/English.rb (English): disable setting instead of removing after set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:28 AM Bug #7777 (Closed): wrong use of "Raise" method in matrix.rb
=begin
"Raise" method added by e2mmap library shows customized error messages according to pre-registered formats:
$ irb
irb(main):001:0> require 'matrix'
=> true
irb(main):002:0> Matrix.Raise ArgumentError, 2, 3 rescue $!...
pypypy567 (py _)
12:16 AM Revision e7d6a048 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

02/03/2013

10:33 PM Feature #7639: More freedom for location of comments
Indeed, method chains do seem to continue beyond empty lines. The following two work:
```ruby
[1, 2, 3].
map{|x| x * 2}
```
```ruby
[1, 2, 3].
#
map{|x| x * 2}
```
But the following does not, (which I claim is strange, gi...
sawa (Tsuyoshi Sawada)
10:10 PM Feature #7639 (Feedback): More freedom for location of comments
Comments are equivalent to white spaces syntactically now, so do you expect that a method chain will continue beyond empty lines?
It seems strange to me.
nobu (Nobuyoshi Nakada)
02:29 PM Feature #7639: More freedom for location of comments
I would like to add another argument for such feature. It is common that you put each step of a chain in a new line. During debugging, it frequently happens that you want to comment out particular lines within a chain. You have no proble... sawa (Tsuyoshi Sawada)
10:32 PM Bug #7737: problem with generated rbconfig.rb for Haiku
paul0 (Paulo Geyer) wrote:
> fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile
$(srcdir)/complex.o?
I have no idea why the object file is prefixed with...
nobu (Nobuyoshi Nakada)
06:11 AM Bug #7737: problem with generated rbconfig.rb for Haiku
paul0 (Paulo Geyer) wrote:
> fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile
> ...
fixed other things, and finished compiling
this patch haven't solved...
paul0 (Paulo Geyer)
03:15 AM Bug #7737: problem with generated rbconfig.rb for Haiku
fixed that, changed to $(srcdir)/complex.o the line where tells where the object to be linked is in the ext/mathn/complex/Makefile
had to do that with ext/mathn/rational/Makefile too
paul0 (Paulo Geyer)
02:53 AM Bug #7737: problem with generated rbconfig.rb for Haiku
nobu (Nobuyoshi Nakada) wrote:
> Seems RPATHFLAG unnecessary for extconf.rb.
> ...
tried again with the latest patch, and updated my local code with the remote repository, now it can't find "complex.o"
here is the make output
lin...
paul0 (Paulo Geyer)
09:53 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
2013年2月3日 18:35 SASADA Koichi <ko1@atdot.net>:
>  RC2 っていつ頃出します?

連絡してなくてすみません。

rubygems.org の事件に関連して Eric Hodel が何かしら rubygems に
対処が必要かを検討したいと言っていて、その具体的なプランを問い
合わせているところです。(今日中に返事よこせと言った)

明日には何かしらのアナウンスを出したいと思います。
...
mame (Yusuke Endoh)
06:53 PM Bug #7774: IFUNC上のbinding呼び出しでSEGV
(2013/02/03 18:14), ktsj (Kazuki Tsujimoto) wrote:
> binding呼び出しによって環境がヒープに移されますが、
> IFUNC上のepがそれに追随できていないのが原因です。

 あーあーきこえなーい.

 じゃなくて,ええと,IFUNC 回りはてきとーですよね.どうしようかな.

 RC2 っていつ頃出します?

--
// SASADA Koichi at atdot...
ko1 (Koichi Sasada)
06:14 PM Bug #7774 (Closed): IFUNC上のbinding呼び出しでSEGV
=begin
辻本です。
以下のコードでSEGVします。
tp = TracePoint.new(:raise) do |tp|
tp.binding
end
tp.enable

@obj = Object.new
class << @obj
include Enumerable
def each
yield 1
end
end

@obj.zip({}) {}
バックト...
ktsj (Kazuki Tsujimoto)
07:21 PM Revision 6d32920e (git): * lib/English.rb: Add English module for RDoc to parse, then
remove_const to avoid confusion. Include full list of aliases and
their associated global variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:05 PM Bug #7522: Non-core "Type()" Kernel methods return new objects
No apology necessary. Thanks for the help! jballanc (Joshua Ballanco)
06:01 PM Bug #7762: io-console version should be bumped
nobu (Nobuyoshi Nakada) wrote:
> I had uploaded io-console gem generated from the trunk.
> ...
Thank you. That solved my concerns.
vo.x (Vit Ondruch)
04:54 PM Bug #7762 (Closed): io-console version should be bumped
This issue was solved with changeset r39031.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io-console.gemspec: bump
* ext/io/console/io-console.gemspec: bum...
nobu (Nobuyoshi Nakada)
11:40 AM Bug #7762 (Feedback): io-console version should be bumped
I had uploaded io-console gem generated from the trunk.
How do they differ?
nobu (Nobuyoshi Nakada)
05:41 PM Bug #7773 (Closed): Calling send("attribute=", value) returns nil instead of value
When calling an attribute writer created using either attr_accessor or attr_writer via send nil is returned from the send call instead of the new value.
I've attached a test case that is failing on current head (51794) and 2.0.0-rc1. ...
gaffneyc (Chris Gaffney)
05:40 PM Revision 63bedf5d (git): * 2013-02-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:40 PM Revision 110a545d (git): * lib/yaml.rb (YAML::EngineManager): Documentation for #yamler and
#yamler= for using the removed Syck gem as the YAML::ENGINE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:24 PM Feature #7748: Contextual send
Ah, so this has been thought of before. I agree it should not replace behaviour of private #send (although, how much sweeter the syntax if it were called #private_send ?). But as an additional method, it would be useful.
Or was there so...
trans (Thomas Sawyer)
01:34 PM Feature #7748: Contextual send
#send had been implemented in that manner once, but reverted and #public_send was separated instead. nobu (Nobuyoshi Nakada)
04:28 PM Bug #7772: Consider bumping stack size in ruby_qsort
Sorry, I should have had a look at the patch. It makes indeed sense to apply this patch. duerst (Martin Dürst)
04:26 PM Bug #7772: Consider bumping stack size in ruby_qsort
It's very well known that Quicksort may create stack overflows. But it's also very well known how to deal with them: Check which of the remaining divisions is longer, and user recursion for the sorter part, and tail recursion simulated w... duerst (Martin Dürst)
04:07 PM Bug #7772: Consider bumping stack size in ruby_qsort
Patch to bump size to 64 Conrad.Irwin (Conrad Irwin)
04:06 PM Bug #7772 (Closed): Consider bumping stack size in ruby_qsort
At the moment the maximum size of the stack is 32. The comment implies this should be enough for arrays with up to 2**32 elements, but it's possible to create larger arrays on some big systems.
I was not able to trigger a bug with: ([...
Conrad.Irwin (Conrad Irwin)
10:30 AM Bug #7753 (Closed): Module#attr_reader documentation uses an undefined variable
Thank you Narsimham Chelluri, this issue was resolved by r38976. zzak (zzak _)
10:26 AM Bug #7770 (Closed): rand(range) is not document
This issue was solved with changeset r39025.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* random.c: Document range argument for Kernel#rand.
[ruby-...
zzak (zzak _)
09:59 AM Bug #7709 (Closed): constants on Float aren't documented
This issue was solved with changeset r39024.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* numeric.c: Document Float constants [ruby-core:51484] [Bug #7709]
zzak (zzak _)
08:22 AM Revision 80455c0d (git): * ext/io/console/io-console.gemspec: fix date.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:54 AM Revision b3d12956 (git): io-console.gemspec: bump
* ext/io/console/io-console.gemspec: bump. [Bug #7762]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:54 AM Revision b381a662 (git): test_io_console.rb: descriptive assertions
* test/io/console/test_io_console.rb (test_stringio_getch): use more
descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:54 AM Revision f050b223 (git): console.c: fix unit of min
* ext/io/console/console.c (rawmode_opt): min is minimum characters,
not tenths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:51 AM Revision 47dc049f (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:48 AM Revision 8c821761 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:14 AM Revision cac38cd0 (git): * doc/security.rdoc: add first cut at a Ruby security document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Charlie Somerville
01:25 AM Revision ec720303 (git): * random.c: Document range argument for Kernel#rand.
[ruby-core:51794] [Bug #7770]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
12:59 AM Revision a954def1 (git): * numeric.c: Document Float constants [ruby-core:51484] [Bug #7709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:38 AM Revision 9ed4d1ab (git): profiler.rb: block calls
* lib/profiler.rb (PROFILE_CALL_PROC, PROFILE_RETURN_PROC): add b_call
and b_return to profile block calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:37 AM Revision 0d7a1971 (git): * 2013-02-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:37 AM Revision f87614d7 (git): profiler.rb: split PROFILE_PROC
* lib/profiler.rb (PROFILE_CALL_PROC, PROFILE_RETURN_PROC): split
PROFILE_PROC for call and return events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/02/2013

07:23 PM Bug #7771 (Rejected): method 'gets' crashed
Anonymous
07:23 PM Bug #7771: method 'gets' crashed
=begin
This is by design, (({gets})) will read from (({ARGV})) by default. If you want to read from the standard input even if there is a command line argument, use:
$stdin.gets
=end
Anonymous
07:17 PM Bug #7771 (Rejected): method 'gets' crashed
method 'gets' crashed when pass arguments like "ruby test.rb hello"
example
#file test.rb only one method
gets
#end
=========
type "ruby test.rb" and enter will work well
but "ruby test.rb hello" will crash
In my machine(ubun...
jjyr (Jinyang Jiang)
02:09 PM Bug #7656 (Feedback): Handful of documentations
Hello Vincent,
I've committed your patch for lib/debug. as r39019, I was reviewing your patch for lib/pp.rb and noticed the example for PPMethods::check_inspect_key doesn't work in trunk.
::check_inspect_key(obj.object_id) returns ...
zzak (zzak _)
01:13 PM Bug #7081 (Closed): GServer orphaned threads lead to resource exhaustion
This issue was solved with changeset r39016.
stephen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/gserver.rb (GServer#start): fix a timing issue. patch f...
mame (Yusuke Endoh)
01:12 PM Bug #6756 (Open): FileUtils.rm_rf がアクセス権のない空ディレクトリを削除しない
まあ一応反対が出たのでコミットしません。
内容的には小崎さんに全面賛成で、「あの環境でできないから」とか言ってたら
File/FileUtils 関係はほとんど何も出来なくなるんじゃないかと思いますが、
まあ今から議論するのは 2.0.0 には遅いので next minor にします。
あと自分で判断できる内容じゃない気がするので担当ははずれておきます。
対応が遅くなってすみません。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:57 PM Bug #7373 (Closed): FileUtils#chmod verbose gives error when mode is string
Applied at r39011.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:54 PM Bug #7246 (Closed): FileUtils.cp_r does not preserve attributes of directories
This issue was solved with changeset r39015.
Jan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb (copy_entry, wrap_traverse): preserve attribute...
mame (Yusuke Endoh)
12:18 PM Bug #7301 (Closed): URI::FTP.new2()の引数typecodeを省略するとNoMethodErrorが発生します。
This issue was solved with changeset r39013.
Yoshifumi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/uri/ftp.rb (URI::FTP.new2): remove the rdoc because it...
mame (Yusuke Endoh)
12:04 PM Bug #7522 (Assigned): Non-core "Type()" Kernel methods return new objects
Sorry but let me postpone this to the next minor.
I'm afraid if the existing code depends on the traditional behavior.
It should have been included in rc1, which is my fault. Sorry, blame me.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:47 AM Bug #7406 (Closed): English.rb says that $_ is thread-local, but it is frame-local
This issue was solved with changeset r39010.
Charles, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/English.rb: Remove some confusing words from rdoc. [Bug...
mame (Yusuke Endoh)
07:46 AM Bug #5747 (Closed): Proc#curry doesn't always detect too many arguments
This issue was solved with changeset r39008.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c (proc_curry): Fix arity check [Bug #5747]
* test/...
marcandre (Marc-Andre Lafortune)
07:46 AM Bug #7765 (Closed): Proc#arity bug with optional argument
This issue was solved with changeset r39007.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c: Add {*}_min_max_arity and refactor.
[Bug #7765]...
marcandre (Marc-Andre Lafortune)
05:32 AM Revision f5b8e90a (git): * lib/minitest/mock.rb, lib/minitest/hell.rb: nodoc top-level module
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:04 AM Revision 32e754c8 (git): * lib/debug.rb: Documentation for DEBUGGER__ class methods based on
patch by Vincent Batts [ruby-core:51253]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:49 AM Bug #7766 (Closed): Marshal.dump corrupts Hash data when serializing
vo.x (Vit Ondruch)
04:32 AM Bug #7766: Marshal.dump corrupts Hash data when serializing
It only corrupted the output, although a few mins ago I realized I was on the preview and there was an RC1 out.
I just tested RC1 and the problem seems to have been fixed.
Do excuse me and please ignore this issue.
zapotek (Tasos Laskos)
04:37 AM Revision e91fb5eb (git): * lib/net/smtp.rb: Fix rdoc title for Net::SMTP
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:32 AM Revision 94839d4a (git): * lib/net/pop.rb: Fix rdoc title for Net::POP3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:13 AM Revision 1d23123c (git): * lib/gserver.rb (GServer#start): fix a timing issue. patch from
Charles Nutter. [Bug #7081]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:54 AM Revision 7dc77be2 (git): * lib/fileutils.rb (copy_entry, wrap_traverse): preserve attributes of
directories on FileUtils.cp_r. The fix was proposed by Jan
Wedekind. [Bug #7246]
* test/fileutils/test_fileutils.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:31 AM Revision 87d3c2d6 (git): * lib/uri/ftp.rb (URI::FTP.new2): nodoc method from r39013 [Bug #7301]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:18 AM Revision a60a562c (git): * lib/uri/ftp.rb (URI::FTP.new2): remove the rdoc because it is not
well tested yet. [Bug #7301]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:09 AM Revision 8b54e050 (git): * ChangeLog: Forgot to add a reference to the ChangeLog of the
previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:07 AM Revision 4077b9b8 (git): * lib/fileutils.rb: chmod/chmod_R with a string mode (e.g., "+x")
caused error in verbose mode.
* test/fileutils/test_fileutils.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
02:47 AM Revision 2ae0c4c4 (git): * lib/English.rb: Remove some confusing words from rdoc. [Bug #7406]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
01:38 AM Bug #7625: Arrayを継承したオブジェクトのcompactがArrayを返す
r39004 (#7768) で uniq は修正されたようですね。 mrkn (Kenta Murata)
01:35 AM Bug #7768: Inherited Array class missing
#7625 is related to this issue. mrkn (Kenta Murata)
01:21 AM Revision d127e92b (git): * NEWS: add keyword arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)

02/01/2013

11:57 PM Bug #7750: GC中にオブジェクトが割り当てられる
OSはWindows8で、CPUは、Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz 3.30GHzです。5分程度でスクリプト自体は死にます。再度手元で、10回程度実行してみたところ前述したメッセージが出ませんでした。すいません。
konishi_takurou (瀧澤 悠介)
11:52 PM Bug #7770 (Closed): rand(range) is not document
Random#rand(range) is written in RDoc of random_rand, but rand(range) is not written in RDoc of rb_f_rand. znz (Kazuhiro NISHIYAMA)
11:05 PM Bug #7768 (Closed): Inherited Array class missing
This issue was solved with changeset r39004.
Roman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c (rb_ary_dup): make returned array the same class as th...
Anonymous
09:56 PM Bug #7768: Inherited Array class missing
=begin
Looks like a regression introduced in r26987
=end
Anonymous
09:43 PM Bug #7768 (Closed): Inherited Array class missing
Hello. I apologize if I missed something.
I found strange behavior in ruby 1.9:
```ruby
class Custom < Array; end
Custom.new(0){|i| i + 1}.uniq.class # => Array
Custom.new(2){|i| i + 1}.uniq.class # => Custom
```
while in 1...
england (Roman Ivanilov)
10:46 PM Revision f810d180 (git): * proc.c (proc_curry): Fix arity check [Bug #5747]
* test/ruby/test_proc.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
10:46 PM Revision 83610815 (git): * proc.c: Add {*}_min_max_arity and refactor.
[Bug #7765]
* test/ruby/test_proc.rb: Fix wrong test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
09:59 PM Feature #7767: Tempfileで自動的にファイルを削除する
2013/2/1 kyanagi (Kouhei Yanagita) <redmine@ruby-lang.org>:
>
> しかし、Tempfile.openにブロックを渡すと自動的にcloseするところまではやってくれるのに、
> 削除をわざわざ明示的に書かないといけないというのは少し残念な気もします。
>
> Tempfile.openの類推で、ブロックを抜けると自動的にclose!してくれるメソッドがあると、
> 削除に気を使わなくて...
akr (Akira Tanaka)
09:27 PM Feature #7767 (Closed): Tempfileで自動的にファイルを削除する
ソースコードのコメント(tempfile.rbのGood practicesの項)にも書かれている通り、
Tempfileは使用後、明示的に削除することが推奨されています。
しかし、Tempfile.openにブロックを渡すと自動的にcloseするところまではやってくれるのに、
削除をわざわざ明示的に書かないといけないというのは少し残念な気もします。
Tempfile.openの類推で、ブロックを抜けると自動的にclose!してくれるメソッドがあると、
...
kyanagi (Kouhei Yanagita)
09:07 PM Bug #7766: Marshal.dump corrupts Hash data when serializing
=begin
Does it only corrupt the output, or does it break the actual Hash object passed to it?
=end
Anonymous
12:57 PM Bug #7766 (Closed): Marshal.dump corrupts Hash data when serializing
=begin
Marshal.dump seems to corrupt a Hash object during serialization.
The problem is that this does not happen when the affected Hash is serialized by itself but only (as far as I could see) when it's part of a larger object.
Wor...
zapotek (Tasos Laskos)
08:29 PM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
On 2013/01/31 18:07, coffeejunk (Maximilian Haack) wrote:
>
> Issue #7752 has been updated by coffeejunk (Maximilian Haack).
>
>
> The only problem I see is that ruby is lying to the user.

There is 0% lying if one claims ...
duerst (Martin Dürst)
03:17 PM Bug #7752 (Rejected): Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
On current policy, strings which always include only US-ASCII characters are US-ASCII.
If there is a practical issue, I may change the policy in the future.
Note that US-ASCII string is faster than UTF-8 on getting length or index ac...
naruse (Yui NARUSE)
03:46 PM Revision 4b4d889f (git): * 2013-02-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:46 PM Revision ba5ff937 (git): * marshal.c: add security considerations to marshal overview, refer to
overview from Marshal.load documentation [#7759]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
03:19 PM Feature #7763 (Assigned): add Win32::Registry#values
usa (Usaku NAKAMURA)
02:31 AM Feature #7763 (Closed): add Win32::Registry#values
hello.
In today's Win32::Registry objects, we have
#num_keys, #keys, #num_values
(and no #values method, but there is an #each_value method and #each_key method).
So this is a feature request for it to be added. I suppose it ...
rogerdpack (Roger Pack)
02:47 PM Feature #6626: Readline.delete_text
feature requestだと思うのでnext minorにしておきます。
shugo (Shugo Maeda)
02:44 PM Bug #6332 (Feedback): Error compiling readline due username_completion_function being undeclared (GCC 4.6)
luislavena (Luis Lavena) wrote:
> Attempting to compile trunk (r35415) against GCC 4.6 (4.6.3, OSX 10.6, MacPorts provided) generates the following failure:
Could you attach ext/readline/{mkmf.log,extconf.h}?
shugo (Shugo Maeda)
02:37 PM Bug #7397 (Closed): Fix detection of RL_PROMPT_*_IGNORE macros
This issue was solved with changeset r39002.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/readline/extconf.rb, ext/readline/readline.c: check
RL...
shugo (Shugo Maeda)
02:05 PM Revision 86aa98fe (git): * array.c (rb_ary_dup): make returned array the same class as the original
array [Bug #7768] [ruby-core:51792]
* test/ruby/test_array.rb (class TestArray): add test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
07:35 AM Revision 3fe93956 (git): marshal.c: prohibit_ivar
* marshal.c (r_object0): prohibit setting instance variables of
exising class/module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:38 AM Bug #7765 (Closed): Proc#arity bug with optional argument
We have:
Proc.new{|a, b, c, d, e|}.arity # => 5
Matz decided [ruby-core:46515] we also have:
Proc.new{|a, b, c, d, e=0|}.arity # => 4
It looks like we currently have:
Proc.new{|a, b=0, c, d, e|}.arity # => 1, s...
marcandre (Marc-Andre Lafortune)
05:37 AM Revision 46ea3f65 (git): * ext/readline/extconf.rb, ext/readline/readline.c: check
RL_PROMPT_START_IGNORE and RL_PROMPT_END_IGNORE directly in
readline.c. Patch by Zachary Scott. [Bug #7397] [ruby-core:49561]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:50 AM Bug #7172: [[Ruby 1.9:]] fix rbconfig for --enable-load-relative (v2)
So running:
rvm install ruby-head --debug --movable
Executes:
autoreconf
./configure --disable-install-doc --prefix=/home/mpapis/.rvm/rubies/ruby-head --enable-shared --enable-load-relative --sysconfdir=/etc --with-...
mpapis (Michal Papis)
12:47 AM Revision 8df20dd7 (git): * 2013-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:47 AM Revision c58d8c30 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

01/31/2013

10:57 PM Feature #5481: Gemifying Ruby standard library
BTW there should be process in place which ensures, that the libraries are properly versioned, i.e. if something is changed, it cannot have the same version as already released library (see #7761 and #7762). vo.x (Vit Ondruch)
10:52 PM Bug #7762 (Closed): io-console version should be bumped
The io-console shipped with Ruby 2.0 claims it is version 0.3, although it is definitely different code from io-console 0.3 available on rubygems.org. bigdecimal version should be bumped prior release of Ruby 2.0.0 to prevent confusion. vo.x (Vit Ondruch)
10:08 PM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
US-ASCII is a strict subset of UTF-8, so I don't think there's necessarily any lying involved. jballanc (Joshua Ballanco)
06:07 PM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
The only problem I see is that ruby is lying to the user. It is not severe since, as you said, there are no non-ascii characters in the resulting string, but I think ruby should respect the set encoding. coffeejunk (Maximilian Haack)
09:55 PM Bug #7759 (Closed): Marshal.load is not documented to be dangerous
This issue was solved with changeset r38999.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
marshal.c: warn against using Marshal.load on untrusted data
...
Anonymous
11:23 AM Bug #7759: Marshal.load is not documented to be dangerous
(2013/01/31 8:59), charliesome (Charlie Somerville) wrote:
> Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execution.

Could...
ko1 (Koichi Sasada)
11:15 AM Bug #7759: Marshal.load is not documented to be dangerous
> I've thought it's a common sense, isn't it?
You would imagine so, however I have seen a lot of code that does unmarshal untrusted data.
I will send an example to security@ruby-lang.org. Please note that I do not consider this a v...
Anonymous
11:07 AM Bug #7759: Marshal.load is not documented to be dangerous
charliesome (Charlie Somerville) wrote:
> Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execution.
Can't you elaborate it, prob...
nobu (Nobuyoshi Nakada)
09:53 AM Bug #7759: Marshal.load is not documented to be dangerous
> Marshal.load is incredibly powerful, and also incredibly dangerous.
>
> Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execut...
kosaki (Motohiro KOSAKI)
08:59 AM Bug #7759 (Closed): Marshal.load is not documented to be dangerous
=begin
Marshal.load is incredibly powerful, and also incredibly dangerous.
Unfortunately, many developers use it inappropriately and unmarshal user input. This can lead to a wide range of vulnerabilities, including remote code execut...
Anonymous
04:58 PM Bug #7722: [rubyspec] failure in core/marshal/dump_spec.rb
I am not that confident that I understand all the detail, but I vote for drop include_all flags.
Matz.
matz (Yukihiro Matsumoto)
03:59 PM Bug #7760 (Closed): "-\n2000-01-02 03:04:05".to_yaml raise ArgumentError
1.9.3's psych raises ArgumentError.
2.0.0's psych doesn't.
% ruby -v -r yaml -e '"-\n2000-01-02 03:04:05".to_yaml'
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
/Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9...
znz (Kazuhiro NISHIYAMA)
12:55 PM Revision f8823475 (git): marshal.c: warn against using Marshal.load on untrusted data
* marshal.c (marshal_load): Add documentation warning against using
Marshal.load on untrusted data [Bug #7759] [ruby-core:51765]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
12:12 PM Bug #7758: Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
I confirmed this bug occurs on Windows 7 with ruby 1.9.3p374 and 2.0 trunk.
I tested with MinGW32 gcc compiled version(mingw32) and MSVC++ compiled version(mswin32).
When the windows console font is a console with raster font, this...
phasis68 (Heesob Park)
06:18 AM Bug #7758 (Feedback): Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
Can you tell us more about the specific version of Windows that you're using?
Nowhere in your output says which version of Windows is.
Have you tried this against Ruby 2.0 too?
luislavena (Luis Lavena)
05:22 AM Bug #7758 (Closed): Ruby on Windows crashes when active codepage is codepage 65001 and outputting unicode character
=begin
I have a script that contains the unicode BOX_DRAWINGS_LIGHT_VERTICAL_AND_RIGHT character (http://www.fileformat.info/info/unicode/char/251c/index.htm). When the console code page is set to 65001 (utf-8), both ruby 1.9.3 p125 and...
joshc (Josh C)
07:33 AM Revision 20af032e (git): parse.y: no assigned but unused warnings in eval
* parse.y (local_push_gen): no assigned but unused variable warnings
in eval as well as -e. [Feature #7730] [ruby-core:51580]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:08 AM Revision b10e6b69 (git): * test/ruby/test_signal.rb (test_trap_puts): Fix typo. "sync"
should be "STDOUT.sync".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:38 AM Revision e56c7878 (git): * string.c (rb_str_aset_m): Documentation for String#[]= fix
Raises an IndexError if Regexp match is out of range.
Github fixes #243 Patch by Dmtiriy Budnik
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:59 AM Revision 625119a3 (git): * 2013-01-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:59 AM Revision 4ccfb274 (git): * ext/socket/raddrinfo.c (rsock_unix_sockaddr_len): return
sizeof(sa_familiy_t) if path is empty. see "Autobind Feature" in
unix(7) for details.
* ext/socket/lib/socket.rb (unix_socket_abstract_name?): treat an
empty path as an abstract name.
* test/socket/test_unix.rb: related test.
git...
shugo (Shugo Maeda)
01:23 AM Bug #7757 (Closed): String#start_with? and end_with? should accept Regexp
Dupe, see #3388, sorry.
Need a ram upgrade.
marcandre (Marc-Andre Lafortune)
01:22 AM Bug #7757 (Closed): String#start_with? and end_with? should accept Regexp
As suggested by Ilya in #5536, the following should work:
"hello".start_with? /h/ # => true, not a TypeError
marcandre (Marc-Andre Lafortune)
01:19 AM Bug #5536: String#start_with? and end_with? ignore arguments convertible to a String [PATCH]
prijutme4ty (Ilya Vorontsov) wrote:
> =begin
> ...
See #3388 for this feature (this issue is closed).
It is the approach I initially took, but building and compiling a Regexp is expensive, and so it should be cached or another way be ...
Eregon (Benoit Daloze)
12:30 AM Bug #5536: String#start_with? and end_with? ignore arguments convertible to a String [PATCH]
=begin
Can you please explain, why not just make (({"str".start_with(/s/)})) behave as (({"str".match(/^s/)})) ?
=end
prijutme4ty (Ilya Vorontsov)

01/30/2013

06:41 PM Bug #7703 (Feedback): Segfault in 1.9.3-p362, possibly threads related
p374 will help you. usa (Usaku NAKAMURA)
06:39 PM Bug #7689: Crash @enumerator.so with ruby 1.9.3/thin/RoR 3.2.11
Use p374 instead of p362.
It's the version for you, I guess.
usa (Usaku NAKAMURA)
06:38 PM Bug #7689 (Feedback): Crash @enumerator.so with ruby 1.9.3/thin/RoR 3.2.11
usa (Usaku NAKAMURA)
06:09 PM Bug #7750: GC中にオブジェクトが割り当てられる
とりあえず、現時点ではRubyのどのバージョンでも再現できていません。
が、非常に時間のかかるスクリプトのようですので、そもそも落ちるところまで我慢できずに実行を打ち切ってしまっているため、という感もあります。
参考までに、どのような環境(CPU)でどれくらいの時間でこの現象が起きるのか、教えていただけますか?
usa (Usaku NAKAMURA)
05:08 PM Bug #7276 (Closed): TestFile#test_utime failure
This issue was solved with changeset r38992.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
win32.h: revert r37337
* include/ruby/win32.h (fstat): revert r37...
nobu (Nobuyoshi Nakada)
04:59 PM Bug #7276: TestFile#test_utime failure
I don't remember the reason well, probably some mingw failed to link the dll or extension libraries.
But I can't find which failed, so revert it.
nobu (Nobuyoshi Nakada)
03:04 PM Bug #7725 (Closed): bsearch should return enumerator when called without a block
Fixed with r38984. marcandre (Marc-Andre Lafortune)
03:02 PM Bug #7726 (Closed): bsearch should handle block result in a consistent way
Fixed with r38986. marcandre (Marc-Andre Lafortune)
02:48 PM Bug #7728 (Closed): Range#bsearch on other Numerics?
Resolved with r38985. marcandre (Marc-Andre Lafortune)
01:29 PM Feature #7751: How to encapsulate File.delete and File.rename into one 'transaction'?
> What a great function! I've confirm it is true.
>
> irb(main):001:0> File.write('src', '000')
> => 3
> irb(main):002:0> File.write('dest', '1111')
> => 4
> irb(main):003:0> File.rename('src', 'dest')
> => 0
> irb(main)...
kosaki (Motohiro KOSAKI)
10:03 AM Feature #7751: How to encapsulate File.delete and File.rename into one 'transaction'?
What a great function! I've confirm it is true.
irb(main):001:0> File.write('src', '000')
=> 3
irb(main):002:0> File.write('dest', '1111')
=> 4
irb(main):003:0> File.rename('src', 'dest')
=> 0
irb(main):004:0> File.read('dest')
...
mghomn (Justin Peal)
01:22 PM Feature #7730 (Closed): Top level variables aren't checked for assigned but unused behavior
This issue was solved with changeset r38982.
Andrew, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: warn assigned but unused in toplevel
* parse.y (local...
nobu (Nobuyoshi Nakada)
01:18 PM Bug #7678 (Closed): $_ and $~ are shared across Fibers halfway
This issue was solved with changeset r38981.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
cont.c: fiber local svar
* cont.c (cont_restore_thread): sv...
nobu (Nobuyoshi Nakada)
12:01 PM Revision 1ff38a5b (git): * ext/socket/basicsocket.c (bsock_getsockname): ignore truncated
part of socket address.
(bsock_getpeername): ditto.
(bsock_local_address): ditto.
(bsock_remote_address): ditto.
* ext/socket/unixsocket.c (unix_path): ditto.
(unix_addr): ditto.
(unix_peeraddr): ditto.
* ext/socket/init.c (c...
akr (Akira Tanaka)
09:53 AM Feature #7525: How to avoid memory leak when something gets wrong and throw exception when using win32api?
Thank you for the resource release schema! mghomn (Justin Peal)
08:53 AM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
=begin
This patch works:
Index: vm_core.h
===================================================================
--- vm_core.h (revision 38980)
+++ vm_core.h (working copy)
@@ -116,7 +116,7 @@
#endif /* __GNUC__ >= 3...
drbrain (Eric Hodel)
05:32 AM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
Hm, maybe we need another workaround.
Does __attribute__ (unused) works on your compiler?
likes
#ifdef __GNUC__
#define UNINITIALIZED_VAR(x) x __attribute__ (unused) = x
#else
....
kosaki (Motohiro KOSAKI)
05:05 AM Bug #7756 (Closed): clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
=begin
In clang 3.2, the UNINITIALIZED_VAR macro does not prevent the compiler from producing a warning.
Apple clang 3.2:
$ clang -v
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-dar...
drbrain (Eric Hodel)
08:08 AM Revision 111b8614 (git): win32.h: revert r37337
* include/ruby/win32.h (fstat): revert r37337, which uses _fstati64()
instead of fstati64() on mingw32. [Bug #7276]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:01 AM Bug #7539 (Closed): Misleading error message "can't convert nil into string"
This issue was solved with changeset r38979.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c: Improve error for failed implicit conversions [Bug #...
marcandre (Marc-Andre Lafortune)
07:00 AM Bug #7724 (Closed): 6 bugs with Range#bsearch over floats
This issue was solved with changeset r38978.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* range.c: Fix Range#bsearch for floats [Bug #7724]
marcandre (Marc-Andre Lafortune)
06:30 AM Bug #7474 (Rejected): I am getting undefined symbol: rb_enable_interrupt when running event machine
No response. I'll close this then.
kosaki (Motohiro KOSAKI)
06:30 AM Revision e16b8482 (git): * ext/socket/unixsocket.c (rsock_init_unixsock): use rb_inspect()
because rb_sys_fail_str() fails if its argument contains NUL.
* test/socket/test_unix.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
06:21 AM Revision 5efb130d (git): vm_dump.c: important message first
* vm_dump.c (rb_vm_bugreport): show the most important message, Crash
Report log information, first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 AM Revision e449d06f (git): ChangeLog, range.c: adjust indent and style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:07 AM Revision 69adf990 (git): * array.c (rb_ary_bsearch): Fix r38986 (typo) [Bug #7726]
* range.c (range_bsearch): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
06:01 AM Revision a7938af1 (git): * array.c (rb_ary_bsearch): Fix r38986 (missing whitespace)
* range.c (range_bsearch): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
06:00 AM Revision 20c0fb69 (git): * array.c (rb_ary_bsearch): Raise TypeError on bad return from block
* range.c (range_bsearch): ditto
* test/ruby/test_array.rb (class): Test for above
* test/ruby/test_range.rb (class): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:46 AM Revision 00d6bb51 (git): * range.c: Restrict bsearch to integers [#7728]
* test/ruby/test_range.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:11 AM Bug #7752: Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
This behavior matches Time#to_s, see #5226
Since there are no non-US-ASCII characters in the result of to_s on Rational, Float, Fixnum or Bignum there should be no problem with the US-ASCII encoding. Can you demonstrate one?
drbrain (Eric Hodel)
01:14 AM Bug #7752 (Rejected): Rational/Float/Fixnum/Bignum `.to_s.encoding` is US-ASCII
=begin
When converting an instance of Rational/Float/Fixnum/Bignum to a string with the (({.to_s})) method, the resulting string has the encoding US-ASCII. This happens for 1.9.3 as well as 2.0.0rc1.
(({> __ENCODING__}))
(({ => #<En...
coffeejunk (Maximilian Haack)
05:11 AM Revision 39048aca (git): * array.c (rb_ary_bsearch): Return enumerator if no block [#7725]
* range.c (range_bsearch): ditto
* test/ruby/test_array.rb: Test for above
* test/ruby/test_range.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:53 AM Revision ddea0c82 (git): * lib/matrix.rb: Take conjugate for inner product
[rubyspec:5a01ad5719f2] [ruby-dev:46101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:48 AM Bug #7755: JSON::Generate#configure's argument conversion
There's some more unreachable code in ext/json/parser/parser.rl:629 marcandre (Marc-Andre Lafortune)
04:33 AM Bug #7755 (Closed): JSON::Generate#configure's argument conversion
I notice a tiny bug in ext/json/generator/generator.c:514
tmp = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h");
if (NIL_P(tmp)) {
rb_raise(r...
marcandre (Marc-Andre Lafortune)
04:22 AM Revision 71eddb1d (git): parse.y: warn assigned but unused in toplevel
* parse.y (local_push_gen): warn assigned but unused variables also in
toplevel, except for -e option. [Feature #7730] [ruby-core:51580]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:17 AM Revision 29707c1d (git): cont.c: fiber local svar
* cont.c (cont_restore_thread): svar should be separate per fibers.
[ruby-core:51331] [Bug #7678]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:44 AM Bug #7753 (Closed): Module#attr_reader documentation uses an undefined variable
Current text is:
-- Cut here --
attr_writer(symbol, ...) → nil
Creates an accessor method to allow assignment to the attribute aSymbol.id2name.
-- Cut here --
Note that the signature refers to symbol but the body refers to aSymb...
nchelluri (Narsimham Chelluri)
03:23 AM Bug #7699: rubyspec failed: BigDecimal#divmod Can be reversed with * and +
(2013/01/27 15:04), mrkn (Kenta Murata) wrote:
> I cannot reproduce it with ruby 2.0.0dev (2013-01-27 trunk 38957) [x86_64-darwin12.2.0] built by clang.

On my environment (*1), I got this failure sometimes (1 or 2 on 10 times
t...
ko1 (Koichi Sasada)
 

Also available in: Atom