Project

General

Profile

Activity

From 01/21/2015 to 01/27/2015

01/27/2015

07:43 PM Misc #10791 (Open): [PATCH 1/1] Remove unnecessary passing value from doc for Observable
Hi, when reading doc for Observable, I notice little unnecessary code which may cause little confusion in example.
take your time.
gogo.
gogotanaka (Kazuki Tanaka)
05:38 PM Feature #10726: [PATCH 4/4] * New methods: Set#power
@ Shota Fukumori, @Marc-Andre Lafortune
> * Write description of your proposal in the ticket.
Implement method which returns set of all subsets of +self+.
> ...
As for me it was necessary for solving some combinational problem or ...
gogotanaka (Kazuki Tanaka)
04:09 PM Feature #10726: [PATCH 4/4] * New methods: Set#power
Moreover, the implementation could be improved.
`powerset` or `power_set` would be a more appropriate name.
I don't see myself ever using this and also wonder who would and in what circumstances.
marcandre (Marc-Andre Lafortune)
02:30 AM Feature #10726: [PATCH 4/4] * New methods: Set#power
- Write description of your proposal in the ticket.
- What is your use case?
- I think there's no need to split patches for same purpose... at this case patch except the last one should be one patch file.
sorah (Sorah Fukumori)
02:25 AM Feature #10726: [PATCH 4/4] * New methods: Set#power
ping gogotanaka (Kazuki Tanaka)
04:23 PM Bug #10788: Timeout not work with socket
Unfortunately, it's a restriction of WinSock.
You have to use Socket instead of TCPSocket and call Socket#connect_nonblock for your purpose.
usa (Usaku NAKAMURA)
03:41 PM Bug #10788 (Closed): Timeout not work with socket

