Activity
From 08/19/2013 to 08/25/2013
08/25/2013
-
11:24 PM Feature #8726: Class#source_location
- Timeoutのバグの本質は、timeoutブロック内で rescue Exception した場合に、timeoutの実装が
内部的に使っている Timeout::ExitExceptionの無名派生クラスを拾ってしまうことのようです。
Timeoutの例は一例でして、Class#source_location があれば無名クラスがどこで定義されたものか
デバッグするのが容易になる、というのが趣旨でした。 -
05:19 PM Bug #8816: Tempfile.new may return the same name for parallel calls
- Tempfile.create may help you to create unique file name, but it's your task to guarantee that it doesn't conflict.
-
04:23 AM Bug #8816: Tempfile.new may return the same name for parallel calls
- "akr (Akira Tanaka)" <akr@fsij.org> wrote:
> http://bogomips.org/kgio.git/tree/test/test_unix_connect.rb :
>
> class TestKgioUnixConnect < Test::Unit::TestCase
>
> def setup
> tmp = Tempfile.new('kgio_unix')
... -
12:23 AM Bug #8816 (Third Party's Issue): Tempfile.new may return the same name for parallel calls
- Tempfile.new creates a normal file, not unix socket.
So, your report is questionable.
Note that Tempfile uses O_EXCL to exclusive file creation.
If it doesn't work, it is a problem of kernel.
I checked kgio.
It seems the tempora... -
12:07 PM Revision dac8c1e5 (git): * sizes.c (Init_sizes): Define the size of clock_t.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:48 AM Revision 36c4a301 (git): * object.c: [DOC] remove comment about trust/untrust.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:29 AM Bug #8818 (Closed): BigDecimal#power
- =begin
Optional argument `prec' to BigDecimal#power does not alter result precision:
b=BigDecimal.new("1.034482758620689655172413793103448275862068965517241379310344827586206896551724"
=> #<BigDecimal:807a50,'0.1034482758 62068965... -
04:55 AM Feature #8579: Frozen string syntax
- How about something more generic? A prefix operator that memoizes and freezes any expression result in a thread-safe manner on first eval:
%f'a frozen string' #
%f"a frozen #{interpolated} string" #
%f{a: '... -
01:53 AM Bug #8817 (Closed): Method#owner on prepended classes is an instance rather than Class/Method
- rdoc indicates that Method#owner will return a class or module that defines a method. http://www.ruby-doc.org/core-2.0/Method.html#method-i-owner
For classes that have prepended modules, the owner is actually an instance.
Example c... -
12:35 AM Feature #6216: SystemStackError backtraces should not be reduced to one line
- I'm not sure @matz/@ko1 understood what @postmodern was trying to describe.
Given an `overlfow.rb` ruby program:
~~~ruby
200.times do |i|
eval <<-RUBY_EVAL, nil, __FILE__, __LINE__ + 1
def foo_#{i}(&block)
foo_#{i+1...
08/24/2013
-
11:46 PM Feature #8579: Frozen string syntax - I have found a problem with using f-suffix syntax.
What should happen in this case?
"hello "f "world"
Note that this is not a problem when using %f syntax as it is a syntax error to have adjacent percent-strings like this:
... -
10:23 PM Bug #8816 (Third Party's Issue): Tempfile.new may return the same name for parallel calls
- Two simultaneous call to Tempfile.new may return the same name. This may lead
to race conditions.
There some examples of such races (unix socket can't be unlinked because it was
unlinked by another test case):
https://buildd.debi... - 04:51 PM Revision 92749430 (git): * 2013-08-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:51 PM Revision 5a0e4a58 (git): * bignum.c (BARY_SHORT_MUL): Renamed from BARY_MUL1.
- (bary_short_mul): Renamed from bary_mul1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:41 AM Feature #8809: Process.clock_getres
- I updated the patch again.
-
09:24 AM Feature #8809: Process.clock_getres
- I updated the patch.
-
09:23 AM Feature #8809: Process.clock_getres
- david_macmahon (David MacMahon) wrote:
> I know it's not SI, but I often use ASCII "u" for Greek m ("µ"), so :microsecond would be aliased by :us.
It may be possible.
I found ISO 2955.
ISO 2955: Information processing - Repres... -
08:29 AM Bug #8810: GDBM.open内で処理がブロックしたらTimeout.timeout が効かない
- 2013/8/22 ngoto (Naohisa Goto) <ngotogenome@gmail.com>:
>
> Issue #8810 has been reported by ngoto (Naohisa Goto).
>
> ----------------------------------------
> Bug #8810: SolarisでGDBM.open内で処理がブロックしたらTimeout.timeout が効かない
... -
02:19 AM Revision cd9f60df (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:01 AM Revision 8eb27cb1 (git): [DOC]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:38 AM Revision 46dbe3f3 (git): * 2013-08-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:38 AM Revision 811eaddf (git): * process.c (rb_clock_gettime): The emulated clock names changed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/23/2013
-
09:44 PM Bug #8815 (Rejected): Enumerable.drop_while returns an Enumerator. Calling next twice on the Enumerator raises StopIteration even if there are still items available
- Not a bug.
Enumerable#drop_while stops if the block returns false (or nil).
You have to feed true value to the enumerator by Enumerator#feed.
enumerator.next # => 1
enumerator.feed(true)
enumerator.next # => 2
-
06:08 PM Bug #8815 (Rejected): Enumerable.drop_while returns an Enumerator. Calling next twice on the Enumerator raises StopIteration even if there are still items available
- I have an enumerable (array) that contains 3 items
[1, 2, 3].
I send drop_while without a block to this array to get an Enumerator.
enumerator = [1, 2, 3].drop_while
When I call next twice on the Enumerator
enumerator.next ... -
08:58 PM Bug #8758: Add initial documentation for SSLServer
- Hi Zachary,
Sorry for late reply.
I agree with your remarks. I will try to provide more detaled instruction and new patch tomorrow. -
02:09 PM Revision fb9b9b18 (git): win32ole.c: ID overflow
- * ext/win32ole/win32ole.c (GetIDsOfNames): check ID overflow against
DISPID, aka LONG, which is always 4 bytes.
* ext/win32ole/win32ole.c (Invoke): use ID for method name to get rid
of losing upper bits.
git-svn-id: svn+ssh://ci.ru... -
01:46 PM Revision 282bbea0 (git): add tests.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:25 PM Revision a0cac92b (git): * process.c (rb_clock_gettime): Add a cast to fix compile error by
- -Werror,-Wshorten-64-to-32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:20 PM Feature #8811 (Feedback): Counterpart to `Hash#key?` for `Array`
- Concrete use-case please? Besides that, I don't think #index? is a good name for the function.
Matz.
-
04:04 AM Feature #8811 (Feedback): Counterpart to `Hash#key?` for `Array`
- =begin
`Hash` hash `key?` to tell if a key exists without checking the value. It would be convenient if there were a counterpart in `Array`. Suppose it is called `Array#index?`. Then it should behave as follows:
[1, 2, 3].index?(... -
01:12 PM Revision 703bd175 (git): process.c: no symbol cache
- * process.c (rb_intern): no symbol cache while initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:07 PM Revision 5784aaf1 (git): configure.in: clock_t
- * configure.in (clock_t): needs time.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:46 PM Revision ca0b5118 (git): * process.c (reduce_factors): New function.
- (timetick2dblnum): Use reduce_factors.
(timetick2integer): Ditto.
(make_clock_result): Follow the above change.
(rb_clock_gettime): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:06 PM Revision f0bf7f75 (git): * process.c (timetick_int_t): Renamed from timetick_giga_count_t.
- (gcd_timtick_int): Renamed from gcd_ul and make the arguments
timetick_giga_count_t.
(reduce_fraction): Make the arguments timetick_int_t.
(timetick2integer): Ditto.
(make_clock_result): Ditto.
(timetick2dblnum): Fix the return... -
11:53 AM Revision bf9ce042 (git): Fix the previous commit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:44 AM Revision 49b9f61f (git): * process.c (gcd_ul): New function.
- (reduce_fraction): Ditto.
(reduce_fraction): Ditto.
(timetick2dblnum): Ditto.
(timetick2integer): Ditto.
(make_clock_result): Use timetick2dblnum and timetick2integer.
(rb_clock_gettime): Follow the make_clock_result change.
... -
09:42 AM Revision 5bcdc68c (git): * array.c (ary_make_shared): shared ary as shady. Need more effort to
- make it normal object.
* array.c (rb_ary_modify): use RARRAY_PTR_USE() without WB because
there are not new relations.
* array.c (ary_ensure_room_for_unshift): use RARRAY_RAWPTR() because
there are not new relations.
git-svn-id: s... -
08:23 AM Feature #8809: Process.clock_getres
- On Aug 22, 2013, at 3:37 PM, Tanaka Akira wrote:
> Process.clock_getres can return rational if it supports
> :rational_second as a unit.
>
> The current default of unit is :float_second and
> I think float is good enough.
Agr... -
07:53 AM Feature #8809: Process.clock_getres
- 2013/8/23 David MacMahon <davidm@astro.berkeley.edu>:
>>
>> Process.clock_getres(Process::CLOCK_MONOTONIC) #=> 1.0e-09
>> Process.clock_getres(Process::CLOCK_MONOTONIC_COARSE) #=> 0.00400025
>>
>> The result means that the r... -
01:23 AM Feature #8809: Process.clock_getres
- On Aug 22, 2013, at 7:33 AM, akr (Akira Tanaka) wrote:
> I made a pacth to invoke clock_getres function.
Thanks for making a patch! It makes the discussion much less abstract (more real?). I think I will try to follow your examp... -
08:17 AM Revision f539e9cb (git): win32ole.c: store directly
- * ext/win32ole/win32ole.c (ole_wc2vstr): store converted multibyte
string to string value directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision dcdde335 (git): win32ole.c: suppress a warning
- * ext/win32ole/win32ole.c (ole_vstr2wc): downcast to suppress a
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision df3c472a (git): win32ole.c: check method name length
- * ext/win32ole/win32ole.c (fole_missing): reject too long method name,
as Ruby string length is limited to long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision 91218a0e (git): win32ole.c: suppress warnings
- * ext/win32ole/win32ole.c (ole_excepinfo2msg, ole_wc2vstr): get rid of
size_t with rb_enc_str_new() to suppress warnings on x64-mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision 3134c5eb (git): win32ole.c: no copy string
- * ext/win32ole/win32ole.c (foletypelib_name, foletypelib_path):
WC2VSTR() returns a string in cWIN32OLE_enc, no need to copy another
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 AM Revision e2b08f40 (git): win32ole.c: fix type
- * ext/win32ole/win32ole.c (ole_method_docinfo_from_type): fix return type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:26 AM Bug #8812 (Closed): RSS: document more constants
- As part of my continued efforts to document RSS, here is the documentation for several of the constants relating to namespaces.
-
02:27 AM Revision c50d45fc (git): * array.c: introduce ARY_SHARED_OCCUPIED(shared).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:17 AM Revision fb8b2689 (git): process.c: suppress warnings
- * process.c (rb_clock_gettime): cast for tv_nsec explicitly to
suppress warnings by VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:07 AM Revision d12cf192 (git): * 2013-08-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:07 AM Revision ec026330 (git): Makefile.sub: SIZEOF_CLOCK_T
- * win32/Makefile.sub (config.h): now SIZEOF_CLOCK_T is needed for
unsigned_clock_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:19 AM Bug #8806: SEGV in Date.rfc2822
- r42654 で ruby_2_0_0 ブランチにバックポートしました。
-
12:27 AM Bug #8810 (Closed): GDBM.open内で処理がブロックしたらTimeout.timeout が効かない
- GDBM.open内で処理がブロックした場合にTimeout.timeoutが効きません。
再現方法は、Solarisにて、以下のようにGDBMをオープンしたままにして、
$ ruby -r gdbm -e 'db = GDBM.open("/var/tmp/tmpdb"); gets'
同一マシンで別のシェルで
$ ruby -r gdbm -r timeout -e 'Timeout.timeout(5) { db = GDBM.open...
08/22/2013
-
11:33 PM Feature #8809 (Closed): Process.clock_getres
- How about Process.clock_getres method?
POSIX defines clock_getres function to provide resolution information
of clocks.
I made a pacth to invoke clock_getres function.
Process.clock_getres(Process::CLOCK_MONOTONIC) #=> 1.0e-0... -
04:19 PM Revision 335a9ef2 (git): merge revision(s) 42100: [Backport #8806]
- * ext/date/date_parse.c (rfc2822_cb): check if wday is given, since it
can be omitted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:14 PM Revision f79b8872 (git): merge revision(s) 42639: [Backport #8805]
- * gc.c (getrusage_time): Fallback clock_gettime to getrusage when
clock_gettime fails.
Reported by Eric Saxby. [ruby-core:56762] [Bug #8805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42653 b2... -
01:27 PM Bug #8384 (Open): Cannot build ruby against OpenSSL build with "no-ec2m"
-
01:04 PM Revision a641003f (git): * process.c (rb_clock_gettime): Strip "s" from unit names.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:19 AM Revision 3873e09c (git): * process.c (unsigned_clock_t): Defined.
- (rb_clock_gettime): Consider clock_t overflow for
ISO_C_CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID.
* configure.in: Check the size of clock_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:03 AM Bug #8673: User rest-client PUT request core dumped
- Can you include your OpenSSL version? For example, mine is:
$ ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
"OpenSSL 1.0.1e 11 Feb 2013"
-
04:14 AM Bug #8673: User rest-client PUT request core dumped
- I'm seeing regular segfaults along this code path without any fancy ssl-related stuff.
Interestingly, it's blowing up during a spec run, and when I run the segfaulting specification alone, it doesn't segfault.
c:0042 p:---- s:018... -
07:23 AM Revision 5a87332e (git): * compile.c (build_postexe_iseq): fix to setup the local table.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:50 AM Revision 7e5d63f4 (git): * compile.c (rb_iseq_compile_node): accept NODE_IFUNC to support
- custom compilation.
* compile.c (NODE_POSTEXE): compile to
"ONCE{ VMFrozenCore::core#set_postexe{...} }" with a new custom
compiler `build_postexe_iseq()'.
* vm.c (m_core_set_postexe): remove parameters (passed by a block).
git-sv... -
04:55 AM Feature #8807: Custom literals
- If you define a new literal in file "a.rb" you cannot use it in that file that defined it as it has already been parsed. This may be confusing.
-
02:23 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
> > Ideally, we wouldn't even need a timer thread and we could just use
> > ppoll/pselect. But that would be a very intrusive change (and maybe too
> > incompatible with C extens...
08/21/2013
-
11:16 PM Bug #8803: Another buffer overflow
- normalperson (Eric Wong) wrote:
> "user021 (a s)" <user021@hushmail.com> wrote:
> ...
Yeah using ruby 1.9.3-p448 fixed my problem, thx alot.
-
01:53 AM Bug #8803: Another buffer overflow
- "user021 (a s)" <user021@hushmail.com> wrote:
> This might sound silly but how can i run my code with the new ruby
> 1.9.3-p448 that i installed using rbenv. when i do 'ruby -v' shows the
> old version and 'rbenv version' shows th... -
10:17 PM Revision 9438bc0c (git): Exchange order of ISO_C_CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID and
- POSIX_TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:57 PM Revision cda87d9e (git): * process.c (rb_clock_gettime): Change emulation symbols for
- Process.clock_gettime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:36 PM Bug #8384: Cannot build ruby against OpenSSL build with "no-ec2m"
- Is there any chance to get this backported into Ruby 2.0.0 as well as Ruby 1.9.3 branches? Thanks.
- 09:27 PM Revision aad08a09 (git): * 2013-08-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:27 PM Revision 47ae41ce (git): * process.c (make_clock_result): Extracted from rb_clock_gettime.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:53 PM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- > Ideally, we wouldn't even need a timer thread and we could just use
> ppoll/pselect. But that would be a very intrusive change (and maybe too
> incompatible with C extensions).
Ideally?
syscall is much slower than current ... -
07:29 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
> Hi
>
> On Sat, Aug 17, 2013 at 3:37 PM, Eric Wong <normalperson@yhbt.net> wrote:
> > SASADA Koichi <ko1@atdot.net> wrote:
> >> (2013/08/16 10:47), normalperson (Eric Wong) ... -
04:53 AM Feature #8788: use eventfd on newer Linux instead of pipe for timer thread
- Hi
On Sat, Aug 17, 2013 at 3:37 PM, Eric Wong <normalperson@yhbt.net> wrote:
> SASADA Koichi <ko1@atdot.net> wrote:
>> (2013/08/16 10:47), normalperson (Eric Wong) wrote:
>> > eventfd is a cheaper alternative to pipe for self... -
06:20 PM Feature #8807 (Open): Custom literals
- So why can't we define custom literals? There's been recent discussion about adding a new freeze literal. Would have been nice if coders could have defined it for themselves, then it would have been more clear if there really was enough ...
-
03:21 PM Bug #8806 (Closed): SEGV in Date.rfc2822
- 不正なwdayでDate.rfc2822がSEGVするので、r42100をバックポートしてください。
-
01:33 PM Revision 4c661094 (git): * process.c (rb_clock_gettime): clock() based CLOCK_PROCESS_CPUTIME_ID
- emulation implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 PM Revision 31a092c6 (git): * process.c (rb_proc_times): Use RB_GC_GUARD to guard objects from GC.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:36 AM Revision 4b033d26 (git): * process.c (get_clk_tck): Extracted from rb_proc_times.
- (rb_clock_gettime): times() based CLOCK_PROCESS_CPUTIME_ID emulation
is implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:31 AM Revision a24930bf (git): * process.c: POSIX_GETTIMEOFDAY_CLOCK_REALTIME is renamed to
- SUS_GETTIMEOFDAY_CLOCK_REALTIME.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:18 AM Revision 16741984 (git): * process.c (rb_clock_gettime): CLOCK_PROCESS_CPUTIME_ID emulation
- using getrusage is implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:34 AM Revision 873dd9bc (git): * gc.c (getrusage_time): Fallback clock_gettime to getrusage when
- clock_gettime fails.
Reported by Eric Saxby. [ruby-core:56762] [Bug #8805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:51 AM Revision 92246723 (git): insns.def: refine comments
- * insns.def (getinlinecache, once, opt_case_dispatch): refine some
English version comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:41 AM Bug #6701 (Closed): once literal doesn't care escape
- This issue was solved with changeset r42637.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* insns.def: fix regexp's once option behavior.
fix [ruby-tru...
08/20/2013
-
10:35 PM Bug #8803: Another buffer overflow
- normalperson (Eric Wong) wrote:
> "user021 (a s)" <user021@hushmail.com> wrote:
> ...
This might sound silly but how can i run my code with the new ruby 1.9.3-p448 that i installed using rbenv. when i do 'ruby -v' shows the old version... -
08:59 AM Bug #8803: Another buffer overflow
- "user021 (a s)" <user021@hushmail.com> wrote:
> Bug #8803: Another buffer overflow
> https://bugs.ruby-lang.org/issues/8803
> ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
> I did increase opened files li... -
05:23 AM Bug #8803 (Closed): Another buffer overflow
- Hello guys, i was running a little code written in ruby for a few minutes (more exactly https://github.com/Hood3dRob1n/Ding.rb/blob/master/ding2.rb) when it crashed, reason buffer overflow. I did increase opened files limit on my Ubuntu ...
-
10:29 PM Feature #8804: ONCE syntax
- (2013/08/20 19:30), trans (Thomas Sawyer) wrote:
> Also, can it take an optional key argument?
>
> def ONCE(k=nil,&b)
> raise unless block_given?
> ONCE_MUTEX.synchronize{
> key = k || caller(3, 1)[0]
I... -
07:30 PM Feature #8804: ONCE syntax
- Also, can it take an optional key argument?
def ONCE(k=nil,&b)
raise unless block_given?
ONCE_MUTEX.synchronize{
key = k || caller(3, 1)[0]
-
07:26 PM Feature #8804: ONCE syntax
- A use case is memoization. Instead of
def q
@q ||= (...some long calc...)
end
You could do
def q
ONCE { ...some long calc... }
end
-
06:18 PM Feature #8804: ONCE syntax
- Hello,
Do you have any use-cases to share for the new syntax?
Thanks.
Regards -
11:45 AM Feature #8804 (Assigned): ONCE syntax
- How about to introduce ONCE{...} syntax which do block only once and return the first value?
- It is similar of BEGIN{} and END{}.
- General syntax of /reg/o.
## simulation code
```ruby
ONCE_CACHE = {}
ONCE_MUTEX = Mutex.new
d... -
06:20 PM Feature #8579: Frozen string syntax
- =begin
Just two put in my 2 cents, i have suggested in a comment to #7791 to have an intermediate class between String and Symbol, but maybe frozen strings are better. What would you say about a new symbol-like literal syntax, like, for ... -
11:29 AM Feature #8579: Frozen string syntax - Updated slide with f suffix syntax
-
10:47 AM Feature #8579: Frozen string syntax - > I believe you (charliesome) *don't* care about syntax, but you want a
> ...
Correct. I have a preference toward %f (for consistency with other string types), but I am happy as long as the same string literal feature is accepted.
> ... -
10:23 AM Feature #8579: Frozen string syntax
- (2013/08/20 10:01), SASADA Koichi wrote:
> My idea is to introduce frozen suffix for (1) and once suffix for (2).
Because we already introduced "i" (imaginary number literal) and "r"
(rational number) suffixes.
overuse? :)... -
10:23 AM Feature #8579: Frozen string syntax
- (2013/08/20 8:57), charliesome (Charlie Somerville) wrote:
> ko1 - please see attached a slide for the upcoming developer meeting in Japan.
My position is negative to introduce new %f() syntax.
I like suffix that mame propos... -
08:57 AM Feature #8579: Frozen string syntax - ko1 - please see attached a slide for the upcoming developer meeting in Japan.
-
05:41 PM Revision 30b1947d (git): * insns.def: fix regexp's once option behavior.
- fix [ruby-trunk - Bug #6701]
* insns.def: remove `onceinlinecache' and introduce `once' instruction.
`once' doesn't use `setinlinecache' insn any more.
* vm_core.h: `union iseq_inline_storage_entry' to store once data.
* compile.c: cat... - 05:32 PM Revision a8fbb064 (git): * 2013-08-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:32 PM Revision 326bf140 (git): * gc.c (rb_gcdebug_print_obj_condition): add printing information.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:23 PM Bug #8711: 最近NoMemoryErrorが多い
- >> えーと、ENOMEMが出るからにはGB単位のメモリが未開放でないといけないのですが、
>> なんでfreeしてもOSに戻ってないんでしょう。
>
> malloc のライブラリの問題じゃないかなぁ、と。勘です。どうやって調べるの
> がいいのかな。
まず、LD_PRELOADで違うmallocロードしても再現するか確認するところからじゃないでしょうか。 -
03:23 PM Bug #8711: 最近NoMemoryErrorが多い
- 2013/8/20 Tanaka Akira <akr@fsij.org>:
> 2013年8月19日 15:42 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:
>
>>> 考えられる解決策:
>>> - TestFiber#test_many_fibers を削除
>>> - TestFiber#test_many_fibers を別プロセスで実行
>>> - TestFiber#test_many... -
01:29 PM Bug #8711: 最近NoMemoryErrorが多い
- 2013年8月19日 15:42 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:
>> 考えられる解決策:
>> - TestFiber#test_many_fibers を削除
>> - TestFiber#test_many_fibers を別プロセスで実行
>> - TestFiber#test_many_fibers 後にちゃんと物理メモリを解放するように頑張る
>
> システム全体で制限... -
07:24 AM Bug #8711: 最近NoMemoryErrorが多い
- (2013/08/20 0:33), KOSAKI Motohiro wrote:
> えーと、ENOMEMが出るからにはGB単位のメモリが未開放でないといけないのですが、
> なんでfreeしてもOSに戻ってないんでしょう。
malloc のライブラリの問題じゃないかなぁ、と。勘です。どうやって調べるの
がいいのかな。
> 実害があるのが分かっているのだから、手を入れたほうがよいのではないかと
単に、開発優先度の問題ですね。... -
12:53 AM Bug #8711: 最近NoMemoryErrorが多い
- 2013/8/19 SASADA Koichi <ko1@atdot.net>:
> (2013/08/19 15:42), KOSAKI Motohiro wrote:
>>> > 考えられる解決策:
>>> > - TestFiber#test_many_fibers を削除
>>> > - TestFiber#test_many_fibers を別プロセスで実行
>>> > - TestFiber#test_many_fibers 後にちゃん... -
02:51 PM Bug #8790 (Open): r41424 以降、Solaris と gdbm 1.1.10 にて TestGDBM#test_s_open_lock が終わらない
- 今のSolarisで開発環境を作るのってどうすればいいんでしょうか。
-
01:46 PM Bug #8790 (Closed): r41424 以降、Solaris と gdbm 1.1.10 にて TestGDBM#test_s_open_lock が終わらない
- This issue was solved with changeset r42634.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/gdbm/test_gdbm.rb: skip TestGDBM#test_s_open_lock on So... -
04:46 AM Revision 4d0fd22e (git): * test/gdbm/test_gdbm.rb: skip TestGDBM#test_s_open_lock on Solaris.
- On Solaris (and platforms which do not have flock and have lockf),
with GDBM 1.10, gdbm_open(3) blocks when opening already locked
gdbm file. [Bug #8790] [ruby-dev:47631]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42634 b2dd... -
02:36 AM Bug #8778 (Closed): lib/test/ documentation is too weak
- This issue was solved with changeset r42632.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/: [DOC] Document Test::Unit, hide most submodules a... -
02:12 AM Bug #8798: Document all constants in lib/rss/rss.rb
- There were two small typos, one with NotAvailableValueError.
I also think the whitespace changes were unnecessary as RDoc will skip ahead and look for the next 'def', 'class', etc (somewhat). I still committed them in any case.
T... -
02:11 AM Bug #8798 (Closed): Document all constants in lib/rss/rss.rb
- This issue was solved with changeset r42631.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rss/rss.rb: [DOC] Document for constants by Steve Klabnik
... -
02:02 AM Bug #8799 (Closed): Nodoc legacy constant
- This issue was solved with changeset r42630.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rss/xmlparser.rb: [DOC] Hide legacy constant from rdoc
P... -
01:55 AM Bug #8802 (Closed): Minor improvements in socket extension docs
- This issue was solved with changeset r42629.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/socket/unixserver.c: [DOC] Document #accept
* ext/socket/t... -
01:17 AM Revision 86123448 (git): fix `<module:MiniTest>': Unit is not a module (TypeError)
- http://u64b.rubyci.org/~chkbuild/ruby-trunk/log/20130819T183302Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/19/2013
-
10:20 PM Feature #8765: Literal for symbol with interpolation - -1 here
-
08:52 PM Bug #7921: Cross-compiling ruby_2_0_0 to Windows is failing (rb_w32_pow)
- avsej (Sergey Avseyev) wrote:
> Could you specify the versions of mingw-w64 since this issue has been fixed?
Instead of automated builds packages, usage of specific builds (like rubenvb) had this issue solved.
A developer created ... -
06:56 PM Bug #7921: Cross-compiling ruby_2_0_0 to Windows is failing (rb_w32_pow)
- Could you specify the versions of mingw-w64 since this issue has been fixed?
-
06:39 PM Bug #8746: TestWEBrickCGI#test_cgi fails with mswin64 on English version of Windows
- backported to ruby_1_9_3 at r42623.
-
06:35 PM Bug #8750: unit test fix for CVE-2013-4073 seems to be incomplete
- backported to ruby_1_9_3 at r42622.
-
06:32 PM Bug #8785: backport r42282 for 2.0 and 1.9.3
- backported to ruby_1_9_3 at r42621.
-
06:23 PM Feature #8781: Use require_relative() instead of require() if possible
- On 2013/08/18 5:58, Aaron Patterson wrote:
> I am using "file moving" as a way to demonstrate how `require_relative`
> couples your file to its location on the file system. `require` does
> not have this coupling.
On the ... -
05:59 PM Bug #8711: 最近NoMemoryErrorが多い
- (2013/08/19 15:42), KOSAKI Motohiro wrote:
>> > 考えられる解決策:
>> > - TestFiber#test_many_fibers を削除
>> > - TestFiber#test_many_fibers を別プロセスで実行
>> > - TestFiber#test_many_fibers 後にちゃんと物理メモリを解放するように頑張る
> システム全体で制限がかかっているので別プロセスで実行は... -
03:53 PM Bug #8711: 最近NoMemoryErrorが多い
- 2013/8/19 SASADA Koichi <ko1@atdot.net>:
> (2013/08/01 20:18), naruse (Yui NARUSE) wrote:
>> http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130801T103302Z.log.html.gz
>> で 32bit でも安定したような気がします。
>>
>> もうしばらく様子を見ます。
>>
>> ... -
02:53 PM Bug #8711: 最近NoMemoryErrorが多い
- (2013/08/01 20:18), naruse (Yui NARUSE) wrote:
> http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20130801T103302Z.log.html.gz
> で 32bit でも安定したような気がします。
>
> もうしばらく様子を見ます。
>
> より多くのアドレス空間を必要とするようになった事自体は仕様って理解でいいんですよね>ささださん
... -
05:36 PM Revision b8ef7988 (git): * lib/test/: [DOC] Document Test::Unit, hide most submodules and
- classes from rdoc. Since lib/test is only present as a compatibility
layer with the legacy test suite many test/unit users will be using
minitest or the test/unit gem instead. It is recommended to use one
of these alternatives for ... -
05:11 PM Revision 2572a9bf (git): * lib/rss/rss.rb: [DOC] Document for constants by Steve Klabnik
- [ruby-core:56705] [Bug #8798]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:02 PM Revision 22f81200 (git): * lib/rss/xmlparser.rb: [DOC] Hide legacy constant from rdoc
- Patch by Steve Klabnik [ruby-core:56708] [Bug #8799]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:54 PM Revision 77ca81e4 (git): * ext/socket/unixserver.c: [DOC] Document #accept
- * ext/socket/tcpserver.c: ditto
* ext/socket/udpsocket.c: [DOC] Fix indentation of documentation
* ext/socket/socket.c: ditto
Patches by David Rodríguez [ruby-core:56734] [Bug #8802]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@... - 04:20 PM Revision 12ac5fe3 (git): * 2013-08-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:20 PM Revision 2df40d4d (git): * configure.in: Define ac_cv_func_clock_gettime to yes for mingw*.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:41 PM Revision e10ab316 (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:39 PM Revision dbef5ecd (git): * include/ruby/defines.h: Fix a compilation error with
- i586-mingw32msvc-gcc of gcc-mingw32 package on Debian squeeze.
ruby/missing.h should be included before include/ruby/win32.h
because struct timespec, used in the clock_gettime declaration in
include/ruby/win32.h, is defined in ruby... -
12:00 PM Revision 21ecf88c (git): * gc.c: fix around GC_DEBUG.
- * gc.c (RVALUE::line): should be VALUE. On some environment
(such as mswin64), `int' introduces alignment mismatch.
* gc.c (newobj_of): add an assertion to check VALUE alignment.
* gc.c (aligned_malloc): `&' is low priority than `=='.
... -
11:45 AM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
- Oj and Yajl have no cycle detection or depth limit either.
Maybe it's worth contacting authors of all known JSON libraries, probably via the multi_json project. -
10:34 AM Feature #8751: Add offsets to method#source_location
- =begin
Although I think some other suggestion will be used if this issue gets addressed, I want to mention a cool implementation for representing source-code positions. I believe it would the right approach to take if things were done f... -
10:23 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- Sorry, I swapped | for + in the last message.
On Aug 18, 2013 5:01 PM, "David MacMahon" <davidm@astro.berkeley.edu> wrote:
>
> On Aug 18, 2013, at 12:34 PM, fuadksd (Fuad Saud) wrote:
>
> > Matz rejected (({+})) for merging... -
08:59 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- Yes, you're right, I'm convinced now. +1 for it aliasing #| to
#reverse_merge.
Em 18/08/2013 18:25, "alexeymuranov (Alexey Muranov)" <redmine@ruby-lang.org>
escreveu:
>
> Issue #7739 has been updated by alexeymuranov (Alexe... -
07:07 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- =begin
I still believe the original proposal is the most useful:
class Hash
def | other_hash
other_hash.merge self
end
end
Or, if taking the code from active support:
class Hash
def re... -
06:24 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> I'm not sure to be honest. I believe that's because in my head when I perform set1 |= set2 I read it as "discard any duplicate values in set2 when merging the values to set1" or "merge all va... -
05:50 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- Thomas, with regards to your example, I'd agree with all of it but aliasing #| to #reverse_merge instead of #merge. Having said that, in case the options are aliasing #| to #reverse_merge or not aliasing it at all, I'd prefer the former.
-
05:47 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- david_macmahon (David MacMahon) wrote:
> On Aug 17, 2013, at 5:44 PM, rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> ...
I'm not sure to be honest. I believe that's because in my head when I perform set1 |= set2 I read it as "discard any d... -
05:23 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- On Aug 18, 2013, at 12:34 PM, fuadksd (Fuad Saud) wrote:
> Matz rejected (({+})) for merging, as it is different than addition.
My understanding was that Matz rejected #+ for merging because of a concern about how to resolve key c... -
04:34 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- =begin
Matz rejected (({+})) for merging, as it is different than addition. reverse_merge would probably be closer to the concept od addition, as it only adds data to the receiver. Also, give this, isn't the reverse_merge less appropria... -
03:45 AM Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
- I certainly agree with everything in (the modified) [ruby-core:56720]#12 posting, except for the implementation of #reverse_merge!. As (currently) written, it modifies the operand in place rather than the receiver, but I suspect that I ...
- 09:38 AM Revision cc15ebe0 (git): merge revision(s) 42421,42422: [Backport #8746]
- * test/webrick/test_cgi.rb (TestWEBrickCGI#{start_cgi_server,test_cgi}):
mswin is not only mswin32 but also mswin64.
mswin is not only mswin32 but also mswin64. [Bug #8746]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub... - 09:35 AM Revision 66ecb1a9 (git): merge revision(s) 42429: [Backport #8750]
- * test/openssl/test_ssl.rb: Fix test for CVE-2013-4073.
Patch by Antonio Terceiro. [Bug #8750] [ruby-core:56437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@42622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 09:32 AM Revision 37cdb7c1 (git): merge revision(s) 42282: [Backport #8785]
- * parse.y: fix build error with bison-3.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@42621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:32 AM Bug #8800 (Closed): Nodoc legacy constant
-
08:44 AM Revision 158f3547 (git): * test/ruby/test_fiber.rb: collect garbage fibers immediately.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:43 AM Revision e4f51f80 (git): * test/profile_test_all.rb: add `failed?' information.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:01 AM Revision 7f9f6c31 (git): process.c: retry fork if ENOMEM
- * process.c (retry_fork): retry with GC if ENOMEM occurred, to free
swap/kernel space.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:28 AM Bug #8802: Minor improvements in socket extension docs
- * Add a description for TCPServer#accept, so that the example below renders properly.
* Fix some indentation.
-
07:26 AM Bug #8802 (Closed): Minor improvements in socket extension docs
- 04:29 AM Revision 5a096edd (git): * include/ruby/win32.h (CLOCK_MONOTONIC): typo.
- * win32/win32.c: removed duplicated declarations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:03 AM Revision a3b42963 (git): configure.in: clock_gettime
- * configure.in (clock_gettime): should not overwrite cache variable
with different condtion. otherwise -lrt is not linked and the link
fails, after reconfig.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42616 b2dd03c8-39d4-4d8... -
03:57 AM Revision 0a0c9630 (git): * process.c (Init_process): Add constants: CLOCK_REALTIME_ALARM and
- CLOCK_BOOTTIME_ALARM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e