Project

General

Profile

Activity

From 11/01/2013 to 11/07/2013

11/07/2013

11:22 PM Bug #9090: [BUG] object allocation during garbage collection phase
mswin の CI だと backtrace がまともに出ていますね。
r43558 http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20131106T191452Z.log.html.gz
r43560 http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20131106T221741Z.log.html.gz
r43564 http:/...
akr (Akira Tanaka)
05:33 PM Bug #9090: [BUG] object allocation during garbage collection phase
r43558もGC起動のスレッシュルドを変えただけなので、
ここで発生となるとこれまで発生確率が低くて眠ってたバグを掘り起こしたって事に。
とりあえず見てみます。
tarui (Masaya Tarui)
12:08 PM Bug #9090: [BUG] object allocation during garbage collection phase
objdump -S ruby の結果をつけます。
あと、rubyci.org の結果をざっとみると、同じような失敗がいくつか見つかります。
r43540 http://fb32.rubyci.org/~chkbuild/ruby-trunk/log/20131105T170302Z.diff.html.gz
r43558 http://c5632.rubyci.org/~chkbuild/ruby-trunk/log/20131106T170301Z.d...
akr (Akira Tanaka)
10:37 AM Bug #9090: [BUG] object allocation during garbage collection phase
C-level stack traceにシンボル情報がほとんど載ってないので、objdump -S ruby の結果も何処かに上げていただけるとありがたいです。 tarui (Masaya Tarui)
09:54 AM Bug #9090 (Closed): [BUG] object allocation during garbage collection phase
昨日の夜、r43558 で make check を 300回動かしてみたところ、
なんかずいぶんと [BUG] が出ました。
% ./ruby -v
ruby 2.1.0dev (2013-11-06 trunk 43558) [x86_64-linux]
% fgrep '[BUG]' zd10/*/log
zd10/1/log:TestGem#test_looks_for_gemdeps_files_automatically_on_start = ...
akr (Akira Tanaka)
09:50 PM Bug #9089: rb_fix2uint no longer raises a RangeError when given negative values
NoKarma (Arthur Schreiber) wrote:
> That's weird. If you go back to the previous change that was made in numeric.c, the fix2uint specs do pass:
> ...
If so, something between r40017 and r40028 changes the behavior.
> Also, I'd argue...
akr (Akira Tanaka)
07:19 PM Bug #9089: rb_fix2uint no longer raises a RangeError when given negative values
That's weird. If you go back to the previous change that was made in numeric.c, the fix2uint specs do pass:
Arthurs-iMac-2:rubyspec arthur$ ../mspec/bin/mspec optional/capi/fixnum_spec.rb
ruby 2.1.0dev (2013-03-31 trunk 40017) [x86_...
NoKarma (Arthur Schreiber)
08:26 AM Bug #9089 (Feedback): rb_fix2uint no longer raises a RangeError when given negative values
As far as I know, NUM2Uxxx accepts negative integers.
For consistency, FIX2Uxxx should behaves so.
Also, both r40028 and r40029 behaves same for
r40028/bin/ruby rubyspec/optional/capi/fixnum_spec.rb.
So r40029 doesn't change the...
akr (Akira Tanaka)
07:52 AM Bug #9089: rb_fix2uint no longer raises a RangeError when given negative values
=begin
I guess I somehow incorrectly formatted the issue description, so here it is again with proper formatting.
---
Up until the change that was made in ((<URL:https://github.com/ruby/ruby/commit/92f59c6d7937b14bb5eefb052099ef0a...
NoKarma (Arthur Schreiber)
07:34 AM Bug #9089 (Rejected): rb_fix2uint no longer raises a RangeError when given negative values
Up until the change that was made in ((<URL:https://github.com/ruby/ruby/commit/92f59c6d7937b14bb5eefb052099ef0a3ef3bcd0>)), (({rb_fix2uint})) would raise a (({RangeError})) if it was given a negative value like (({-1})) (e.g. when using... NoKarma (Arthur Schreiber)
09:50 PM Bug #4044: Regex matching errors when using \W character class and /i option
Shouldn't this bug be mentioned in the docs for \W in the Regexp documentation?
http://www.ruby-doc.org/core-2.0.0/Regexp.html
People would like to be aware of it until it's fixed.
rosenfeld (Rodrigo Rosenfeld Rosas)
09:23 PM Bug #9013: Crash on start
Can you tell us what is the system and the console codepage? (use chcp in
the command prompt)

Thank you.

Sorry for top posting. Sent from mobile.
On Nov 7, 2013 7:13 AM, "zapped (Alexey Shumkin)" <Alex.Crezoff@gmail.com>
...
luislavena (Luis Lavena)
07:13 PM Bug #9013: Crash on start
Oops! Bug is clearly reproduced on Windows Server 2003 R2 SP2 with "plain" ruby-1.9.3-p448 (just extracted from http://dl.bintray.com/oneclick/rubyinstaller/ruby-1.9.3-p448-i386-mingw32.7z?direct)
c:\ruby-1.9.3-p448-i386-mingw32\bin>rub...
zapped (Alexey Shumkin)
01:30 AM Bug #9013: Crash on start
I confirm this bug.
I had ruby 1.9.3p194 installed. Today I've tried to upgrade. I've downloaded ruby 1.9.3p448 (7-zipped version). After unpacking running "ruby -v" gives
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]
but
ruby -e 'p ...
zapped (Alexey Shumkin)
06:11 PM Revision 74f424c2 (git): test_logger.rb: clear garbage files
* test/logger/test_logger.rb (test_shifting_age_in_multiprocess):
unlink rotated log files all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:10 PM Revision 1062dcf4 (git): gc.c: use switch for alternative BUILTIN_TYPE
* gc.c (rb_objspace_call_finalizer): BUILTIN_TYPE is alternative,
T_DATA object (Thread, Mutex, Fiber) cannot be T_FILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:04 PM Revision d24903f0 (git): commit miss from r43573
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:03 PM Revision bc319093 (git): * gc.c (vm_malloc_increase): check GVL before gc_rest_sweep().
vm_malloc_increase() can be called without GVL.
However, gc_rest_sweep() assumes acquiring GVL.
To avoid this problem, check GVL before gc_rest_sweep().
[Bug #9090]
This workaround introduces possibility to set malloc_limit as
...
ko1 (Koichi Sasada)
05:53 PM Revision 10b6409e (git): * lib/securerandom.rb: [DOC] specify arguments passed to ::random_bytes
By @chastell [Fixes GH-412] https://github.com/ruby/ruby/pull/412
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:44 PM Revision 2cfdbd7d (git): * ext/objspace/object_tracing.c: [DOC] trace_object_allocations_stop
By @srawlins [Fixes GH-421] https://github.com/ruby/ruby/pull/421
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:38 PM Revision 8adbcb66 (git): * lib/net/ftp.rb: [DOC] Document Net::FTP.mdtm and .set_socket and fix
spelling typo, based on patch by @artfuldodger [Fixes GH-426]
https://github.com/ruby/ruby/pull/426
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:34 PM Feature #8839: Class and module should return the class or module that was opened
Just to throw my 2¢ in...
I think the main benefit to returning a symbol from `def` is that it enables the use of method decorators. Similarly, I would be in favor of returning the class defined from `class` so that we could also buil...
jballanc (Joshua Ballanco)
05:15 PM Revision 6720c0ae (git): * array.c: [DOC] Add note about negative indices in Array overview
By @ckaenzig [Fixes GH-427] https://github.com/ruby/ruby/pull/427
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:10 PM Revision bceb8569 (git): * lib/csv.rb: [DOC] Fix typo in CSV.parse_line by @funky-bibimbap
[Fixes GH-430] https://github.com/ruby/ruby/pull/430
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:02 PM Revision 721ec227 (git): typo [Fixes GH-435] PAtch by @zed-0xff https://github.com/ruby/ruby/pull/435
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
04:03 PM Revision d702ec4a (git): * 2013-11-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:03 PM Revision b393aeb0 (git): * golf_prelude.rb: syntax formatting for whitespace [Fixes GH-425]
Patch by @edward https://github.com/ruby/ruby/pull/425
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:39 PM Bug #9092 (Closed): Update Unicode data to Unicode Version 7.0
As done regularly, Ruby should be updated to the newest version of Unicode, 6.3. This year's updates on the Unicode side are mostly in the area of bidi (bidirectional text), which doesn't affect Ruby, but there are also a few new charact... duerst (Martin Dürst)
12:33 PM Feature #9091 (Closed): [PATCH] accept_nonblock supports "exception: false"
git pull git://bogomips.org/ruby.git accept_nonblock-noraise
This is analogous to functionality found in IO#read_nonblock and
IO#wait_nonblock. Raising exceptions for common failures on
non-blocking servers is expensive and makes $...
normalperson (Eric Wong)
12:31 PM Bug #9087 (Closed): swallowing "s" letters when "i" flag is on
Closed because it's a duplicate (of #4044). duerst (Martin Dürst)
10:45 AM Revision a6698bc6 (git): * gc.c: modify malloc_limit strategy.
* fix default vaues:
GC_MALLOC_LIMIT_GROWTH_FACTOR
GC_MALLOC_LIMIT: 8MB -> 16MB
GC_MALLOC_LIMIT_MAX: 384MB -> 32MB
* algorithm of malloc_limit increment.
if (malloc_increase < malloc_limit) {
next_malloc_limit = m...
ko1 (Koichi Sasada)
09:39 AM Bug #9088 (Closed): SEGV with set_trace_func and break
This issue was solved with changeset r43561.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_trace.c: isolate errinfo in trace blocks
* vm_trace.c (rb_th...
nobu (Nobuyoshi Nakada)
06:51 AM Revision 2d5233c0 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:36 AM Feature #8626: Add a Set coercion method to the standard lib: Set(possible_set)
This has been merged into ruby trunk in https://github.com/ruby/ruby/commit/ad78cf4ea8613c7e1790c5e3a2718a35fe32115f saturnflyer (Jim Gay)
02:08 AM Revision c2f3e600 (git): * array.c (rb_ary_shuffle_bang): use RARRAY_PTR_USE() without WB
because there are not new relations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
01:37 AM Revision cf0838f4 (git): * array.c (rb_ary_sample): use rb_ary_dup().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
01:20 AM Bug #8439: test_aes_gcm_wrong_tag(OpenSSL::TestCipher) fails randomly
I tracked down the random failure.
It seems that the failure occur when tag[-1].succ is 2byte.
I.e. it fails when tag[-1] is "9", "Z", "z" or "\xFF".
I modified test_aes_gcm_wrong_tag as follows:
Index: test_cipher.rb
========...
akr (Akira Tanaka)
12:39 AM Revision cf5ef3db (git): vm_trace.c: isolate errinfo in trace blocks
* vm_trace.c (rb_threadptr_exec_event_hooks_orig): errinfo should not
be propagated to trace blocks so that no argument raise does not
throw internal objects. [ruby-dev:47793] [Bug #9088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
nobu (Nobuyoshi Nakada)

11/06/2013

11:32 PM Feature #9076: New one-argument block syntax: &.
asterite (Ary Borenszweig) wrote:
> Did you know that you can't do `&:to_s` wherever you want?
> ...
Yes, this is because blocks do not exist as objects in Ruby, they appear and are evaluated or captured in procs during method calls. ...
alexeymuranov (Alexey Muranov)
11:22 PM Feature #9076: New one-argument block syntax: &.
alexeymuranov (Alexey Muranov) wrote:
> > Note that in doing `array.map &:to_s` the `do ... end` and curly braces are also missing. However, the `&` signals a block, just as when you do `foo &block`. This is no different than `foo &.som...
asterite (Ary Borenszweig)
10:44 PM Feature #9076: New one-argument block syntax: &.
> Note that in doing `array.map &:to_s` the `do ... end` and curly braces are also missing. However, the `&` signals a block, just as when you do `foo &block`. This is no different than `foo &.something` where, again, the `&` signals a b... alexeymuranov (Alexey Muranov)
09:53 PM Feature #9076: New one-argument block syntax: &.
Alexey,
You are right about every point you make. It's indeed a random syntactic sugar for a special case. It only happens that that special case happens very often. Otherwise Symbol#to_proc, `&:to_s`, wouldn't exist.
Note that in ...
asterite (Ary Borenszweig)
06:39 AM Feature #9076: New one-argument block syntax: &.
Ary,
as far as i understand, the ampersand is used with symbols and not with strings because method names and identifiers are symbols and not strings. What follows after the colon is not the symbol's "content," but the symbol's "labe...
alexeymuranov (Alexey Muranov)
08:37 PM Revision 6f4b9376 (git): * 2013-11-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:37 PM Revision c9cb1b8e (git): * .gdbinit (rp): fix flag name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:12 PM Bug #9088 (Closed): SEGV with set_trace_func and break
以下のようにすると SEGV します。
% ./ruby -e '
set_trace_func proc {raise rescue nil}
1.times do
break
end
'
-e:2: [BUG] Segmentation fault
ruby 2.1.0dev (2013-11-06 trunk 43555) [x86_64-linux]
-- Control frame informati...
akr (Akira Tanaka)
07:04 PM Bug #9087 (Closed): swallowing "s" letters when "i" flag is on
# This regexp is removing 's' characters from the string
irb(main):091:0> "fdsa-f fdas5_-423432".gsub /[_\W]/i, ''
=> "fdaffda5423432"
# While this is not:
irb(main):092:0> "fdsa-f fdas5_-423432".gsub /[_\W]/, ''
=> "fdsaffdas5423...
mg (Dawid Grzesiak)
05:11 PM Bug #8134: Compilation failure for 2.0.0 on 10.6.8
"Third Party's Issue" is considered as closed on this tracker. naruse (Yui NARUSE)
05:10 PM Misc #9078 (Closed): Q: Why the Roadmap states that v2.1 is due in about 14 months (12/25/2014) whereas in the bullet notes it is scheduled for release on 2013-12-25
fixed naruse (Yui NARUSE)
12:36 PM Revision 01a7e789 (git): * gc.c (gc_before_sweep): Change algorithm of malloc_limit to
conservative for closing to memory consumption of ruby 2.0.
* gc.c (GC_MALLOC_LIMIT, GC_MALLOC_LIMIT_GROWTH_FACTOR):
Adjust parameters for new algorithm.
Example: make gcbench-rdoc on a pc
...
Masaya Tarui
12:20 PM Revision 564a14e4 (git): * array.c (rb_ary_shift_m): use RARRAY_PTR_USE() without WB because
there are not new relations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
12:09 PM Revision 27f2c267 (git): * array.c (rb_ary_reverse): use RARRAY_PTR_USE().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
10:50 AM Bug #9086 (Closed): lib/rubygems/LICENSE.txt does not match LICENSE.txt from http://github.com/rubygems/rubygems
lib/rubygems/LICENSE.txt in the Ruby source tree says:
RubyGems is copyrighted free software by Chad Fowler, Rich Kilmer, Jim
Weirich and others. You can redistribute it and/or modify it under
-either the terms of the GPL (see th...
terceiro (Antonio Terceiro)
10:38 AM Feature #5446: at_fork callback API
I'd love to see this added. Gems using threads (like newrelic_rpm) have a lot of potential for deadlocks when forking happens. This would gives a nice mechanism for dealing with those issues more generally, rather than having to hook thi... jasonrclark (Jason Clark)
06:48 AM Feature #5446: at_fork callback API
This is a critical feature for Ruby imho, at the moment there are 100 mechanisms for at_fork, we need a clean, supported ordered one.
I think there should be strong parity with at_exit, so am not particularly fond of the symbol param...
sam.saffron (Sam Saffron)
10:32 AM Revision a50ce949 (git): * common.mk (help): add texts about gcbench.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
09:30 AM Bug #9004: gem which command should exit with status of '1' if 1 or more gem arguments are not found
=begin
Patch causes `gem which` to return 1 if there are no args, or if any of the args is not found.
$ gem which ; echo $?
1
$ gem which rake ; echo $?
/usr/local/lib/ruby/2.1.0/rake.rb
0
$ gem which rake rails ; echo $?
...
phluid61 (Matthew Kerwin)
07:34 AM Bug #9082: popen3 hangs when stderr gets lots of output
Sorry, haven't seen your message before posting, @akr. Thanks, I surely overlooked the documentation, sorry! rosenfeld (Rodrigo Rosenfeld Rosas)
07:34 AM Bug #9082: popen3 hangs when stderr gets lots of output
Also, I'm not sure how I should use IO.select. Looking at the documentation it's not clear to me how I should use it in this case... rosenfeld (Rodrigo Rosenfeld Rosas)
07:32 AM Bug #9082: popen3 hangs when stderr gets lots of output
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> At least with the block form. I think this should be documented if this is the case.
The document already has following description:
% ri Open3.popen3
...
You should be careful to avo...
akr (Akira Tanaka)
07:31 AM Bug #9082: popen3 hangs when stderr gets lots of output
I'm assuming that if I use popen2 or redirect all STDOUT to /dev/null I don't need IO.select, right? rosenfeld (Rodrigo Rosenfeld Rosas)
07:30 AM Bug #9082: popen3 hangs when stderr gets lots of output
You need to use IO.select to handle that. Anonymous
07:29 AM Bug #9082: popen3 hangs when stderr gets lots of output
I see, but usually a process will write both to STDOUT and STDERR so it may happen that both buffers will be full. What should one do in such case? rosenfeld (Rodrigo Rosenfeld Rosas)
07:27 AM Bug #9082: popen3 hangs when stderr gets lots of output
If you call e.read then test.rb is able to write the entire message to STDERR then exit. When it exits, both stderr and stdout are closed so e.read returns. Anonymous
07:24 AM Bug #9082: popen3 hangs when stderr gets lots of output
Also, is it expected that even if e.read is called inside the block it will hang up? rosenfeld (Rodrigo Rosenfeld Rosas)
07:19 AM Bug #9082: popen3 hangs when stderr gets lots of output
At least with the block form. I think this should be documented if this is the case. rosenfeld (Rodrigo Rosenfeld Rosas)
07:19 AM Bug #9082: popen3 hangs when stderr gets lots of output
Rodrigo: Yes, this is how UNIX works. Anonymous
07:18 AM Bug #9082: popen3 hangs when stderr gets lots of output
Will it also block on STDOUT? If so, I suppose people shouldn't use the open3 library for interacting with commands like 'tidy' and several others that will process files (even less than 1MB)
I don't see this limitation in the docs no...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:16 AM Bug #9082 (Rejected): popen3 hangs when stderr gets lots of output
Jeremy is correct, this is not a bug in popen3.
To properly handle things like this, look into IO.select.
Anonymous
07:14 AM Bug #9082: popen3 hangs when stderr gets lots of output
I think this is expected behavior, not a bug. Your test.rb program blocks outputting to stderr because the pipe buffer gets filled. The reason it works for less output to stderr is that the program exits before the stderr pipe buffer is... jeremyevans0 (Jeremy Evans)
06:54 AM Bug #9082 (Rejected): popen3 hangs when stderr gets lots of output
Create this program test.rb:
STDERR.puts "some error line\n" * 10_000
Then, try this:
ruby -r open3 -e "Open3.popen3('ruby test.rb'){|i,o,e,t|i.close;o.read}"
For this particular case, if I do "e.read" before "o.read" it work...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:32 AM Revision d5f642ec (git): lib/open3.rb: tweaked grammar in comments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
07:22 AM Bug #9083 (Closed): BasicObject#method_missing does not always raise NoMethodError for missing methods

def method_missing(name, *)
super
rescue NoMethodError => e

end
if the method is called without the receiver, it will raise just a NameError (variable or method missing)
the text of the error can differ dependi...
rits (First Last)
06:46 AM Bug #9026: [PATCH] Add ObjectSpace.heap_dump to objspace.so
I think it could be helpful to be able to specify the filename that the dump should be written to, or at least the directory. akahn (Alexander Kahn)
06:25 AM Revision e7194e96 (git): Suppress warnings: ambiguous first argument; put parentheses or even spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:23 AM Revision e3d72485 (git): Suppress warnings: File.exists? is a deprecated name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:23 AM Revision 8e2a2a8a (git): Suppress Warnings: instance variable @installed_by_version not initialized
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:50 AM Revision da10c47e (git): * array.c (rb_ary_sample): use RARRAY_AREF() and RARRAY_PTR_USE()
instead of RARRAY_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
01:39 AM Revision e90e8b2e (git): * array.c (rb_ary_and): defer hash creation and some refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Glass_saga (Masaki Matsushita)
12:21 AM Revision 71b70f3c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:17 AM Revision df6722d9 (git): * benchmark/bm_vm1_gc_short_lived.rb: added.
These GC benchmarks do not reflect practical applications.
They are only for tuning.
* benchmark/bm_vm1_gc_short_with_complex_long.rb: added.
* benchmark/bm_vm1_gc_short_with_long.rb: added.
* benchmark/bm_vm1_gc_short_with_symbol.rb: ...
ko1 (Koichi Sasada)
12:14 AM Revision 3db0e564 (git): * gc.c: define RGENGC_ESTIMATE_OLDSPACE == 0 if USE_RGENGC is 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)

11/05/2013

10:27 PM Revision adc4bb95 (git): * benchmark/gc/gcbench.rb: fix typo of r43543
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
10:13 PM Revision 8c6157e0 (git): * gc.c (Init_GC): add GC::OPTS to show options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:13 PM Revision 400a9a7b (git): * benchmark/gc/gcbench.rb: add some options to make quiet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:15 PM Bug #9072 (Closed): test_weakref.rb failure
This issue was solved with changeset r43539.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (is_live_object): A hidden object may be a live object.
...
tarui (Masaya Tarui)
07:48 PM Bug #9072: test_weakref.rb failure
もうちょっと調べて、いくらか少ない繰り返しで症状を発生させてみました。
% ./ruby -ve '
wmap = ObjectSpace::WeakMap.new
keys = []
1.upto(10) {|i|
GC.start
k = i.to_s
v = i.to_s
keys << k
wmap[k] = v
keys.each {|kk|
vv = wmap[kk]
next if vv ...
akr (Akira Tanaka)
08:08 PM Feature #9076: New one-argument block syntax: &.
Hanmac: thanks for the code to make it work. Ruby is very powerful.
However, I'm sure that code is very slow. At least slower than writing a block. That's why I'm not interested in any code that can make it work, because it will alway...
asterite (Ary Borenszweig)
06:01 PM Feature #9076: New one-argument block syntax: &.
i got a working sample with `.()`
~~~ruby
class Symbol
class SymbolHelper < BasicObject
def initialize(obj,methId,*args,&blk)
@obj = obj
@methId = methId
@args = args
@blk = blk
end
...
Hanmac (Hans Mackowiak)
11:59 AM Feature #9076: New one-argument block syntax: &.
alexeymuranov (Alexey Muranov) wrote:
> In my opinion, this is a bad idea: there would be a dot `.`, an ampersand `&`, and an ampersand-dot `&.`, unrelated to either of the two.
> ...
The "x" variable is just noise. What you want to do...
asterite (Ary Borenszweig)
06:57 AM Feature #9076: New one-argument block syntax: &.
In my opinion, this is a bad idea: there would be a dot `.`, an ampersand `&`, and an ampersand-dot `&.`, unrelated to either of the two.
What is wrong with `[1, 2, 3, 4].map{|x| x.to_s(2)}`?
alexeymuranov (Alexey Muranov)
06:17 AM Feature #9076: New one-argument block syntax: &.
nobu (Nobuyoshi Nakada) wrote:
> You seem confusing that `&:` is an operator, but it's not
> ...
I know. I don't think I'm confusing them.
> To make `&.to_s` valid, `.to_s` needs to be valid solely.
I don't see why ".to_s" needs ...
asterite (Ary Borenszweig)
05:59 AM Feature #9076 (Feedback): New one-argument block syntax: &.
You seem confusing that `&:` is an operator, but it's not.
They are `&` + `:` of the beginning of a symbol literal.
To make `&.to_s` valid, `.to_s` needs to be valid solely.
nobu (Nobuyoshi Nakada)
05:29 AM Feature #9076: New one-argument block syntax: &.
Introducing both syntaxes indeed is a bit confusing. I don’t think
~~~ruby
[1, 10, 100].map &.to_s.length
~~~
is much better than
~~~ruby
[1, 10, 100].map { |i| i.to_s.length }
~~~

I think the latter is clearer. I'm fo...
fuadksd (Fuad Saud)
12:57 AM Feature #9076: New one-argument block syntax: &.
Note that if `&:` would be removed at the same time and `&.` added I would not mind it that much. You could use `&` as a reference to a global object, just similar to how `$1` or `$2` is automagically set for regexes. But to keep two dif... shevegen (Robert A. Heiler)
12:55 AM Feature #9076: New one-argument block syntax: &.
I dislike the amount of special meanings that would get associated with `&` and I already think that `&` is used too much.
Every new syntax increases the complexity of the language. Rather than extend on `&`, I'd rather remove the mea...
shevegen (Robert A. Heiler)
07:15 PM Revision 4b7c15fa (git): * 2013-11-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:15 PM Revision 9ae2651d (git): * ext/psych/lib/psych/visitors/to_ruby.rb: process merge keys before
reviving objects. Fixes GH psych #168
* test/psych/test_merge_keys.rb: test for change
https://github.com/tenderlove/psych/issues/168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
06:23 PM Feature #9049: Shorthands (a:b, *) for inclusive indexing
[Sorry for the delay of this message. I wrote most of this mail on a
plane, but had to check a few loose ends, and forgot about that when off
the plane.]

I'm not at all convinced that we need to add ':' to '..' for ranges (or...
duerst (Martin Dürst)
05:54 PM Bug #9053: SSL Issue with Ruby 2.0.0
chittoor (Rajesh Malepati) wrote:
> tisba (Sebastian Cohnen) wrote:
> ...
I just removed the intermediate certificate again from the server to test it again. I noticed that Ruby 1.9.3 (and 1.8.7) does not seem to verify the SSL certifi...
tisba (Sebastian Cohnen)
05:40 PM Bug #9053: SSL Issue with Ruby 2.0.0
MartinBosslet (Martin Bosslet) wrote:
> Thanks everyone for contributing, I'm sorry I couldn't look into it any sooner. Special thanks to Rajesh for finding the issue!
> ...
Yes, I added the intermediate certificate to be served as well ...
tisba (Sebastian Cohnen)
05:03 PM Bug #9080: ENV[key] produces three objects
A little `ObjectSpace` exploration gives:
~~~ruby
n = 1
GC.disable
a = ObjectSpace.count_objects[:T_STRING]
strings = {}
ObjectSpace.each_object(String) { |s| strings[s.object_id] = s }
n.times { ENV["HOME"] }
b = ObjectS...
Eregon (Benoit Daloze)
07:51 AM Bug #9080 (Closed): ENV[key] produces three objects
This code:
ENV["HOME"]
allocates three T_STRING according to ObjectSpace.count_objects. Unless I'm missing something, it should only need to allocate one string.
wycats (Yehuda Katz)
12:25 PM Revision 7835e321 (git): * test/ruby/test_thread.rb (test_thread_join_in_trap):
Run the test in a different process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:22 PM Bug #9077 (Assigned): RDoc typographical error
Thank you for the report, I will check it! zzak (zzak _)
02:50 AM Bug #9077 (Closed): RDoc typographical error
=begin
There is a typographical error in http://www.ruby-doc.org/core-2.0.0/_lib/racc/rdoc/grammar_en_rdoc.html#label-Operator+Precedance.
Operator Precedance => Operator Precedence
=end
sawa (Tsuyoshi Sawada)
11:15 AM Revision 3ce802b7 (git): * gc.c (is_live_object): A hidden object may be a live object.
[ruby-dev:47788] [Bug #9072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
09:56 AM Bug #9081 (Rejected): Unexpected result for and opreator
This isn't a bug. The 'and' operator has lower precedence than '&&', so when you write this code:
puts true and false
It's parsed as:
puts(true) && false
If you instead write:
puts true && false
Then Ruby wi...
Anonymous
09:51 AM Bug #9081: Unexpected result for and opreator
This isn't unexpected behavior. (({and})) and (({or})) are not boolean, but control flow operators. Execution stops when an operation returns (({nil})) or (({false})). Use (({&&})) or (({||})) for the desired behavior. gergoerdosi (Gergo Erdosi)
09:41 AM Bug #9081 (Rejected): Unexpected result for and opreator
I use this code to test and confirm this result
def show
@profile = .......
puts "=================="
puts user_signed_in?
puts current_user.id
puts @profile.user.id
puts user_signed_in? and (current_us...
aminhotob (Mo Amin)
08:10 AM Revision 7f23534b (git): pty.c: check error of seteuid
* ext/pty/pty.c (chfunc): check error of seteuid and return error
message, to suppress unused-value warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:10 AM Revision b2f7e64c (git): test_command_processor.rb: clear tmpdir
* test/shell/test_command_processor.rb (TestShell#teardown): should
not leave temporary directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Bug #9079: Interpolated Symbol creates unnecessary intermediate String on the heap
To shed a bit of light on why this happens, it turns out :"" syntax is just sugar for "".intern:
~ trunk λ ruby --dump=insns -e ':"hello #{123}"'
== disasm: <RubyVM::InstructionSequence:<main>@-e>======================
0...
Anonymous
07:49 AM Bug #9079 (Closed): Interpolated Symbol creates unnecessary intermediate String on the heap
This case:
x = "world"
y = :"hello#{world}!"
allocates one T_STRING according to ObjectSpace.count_objects. Since all of the concatenation happens as part of the symbol generation, it shouldn't be necessary to create a Ruby st...
wycats (Yehuda Katz)
07:56 AM Revision 9d2c2c2b (git): eval_intern.h: rename prefix
* eval_intern.h (rb_threadptr_tag_state, rb_threadptr_tag_jump):
rename prefix ruby as rb, same as other rb_threadptr functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:56 AM Revision f08c697c (git): eval.c: suppress warning
* eval.c (rb_protect): get rid of false clobbered warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:48 AM Revision 8a9dff36 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:57 AM Misc #9078 (Closed): Q: Why the Roadmap states that v2.1 is due in about 14 months (12/25/2014) whereas in the bullet notes it is scheduled for release on 2013-12-25
Are these different milestones? Otherwise the dates must match.
https://bugs.ruby-lang.org/versions/27
dsbonev (Dimitar Bonev)
04:52 AM Revision 692aab90 (git): fix typos in ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
04:51 AM Revision d1674ef6 (git): * gc.c: add support to estimate increase of oldspace memory usage.
This is another approach to solve an issue discussed at r43530.
This feature is diabled as default.
This feature measures an increment of memory consuption by oldgen
objects. It measures memory consumption for each objects when
t...
ko1 (Koichi Sasada)

11/04/2013

11:42 PM Feature #9076: New one-argument block syntax: &.
my first idea is this:
~~~ruby
class Symbol
def call(*args)
proc {|obj| obj.public_send(self,*args) }
end
end
[1,2,3,4].map &:to_s.(2) # => ["1", "10", "11", "100"]
~~~
it is not chainable yet but its a nice begin...
Hanmac (Hans Mackowiak)
11:04 PM Feature #9076 (Feedback): New one-argument block syntax: &.
Hello,
I'd like to introduce a new syntax for blocks that have one argument.
Currently you can do this:
~~~ruby
[1, 2, 3].map &:to_s
~~~
With the proposed syntax this will be written as:
~~~ruby
[1, 2, 3].map &.to_s
~~...
asterite (Ary Borenszweig)
07:04 PM Revision 5ba52396 (git): * gc.c (GC_MALLOC_LIMIT_MAX): fix default value 512MB -> 384MB.
512MB is huge.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:59 PM Revision 325d2cfc (git): * gc.c: add 3gen GC patch, but disabled as default.
RGenGC is designed as 2 generational GC, young and old generation.
Young objects will be promoted to old objects after one GC.
Old objects are not collect until major (full) GC.
The issue of this approach is some objects can promot...
ko1 (Koichi Sasada)
06:38 PM Bug #9072: test_weakref.rb failure
ちょっと追いかけたところ、ObjectSpace::WeakMap が、
入れた覚えのないオブジェクトを返すことがあるようです。
% ./ruby -ve '
wmap = ObjectSpace::WeakMap.new
keys = (1..10000).map {|i| i.to_s }
keys.each {|k| wmap[k] = "value" }
GC.start
keys.each {|k| p wmap[k] }
'|head -...
akr (Akira Tanaka)
03:56 PM Bug #7956: Install fail with RVM
the last reported problem is unrelated to the initial one and was fixed in #8134 - it can be reclosed mpapis (Michal Papis)
03:52 PM Bug #8134: Compilation failure for 2.0.0 on 10.6.8
it's coded now in rvm to default to gcc-4.2 in this case, also if user forced CC=clang then rvm will warn about old version, in my opinion this ticket can be closed mpapis (Michal Papis)
03:06 PM Revision 30456e96 (git): * node.h: catch up comments for last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:04 PM Revision 8cb2cc55 (git): * 2013-11-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision 42bd731d (git): * include/ruby/ruby.h: rename FL_OLDGEN to FL_PROMOTED.
This flag represents that "this object is promoted at least once."
* gc.c, debug.c, object.c: catch up this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:21 PM Revision 7a3f2845 (git): * test/xmlrpc: Don't use fixed ports: 8070 and 8071.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:42 AM Bug #9053: SSL Issue with Ruby 2.0.0
=begin
@davispuh: OpenSSL in Windows do not come with support for Windows certificate storage, so it cannot connect to HTTPS servers without a valid certificate bundle.
You need to use ((|SSL_CERT_FILE|)) environment variable and set...
luislavena (Luis Lavena)
09:47 AM Bug #9053: SSL Issue with Ruby 2.0.0
Thanks everyone for contributing, I'm sorry I couldn't look into it any sooner. Special thanks to Rajesh for finding the issue!
@Sebastian: Adding the missing certificate in the chain fixed the issue for you?
@Dāvis: What does
...
MartinBosslet (Martin Bosslet)
07:17 AM Revision c7ea716d (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:27 AM Revision 445b04d1 (git): * test/xmlrpc/webrick_testing.rb (start_server): Initialize the server
at main thread to fail early.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:08 AM Revision f7a4b3de (git): * 2013-11-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:08 AM Revision 2c101190 (git): eval_intern.h: avoid undefined behavior of setjmp
* eval_intern.h (TH_EXEC_TAG, TH_JUMP_TAG): get rid of undefined
behavior of setjmp() in rhs of assignment expression.
[ISO/IEC 9899:1999] 7.13.1.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43522 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
12:28 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
@mame: Good catch. How about String#fz then? Anonymous

11/03/2013

02:09 PM Revision 3566a762 (git): * sample/test.rb: Make temporary file names unique.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:40 PM Revision b9ed44e7 (git): gc.c: use boolean
* gc.c (obj_free): use free_immediately as boolean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:40 PM Revision bcfb4569 (git): ifchange: no overwrite with an empty file
* tool/ifchange, win32/ifchange.bat: do not overwrite with an empty
file by default, and add --empty option to force it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:41 AM Revision ddf1d3aa (git): * test/xmlrpc: Wrap definitions by TestXMLRPC module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:35 AM Bug #9075 (Third Party's Issue): ruby fails to compile enc/trans/big5.c
_rpq (r pq) wrote:
> gcc: Internal error: Killed (program cc1)
> ...
nobu (Nobuyoshi Nakada)
05:18 AM Bug #9075 (Third Party's Issue): ruby fails to compile enc/trans/big5.c
Ruby fails to compile on CentOS release 6.4 (Final): Linux 2.6.32-358.6.2.el6.x86_64
with ruby 2.0.0-p247 stable:

CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O1 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -W...
_rpq (r pq)
11:26 AM Revision 438a91c0 (git): * test/xmlrpc/webrick_testing.rb (stop_server): Don't try to shutdown
the server if the server is not started.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:10 AM Bug #8883 (Closed): Rational canonicalization unexpectedly converts to Fixnum
nobu (Nobuyoshi Nakada)
01:37 AM Revision 3b320b78 (git): gc.c: suppress warning
* gc.c (obj_free): suppress a false shorten-64-to-32 warning,
RUBY_TYPED_FREE_IMMEDIATELY never exceed the limit of int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:35 AM Revision 74015e53 (git): * 2013-11-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:35 AM Revision 86ffd21c (git): load.c: defer initalization of static-linked-ext
* load.c (rb_feature_p): deal with default loadable suffixes.
* load.c (load_lock): initialize statically linked extensions.
* load.c (search_required, rb_require_safe): deal with statically
linked extensions.
* load.c (ruby_init_ext):...
nobu (Nobuyoshi Nakada)

11/02/2013

11:45 PM Bug #9074 (Assigned): Doc promotes inadequate way to sanitize a filename
Thanks for the report! zzak (zzak _)
05:13 PM Bug #9074 (Closed): Doc promotes inadequate way to sanitize a filename
http://www.ruby-doc.org/stdlib-2.0.0/libdoc/drb/rdoc/DRb.html
also http://www.ruby-doc.org/stdlib-1.8.7/libdoc/drb/rdoc/DRb.html
The "server" example for the "Logger" contains these lines:
# make the filename safe, then ...
cphoenix (Chris Phoenix)
03:15 PM Bug #9046 (Closed): [PATCH] Inter-process locking for log rotation is required
This issue was solved with changeset r43513.
Naotoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
logger.rb: fix r43511 for Windows
* lib/logger.rb (Logger::L...
nobu (Nobuyoshi Nakada)
01:46 PM Bug #9046 (Open): [PATCH] Inter-process locking for log rotation is required
=begin
It broke on Windows.
* don't use fork.
* don't assume that open file can be removed or renamed.
I'll try to fix or revert it.
=end
nobu (Nobuyoshi Nakada)
07:15 AM Bug #9046 (Closed): [PATCH] Inter-process locking for log rotation is required
This issue was solved with changeset r43511.
Naotoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/logger.rb: Inter-process locking for log rotation
Cur...
naruse (Yui NARUSE)
01:23 PM Bug #9072: test_weakref.rb failure
2013/11/2 akr (Akira Tanaka) <akr@fsij.org>:
> Bug #9072: test_weakref.rb failure
> https://bugs.ruby-lang.org/issues/9072

> boron% ./ruby -v -e 'load("test/test_weakref.rb")'

おっと、load しているのに意味はないです。
(GC.stress = true とし...
akr (Akira Tanaka)
10:03 AM Bug #9072 (Closed): test_weakref.rb failure
test_weakref.rb を単独で動かすと、以下のように失敗します。
boron% ./ruby -v -e 'load("test/test_weakref.rb")'
ruby 2.1.0dev (2013-11-01 trunk 43510) [i686-linux]
test/test_weakref.rb:19: warning: assigned but unused variable - str
Run options:
# R...
akr (Akira Tanaka)
12:55 PM Bug #9073 (Third Party's Issue): Array#join encoding problem
Bugs in gems return ASCII-8BIT strings. nobu (Nobuyoshi Nakada)
11:42 AM Bug #9073 (Third Party's Issue): Array#join encoding problem
a=['hello']
a.push 'kitty'.force_encoding('ASCII-8BIT')
puts a.join
=> hellokitty
a=['问题']
a.push '错误'.force_encoding('ASCII-8BIT')
puts a.join
=> incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityEr...
046569 (6569 04)
12:33 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
Matz, I believe adding a new method will significantly limit the usefulness of this feature.
The reason optimizing "".freeze is superior to a new syntax is that gems can start using this feature now without dropping support for versio...
Anonymous
12:18 PM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
matz (Yukihiro Matsumoto) wrote:
> * I am OK with adding a new method (e.g. String#f) and compiler trick.
Somewhat oppose against "f" with compiler trick.
"f" is a typical meta-syntactic variable of functions.
I guess some progra...
mame (Yusuke Endoh)
11:59 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
* I am OK with adding a new method (e.g. String#f) and compiler trick.
* I hesitate a bit to change String#freeze semantics.
* String#~ is very concise and in that sense attractive, but relation of '~' with patterns may cause confusion...
matz (Yukihiro Matsumoto)
11:23 AM Feature #8992: Use String#freeze and compiler tricks to replace "str"f suffix
Matz, could you conclude this ticket?

I like this idea because:
- No syntax change
- Semantics was changed ("literal".freeze.object_id => anytime same),
but I can't imagine the apps which rely on this behavior.
- Except 2...
ko1 (Koichi Sasada)
12:23 PM Feature #9071: Enumerable#slice_after
2013/11/2 sawa (Tsuyoshi Sawada) <sawadatsuyoshi@gmail.com>:
> Feature #9071: Enumerable#slice_after
> https://bugs.ruby-lang.org/issues/9071

> I see in this discussion: http://ruby.11.x6.nabble.com/ruby-dev-38392-Enumerable-ga...
akr (Akira Tanaka)
01:21 AM Feature #9071 (Closed): Enumerable#slice_after
I see in this discussion: http://ruby.11.x6.nabble.com/ruby-dev-38392-Enumerable-gather-each-td3534746.html that `Enumerable#slice_before` was named as such, having in mind the possibility of `Enumerable#slice_after` being implemented in... sawa (Tsuyoshi Sawada)
09:24 AM Bug #9053: SSL Issue with Ruby 2.0.0
=begin
On Linux it works fine, but on Windows:
N:\Projects>ruby -rnet/http -e 'Net::HTTP.get(URI("https://google.com"));'
P:/Ruby200/lib/ruby/2.0.0/net/http.rb:918:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read se...
davispuh (Dāvis Mosāns)
09:19 AM Bug #9053: SSL Issue with Ruby 2.0.0
=begin
I've same problem on Windows 8 using Ruby 2.0.0-p247 (x86) from ((<RubyInstaller|URL:http://rubyinstaller.org/downloads>)), no RVM
=end
davispuh (Dāvis Mosāns)
08:46 AM Bug #9053: SSL Issue with Ruby 2.0.0
I think it can be closed as per https://github.com/wayneeseguin/rvm/issues/2315#issuecomment-27198136 - adding the missing certificate fixes the problem mpapis (Michal Papis)
06:15 AM Revision 3c807293 (git): logger.rb: fix r43511 for Windows
* lib/logger.rb (Logger::LogDevice::LogDeviceMutex#lock_shift_log):
open file can't be removed or renamed on Windows. [ruby-dev:47790]
[Bug #9046]
* test/logger/test_logger.rb (TestLogDevice#run_children): don't use
fork.
git-svn...
nobu (Nobuyoshi Nakada)
03:23 AM Feature #9070: Introduce `---` as synonym of `end` keyword
On Nov 1, 2013, at 10:44 AM, alexeymuranov (Alexey Muranov) wrote:

> This looks to me like the best approximation to the indentation based syntax without being indentation based.

One easy way to get that appearance right now would...
david_macmahon (David MacMahon)
02:44 AM Feature #9070: Introduce `---` as synonym of `end` keyword
matz (Yukihiro Matsumoto) wrote:
> Hmm, interesting idea. But it looks bit ugly, isn't it?
> ...
So, maybe the Feedback status for now? I imagine this is a matter of personal taste, i proposed because i think i would have liked my cod...
alexeymuranov (Alexey Muranov)
12:37 AM Feature #9070: Introduce `---` as synonym of `end` keyword
It does look ugly. I don't think that really makes the code better.
Also, I think if you leave a space after each method, then `end` really works fine here.
sikachu (Prem Sichanugrist)
12:35 AM Feature #9070: Introduce `---` as synonym of `end` keyword
Hmm, interesting idea. But it looks bit ugly, isn't it?
FYI, I have once experimented ';;' as replacement of 'end' (I even modified ruby-mode.el as well).
But it turned out to be confusing, and I gave up.
I am not sure your '---' ...
matz (Yukihiro Matsumoto)

11/01/2013

11:24 PM Bug #9069 (Closed): test_weakref.rb with GC.stress causes [BUG] rb_gc_mark(): 0x8024ee94 is T_ZOMBIE
This issue was solved with changeset r43509.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
gc.c: mark live objects only
* gc.c (wmap_mark_map): mark live ...
nobu (Nobuyoshi Nakada)
10:20 PM Bug #9069 (Open): test_weakref.rb with GC.stress causes [BUG] rb_gc_mark(): 0x8024ee94 is T_ZOMBIE
直っていないように思います。
boron% ./ruby -e 'GC.stress = true; load("test/test_weakref.rb")'
Run options:
# Running tests:
[2/4] TestWeakRef#test_recycled = 1.04 s
1) Failure:
TestWeakRef#test_recycled [t...
akr (Akira Tanaka)
05:25 PM Bug #9069 (Closed): test_weakref.rb with GC.stress causes [BUG] rb_gc_mark(): 0x8024ee94 is T_ZOMBIE
This issue was solved with changeset r43502.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
gc.c: zombie is not alive
* gc.c (is_live_object): finalizer ma...
nobu (Nobuyoshi Nakada)
03:40 PM Bug #9069 (Closed): test_weakref.rb with GC.stress causes [BUG] rb_gc_mark(): 0x8024ee94 is T_ZOMBIE
気がついたのですが、GC.stress = true で test/test_weakref.rb を動かすと、
[BUG] rb_gc_mark(): 0x8024ee94 is T_ZOMBIE
というようなメッセージで異常終了することがあります。
たとえば、boron の ~akr/tst1 に install したものでは以下のようになりました。
boron% pwd
/home/akr/tst1/ruby
boron% ./ruby -...
akr (Akira Tanaka)
11:17 PM Feature #9070 (Assigned): Introduce `---` as synonym of `end` keyword
=begin
This is just an idea: introduce "(({---}))" as synonym of "(({end}))" keyword.
It is a bit easier to type and to read, and makes whitespace insensitive language look as if it follows off-side rule. Compare:
class Person
...
alexeymuranov (Alexey Muranov)
10:15 PM Revision 059c94d4 (git): * 2013-11-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:14 PM Revision 0749adc5 (git): * lib/logger.rb: Inter-process locking for log rotation
Current implementation fails log rotation on multi process env.
by sonots <sonots@gmail.com>
https://github.com/ruby/ruby/pull/428 fix GH-428 [Bug #9046]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43511 b2dd03c8-39d4-4d8f-98f...
naruse (Yui NARUSE)
06:09 PM Bug #9067: IO.reopen broken in 1.9/2.0, worked in 1.8
Thanks for the quick turnaround!
$stdin.reopen(IO.new(1, "r+")) does what I want.
walles (Johan Walles)
02:27 PM Revision 052ef632 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
02:24 PM Revision 541dac0b (git): gc.c: mark live objects only
* gc.c (wmap_mark_map): mark live objects only, but delete zombies.
[ruby-dev:47787] [Bug #9069]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:47 PM Revision 21a58208 (git): * gc.c (struct heap_page, gc_page_sweep, gc_sweep): Refactoring for
performance. Add before_sweep condition to heap_page structure.
* gc.c (rb_gc_force_recycle): Use before_sweep member.
* gc.c (heap_is_before_sweep, is_before_sweep): Remove. They has not
already been used.
...
Masaya Tarui
01:46 PM Revision 99981ece (git): test_m17n.rb: fix encoding
* test/ruby/test_m17n.rb (test_scrub): fix expected encoding, for
non-UTF-8 environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:22 PM Revision 3705b070 (git): * gc.c (make_deferred): Refactoring. Collect codes which should be
atomic.
* gc.c (make_io_deferred, obj_free, rb_objspace_call_finalizer,
gc_page_sweep): Correspond to the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
12:49 PM Revision 1726b516 (git): * gc.c (typedef struct rb_objspace): Refactoring. Move some members
into profile member.
* gc.c (newobj_of): Correspond to the above.
* gc.c (finalize_list): Ditto.
* gc.c (objspace_live_num): Ditto.
* gc.c (gc_page_sweep): Ditto.
* gc.c (rb_gc_force_recycle):...
Masaya Tarui
12:12 PM Revision e8d2806c (git): transcode.c: fix segv in String.encode!
* transcode.c (str_transcode0): fix segv in String.encode!. now
rb_str_scrub() can return nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:53 AM Revision e7fac351 (git): string.c: fix typo
* string.c (rb_str_scrub): fix typo, should yield invalid byte
sequence to be scrubbed. reported by znz at IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:25 AM Revision 21ea356a (git): gc.c: zombie is not alive
* gc.c (is_live_object): finalizer may not run because of lazy-sweep.
[ruby-dev:47786] [Bug #9069]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:00 AM Revision d7b729dc (git): test_m17n.rb: nil replacement
* test/ruby/test_m17n.rb (test_scrub, test_scrub_bang): now explicit
nil is allowed as replacement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:55 AM Revision adbdd97d (git): string.c: export rb_str_scrub
* string.c (rb_str_scrub): export with fixed length arguments, and
allow nil as replacement string instead of omitting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:37 AM Revision 97b88a17 (git): load.c: suppress warning
* load.c (rb_load_internal): split to suppress false "clobbered"
warning by gcc 4.4.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:37 AM Revision ea09a7b7 (git): load.c: use local variable
* load.c (rb_load_internal): use local variable th instead of
GET_THREAD() for each time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:59 AM Feature #9068: [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
> (10/31/13 5:12 PM), Eric Wong wrote:
> >KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
> >>ok, please commit.
> >
> >I never accepted commit bit.
>
> Sorry, I frequ...
normalperson (Eric Wong)
06:53 AM Feature #9068: [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
(10/31/13 5:12 PM), Eric Wong wrote:
> KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
>> ok, please commit.
>
> I never accepted commit bit.

Sorry, I frequently forget about this. You are a virtual committer.
I've com...
kosaki (Motohiro KOSAKI)
06:27 AM Feature #9068 (Closed): [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
This issue was solved with changeset r43497.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (rb_mutex_struct): reduce rb_mutex_t size by 8 bytes
...
kosaki (Motohiro KOSAKI)
06:23 AM Feature #9068: [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
> ok, please commit.

I never accepted commit bit.

However I've been reconsidering that (because of dtas). But I can't
provide a useful GPG-signed pubkey, no web-of-trust ...
normalperson (Eric Wong)
05:29 AM Feature #9068: [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
(10/31/13 3:42 PM), normalperson (Eric Wong) wrote:
>
> Issue #9068 has been reported by normalperson (Eric Wong).
>
> ----------------------------------------
> Feature #9068: [PATCH (trivial)] thread.c: reduce rb_mutex_t siz...
kosaki (Motohiro KOSAKI)
04:42 AM Feature #9068 (Closed): [PATCH (trivial)] thread.c: reduce rb_mutex_t size by 8 bytes on x86_64
gcc can pack the structure better when both 32-bit fields
are next to each other.
(I realized I could have 10K-100K Mutexes potentially in one of my projects,
but maybe I'll change the design :)
normalperson (Eric Wong)
04:28 AM Feature #6308: Eliminate delegation from WeakRef
I have updated my PR to put the new non-delegating weak reference in a WeakReference class and add a deprecation warning to WeakRef.
https://github.com/ruby/ruby/pull/406
headius (Charles Nutter)
04:06 AM Feature #6308: Eliminate delegation from WeakRef
headius (Charles Nutter) wrote:
> If we have to introduce a new class (I strongly protest) something like SimpleWeakRef might be better than a symbolic name.
Or how about WeakReference, and we add a warning saying WeakRef is deprecat...
headius (Charles Nutter)
04:05 AM Feature #6308: Eliminate delegation from WeakRef
nobu (Nobuyoshi Nakada) wrote:
> Chained WeakRef (WeakRef to WeakRef) doesn't work well without delegation.
> ...
I can't say I've ever had a need to wrap a weakref in a weakref. What's the use case?
> and
> ...
This looks fine to ...
headius (Charles Nutter)
02:19 AM Feature #6308: Eliminate delegation from WeakRef
Chained WeakRef (WeakRef to WeakRef) doesn't work well without delegation.
w = WeakRef.new(obj)
w = WeakRef.new(w)
w.foo
and
w = WeakRefWithoutDelegation.new(obj)
w = WeakRefWithoutDelegation.new(w)
w.get.get.foo...
nobu (Nobuyoshi Nakada)
02:28 AM Bug #8384: Cannot build ruby against OpenSSL build with "no-ec2m"
Thank you! vo.x (Vit Ondruch)
12:09 AM Bug #8384: Cannot build ruby against OpenSSL build with "no-ec2m"
Backported to ruby_1_9_3 at r43486 and r43494. usa (Usaku NAKAMURA)
12:05 AM Bug #9048: Remove legacy ±(binary) special cases.
Backported to ruby_1_9_3 at r43493. usa (Usaku NAKAMURA)
12:00 AM Bug #8654: SEGV in Array#count
Backported to ruby_1_9_3 at r43491. usa (Usaku NAKAMURA)
 

Also available in: Atom