`Timeout.timeout(1) do
TCPSocket.new "33.2.2.1",333
end
`
The ip 33.2.2.1 is unreachable, I except it raise Timeout::Error, but
in fact it always raise Errno::ETIMEDOUT!
But I test it on Ubuntu14.04(ruby2.0), it's ok!
dashi6174 (邓 打师)
04:00 PM Feature #10790 (Closed): Can't read CommitterHowto's links
[[ruby:CommitterHowto]] has old style links. They are displayed as []. Maybe, they can fix as follows.
```
-After the approval, Send a mail with the following information to <cvs-admin AT ruby-lang.org>. [[ruby-dev:23675]], [[r...
sho-h (Sho Hashimoto)
03:51 PM Bug #10789 (Closed): X-forwarded-Proto required when using Reverse Proxy
The Webrick library httpserver.rb makes use of the X-Forwarded-* HTTP headers when building link references for 307 responses. It also requires X-Forwarded-Proto, but this header is not added by default in Apache 2.2 mod_proxy (and poss... jbalcorn (Justin Alcorn)
03:33 PM Bug #10787 (Rejected): skipped test are not shown on test-all
気持ちはなんとなくわからんでもないですが。
意図的であるということもわかったし、見たくなったら--show-skipで見られることも思い出したので、納得したことにします。
usa (Usaku NAKAMURA)
03:02 PM Bug #10787 (Feedback): skipped test are not shown on test-all
なんか思い出せないのですが、不快さがしきいを越えてしまったのかなぁ。
すでに test/lib ができたあとで、Ruby 本体の開発者以外には関係ない状態だったので、気楽にやってしまったという可能性はあるかもしれません。
akr (Akira Tanaka)
02:41 PM Bug #10787 (Assigned): skipped test are not shown on test-all
おお、早い。ありがとうございます。
MLでは特に議論は見られなかったのですが、これはなぜでしょう?
(戻せ、とまでの強い意見があるわけではないですが)
usa (Usaku NAKAMURA)
02:34 PM Bug #10787: skipped test are not shown on test-all
r47889 (Oct 12, 2014) からですね。
https://github.com/ruby/ruby/commit/178bc9a0e797d7c09a74a6edec525bda314cc575
sorah (Sorah Fukumori)
02:24 PM Bug #10787 (Rejected): skipped test are not shown on test-all
いつからかはわかりませんが、test-allの結果にskipされたテストが表示されなくなっています。
usa (Usaku NAKAMURA)
03:30 PM Revision 2666cbc0 (git): * test/ruby/test_refinement.rb: get rid of failures of CI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
01:27 PM Bug #10786 (Rejected): SIGINT can not interrupt remaining codes after XMLRPC::Server gets SIGINT
When XMLRPC::Server has started completely, a user presses Ctrl-C to send SIGINT. XMLRPC::Server stops by SIGINT.
Assuming there are remaining codes to be run after XMLRPC::Server stops, When a user tries to press Ctrl-C again to inte...
nidev (Changbeom Yun)
12:20 PM Bug #10582 (Closed): String#chomp strips off more newlines than its documentation states
hsbt (Hiroshi SHIBATA)
11:50 AM Bug #10768: segfault during ruby_vm_destruct() in cont_free()
Thank you. This patch seems good.
ko1 (Koichi Sasada)
11:43 AM Bug #10314 (Open): Default argument lookup fails in Ruby 2.2 for circular shadowed variable names
Nobu, what do you think about funny falcon's idea?
ko1 (Koichi Sasada)
11:36 AM Feature #10773: nested module should work in instance_eval
Where is "meth_in_m"?
ko1 (Koichi Sasada)
11:04 AM Feature #10771: An easy way to get the source location of a constant
Matz issue.
ko1 (Koichi Sasada)
10:20 AM Bug #6232: Ruby : Segmentation fault on Readline.refresh_line after screen resize.
... reverted r49424.
ruby_2_0_0 ss too far from trunk.
usa (Usaku NAKAMURA)
08:02 AM Bug #6232: Ruby : Segmentation fault on Readline.refresh_line after screen resize.
ruby_2_0_0 r49424 merged revision(s) 49244. usa (Usaku NAKAMURA)
10:17 AM Revision 56c49c97 (git): Revert r49424. See [Bug #6232]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
08:07 AM Bug #10731: Segmentation fault when create alias to refined method
ruby_2_0_0 r49425 merged revision(s) 49221.
test is a little changed to get rid of a warning about refinement on 2.0.0.
usa (Usaku NAKAMURA)
08:06 AM Revision d604893f (git): merge revision(s) 49221: [Backport #10731]
* vm_method.c (rb_alias): raise a NameError when creating alias to
a refined method if the original method of the refined method is
not defined. [ruby-core:67523] [Bug #10731]
git-svn-id: svn+ssh://ci.ruby-lang.org...
U.Nakamura
08:01 AM Revision 169ec127 (git): merge revision(s) 49244: [Backport #6232]
* ext/readline/readline.c (readline_s_refresh_line): initialize
before rl_refresh_line(), as some function make the internal
state non-clean but rl_refresh_line() does not re-initialize it.
[ruby-core:43957]...
U.Nakamura
07:47 AM Bug #10706: Segmentation fault when change visibility of refined new method
ruby_2_0_0 r49422 merged revision(s) 49175.
test is a little changed to get rid of a warning about refinement on 2.0.0.
usa (Usaku NAKAMURA)
07:43 AM Revision d7e152bf (git): merge revision(s) 49182,49183: [Backport #10706]
vm_method.c: fix change refined new method visibility
* vm_method.c (rb_export_method): bail out if the original method
is undefined when the method is refined.
[ruby-core:67387] [Bug #10706]
git-svn-id: svn...
U.Nakamura
07:39 AM Bug #10712: [PATCH] lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
ruby_2_0_0 r49422 merged revision(s) 49175.
and also backported a part of r40160.
usa (Usaku NAKAMURA)
07:35 AM Revision 50e48bc3 (git): merge revision(s) 49175: [Backport #10712]
* lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
[ruby-core:67411] [Bug #10712]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:04 AM Revision b03c6a74 (git): * tool/redmine-backporter.rb: added `!` command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:00 AM Revision 8516d743 (git): * tool/redmine-backporter.rb: added history feature for platforms which
lack readline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:39 AM Revision fd8cf62f (git): Makefile.in: dtrace-specific stuffs
* Makefile.in (DTRACE_DEPENDENT_OBJS): move dtrace-specific stuffs
from common.mk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:20 AM Revision 8efd24bc (git): vcs.rb: include svn property commits
* tool/vcs.rb (VCS::GIT.get_revisions): omit "." to include svn
property only commits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:15 AM Revision 372fe0d4 (git): . (svn:ignore): remove useless lines
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:13 AM Revision 1df60583 (git): enc/trans: ignore timestamp file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:09 AM Revision 081a66b6 (git): * 2015-01-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:09 AM Revision 7e091d24 (git): cstr.c: nil iff terminated validly
* ext/-test-/string/cstr.c (bug_str_cstr_term_char): return nil
only when terminated validly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:32 AM Feature #10255: Math.log: check domain of base argument
Related to https://bugs.ruby-lang.org/issues/10785 gogotanaka (Kazuki Tanaka)
02:30 AM Bug #10487: [PATCH 3/3] More than 3 arguments Passing to CMath.log doesn't make sense.
@Ayumu AIZAWA san
Thank you so much! Here you are.
gogotanaka (Kazuki Tanaka)
02:17 AM Feature #10785 (Closed): [PATCH1/1] [ja/en] 特定のケースでMath.cを3倍速く / Make Math.c 3 times faster in a certain situation
English follows japanese. Because my english is not good ;(
拙い英語のため両言語で補足をします.
`FIXNUM_P(x)`が真を取る際には `(double)FIX2LONG(x)` で、その他の場合は `NUM2DBL(x)` でCの値にするようにしてみました.
速度についてですが、引数が`Fixnum`, `Bignum`オブジェクトである時に限り有意な差を確認することが出来ました.
また...
gogotanaka (Kazuki Tanaka)

01/26/2015

08:45 PM Bug #10768: segfault during ruby_vm_destruct() in cont_free()
After some investigation, it appears the background threads in our app are unrelated to this segfault.
ruby_vm_destruct will call thread_free, which sets ruby_current_thread to NULL (https://github.com/ruby/ruby/blob/v2_1_4/vm.c#L2117...
tmm1 (Aman Karmani)
08:15 PM Misc #10783: String#concat has an "appending" behavior

I see. You are assimilating the ordinary word "concatenation" with the Ruby method name `concat`. They are different. But I agree that the documentation is misleading. It should avoid such confusing wording.
sawa (Tsuyoshi Sawada)
06:20 PM Misc #10783: String#concat has an "appending" behavior
Tsuyoshi Sawada wrote:
> I can't find the place in the documentation that says "Concatenation (aka +)". Is this your own claim? If so, then that is not incorrect.
I'll copy over the relevant excerpts.
~~~
str + other_str → new_st...
as-cii (Antonio Scandurra)
04:39 PM Misc #10783: String#concat has an "appending" behavior
I can't find the place in the documentation that says "Concatenation (aka +)". Is this your own claim? If so, then that is not correct. sawa (Tsuyoshi Sawada)
10:05 AM Misc #10783 (Open): String#concat has an "appending" behavior
Ruby String documentation (http://www.ruby-doc.org/core-2.2.0/String.html) introduces the two terms **Appending** and **Concatenation**:
- Concatenation (aka `+`) —Returns a new String containing other_str concatenated to str.
- Appe...
as-cii (Antonio Scandurra)
06:25 PM Feature #4824: Provide method Kernel#executed?
The "main" toplevel object already gets special methods, so why not just define main.main? Avoid polluting Kernel or creating a special class for \_\_FILE\_\_ just to support a "main" feature. headius (Charles Nutter)
06:00 PM Bug #10776: Ruby Chooses Incorrect Load Path For rubygems.rb
Awesome, thank you for looking at this so quickly! alexcoomans (Alex Coomans)
03:49 PM Bug #10759 (Third Party's Issue): Socket in Windows Fails to Close Correctly (message: An operation was attempted on something that is not a socket) (fptr_finalize issue?)
usa (Usaku NAKAMURA)
03:45 PM Bug #10759: Socket in Windows Fails to Close Correctly (message: An operation was attempted on something that is not a socket) (fptr_finalize issue?)
Hello,
Please close this ticket. Source of the issue was with EventMachine 1.0.4 (a dependency of Thin). There is a suggested code fix for the gem @:
https://github.com/ryuta-kai/eventmachine/commit/a0022964e549efaa2a65350555837629...
Creetor (Justin Miller)
01:09 PM Revision 45e23ec1 (git): * .gitignore: ignored temporary file with git.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
09:06 AM Revision 210357fa (git): * misc/ruby-electric.el: Import version 2.2.2 from
https://github.com/knu/ruby-electric.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:14 AM Revision ec723e30 (git): configure.in: check dtace -G
* configure.in (RUBY_DTRACE_POSTPROCESS): check if the object file
is really modified by `dtrace -G`, this command is very system
dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:30 AM Bug #10753: Refined class returns unexpected value when call public_method_defined?, protected_method_defined?, private_method_defined?
ruby_2_2 r49409 merged revision(s) 49322. naruse (Yui NARUSE)
07:20 AM Revision 79cab4f3 (git): configure.in: -Wno-maybe-uninitialized
* configure.in (warnflags): add -Wno-maybe-uninitialized for gcc
5, to suppress false warnings in thread.c:do_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:36 AM Revision 353dce4a (git): merge revision(s) 49322: [Backport #10753]
* vm_method.c (check_definition): Module#public_method_defined?,
Module#private_method_defined?, Module#protected_method_defined?
should not use refinements. [ruby-core:67656] [Bug #10753]
git-svn-id: svn+ssh://ci.r...
naruse (Yui NARUSE)
06:30 AM Bug #10314: Default argument lookup fails in Ruby 2.2 for circular shadowed variable names
It looks like it is better to make it an error than a warning. funny_falcon (Yura Sokolov)
03:43 AM Revision 44bf6684 (git): string.c: term fill
* string.c (str_buf_cat): fill wchar terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:43 AM Revision c0d0dd91 (git): string.c: use local variables
* string.c (str_buf_cat): use local variables instead of repeating
macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:39 AM Revision 34d41055 (git): string.c: consider widechar
* string.c (str_make_independent_expand): consider wide char
encoding. [Fix GH-821]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:37 AM Revision 622f3f14 (git): string.c: terminate when embedded
* string.c (str_make_independent_expand): terminate String when
moved from heap to embedded. [Fix GH-821].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:00 AM Revision 73b59166 (git): * 2015-01-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:00 AM Revision b3edab35 (git): cstr.c: cstr_term_char class method
* ext/-test-/string/cstr.c (bug_str_s_cstr_term_char): add a class
method to see plain Strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:00 AM Revision 5fb4f81e (git): cstr.c: get rid of exception
* ext/-test-/string/cstr.c (bug_str_cstr_term_char): get rid of
invalid byte sequence exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

01/25/2015

11:29 PM Feature #4824: Provide method Kernel#executed?
My proposal was `__FILE__.main?`, not `FILE.main?`.
Just you're confused by markdown.
nobu (Nobuyoshi Nakada)
10:18 PM Feature #4824: Provide method Kernel#executed?
Close to Nobu's proposal `FILE.main?`, but I don't think it makes sense to introduce two new things `FILE` and `main?` that can only be used under this combination. I propose defining a method on the existing `File` class. Something alon... sawa (Tsuyoshi Sawada)
10:22 PM Feature #10769: Negative counterpart to Enumerable#slice_when
Austin Ziegler wrote:
> What about `.slice_unless`?
The point of my proposal is that this negation is a negation if you look from the point of view of `slice_when`, but it is in fact more natural than `slice_when`, so that it should ...
sawa (Tsuyoshi Sawada)
09:24 PM Feature #10769: Negative counterpart to Enumerable#slice_when
What about `.slice_unless`? austin (Austin Ziegler)
08:55 PM Feature #10730: Implement Array#bsearch_index
I rebased on the latest trunk and resolved conflicts with the updates to bsearch implementation.
If there's anything I can do to improve this proposal, I'll be happy to do it, just let me know, thanks.
radan (Radan Skorić)
04:24 PM Feature #10782 (Assigned): Patch: Add constants for BigDecimal for ZERO, ONE, TEN
We found with use of BigDecimal that we were often needing to compare BigDecimal with zero or initialize BigDecimal as 0 for a default value. This introduces a bit move overhead than is typically needed, since a simple BigDecimal.new('0'... garysweaver (Gary Weaver)
08:17 AM Revision 9f926847 (git): fix typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:31 AM Bug #10779 (Feedback): occasional segmentation fault running ruby 2.1, doesn't appear with ruby 1.9
LMH medchem wrote:
> I'm not sure what you are referring to with this. I don't have anything compiled. I am just running the ruby script from the Hash-Bang line.
What distribution are you using?
Probably the debug info package would...
nobu (Nobuyoshi Nakada)
01:19 AM Bug #10779: occasional segmentation fault running ruby 2.1, doesn't appear with ruby 1.9
Eric Wong wrote:
> lmh_users-groups@molconn.com wrote:
> ...
I have uploaded a tar.bz2 with a test directory setup. Extract the archive, cd to the test directory and run,
./get_cols_and_sort.ruby RI_7 13 > output.txt
The file exp...
LMHmedchem (LMH medchem)
03:04 AM Bug #10748 (Closed): Array#flatten(N) calls to_ary on the (N+1)-level objects
Applied in changeset r49400.
----------
array.c: reduce to_ary call
* array.c (flatten): no need to call to_ary method on elements
beyond the given level. [ruby-core:67637] [Bug #10748]
nobu (Nobuyoshi Nakada)
03:04 AM Revision aa436bdc (git): array.c: reduce to_ary call
* array.c (flatten): no need to call to_ary method on elements
beyond the given level. [ruby-core:67637] [Bug #10748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:02 AM Revision 7d87d0c4 (git): test_array.rb split flatten tests
* test/ruby/test_array.rb (test_flatten, test_flatten!): split.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:14 AM Bug #10758: undefined method `year' for nil:NilClass
From NEWS in 2.2.0
---
## Changes since the 2.1.0 release
### Language changes
* default argument
fixed a very longstanding bug that an optional argument was not accessible in its default value expression. [Bug #9593]
nobu (Nobuyoshi Nakada)

01/24/2015

11:48 PM Bug #10758: undefined method `year' for nil:NilClass
Could the behavior of the following code have changed between Ruby 2.1.2 and Ruby 2.2.0?
In the Rails 3.2.21 with Ruby 2.1.2 version of activesupport the following works:
def parse(str, now=now)
With Ruby 2.2.0 it no l...
Anonymous
10:53 PM Bug #10781 (Rejected): stdout flushing and loops
[doc of `IO#eof?`](http://www.rubydoc.info/stdlib/core/IO#eof%3F-instance_method):
> If _ios_ is a stream such as pipe or socket, `IO#eof?`
> ...
This is true for a console device, and
> Note that `IO#eof?` reads data to the input...
nobu (Nobuyoshi Nakada)
08:35 PM Bug #10781: stdout flushing and loops
Removing the `$stdin.eof?` call fixed my problem. IDK why as yet. I finally did find a page with a similar issue after seeing it was #eof? related at http://computer-programming-forum.com/39-ruby/0ce7591347ab1e27.htm sneakin (Nolan Eakins)
07:49 PM Bug #10781 (Rejected): stdout flushing and loops
I'm making a little program that has a shell like command prompt. Something like:
~~~
$ cmd
Cmd out
$ more
More out
$
~~~
I tried the following code, but the second prompt does not get flushed to my terminal after entering an...
sneakin (Nolan Eakins)
09:20 PM Feature #7361: Adding Pathname#touch
I'm a little surprise there isn't an option for this in `FileUtils`. Something like `FileUtils.touch('/location/for/new', :force => true)`. I'd be in favor of adding that, or an option to `FileUtils.mkpath`. djberg96 (Daniel Berger)
05:36 PM Bug #10780: Unable to build with Visual Studio 2013
That seemed to work, thank you. djberg96 (Daniel Berger)
03:29 PM Bug #10780 (Third Party's Issue): Unable to build with Visual Studio 2013
It seems that a bug of ml.exe of VS2013.
I found a workaround.
After this error, try these commands.
~~~
cd ext\fiddle\libffi-3.2.1\src\x86
ml -c -coff -W3 -Cx -Fo win32.obj win32.asm
cd ..\..\..\..\..
nmake
~~~
usa (Usaku NAKAMURA)
09:57 AM Bug #10780 (Third Party's Issue): Unable to build with Visual Studio 2013
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Windows 7 Pro
Ruby 2.2.0
I am unable to build from source. After running configure.bat and nmake, I eventually get this:
Assembling: ./src/x86/win32.asm
./src/x...
djberg96 (Daniel Berger)
03:42 PM Revision 48df4898 (git): * 2015-01-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:42 PM Revision 22c750bb (git): libffi: workaround of VC12 ml
* ext/fiddle/win32/libffi.mk.tmpl: assemble without directory prefix.
workaround of a bug of VC12 ml, by unak at [ruby-core:67792].
[ruby-core:67789] [Bug #10780]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49397 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
02:59 PM Revision 10ce32c2 (git): dln_find.c: define S_ISREG
* dln_find.c (dln_find_1): on some platforms, S_ISREG() is not
provided.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:06 PM Revision 69f47dd0 (git): ruby.c: only for load-relative
* ruby.c (dladdr_path): used only when load-relative is enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:24 PM Revision c3ad34c7 (git): ruby.c: replace with real path
* ruby.c (dladdr_path): replace the executable path with symlinked
real path. dladdr(3) on Linux returns the argv[0] as dli_fname
instead of the real path, for a symbol defined in the executable
file itself. [Bug #10776]
git-svn...
nobu (Nobuyoshi Nakada)
10:57 AM Revision 9a15c7c8 (git): dln_find.c: regular files only
* dln_find.c (dln_find_1): search regular files only. based on
the patch by Alex Coomans in [ruby-core:67766]. [Bug #10776]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:56 AM Bug #10776 (Closed): Ruby Chooses Incorrect Load Path For rubygems.rb
Applied in changeset r49391.
----------
dln_find.c: regular files only
* dln_find.c (dln_find_1): search regular files only. based on
the patch by Alex Coomans in [ruby-core:67766]. [Bug #10776]
nobu (Nobuyoshi Nakada)
10:48 AM Bug #10776: Ruby Chooses Incorrect Load Path For rubygems.rb
Alex Coomans wrote:
> 1. Ruby must be compiled without `--enable-shared`
Sorry, I misread this "without" as "with".
nobu (Nobuyoshi Nakada)
08:50 AM Bug #10776: Ruby Chooses Incorrect Load Path For rubygems.rb
It seems a very platform (OS, libc) dependent issue.
What's your OS, kernel version, and libc version?
nobu (Nobuyoshi Nakada)
08:40 AM Bug #10776 (Feedback): Ruby Chooses Incorrect Load Path For rubygems.rb
Sorry, it was my configuration miss, `--prefix=/` doesn't work for 2.0 and should be `--prefix=/.`.
So I can't reproduce it totally.
nobu (Nobuyoshi Nakada)
03:26 AM Bug #10776 (Assigned): Ruby Chooses Incorrect Load Path For rubygems.rb
It could reproduce only with 2.0, but not 2.1 or later.
~~~
$ (PATH=$HOME exec -a ruby ./ruby/2.0.0/bin/ruby -ve 'p RbConfig::CONFIG["configure_args"]')
ruby 2.0.0p617 (2015-01-22 revision 49382) [x86_64-linux]
<internal:gem_prelud...
nobu (Nobuyoshi Nakada)
03:02 AM Bug #10776 (Feedback): Ruby Chooses Incorrect Load Path For rubygems.rb
Alex Coomans wrote:
> The following conditions need to all be met:
> ...
I can't reproduce it with the latest 2.2
~~~
$ ls ~/ruby
2.2.0
$ (PATH=$HOME exec -a ruby ./ruby/2.2.0/bin/ruby -ve 'p RbConfig::CONFIG["configure_args"]')
...
nobu (Nobuyoshi Nakada)
10:56 AM Bug #10775 (Closed): "break" from a block with nested begin-rescue became impossible
Applied in changeset r49390.
----------
vm_insnhelper.c: break from nested rescue
* vm_insnhelper.c (vm_throw_start): search the target to break
from a block with nested rescue, from the nested blocks.
[ruby-core:67765] [Bug #10775...
nobu (Nobuyoshi Nakada)
10:56 AM Revision 0bbb396c (git): * 2015-01-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:56 AM Revision ad3b5d63 (git): dln_find.c: regular files only
* dln_find.c (dln_find_1): search regular files only. based on
the patch by Alex Coomans in [ruby-core:67766]. [Bug #10776]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:28 AM Bug #10779: occasional segmentation fault running ruby 2.1, doesn't appear with ruby 1.9
lmh_users-groups@molconn.com wrote:
> I can post the script and sample input files if that would help.

Please do, thank you.

> ~~~
> -- C level backtrace information
> -------------------------------------------
> /usr...
normalperson (Eric Wong)
03:49 AM Bug #10779 (Closed): occasional segmentation fault running ruby 2.1, doesn't appear with ruby 1.9
Hello,
Below is the error output from a ruby script I have been running. I am reporting this for two reasons. The first is that the error is intermittent and the second is that I don't get this error with ruby 1.9. The script gets ca...
LMHmedchem (LMH medchem)
01:24 AM Bug #10778 (Feedback): `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)`
nobu (Nobuyoshi Nakada)
12:22 AM Bug #10778 (Rejected): `defined?(expr)` should be equivalent to `defined? (expr)` not `(defined? expr)`
defined? is an operator not a method, its operand is defined as the expressions to its right.
It does not even require a space: `defined?a`
So `defined?(a)` should be equivalent to `defined? (a)` instead of `(defined? a)`
bughit (bug hit)

01/23/2015

08:17 PM Bug #10777 (Rejected): variable gets reset when passing a named argument to a function, if the name of this argument is the same as variable name
This is not Python ;)
= is assignment, or in method declarations indicates the default value for an argument.
So `func2(param="Goodbye")` is effectively the same as
param="Goodbye"
func2(param)
which makes the current be...
Eregon (Benoit Daloze)
08:10 PM Bug #10777 (Rejected): variable gets reset when passing a named argument to a function, if the name of this argument is the same as variable name
I have a function, say function1 that has a variable, named param with a value of true.
from this function I call another function, function2 with the following call:
function2(param=false)
During this call the value of param in funct...
ofayans (Oleg Fayans)
07:58 PM Misc #10754: Tiny optimisation of Set#include?
I didn't notice the old code being faster, and I don't see your
benchmark triggering GC. Perhaps it is related to memory size
(swapping or CPU cache misses) or power management
(CPU clock frequency adjustment, "turbo boost", etc...)...
normalperson (Eric Wong)
07:51 PM Bug #9505: Bug that should cause SystemStackError segfaults under Ruby 2.1
For what it's worth, this appears to be fixed in ruby-2.2.0-preview2. lukeasrodgers (Luke Rodgers)
06:38 PM Bug #10776 (Closed): Ruby Chooses Incorrect Load Path For rubygems.rb
### Problem
I believe this problem affects version 1.9.3 and up based on a git blame, but I haven't actually checked them.
The following conditions need to all be met:
1. Ruby must be compiled without `--enable-shared`
2. argv...
alexcoomans (Alex Coomans)
02:57 PM Revision 26d0a2a3 (git): vm_insnhelper.c: break from nested rescue
* vm_insnhelper.c (vm_throw_start): search the target to break
from a block with nested rescue, from the nested blocks.
[ruby-core:67765] [Bug #10775] [Fix GH-820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49390 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
01:54 PM Bug #10775 (Closed): "break" from a block with nested begin-rescue became impossible
"break" from a block with nested begin-rescue became impossible.
Example(it is valid on Ruby 2.2.0, 2.1.5):
~~~ruby
2.times do
begin
raise
rescue
begin
raise
rescue
break
end
end
end
~~...
misumi_rize (MISUMI Rize)
11:36 AM Bug #10774: Regression: URI::MAilTo#to_mailtext - undefined method unescape for URI::RFC3986_Parser
I've created a failing test for this. dmke (Dominik Menke)
11:08 AM Bug #10774 (Closed): Regression: URI::MAilTo#to_mailtext - undefined method unescape for URI::RFC3986_Parser
Using this example: https://github.com/ruby/ruby/blob/ruby_2_2/lib/uri/mailto.rb#L257-L259
Ruby 2.2.0:
~~~
$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
$ ruby -ruri -e 'puts UR...
dmke (Dominik Menke)
11:01 AM Revision e567f351 (git): marshal.c: indetity tables
* marshal.c (w_object, marshal_dump): use indetity tables for
arbitrary VALUE keys, because of performance of FLONUM.
[Bug #10761]
* marshal.c (obj_alloc_by_klass, marshal_load): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
nobu (Nobuyoshi Nakada)
10:26 AM Feature #10773: nested module should work in instance_eval
my ruby version:
~~~
roroco@roroco ~ $ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
~~~
my sys info:
~~~
roroco@roroco ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Descript...
roroco (roro co)
10:16 AM Feature #10773 (Rejected): nested module should work in instance_eval
see my code:
~~~
module M
module M2
end
end
class C
include M
def ivk_m2(*args, &blk)
M2
end
end
C.new.ivk_m2 # work
C.new.instance_eval do
meth_in_m # work
M2 # not work
end
~~~
and outp...
roroco (roro co)
08:14 AM Revision bb7830c7 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:13 AM Revision 200b582f (git): benchmark/bm_marshal_dump_flo.rb: new benchmark for [Bug #10761]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
02:36 AM Revision 059ea6e4 (git): hash.c: move Hash specific functions
* hash.c (rb_ident_hash): move compare_by_identity specific
function from st.c.
* hash.c (rb_ident_hash_new): ditto from thread.c.
* st.c (st_numhash): remove ruby's Hash specific implementation.
* thread.c (recursive_list_access): ...
nobu (Nobuyoshi Nakada)
02:11 AM Revision 51efda1e (git): * 2015-01-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:11 AM Revision 1318ed39 (git): vcs.rb: fix after_export
* tool/vcs.rb (VCS#after_export): fix nesting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

01/22/2015

11:20 PM Feature #10772: Add ability to change rotated log file extention
See https://github.com/ruby/ruby/pull/818 for a solution. trevmex (Trevor Menagh)
11:18 PM Feature #10772 (Closed): Add ability to change rotated log file extention
This patch allows a logger to be created that has a custom date format
to the rotated log files when shift_age is set, instead of the hardcoded
value ("%Y%m%d"), like so:
Logger.new('foo.log', 1024000, '%Y-%m-%d')
Making this...
trevmex (Trevor Menagh)
02:39 PM Feature #7361: Adding Pathname#touch
Any way i can help? Salzig (Ben Rexin)
01:20 PM Misc #10757: Vagrant environment for MRI contributors
Clean up after the Tck/Tk installs. anthonycrumley (Anthony Crumley)
06:40 AM Misc #10757: Vagrant environment for MRI contributors
Nice catch on the Ubuntu version being old.
* Included patch by Nobu
* Updated Ubuntu to trusty64
* Added the Tcl/Tk dependency
* Removed nasty openssl hacks because trusty64 already has updated openssl
* Included a link to the De...
anthonycrumley (Anthony Crumley)
11:51 AM Bug #10633: OpenSSL RangeError on update
Backported into ruby_2_1 at r49383. nagachika (Tomoyuki Chikanaga)
11:51 AM Revision 2558571d (git): merge revision(s) r48923: [Backport #10633]
* ext/openssl/ossl_cipher.c (ossl_cipher_update_long): update huge
data gradually not to exceed INT_MAX. workaround of OpenSSL API
limitation. [ruby-core:67043] [Bug #10633]
git-svn-id: svn+ssh://ci.ruby-lang.org/...
nagachika (Tomoyuki Chikanaga)
10:19 AM Feature #10770: chr and ord behavior for ill-formed byte sequences and surrogate code points
Masaki Kagaya wrote:
> ~~~ruby
> ...
Sounds like a bug of `String#each_char`, but maybe intensional.
> The one way of keeping consistency is change `ord` to return substitute code point such as 0xFFFD adopted by `scrub`.
Implicit...
nobu (Nobuyoshi Nakada)
01:12 AM Feature #10770: chr and ord behavior for ill-formed byte sequences and surrogate code points
This issue comes from discussion about mruby's behavior (https://github.com/mruby/mruby/issues/2708). masakielastic (Masaki Kagaya)
01:09 AM Feature #10770 (Open): chr and ord behavior for ill-formed byte sequences and surrogate code points
`ord` raises error when meeting ill-formed byte sequences, thus the difference of atttiute exists between `each_char` and `each_codepoint`.
~~~ruby
str = "a\x80bc"
str.each_char {|c| puts c }
# no error
str.each_codepoint {|c| pu...
masakielastic (Masaki Kagaya)
09:22 AM Bug #10735: Memory leak in openssl ossl_pkey_sign
Confirming the same with the current Ruby 2.2 (ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]):
~~~
{:count=>5, :heap_allocated_pages=>74, :heap_sorted_length=>75, :heap_allocatable_pages=>0, :heap_available_slots=>30164,...
tonci (Tonči Damjanić)
09:16 AM Bug #10668: Fix description for Zlib.crc32
ruby_2_0_0 r49382 merged revision(s) 49202. usa (Usaku NAKAMURA)
09:15 AM Revision eec0044d (git): merge revision(s) 49202: [Backport #10668]
* ext/zlib/zlib.c: fix document of method signatures.
[Bug #10668][ruby-core:67186][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:11 AM Bug #9917: TestIO#test_io_select_with_many_files results in timeout expiration on AIX
ruby_2_0_0 r49381 merged revision(s) 49148. usa (Usaku NAKAMURA)
09:10 AM Revision 8c519e28 (git): merge revision(s) 49148: [Backport #9917]
* test/ruby/test_io.rb: added timeout for AIX environment.
[ruby-core:62983][Bug #9917]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@49381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:06 AM Revision a80f7f05 (git): * ChangeLog: tabify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
09:05 AM Revision aa56ab4a (git): * tool/redmine-backporter.rb (find_svn_log): use double quotes instead
of single quotes because cmd.exe doesn't handle them.
* tool/redmine-backporter.rb (done): the 2nd element of matched data
is the offset of the end of matched string, not length.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@493...
U.Nakamura
09:02 AM Bug #10692: there is no response body with HEAD request (fixed at r49105)
ruby_2_0_0 r49378 merged revision(s) 49104,49105. usa (Usaku NAKAMURA)
08:31 AM Revision acdab5fd (git): merge revision(s) 49104,49105: [Backport #10692]
* test/net/http/test_http.rb (_test_send_request__HEAD): Added
failing test for send_request with HEAD method.
* lib/net/http.rb (Net::HTTP#send_request): there is no response body
with HEAD request. Patch by...
U.Nakamura
07:58 AM Bug #10761: Marshal.dump 100% slower in 2.2.0 vs 2.1.5
Committed as r49376. Scary regression, sorry for the breakage :x normalperson (Eric Wong)
07:49 AM Bug #10761 (Closed): Marshal.dump 100% slower in 2.2.0 vs 2.1.5
Applied in changeset r49376.
----------
fix flonum hashing regression from r45384
* st.c (st_numhash): mix float value for flonum
* hash.c (rb_any_hash): ditto
* benchmark/bm_hash_aref_flo.rb: new benchmark
* benchmark/bm_hash_ident_fl...
Anonymous
12:58 AM Bug #10761: Marshal.dump 100% slower in 2.2.0 vs 2.1.5
Eric Wong <normalperson@yhbt.net> wrote:
> normalperson@yhbt.net wrote:
> > patch (also attached):
> > http://80x24.org/spew/m/flonum-hash-fixup-r45384-v1@r49365.txt
>
> NAK. "gem install <anything>" seems to infinite loop with t...
normalperson (Eric Wong)
12:08 AM Bug #10761: Marshal.dump 100% slower in 2.2.0 vs 2.1.5
normalperson@yhbt.net wrote:
> patch (also attached):
> http://80x24.org/spew/m/flonum-hash-fixup-r45384-v1@r49365.txt

NAK. "gem install <anything>" seems to infinite loop with this.
normalperson (Eric Wong)
07:49 AM Revision 8341ca05 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:48 AM Revision 6d56fd06 (git): fix flonum hashing regression from r45384
* st.c (st_numhash): mix float value for flonum
* hash.c (rb_any_hash): ditto
* benchmark/bm_hash_aref_flo.rb: new benchmark
* benchmark/bm_hash_ident_flo.rb: ditto
[Bug #10761]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49376 ...
Eric Wong
06:50 AM Misc #10742: segmentation fault error while running ruby project
any update please geeta.kasar@gmail.com (Geetanjali Kasar)
05:50 AM Feature #10771 (Closed): An easy way to get the source location of a constant
For constants, it is difficult to get the source location where it was (last) defined. I request either of the following to be implemented:
* Tracepoint emits a signal when a constant is defined.
* Implement a `Constant` class (simil...
sawa (Tsuyoshi Sawada)
02:47 AM Bug #10671: Update documentation for literal syntax to reflect the fact that symbols are GC-ed
ruby_2_2 r49375 merged revision(s) 49056. naruse (Yui NARUSE)
02:47 AM Revision b5e22aa1 (git): merge revision(s) 49056: [Backport #10671]
* doc/syntax/literals.rdoc (Symbols): now Symbols created by
interpolation can be garbage collected. patch by Yihang Ho in
[ruby-core:67194]. [Bug #10671]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_...
naruse (Yui NARUSE)
02:46 AM Bug #10689: `unexpected break' occurs when TracePoint#binding is called
ruby_2_2 r49374 merged revision(s) 49266. naruse (Yui NARUSE)
02:46 AM Revision 0ee6afe2 (git): merge revision(s) 49266: [Backport #10689]
* eval_intern.h, vm.c, vm_eval.c, vm_insnhelper.c:
change throw mechanism (not save target ep, but save target cfp).
It fixes `unexpected break' bug that occurs when
TracePoint#binding is called.
[...
naruse (Yui NARUSE)
01:49 AM Bug #10767 (Rejected): Time.local doesn't raise an exception during the dead hour on DST
Sometimes an application needs a time object near the given arguments even if the time object doesn't represent the arguments exactly.
It is especially useful for DST and leap second because an application cannot expect DST and leap sec...
akr (Akira Tanaka)
12:35 AM Feature #10769 (Closed): Negative counterpart to Enumerable#slice_when
It seems to me that most useful cases of `Enumerable#slice_when` involve a negative condition inside the block. That observation seems to be confirmed by the official examples in http://docs.ruby-lang.org/ja/2.2.0/method/Enumerable/i/sl... sawa (Tsuyoshi Sawada)
12:14 AM Revision c73f2d28 (git): rmdirs.bat: remove last "."
* win32/rmdirs.bat: remove last "." since rmdir fails to remove it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:14 AM Revision aee73bd6 (git): * 2015-01-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:14 AM Revision 000c0792 (git): common.mk: reorder clean
* common.mk (clean): clean local at last, and remove enc/trans.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

01/21/2015

11:06 PM Bug #10768: segfault during ruby_vm_destruct() in cont_free()
There are also some other threads present in this app at shutdown time, created by a c-extension as worker threads. These threads do not interact with the ruby vm directly, but instead communicate over a queue. I guess this must be relat... tmm1 (Aman Karmani)
10:52 PM Bug #10768 (Closed): segfault during ruby_vm_destruct() in cont_free()
~~~
(gdb) where
#0 rb_vm_bugreport () at vm_dump.c:738
#1 0x00007ff4f279de2c in report_bug (file=<optimized out>, line=<optimized out>, fmt=0x7ff4f27cfce7 "Segmentation fault at %p", args=0x7ff4f4afd998) at error.c:312
#2 0x00007f...
tmm1 (Aman Karmani)
10:20 PM Bug #10761: Marshal.dump 100% slower in 2.2.0 vs 2.1.5
Using Marshal.load on untrusted data is too risky for me,
so I only tested your last test case:
$ ./patched/ruby --disable=gems /tmp/marshal.rb
real 0m0.311s
user 0m0.308s
sys 0m0.002s
$ ~/ruby-2.1/bin/ruby --disable=...
normalperson (Eric Wong)
08:38 PM Bug #10761: Marshal.dump 100% slower in 2.2.0 vs 2.1.5
janmayjuldec-programming@yahoo.com wrote:
> Final repro, no data files, all code:

Thanks, looks like my fault in r45384 [Feature #9425]
Looking for a fix which doesn't involve reverting...
normalperson (Eric Wong)
04:15 PM Bug #10761: Marshal.dump 100% slower in 2.2.0 vs 2.1.5
Final repro, no data files, all code:
~~~
require 'benchmark'
class ToBeMarshaled
def initialize n
@a = []
n.times do |i|
@a << i.to_f
end
end
end
tbm = ToBeMarshaled.new(10000)
n = 100
Be...
jenkoruby (David Jenkins)
02:48 PM Bug #10761: Marshal.dump 100% slower in 2.2.0 vs 2.1.5
I have an even better repro (attached) which yielded the following results:
2.1.5
user system total real
Marshal Dump 4.250000 0.080000 4.330000 ( 4.682933)
Marshal Dump 4.440000 0.040000 ...
jenkoruby (David Jenkins)
05:13 AM Bug #10761 (Closed): Marshal.dump 100% slower in 2.2.0 vs 2.1.5
Calling Marshal.dump on a complex (nested) object 100 times shows the following:
2.1.5
user system total real
Marshal Dump 24.350000 0.250000 24.600000 ( 29.330294)
2.2.0
user ...
jenkoruby (David Jenkins)
08:22 PM Bug #10767 (Rejected): Time.local doesn't raise an exception during the dead hour on DST
At the begin of DST ruby is accepting the 0 hour which in fact doesn't exists:
Time.local(2014, 10, 19, 0, 30)
#=> 2014-10-19 01:30:00 -0200
Time.local(2014, 10, 19, 1, 30)
#=> 2014-10-19 01:30:00 -0200
Tim...
sobrinho (Gabriel Sobrinho)
05:37 PM Misc #10766 (Feedback): Build failed generating RDoc documentation
build on system:
Linux precisepuppy 3.9.11 #1 SMP Sat Jul 27 19:40:54 GMT-8 2013 i686 i686 i386 GNU/Linux
source ruby-2.2.0.tar.xz
problem:
`make` failed generating RDoc with the following error,
**
Generating RDoc documentation
i...
caffeinfx (Dimas Jiamus Kalimosodo)
04:15 PM Bug #10615: SIGKILL is not supported by signal() of some versions of MSVCRT
Backported into ruby_2_1 at r49370. nagachika (Tomoyuki Chikanaga)
04:15 PM Revision bdfd5fd1 (git): merge revision(s) r48884,r48885: [Backport #10615]
* signal.c (ruby_signal): since SIGKILL is not supported by MSVCRT,
should be treated before calling signal(3).
[Bug #10615]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49370 b2dd03c8-39d4-4d8f-98f...
nagachika (Tomoyuki Chikanaga)
04:10 PM Bug #10579: Segmentation fault at 0x00000000000000
Backported into ruby_2_1 at r49369. nagachika (Tomoyuki Chikanaga)
04:09 PM Revision 4b0a168d (git): merge revision(s) r48744,r48752: [Backport #10579]
* eval.c (rb_frame_last_func): return the most recent frame method
name.
* thread.c (recursive_list_access): use the last method name,
instead of the current method name which can be unset in some
c...
nagachika (Tomoyuki Chikanaga)
03:59 PM Bug #10524: %I segfaults with --dump=parsetree
Backported into ruby_2_1 at r49368. nagachika (Tomoyuki Chikanaga)
03:59 PM Revision 83c5b533 (git): merge revision(s) r48484: [Backport #10524]
* parse.y (symbol_list): fix the node type of literal symbol list
with no interpolation. [ruby-core:66343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:52 PM Bug #10526: [DOC] Revise documentation in object.c
r45375,r48260,r48320 and r48746 were backported into ruby_2_1 at r49367.
r45375,r48260,r48320 are also documentation fix and need to resolve conflicts.
nagachika (Tomoyuki Chikanaga)
03:50 PM Revision f3ac23e4 (git): merge revision(s) r45375,r48260,r48320,r48746: [Backport #10526]
* complax.c: [DOC] Document number conversion of `nil` by @skade [fix GH-570] [ci skip]
* object.c, rational.c: ditto.
* object.c: fix document of Kernel.Stirng by @suzukaze
[fix GH-743][ci skip]
* obj...
nagachika (Tomoyuki Chikanaga)
03:38 PM Revision 8715551b (git): merge revision(s) r48186: [Backport #10448]
* load.c (rb_f_load): path name needs to be transcoded to OS path
encoding. [ruby-list:49994]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@49366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:36 PM Bug #10568 (Closed): segmentation fault after pack & ioctl & unpack
Hello Balazs.
Thank you for your precise report and a patch.
I've found that r44803 and r44804 seems related changesets.
I'll move this ticket to ruby-trunk again and fill Backport field because this should be backported into ru...
nagachika (Tomoyuki Chikanaga)
01:50 PM Bug #10765: Module#remove_method remove refined method entry.
I attached a patch for this. hanachin (Seiei Miyagi)
01:47 PM Bug #10765 (Closed): Module#remove_method remove refined method entry.
`Module#remove_method` should raise a `NameError`
if method is not defined in refined class, such as [`undef`](https://bugs.ruby-lang.org/issues/8966).
But if method is defined in refined class, `Module#remove_method` should keep refin...
hanachin (Seiei Miyagi)
01:39 PM Revision e65fa1f4 (git): Import ruby-electric.el 2.2.1.
* misc/ruby-electric.el: Import version 2.2.1 from
https://github.com/knu/ruby-electric.el. Improve compatibility
with and optimize for Emacs 24.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49365 b2dd03c8-39d4-4d8f-98ff-8...
Akinori MUSHA
12:52 PM Bug #10764 (Closed): TracePoint API reports events for the last last line of multiline ||=
Here is a simple test which demonstrates the problem:
~~~ruby
TracePoint.new do |tp|
printf "%8s %s:%-2d %13s\n", tp.event, tp.path, tp.lineno, tp.method_id
end.enable
def foo
end
def bar
@foo ||= foo do
end
@fo...
os97673 (Oleg Sukhodolsky)
12:40 PM Bug #10763 (Closed): do not receive TracePoint event for elsif
Here is a simple test which shows that we do not receive TracePoint event for line with elsif,
and so it is impossible to implement debugger which will be able to set breakpoint on that line
(originally reported agains RubyMine's debu...
os97673 (Oleg Sukhodolsky)
09:58 AM Revision c51293ff (git): Makefile.in: clean ext from toplevel
* Makefile.in (clean-ext): clean extension directories from upper
level.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:42 AM Bug #9432: ThreadError [ Attempt to unlock a mutex which is locked by another thread ]
In Ruby 1.9.3, thread.rb has Queue.pop defined as:
~~~
183 def pop(non_block=false)
184 @mutex.synchronize{
185 while true
186 if @que.empty?
187 raise ThreadError, "queue empty" if non_block
188 ...
aaron@serendipity.cx (Aaron Stone)
07:43 AM Bug #9432: ThreadError [ Attempt to unlock a mutex which is locked by another thread ]
The error also shows up here: https://github.com/iconara/cql-rb/issues/68
This is not an issue with the applications or the gems, or that eventmachine is written in C++. It's an MRI Ruby problem in the 2.0 implementation of Queue.pop,...
aaron@serendipity.cx (Aaron Stone)
08:38 AM Bug #10724: [TracePointAPI] Missing return event from initialize method when using `domain_name` gem
Great! deivid (David Rodríguez)
04:45 AM Bug #10724: [TracePointAPI] Missing return event from initialize method when using `domain_name` gem
Thank you. I can reproduce it.
```ruby
class A
def initialize
loop{return}
end
def foo
loop { return }
end
def bar
end
end
TracePoint.new(:return){|tp|
p tp
}.enable{
a = A.new
a.foo
a...
ko1 (Koichi Sasada)
06:18 AM Bug #10762 (Rejected): Math **
nobu (Nobuyoshi Nakada)
05:46 AM Bug #10762: Math **
It's operator precedence. `**` has higher precedence than unary `-`
```
irb> -1 ** 0
=> -1
irb> (-1) ** 0
=> 1
irb> -(1 ** 0)
=> -1
```
Anonymous
05:22 AM Bug #10762 (Rejected): Math **
According to the Maths, "any number raised to the zero power equals one".
Yet:
~~~
ruby -e 'puts((-1 ** 0) == 1)'
=> false
~~~
jayteesf (Jonathan Thomas)
04:22 AM Revision dcdbe0f2 (git): extmk.rb: extract CLEANFILES and DISTCLEANFILES
* ext/extmk.rb (extract_makefile): extract CLEANFILES and
DISTCLEANFILES regardless previous configration succeeded, as
ext/tk/extconf.rb makes config_list file always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49363 b2dd03c...
nobu (Nobuyoshi Nakada)
12:44 AM Bug #10760 (Closed): NEWS file should include ticket / reference
Applied in changeset r49360.
----------
* NEWS: References to tickets added.
[ruby-core:67701] [Bug #10760] Suggested by Zachary Scott.
akr (Akira Tanaka)
12:44 AM Revision 49088270 (git): * file.c: Document other cases of missing birthtime on OS with patch
provided by @sho-h similar to GH-817. [ci skip] [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
12:22 AM Revision c7ba10cc (git): #10714 is a feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:10 AM Revision cb03af1a (git): * NEWS: References to tickets added.
[ruby-core:67701] [Bug #10760] Suggested by Zachary Scott.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
 

Also available in: Atom