Project

General

Profile

Activity

From 10/05/2012 to 10/11/2012

10/11/2012

11:09 PM Bug #7135 (Closed): GC bug in Ruby 1.9.3-p194?
This issue was solved with changeset r37143.
Alex, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
string.c: GC guard
* string.c (rb_str_sub{seq,pos,str}, rb_str_e...
nobu (Nobuyoshi Nakada)
05:19 PM Bug #7135: GC bug in Ruby 1.9.3-p194?
Just sent PR. https://github.com/ruby/ruby/pull/191 alexdowad (Alex Dowad)
04:20 PM Bug #7135: GC bug in Ruby 1.9.3-p194?
> I see. In which timezone 4AM?
That's 4AM Zambian time... right now I'm serving as a volunteer in Zambia (and doing Rails-related consulting on the side to support myself and my wife).
alexdowad (Alex Dowad)
11:29 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
Hi,

At Thu, 11 Oct 2012 11:03:31 +0900,
alexdowad (Alex Dowad) wrote in [ruby-core:47905]:
> I'd prefer to submit my own PR, if it's OK with you. It would
> somehow make staying up until 4AM to debug this problem seem
> wor...
nobu (Nobuyoshi Nakada)
11:02 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
> Not yet. I'll apply it if it fixes the bug.
I'd prefer to submit my own PR, if it's OK with you. It would somehow make staying up until 4AM to debug this problem seem worthwhile...
alexdowad (Alex Dowad)
10:53 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
> + RB_GC_GUARD(str);
This also fixes the problem. I looked on GitHub, and it looks like this patch hasn't been applied to the newest version of the Ruby source... I'll submit a pull request.
Thanks to @nobu and @normalperson fo...
alexdowad (Alex Dowad)
10:53 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
Hi,

At Thu, 11 Oct 2012 10:33:16 +0900,
alexdowad (Alex Dowad) wrote in [ruby-core:47902]:
> I just saw your messages after posting. Has the patch you
> showed already been applied to edge Ruby?

Not yet. I'll apply it i...
nobu (Nobuyoshi Nakada)
10:33 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
Hi Nobuさん,
I just saw your messages after posting. Has the patch you showed already been applied to edge Ruby?
alexdowad (Alex Dowad)
10:30 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
YEE-HA!!! I think I may have nailed it!!!
I believe that my compiler was storing the pointer to the frozen string copy in a register, rather than on the stack, so the garbage collector couldn't find any references to it. But even afte...
alexdowad (Alex Dowad)
10:29 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
Hi,

At Thu, 11 Oct 2012 10:08:51 +0900,
alexdowad (Alex Dowad) wrote in [ruby-core:47898]:
> Question: does the Ruby GC look for Object references by
> scanning the stack?

Of course yes, but recent compilers often optimi...
nobu (Nobuyoshi Nakada)
10:23 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
Hi,

At Thu, 11 Oct 2012 08:32:23 +0900,
alexdowad (Alex Dowad) wrote in [ruby-core:47897]:
> OK, I overcame the problem with compiling and testing a
> patched Ruby binary. When I comment out line 6229 of
> string.c, the pro...
nobu (Nobuyoshi Nakada)
10:08 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
OK, I have established beyond all doubt that the contents of the String *are* being overwritten -- *not* the original String, but the frozen copy which #codepoints makes internally. Additionally, the overwriting definitely happens when t... alexdowad (Alex Dowad)
08:32 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
OK, I overcame the problem with compiling and testing a patched Ruby binary. When I comment out line 6229 of string.c, the problem goes away. Then when I uncomment the line and recompile Ruby, the problem comes back again. This is the co... alexdowad (Alex Dowad)
08:05 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
I patched the Ruby interpreter source and recompiled, but I'm having trouble using the resulting binary. The problem is that I don't want to run "make install", because I don't want to mess up my system's setup. But without "make install... alexdowad (Alex Dowad)
07:53 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
"alexdowad (Alex Dowad)" <[email protected]> wrote:
> Eric Wong <[email protected]> wrote:
> > I'm not familiar with Prawn, but does any of its dependencies pull in
> > extra C extension which may have memory corruption ...
normalperson (Eric Wong)
07:03 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
More information:
When I restructure the code to avoid using an Enumerator, like this:
s = 0
string.codepoints do |r|
GC.start if $my_debug
if $my_debug
print r, "(", st...
alexdowad (Alex Dowad)
07:00 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
OK, I found a couple more significant things:
1. I can reproduce the problem on Ruby 1.9.2 and 1.9.3, but never 1.8.7.
2. I tried putting calls to "print string.bytes.to_a" and "print string.codepoints.to_a" inside the "string.codepo...
alexdowad (Alex Dowad)
06:50 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
> Does this happen with unmodified Prawn at all?

Good question. I haven't spent a lot of time repeatedly running the spec tests for "unmodified" Prawn. Generally when I run some tests, it's because I'm contributing a patch to the gem...
alexdowad (Alex Dowad)
06:23 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
"alexdowad (Alex Dowad)" <[email protected]> wrote:
> Nobuさん, I don't expect that you (or anyone else) would be able to reproduce this bug. As I said, it doesn't happen when I extract the part which is failing from Prawn, only w...
normalperson (Eric Wong)
05:12 AM Bug #7135: GC bug in Ruby 1.9.3-p194?
Nobuさん, I don't expect that you (or anyone else) would be able to reproduce this bug. As I said, it doesn't happen when I extract the part which is failing from Prawn, only when I run the tests against the whole thing (which I have modif... alexdowad (Alex Dowad)
10:13 PM Bug #7142 (Closed): mingw TestFloat#test_round_with_precision failure
=begin
Trunk ruby on Windows XP x86 with mingw-w64 gcc 4.7.2 has the following test failure.
1) Failure:
test_round_with_precision(TestFloat) [C:/Users/Worker/Jenkins/workspace/ruby-trunk-x86-build/test/ruby/test_float.rb:389]:
...
h.shirosaki (Hiroshi Shirosaki)
09:56 PM Bug #7141 (Closed): ALT_STACK_SIZE is not enough
nariです。
以下で教えていただいたバックトレースが出ない件をもう少し追いかけてみた
ところ、どうもシグナルハンドラ内でスタックオーバーフローしているような
気がしています。
http://bugs.ruby-lang.org/issues/7095#note-6
r37088 のコミットで一応問題は再現しなくなったのですが、たぶんこれはスタッ
クを突き破ってメモリ破壊したときに、たまたまセグメント違反にならないよ
うなメモリの配置になったた...
authorNari (Narihiro Nakamura)
09:51 PM Bug #7140 (Closed): TestWEBrickCGI#test_cgi fails on Windows with chcp 437
=begin
Webrick test fails with chcp 437 on Windows mingw reported by Jon.
https://gist.github.com/3859711#gistcomment-585563
C:\Jenkins\workspace>chcp 437
Active code page: 437

C:\Jenkins\workspace>ruby -I ruby-trunk-svn\t...
h.shirosaki (Hiroshi Shirosaki)
08:26 PM Revision 1968892c (git): * 2012-10-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:26 PM Revision 17821595 (git): * lib/timeout.rb (timeout):
Remove paragraph on wrong implementation detail.
[ruby-core:47739] [Bug #7088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
06:12 PM Feature #6602: Tail call optimization: enable by default?
+1 for `goto foo()`
Tail call optimization looks to me like a tamed form of `goto`.
alexeymuranov (Alexey Muranov)
03:34 PM Revision 3036104a (git): merge revision(s) 33819,33839:
* io.c (ioctl_narg_len): don't use _IOC_SIZE macro on Linux.
On Linux some constants for ioctl(2) doesn't include the size of
its return value and 16bit value; for example FIONREAD 0x541B.
Moreover the manua...
naruse (Yui NARUSE)
02:09 PM Revision e808b2b1 (git): string.c: GC guard
* string.c (rb_str_sub{seq,pos,str}, rb_str_each_{line,codepoint}):
prevent String copies from GC. [ruby-core:47881] [Bug #7135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:50 AM Revision 104d1737 (git): test_string.rb: missing test
* test/ruby/test_string.rb (test_each_codepoint): missing test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:50 AM Revision 88e326ed (git): test_string.rb: suppress warnings
* test/ruby/test_string.rb (test_match_method): use unique objects in
TestString and TestString2.
* test/ruby/test_string.rb (test_ascii_incomat_inspect): suppress
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37141 b...
nobu (Nobuyoshi Nakada)
06:50 AM Revision eddfa31b (git): test_string.rb: highlighting
* test/ruby/test_string.rb (test_LSHIFT, test_succ): get rid of
ruby-mode.el confusion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:47 AM Revision a9f1e5da (git): * 2012-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:47 AM Revision cf7a5afa (git): merge revision(s) 33711,33713,33714,33715,33716,33717,33718,33719,33720,33721,33724,33727,33728,33752,33753: [Backport #6127]
* io.c (ioctl_req_t): Type of req argument of ioctl() depend on platform.
Moreover almost all linux ioctl can't be represented by 32bit integer
(i.e. MSB is 1). We need wrap ioctl argument type.
[Bug #5429] [r...
naruse (Yui NARUSE)
02:33 AM Feature #7106: FileUtils.touch should allow touching the symlink itself rather than the file the link points to
Hey,
Definitely a nice to have feature in the standard library :)
And so... few thoughts / ideas ...
On Linux, it would require both the glibc >= 2.6 and kernel >= 2.6.22 since lutimes() on linux uses the utimensat() system-call (and ...
kwilczynski (Krzysztof Wilczynski)
01:58 AM Bug #7137 (Rejected): Date.parse overly lenient when attempting to parse Monday?
irb(main):001:0> require 'date'
=> true
irb(main):002:0> Date.parse('Monitoring')
=> #<Date: 2012-10-08 ((2456209j,0s,0n),+0s,2299161j)>
irb(main):003:0> Object.constants.sort.each{|c|puts "#{c}=#{Object.const_get(c)}" if c.to_s.star...
garysweaver (Gary Weaver)
12:50 AM Revision 34996e23 (git): Suppress warning: 'iseqval' may be used uninitialized in this function
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

10/10/2012

11:39 PM Bug #7135 (Feedback): GC bug in Ruby 1.9.3-p194?
I can't reproduce it.
nobu (Nobuyoshi Nakada)
10:28 PM Bug #7135 (Closed): GC bug in Ruby 1.9.3-p194?
I'm just doing some refactoring/performance work on a popular Ruby gem called Prawn (it's used for PDF generation). I'm fighting with a strange, intermittent failure on the spec tests, and from my experimentation so far, it seems very, v... alexdowad (Alex Dowad)
11:38 PM Bug #7136 (Third Party's Issue): 1.9.3-p194 segfault with c-extension
auto variables are disposed when the function exits. nobu (Nobuyoshi Nakada)
10:52 PM Bug #7136: 1.9.3-p194 segfault with c-extension
there are commented code in ext.rb
ext.rb:15 - this is "puts $ext_var_num"
puchuu (Andrew Aladjev)
10:45 PM Bug #7136 (Third Party's Issue): 1.9.3-p194 segfault with c-extension
file extconf.rb:
require "mkmf"
create_makefile("variables")
file variables.c:
#include "ruby.h"
void Init_variables()
{
VALUE num, arr, str;
num = INT2FIX ( 1024 );
rb_define_variable ( "$ext_v...
puchuu (Andrew Aladjev)
10:43 PM Revision b5ff6f11 (git): * iseq.c (insn_operand_intern): cast op to rb_call_info_t* before
compare with iseq->callinfo_entries whose type is rb_call_info_t*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:38 PM Revision fb9034e7 (git): * bootstraptest/test_block.rb: add tests for block with super.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
05:55 PM Revision a52af292 (git): * vm_dump.c: fix debug prints to catch up recent changes
such as VM data structures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:52 PM Revision dddb92fd (git): * 2012-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:52 PM Revision 6990c7f9 (git): * iseq.c (insn_operand_intern): add support disasm TS_CALLINFO
operands.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:14 PM Bug #7133 (Closed): [mingw] bogus TestProcess#test_execopts_gid test failure
This issue was solved with changeset r37128.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/ruby/test_process.rb (TestProcess#test_execopts_gid): skip ...
usa (Usaku NAKAMURA)
08:02 AM Bug #7133 (Closed): [mingw] bogus TestProcess#test_execopts_gid test failure
On mingw windows builds, HAVE_GETGROUPS is not defined so `Process.groups` is not implemented
https://github.com/ruby/ruby/blob/trunk/process.c#L5389
Attached patch skips the test on windows and changes the output from
[15/74]...
jonforums (Jon Forums)
12:38 PM Revision 187ae6d5 (git): Rename variabls
* uid always stores uid
* user stores username or nil
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:36 PM Feature #6602: Tail call optimization: enable by default?
FWIW, JRuby will not be able to support TCO until the JVM supports TCO, so it won't work across implementations. I don't say that to hold back progress...just stating facts. headius (Charles Nutter)
08:08 AM Revision ba7c9b1c (git): Test both username and uid
* system(, uid: ) takes username or uid
* ENV["USER"] may be nil (sudo or jail)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:14 AM Revision f784e14f (git): * 2012-10-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:14 AM Revision 7eb1fee9 (git): * test/ruby/test_process.rb (TestProcess#test_execopts_gid): skip on
windows because the platform does not have Process.group method.
patched by Jon Forums in [ruby-core:47878] [Bug #7133].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura

10/09/2012

09:17 PM Feature #7132 (Assigned): Alternation between named / ordered method arguments and aliases for method arguments.
=begin
Hi everyone. I am using Ruby for >1 year and I would like to share with you my dreams regarding the named method arguments planned for 2.0. Let us imagine a class Thief with 3 properties (name, hit_points and dexterity), which ha...
Anonymous
05:13 PM Feature #6975 (Closed): Changing UID/GID when calling spawn/popen
This issue was solved with changeset r37124.
Daniele, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
process.c: uid gid exec options
* process.c (rb_execarg_addop...
nobu (Nobuyoshi Nakada)
03:50 PM Feature #7114 (Feedback): New classes: `HumanTime::LocalTime`, `HumanTime::Duration`
Once Ruby had `Date::Delta` but removed because it is undocumented experimental feature #4391.
If you trouble with Rails, you should consider the feature should be a part of Rails (in this case ActiveSupport).
Anyway this request s...
naruse (Yui NARUSE)
03:36 PM Feature #7114: New classes: `HumanTime::LocalTime`, `HumanTime::Duration`
Sounds like that AR can provide AR-specific `parse` method.
nobu (Nobuyoshi Nakada)
02:18 PM Revision 428ec4ec (git): envutil.rb: assert_file and assert_file_not
* test/ruby/envutil.rb (assert_file, assert_file_not): more
descriptive assertions for File predicates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:09 AM Feature #7121 (Assigned): Extending the use of `require'
I was playing with Ruby tonight and thought up an interesting idea to make (({require})) a bit better, so you can load multiple files sequentially using one method call.
Currently, (({require})) supports one argument, and throws a (({...
mjones (Morgan Jones)
09:01 AM Revision e3efce6d (git): array.c: use rb_random_ulong_limited
* array.c (rb_ary_sample): use rb_random_ulong_limited, since
precision of long may be larger than double.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:59 AM Revision 7f8e5584 (git): random.c: rb_random_ulong_limited
* random.c (rb_random_ulong_limited): new function to return a random
value from 0 upto limit as unsigned long, simillary to
rb_genrand_ulong_limited but with arbitrary RNG object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
nobu (Nobuyoshi Nakada)
08:13 AM Revision dd83dd6b (git): process.c: uid gid exec options
* process.c (rb_execarg_addopt, rb_execarg_run_options): add :uid and
:gid options. [ruby-core:47414] [Feature #6975]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:05 AM Revision 0bf06ff4 (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:37 AM Revision 62ad069c (git): * iseq.c (iseq_free): fix memory leak.
rb_iseq_t::callinfo_entries should be freed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:33 AM Revision 7ea3edc4 (git): * vm_core.h (rb_call_info_t): add new type `rb_call_inf_t'.
This data structure contains information including inline method
cache. After that, `struct iseq_inline_cache_entry' does not
need to contain inline cache for method invocation.
Other information will be added to this data structur...
ko1 (Koichi Sasada)
01:40 AM Bug #7040 (Closed): gem install で特定の gem がインストールできない
This issue was solved with changeset r37119.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/zlib/zlib.c (zstream_run_func): don't call inflate() whe...
nagachika (Tomoyuki Chikanaga)

10/08/2012

07:15 PM Bug #7119 (Third Party's Issue): Running wisp causes a segmentation fault
=begin
Running Wisp causes a segmentation fault.
Wisp is only version 0.1.0, but its code is too simple for it itself to cause a segmentation fault.
192-168-1-6:Wisp agrimm$ ruby -rwisp examples/loop.rb
== Sinatra/1.3.2 ...
agrimm (Andrew Grimm)
04:40 PM Revision 4be0c562 (git): * 2012-10-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:40 PM Revision f21ac99e (git): * ext/zlib/zlib.c (zstream_run_func): don't call inflate() when
z->stream.avail_in == 0. it return Z_BUF_ERROR.
but deflate() could be called with z->stream->avail_in == 0 because
it has hidden buffer in z->stream->state (opaque structure).
fix for gem install error. [ruby-dev:46149] [Bug #7040...
nagachika (Tomoyuki Chikanaga)
02:56 PM Revision 1bb89a6d (git): * eval.c (rb_mod_refinements): new method Module#refinements.
* test/ruby/test_refinement.rb: add new tests for the above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
02:02 PM Revision e028d3d9 (git): * eval.c, gc.c, iseq.c, node.h, vm_insnhelper.c, vm_insnhelper.h,
vm_method.c: rename omod and overlaid modules to refinements.
* eval.c (hidden_identity_hash_new): renamed from identity_hash_new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:26 PM Bug #7066: test_segv_test(TestRubyOptions) が F になる
r37080 までは出ていましたが r37089 では出なくなっていました。
(途中ビルド環境の不調があったため、変化したリビジョンが特定できていません)
metanest (Makoto Kishimoto)
02:11 AM Feature #7113: New classes: `HumanTime::LocalTime`, `HumanTime::LocalDate`, `HumanTime::LocalDateTime` to represent "timetable time"
Eric, i meant that measuring the time in seconds ("the duration of 9 192 631 770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium 133 atom", according to the inte... alexeymuranov (Alexey Muranov)
01:38 AM Feature #7114: New classes: `HumanTime::LocalTime`, `HumanTime::Duration`
Maybe `TimeOfDay` instead of `LocalTime`. But i am not entirely convinced that nobody would want to have a `LocalDate` class too, in which case `LocalTime` is better.
alexeymuranov (Alexey Muranov)
12:47 AM Feature #7114 (Feedback): New classes: `HumanTime::LocalTime`, `HumanTime::Duration`
=begin
As suggested by *drbrain* in #7113 , here is a separate request for classes to hold the time of day and duration of time.
Ruby currently does not have a class to represent a standard database "time" column. Using (({Time})) f...
alexeymuranov (Alexey Muranov)
12:29 AM Bug #7040: gem install で特定の gem がインストールできない
Hello,
I've investigated this little more deeper.
If inflate() (aka z->func->run()) return under condition which z->stream.avail_in == z->stream.avail_out == 0, current zstream_run_func() call inflate() once more even though there'...
nagachika (Tomoyuki Chikanaga)

10/07/2012

05:28 PM Feature #7113 (Rejected): New classes: `HumanTime::LocalTime`, `HumanTime::LocalDate`, `HumanTime::LocalDateTime` to represent "timetable time"
I don't see the need for thr inclusion of a HumanTime class as you describe in ruby. Typically a time with time zone is sufficient (time zones were popularized by railroads to add convenience to scheduling) which ruby provides (although,... drbrain (Eric Hodel)
04:43 PM Feature #7113: New classes: `HumanTime::LocalTime`, `HumanTime::LocalDate`, `HumanTime::LocalDateTime` to represent "timetable time"
Sorry, there was a typo: *Moon*, of course :). alexeymuranov (Alexey Muranov)
12:15 AM Feature #7113: New classes: `HumanTime::LocalTime`, `HumanTime::LocalDate`, `HumanTime::LocalDateTime` to represent "timetable time"
I forgot one more: `HumanTime::Duration`. alexeymuranov (Alexey Muranov)
12:05 AM Feature #7113 (Rejected): New classes: `HumanTime::LocalTime`, `HumanTime::LocalDate`, `HumanTime::LocalDateTime` to represent "timetable time"
=begin
I think it would be nice if the following new classes were added to the standard library: (({HumanTime::LocalTime})), (({HumanTime::LocalDate})), (({HumanTime::LocalDateTime})) to represent what they name. Apart from the time-rel...
alexeymuranov (Alexey Muranov)
05:14 PM Revision 7b6e6ede (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:10 PM Revision aaa8880d (git): * 2012-10-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:10 PM Revision 98f14a91 (git): fix ML ref
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:03 AM Bug #6985 (Closed): Documentation Examples for Abbrev
This issue was solved with changeset r37113.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/abbrev.rb: Documentation examples for Abbrev.
[ruby-de...
zzak (zzak _)
04:51 AM Bug #7099 (Closed): Fixing some grammar in thread.c docs
This issue was solved with changeset r37112.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (rb_thread_aref):
Grammar in Thread documentation.
...
zzak (zzak _)
04:38 AM Bug #7062 (Closed): Rdoc for String#=~
This issue was solved with changeset r37109.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_match):
Clarify behavior for captured stri...
zzak (zzak _)

10/06/2012

10:49 PM Bug #7112: File.extname documentation fix
Good catch!
There are a few special cases:
- dotfiles (e.g.: ".hidden") have "" for extname and ".hidden" for basename.
- files ending with a dot report "" as extname (done by rb_file_s_extname())
- looking at ruby_enc_find_extname...
Eregon (Benoit Daloze)
11:59 AM Bug #7112 (Closed): File.extname documentation fix
The documentation says that File.extname returns the portion of the filename _after_ the period, while the actual output includes the period. Update the documentation to reflect this. noah256 (Noah Silas)
08:03 PM Revision 511703c7 (git): * lib/abbrev.rb: Documentation examples for Abbrev.
[ruby-dev:47442] [Bug #6985]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:51 PM Revision 61d460e5 (git): * thread.c (rb_thread_aref):
Grammar in Thread documentation.
Patch by Steve Klabnik [ruby-dev:47799] [Bug #7099]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:48 PM Revision 5683d8b4 (git): * string.c (rb_str_match):
Clarify behavior for captured strings and local variable assignment
Patch by Marcus Stollsteimer [ruby-dev:47668] [Bug #7062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:38 PM Revision bdbd1f84 (git): * 2012-10-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:38 PM Revision 1b5ce613 (git): * string.c (rb_str_match):
Clarify behavior for captured strings and local variable assignment
Patch by Marcus Stollsteimer [ruby-dev:47668] [Bug #7062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
06:37 PM Bug #7111: New build option to enable/disable global method caching
ko1 (Koichi Sasada) wrote:
> (2012/10/06 15:31), shugo (Shugo Maeda) wrote:
> ...
I've committed the fix with the above change.
shugo (Shugo Maeda)
06:36 PM Bug #7111 (Closed): New build option to enable/disable global method caching
This issue was solved with changeset r37106.
Shugo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_opts.h (OPT_GLOBAL_METHOD_CACHE): new build option to
ena...
shugo (Shugo Maeda)
05:23 PM Bug #7111: New build option to enable/disable global method caching
(2012/10/06 15:31), shugo (Shugo Maeda) wrote:
> I forgot to attach it:(
> Please see opt_global_method_cache.diff attached.

It is okay. But I recommend that only method search at the the
`rb_method_entry_get_with_omod' shou...
ko1 (Koichi Sasada)
03:31 PM Bug #7111: New build option to enable/disable global method caching
ko1 (Koichi Sasada) wrote:
> I don't have any objection.
> ...
I forgot to attach it:(
Please see opt_global_method_cache.diff attached.
shugo (Shugo Maeda)
12:23 PM Bug #7111: New build option to enable/disable global method caching
(2012/10/06 11:19), shugo (Shugo Maeda) wrote:
> Ruby has a build option to enable/disable inline method caching (OPT_INLINE_METHOD_CACHE), but has no such option for global method caching.
> How about to add a new build option OPT_...
ko1 (Koichi Sasada)
11:19 AM Bug #7111 (Closed): New build option to enable/disable global method caching
Ruby has a build option to enable/disable inline method caching (OPT_INLINE_METHOD_CACHE), but has no such option for global method caching.
How about to add a new build option OPT_GLOBAL_METHOD_CACHE?
I've attached a patch to add th...
shugo (Shugo Maeda)
02:26 PM Revision 974e3c9c (git): * test/openssl/test_config.rb (OpenSSL#test_constants): skip only when
DEFAULT_CONFIG_FILE does not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:22 PM Revision 0751c5d1 (git): reapply r37098
UTF-16 and UTF-32 are also treated as unicode since r37101.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:36 AM Revision 960e8a41 (git): * vm_opts.h (OPT_GLOBAL_METHOD_CACHE): new build option to
enable/disable global method caching. [ruby-dev:46203] [Bug #7111]
* vm_method.c (rb_method_entry_get_with_omod): don't use global
method cache if OPT_GLOBAL_METHOD_CACHE is 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37106 ...
shugo (Shugo Maeda)
07:32 AM Revision c29c44c4 (git): * vm_method.c (search_method): check omod only once for performance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
05:47 AM Bug #7107: Ruby can no longer find constants in methods in anonymous modules
=begin
Additionally, when the module is given a name it still can't find the constant:
module M
C = 1

def self.m
C
end
end

puts 'named module'
M.m

puts 'anonymous module'
m = M.dup...
drbrain (Eric Hodel)
03:53 AM Bug #7109: File.utime doesn't set nanoseconds
>> utimensat system call is required to set nanosecond filestamp.
>> It is available since Linux 2.6.22.
>> (glibc support is also required but I'm not sure the exact version.)
>>
>> I guess RHEL 5/CentOS 5 is older than that.
...
kosaki (Motohiro KOSAKI)
03:04 AM Revision a9497d5a (git): Revert r37098
This reverts
* encoding.c (rb_enc_unicode_p): oniguruma provides Unicode flag.
because UTF-16 and UTF-32 is also treated as unicode in this context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37104 b2dd03c8-39d4-4d8f-98ff-823fe69...
naruse (Yui NARUSE)
02:07 AM Bug #7108: SIGABRT in st_lookup during long-running database+TCP program
Awesome, thank you! I ended up reinstalling rbenv with homebrew and linked against a newer libssl. It appears to have solved my problem. Thanks for pointing me in the right direction!
tonyarkles (Tony Arkles)
12:50 AM Revision b1058ef4 (git): gc.c: use markable_object_p
* gc.c (gc_mark_children): use markable_object_p() and reduce
duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:48 AM Revision 122de73a (git): test_objspace.rb: refine
* test/objspace/test_objspace.rb (test_reachable_objects_from): use
proper assertions, and show messages than comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:42 AM Revision 928d1a52 (git): encoding.c: unicode_p
* enc/encdb.c, enc/utf_16_32.h (ENC_DUMMY_UNICODE): endian-less wide
UTF encodings are dummy but Unicode.
* encoding.c (rb_encdb_set_unicode): set Unicode flag.
* template/encdb.h.tmpl: allow ENC_DUMMY variants.
git-svn-id: svn+ssh://...
nobu (Nobuyoshi Nakada)

10/05/2012

10:23 PM Feature #6637: Add HTML5 support to CGI
=begin
Since this issue is already closed, I opened a new one, see #7110.
=end
stomar (Marcus Stollsteimer)
10:22 PM Bug #7110 (Closed): CGI: Add support for HTML5 <header> tag
=begin
These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637.
Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header elemen...
stomar (Marcus Stollsteimer)
07:13 PM Bug #6573: Webrick test failures
Can somebody look into this issue, please? This is very annoying bug. When I am doing build for Fedora or Red Hat Enterprise Linux, it builds for more platforms at once in parallel, so there is higher chance to fail. Now I am doing alrea... vo.x (Vit Ondruch)
06:23 PM Bug #7109: File.utime doesn't set nanoseconds
2012/10/5 Bohuslav Kabrda <[email protected]>:

> True, kernel version is 2.6.19. So is there another way to solve this or do I have to get along with microseconds?

We can't set a timestamp without appropriate system call.
-...
akr (Akira Tanaka)
04:53 PM Bug #7109: File.utime doesn't set nanoseconds
----- Original Message -----
> 2012/10/5 bkabrda (Bohuslav Kabrda) <[email protected]>:
>
> > I'm having a problem with File.utime on RHEL 5/CentOS 5. The
> > File.utime method seems not to set nanoseconds properly, see the
...
Anonymous
04:23 PM Bug #7109: File.utime doesn't set nanoseconds
2012/10/5 bkabrda (Bohuslav Kabrda) <[email protected]>:

> I'm having a problem with File.utime on RHEL 5/CentOS 5. The File.utime method seems not to set nanoseconds properly, see the attached test case, that fails (the nanoseconds...
akr (Akira Tanaka)
03:47 PM Bug #7109 (Rejected): File.utime doesn't set nanoseconds
Hi,
I'm having a problem with File.utime on RHEL 5/CentOS 5. The File.utime method seems not to set nanoseconds properly, see the attached test case, that fails (the nanoseconds get rounded to thousand, so in fact I get microseconds). T...
Anonymous
04:53 PM Bug #7097: Thread locals don't work inside Enumerator
2012/10/2 SASADA Koichi <[email protected]>:

> Akira-san:
> Could you give us your comments?

I think it is possible to add new methods for thread local storage.
--
Tanaka Akira
akr (Akira Tanaka)
04:22 PM Revision 5d316e77 (git): Adding a test for initialize_clone and initialize_dup. From Github:
https://github.com/ruby/ruby/pull/190
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
03:14 PM Revision f6848bf1 (git): * 2012-10-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:14 PM Revision d5ac3f71 (git): encoding.c: unicode_p
* encoding.c (rb_enc_unicode_p): oniguruma provides Unicode flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:30 PM Bug #7108 (Third Party's Issue): SIGABRT in st_lookup during long-running database+TCP program
It's well known that libssl 0.9.8 bundled in MacOS X Mountain Lion is broken. nobu (Nobuyoshi Nakada)
01:56 PM Bug #7108: SIGABRT in st_lookup during long-running database+TCP program
Looks like some of that got cut off. I'll try it as files instead.
tonyarkles (Tony Arkles)
01:54 PM Bug #7108 (Third Party's Issue): SIGABRT in st_lookup during long-running database+TCP program
I was running a pretty simple program that was using the `gmail` gem to retrieve email and then storing it using `activerecord` (without using all of Rails). After retrieving over 4,100 emails, I got a SIGABRT. Here's the output into the... tonyarkles (Tony Arkles)
01:59 PM Bug #3781 (Closed): FIBER_USE_NATIVE が有効だと落ちるスクリプトがある
r37075 でなおったと思います。 authorNari (Narihiro Nakamura)
01:27 PM Feature #5033 (Closed): PATCH: 1.9: gc_mark_children: Avoid gc_mark() tail recursion, use goto again.
I've committed part of your patch in r37075. Thanks! authorNari (Narihiro Nakamura)
11:10 AM Feature #6752: Replacing ill-formed subsequencce
今日のなるせさん、中田さんとのTwitter上での議論をもとにいくつかリクエスト(というか備忘録)
・個人的にはencode()よりも専用メソッド推し。理由は頻度。入力の正当性チェックなんてそこら中に需要あると思う
・メソッド名は replace_invalid_character みたいな思いっきり説明的な名前でいいような気がします。これをメソッドチェインしないでしょう。
あと、encode が invalid => replace なので用語合わせたほうがい...
kosaki (Motohiro KOSAKI)
10:06 AM Bug #7107 (Closed): Ruby can no longer find constants in methods in anonymous modules
=begin
With ruby 1.9 and newer C cannot be found if m is duplicated:
module M
C = 1

def self.m
C
end
end

puts 'named module'
M.m

puts 'anonymous module'
m = M.dup
m.m
Ruby 1.8:...
drbrain (Eric Hodel)
09:21 AM Revision 3376ea81 (git): fix comments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
09:19 AM Revision 4c0f022f (git): revert r37091
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
08:20 AM Revision ae114a8e (git): * template/Doxyfile.tmpl: remove SHOW_DIRECTORIES and
HTML_ALIGN_MEMBERS lines. They have been obsolete in
Doxygen version 1.8.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
takano32 (Mitsuhiro TAKANO)
08:14 AM Revision e03d6d9e (git): * ext/objspace/objspace.c: add ObjectSpace#reachable_objects_from.
This method returns an array of objects referenced by given object.
If given object is special objects such as true/false/nil/Fixnum etc
then it returns nil. See rdoc for details.
[ruby-core:39772]
* test/objspace/test_objspace.rb:...
ko1 (Koichi Sasada)
07:28 AM Revision 7cc6bfa3 (git): common.mk: gdb-ruby
* Makefile.in (RUNRUBY_COMMAND): split from RUNRUBY.
* common.mk (gdb-ruby): use runruby.rb to set up library path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:25 AM Revision c38ee002 (git): ChangeLog: fix a miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
07:20 AM Revision 271f069c (git): * gc.c (chain_finalized_object): remove to check a mark flag and
marking since all objects are certainly unmarked with rest_sweep.
* gc.c (rb_objspace_call_finalizer): remove to mark finalizable
objects. The sweeping doesn't push T_ZOMBIE objects to the
freelist.
git-svn-id: svn+ssh://ci.ruby-la...
authorNari (Narihiro Nakamura)
12:26 AM Revision 42fcb804 (git): * 2012-10-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:26 AM Revision e2220d19 (git): depend: missing dependency
* ext/date/depend: all source files need ruby.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom