Project

General

Profile

Activity

From 03/19/2013 to 03/25/2013

03/25/2013

10:20 PM Bug #8100: Segfault in trunk
Thanks for that. By the way, I've applied the patch to my production server. Write me down as another happy customer :-) wardrop (Tom Wardrop)
08:08 PM Bug #8100: Segfault in trunk
wardrop (Tom Wardrop) wrote:
> Eagerly awaiting the backport. Can someone please leave a comment when it's back-ported to ruby-2.0.0 head?
The backport request ticket is here.
https://bugs.ruby-lang.org/issues/8163
You might want t...
authorNari (Narihiro Nakamura)
06:45 PM Bug #8100: Segfault in trunk
Eagerly awaiting the backport. Can someone please leave a comment when it's back-ported to ruby-2.0.0 head? wardrop (Tom Wardrop)
11:54 AM Bug #8100: Segfault in trunk
zzak (Zachary Scott) wrote:
> Thank you nari-san and everyone who helped with this.
> ...
Yeah, this fix should be backport to 1.9.3 and 2.0.0.
authorNari (Narihiro Nakamura)
05:24 AM Bug #8100: Segfault in trunk
Thank you nari-san and everyone who helped with this.
Should this be backported as well?
zzak (zzak _)
02:15 AM Bug #8100 (Closed): Segfault in trunk
This issue was solved with changeset r39919.
Magnus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* proc.c (bm_free): need to clean up the mark flag of a free an...
authorNari (Narihiro Nakamura)
07:59 PM Bug #8159: Build failure introduced by Rinda changes
akr (Akira Tanaka) wrote:
> 2013/3/25 naruse (Yui NARUSE) <naruse@airemix.jp>:
> ...
Sure, but what is the type of its return value?
Extended Addrinfo or a new object like Ifaddr?
naruse (Yui NARUSE)
07:23 PM Bug #8159: Build failure introduced by Rinda changes
2013/3/25 naruse (Yui NARUSE) <naruse@airemix.jp>:
>
> Issue #8159 has been updated by naruse (Yui NARUSE).
>
>
> I create an experimental patch as following for failures on Linux:
> http://u64.rubyci.org/~chkbuild/ruby-trun...
akr (Akira Tanaka)
06:10 PM Bug #8159: Build failure introduced by Rinda changes
I create an experimental patch as following for failures on Linux:
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130324T210202Z.log.html.gz
~~~diff
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 1ddaea9..44703c1 10...
naruse (Yui NARUSE)
07:04 AM Bug #8159 (Assigned): Build failure introduced by Rinda changes
I have skipped the test using fork and the IPv6 tests when IPv6 addresses are missing.
I'm unsure what to do about the IPv4 multicast test, does something special need to be done for multicast on windows?
drbrain (Eric Hodel)
07:02 AM Bug #8159 (Closed): Build failure introduced by Rinda changes
This issue was solved with changeset r39922.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/rinda/test_rinda.rb: Skip IPv6 tests if no IPv6 addresses...
drbrain (Eric Hodel)
06:50 PM Revision ed90272e (git): * 2013-03-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:50 PM Revision a850dc62 (git): Use more general approach to get scope_id see #8159
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:50 PM Revision eaad7bed (git): Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:04 AM Bug #8162 (Closed): Documentation for trust/taint lacking
If would be good to make the documentation for {un}{trust|taint}{ed?} clearer. c.f. [ruby-core:53679] marcandre (Marc-Andre Lafortune)
11:02 AM Bug #8161 (Closed): String#+ should inherit untrustedness
As noted by Nikolai Weibull [ruby-core:53679], String#+ doesn't maintain untrustedness.
s = "foo".untrust
(s * 2).untrusted? # => true
(s + s).untrusted? # => false, should be true
(s + '').untrusted? # => false, sh...
marcandre (Marc-Andre Lafortune)
09:13 AM Revision 2149c313 (git): string.c: performance improvement
* string.c (rb_str_rpartition): get rid of conversion from byte offset
to char offset and backward, for performance improvement.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:03 AM Revision f4ac7354 (git): test_method.rb: refine assertions
* test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_bug):
use assert_normal_exit since subject code never exit successfully,
but check if timed out paranoically.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
nobu (Nobuyoshi Nakada)
09:03 AM Revision 8e10ee73 (git): envutil.rb: separate checks
* test/ruby/envutil.rb (assert_ruby_status): separate abort check and
exit status check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:09 AM Feature #8119 (Closed): more efficient version of Rinda::TupleSpaceProxy.take
This issue was solved with changeset r39923.
Joel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rinda/tuplespace.rb: Only return tuple entry once on move,...
drbrain (Eric Hodel)
05:39 AM Revision 6f8e5cc8 (git): * test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_bug):
move from KNOWNBUGS.rb. [Bug #8100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:39 AM Revision 985deb62 (git): envutil.rb: signal in Process::Status
* test/ruby/envutil.rb (assert_ruby_status): show status info.
* test/ruby/envutil.rb (Test::Unit::Assertions::FailDesc): use
Signal.signame for consistency with Process::Status#inspect.
* signal.c (siglist): prefer SIGABRT over SIGI...
nobu (Nobuyoshi Nakada)
02:59 AM Bug #8133: Regexp macro %r{} is loosing backslash on "\}"
naruse (Yui NARUSE) wrote:
> \} in this case doesn't escape a regexp meta character, it escapes closing terminator of %r{...} literal.
I agree. It's reasonable.
Thanks.
nagachika (Tomoyuki Chikanaga)
02:56 AM Bug #8133: Regexp macro %r{} is loosing backslash on "\}"
mame (Yusuke Endoh) wrote:
> Just for information: r39858 introduces the behavior change.
> ...
On my environment the result was exactly opposite.
$ cat regexp_test.rb
re = %r{n{3\}}}
p re
p [re =~ "nnn}", re =~ "n{3}}"]
ruby ...
nagachika (Tomoyuki Chikanaga)
02:32 AM Feature #8024: Lazy sweep を on/off するための機能
ko1 (Koichi Sasada) wrote:
> (2013/03/24 12:35), authorNari (Narihiro Nakamura) wrote:
> ...
おおお、なるほど。おっしゃる通りだとおもいます。
> >> > (2) で、ヒープの拡張がうまくいかない問題は、ObjectSpace.each_object 中に
> ...
(1)の方法で簡単に止められるけど、ヒープ拡張がうまくいかない制約が入る、という意味でしょうか...
authorNari (Narihiro Nakamura)
12:23 AM Feature #8024: Lazy sweep を on/off するための機能
(2013/03/24 12:35), authorNari (Narihiro Nakamura) wrote:
>> > すみません、ちょっとわかってないんですが、
>> > ObjectSpace.each_object 中って lazy GC 起きないようになってますよね。
>> >
>> > (1) lazy sweep を止めるときは、別スレッドで適当に
>> > ObjectSpace.each_object を実行しておく...
ko1 (Koichi Sasada)

03/24/2013

11:35 PM Feature #8119: more efficient version of Rinda::TupleSpaceProxy.take
Just FYI, you can use =begin ... =end for commenting out multiline naruse (Yui NARUSE)
11:20 AM Feature #8119: more efficient version of Rinda::TupleSpaceProxy.take
With #8125, your benchmark is 40% faster +/- 2% at 95% confidence.
With #8119, your benchmark is ~120% faster, but the tests fail as #take calls #move with a port of nil, so local users of the TupleSpace will experience a behavior cha...
drbrain (Eric Hodel)
10:57 PM Bug #8159 (Assigned): Build failure introduced by Rinda changes
luislavena (Luis Lavena)
10:53 PM Bug #8159 (Closed): Build failure introduced by Rinda changes
=begin
Seems latest Rinda-related changes affected build under Windows:
http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/936/console
2) Error:
test_take_bug_8215(Rinda::TupleSpaceProxyTest):
NotImplementedError: fo...
luislavena (Luis Lavena)
10:57 PM Bug #8160 (Closed): M17N test failure around String#rpartition
=begin
Hello,
Seems r39903 introduced a test failure under Windows:
http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/936/console
1) Failure:
test_str_rpartition(TestM17NComb) [C:/Users/Worker/Jenkins/workspace/rub...
luislavena (Luis Lavena)
10:47 PM Feature #8158: lightweight structure for loaded features index
Same for ruby_2_0_0 branch
https://github.com/funny-falcon/ruby/compare/ruby_2_0_0...features_index/ruby_2_0_0.diff
https://github.com/funny-falcon/ruby/compare/ruby_2_0_0...features_index/ruby_2_0_0
funny_falcon (Yura Sokolov)
04:56 PM Feature #8158 (Closed): lightweight structure for loaded features index
Use lightweight structure for loaded_features index:
- use hand made simple hash structure, which uses only one memory chunk,
- do not store feature name string, only hash of it, since loaded_feature_path
will recheck feature name...
funny_falcon (Yura Sokolov)
10:09 PM Revision e37f8c0f (git): * lib/rinda/tuplespace.rb: Only return tuple entry once on move,
either through port or regular return, not both. This results in a
120% speedup when combined with #8125. Patch by Joel VanderWerf.
[ruby-trunk - Feature #8119]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39923 b2dd03c8-39d...
drbrain (Eric Hodel)
10:01 PM Revision 77b88526 (git): * test/rinda/test_rinda.rb: Skip IPv6 tests if no IPv6 addresses
exist. Skip fork-dependent test if fork is not available.
[ruby-trunk - Bug #8159]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:00 PM Revision b95336b2 (git): * addr2line.c (putce): suppress unused return value warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
06:32 PM Bug #8138 (Closed): rpartition(regexp) for multibyte string
This issue was solved with changeset r39903.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Fix String#rpartition(/re/) against a multibyte string.
* st...
knu (Akinori MUSHA)
05:15 PM Revision b63580b5 (git): * 2013-03-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:15 PM Revision 02ff0977 (git): * proc.c (bm_free): need to clean up the mark flag of a free and
unlinked method entry. [Bug #8100] [ruby-core:53439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
05:02 PM Revision 8f96c404 (git): merge revision(s) 39677,39695: [Backport #8068]
* complex.c: described syntax of string form.
* rational.c: ditto.
* complex.c: edited rdoc.
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39918 b2dd03c8-39d4-4d8f-98ff-...
nagachika (Tomoyuki Chikanaga)
04:57 PM Revision 0d7d3a80 (git): merge revision(s) 39625,39626: [Backport #8008]
compile.c: calc in int
* compile.c (iseq_compile_each): calculate argc as int, not as Fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:27 PM Revision a41e107f (git): merge revision(s) 39632: [Backport #8013]
* lib/webrick/httpproxy.rb: Fix typos in HTTPProxyServer [Bug #8013]
Patch by Nobuhiro IMAI [ruby-core:53127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:23 PM Revision 11546685 (git): merge revision(s) 39614: [Backport #8033]
configure.in: fix unexpand_shvar
* configure.in (unexpand_shvar): remove guarding quotes at last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:10 PM Revision 03ec1e8e (git): merge revision(s) 39627: [Backport #8008]
* compile.c (iseq_compile_each): pass keyword arguments to zsuper,
with current values. [ruby-core:53114] [Bug #8008]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:05 PM Revision 8b5f0528 (git): merge revision(s) 39595: [Backport #8014]
* ext/objspace/objspace.c (count_nodes): count also newly added nodes,
and fix key for unknown node. patch by tmm1 (Aman Gupta) in
[ruby-core:53130] [Bug #8014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/...
nagachika (Tomoyuki Chikanaga)
04:01 PM Revision 6ab0f648 (git): merge revision(s) 39601 and 39602(partially): [Backport #7983]
* class.c (rb_prepend_module): check redefinition of built-in optimized
methods. [ruby-dev:47124] [Bug #7983]
* vm.c (rb_vm_check_redefinition_by_prepend): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches...
nagachika (Tomoyuki Chikanaga)
03:52 PM Revision b7880f1f (git): merge revision(s) 39578: [Backport #8009]
* Makefile.in (miniruby, ruby): move MAINLIBC because linker arguments
must appear after object files with newer versions of gcc. patch by
tmm1 (Aman Gupta) in [ruby-core:53121] [Bug #8009]
git-svn-id: svn+ssh://ci...
nagachika (Tomoyuki Chikanaga)
03:47 PM Revision a5e89ea4 (git): merge revision(s) 39536: [Backport #7989]
* iseq.c (iseq_data_to_ary): fix condition.
r34303 introduces a bug to avoid all line information from
a result of ISeq#to_a. This is a regression problem from 2.0.0p0.
* test/ruby/test_iseq.rb: add a test of...
nagachika (Tomoyuki Chikanaga)
03:42 PM Revision 876fb07f (git): merge revision(s) 39507,39508: [Backport #7963]
* tool/mkconfig.rb: reconstruct comma separated list values. a
command line to Windows batch file is splitted not only by spaces
and equals sign but also by commas and semicolons.
command line to Windows ba...
nagachika (Tomoyuki Chikanaga)
02:36 PM Revision 7a832973 (git): Try interface indexes which can use for IPv6 multicast
a fix for r39896
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:08 PM Revision c4d2d856 (git): * ChangeLog: fix a typo in r39892.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
01:53 PM Feature #8024 (Closed): Lazy sweep を on/off するための機能
This issue was solved with changeset r39901.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (GC_ENABLE_LAZY_SWEEP): new macro to switch lazy sweeping...
authorNari (Narihiro Nakamura)
12:35 PM Feature #8024: Lazy sweep を on/off するための機能
ko1 (Koichi Sasada) wrote:
> すみません、ちょっとわかってないんですが、
> ...
すみませんが、修正内容がよく理解できませんでした。
別スレッドで実行すると何が解決するのでしょうか?
> (2) で、ヒープの拡張がうまくいかない問題は、ObjectSpace.each_object 中に
> ...
はい、修正が必要だと思います(のでなおしておきます)。
ただ、ObjectSpace.each_objectの中でヒープが...
authorNari (Narihiro Nakamura)
12:53 AM Feature #8024: Lazy sweep を on/off するための機能
すみません、ちょっとわかってないんですが、
ObjectSpace.each_object 中って lazy GC 起きないようになってますよね。

(1) lazy sweep を止めるときは、別スレッドで適当に
ObjectSpace.each_object を実行しておく
(で、その中で sleep させておく)、というので行けると思ったんですが、
あってますか?

(2) で、ヒープの拡張がうまくいかない問題は、ObjectSp...
ko1 (Koichi Sasada)
12:16 AM Feature #8024 (Open): Lazy sweep を on/off するための機能
なるほどです。デバッグ用途にマクロでONになるやつを作ってみます。 authorNari (Narihiro Nakamura)
12:12 AM Feature #8024: Lazy sweep を on/off するための機能
authorNari (Narihiro Nakamura) wrote:
> ちなみに以下のようにパッチを修正しないとヒープがうまく拡張してくれず、GCが多発するようです > mrknさん
> ...
わたしも先日 lazy sweep 切ってデバッグしたくなったので、マクロ定義を見るとかでもいいので、
正しい lazy sweep を切るコード自体は入れておいて頂けませんか。
参考 https://github.com/nurse/rubyspec/co...
naruse (Yui NARUSE)
12:01 AM Feature #8024: Lazy sweep を on/off するための機能
ちなみに以下のようにパッチを修正しないとヒープがうまく拡張してくれず、GCが多発するようです > mrknさん
https://gist.github.com/authorNari/5227985/revisions
authorNari (Narihiro Nakamura)
01:18 PM Revision ed77aff1 (git): * string.c (rb_str_rpartition): revert r39903, and convert byte offset
to char offset; the return value of rb_reg_search is byte offset,
but other than it of rb_str_rpartition expects char offset.
[Bug #8138] [ruby-dev:47183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39906 b2dd03c8-39d4-4d8f-98...
naruse (Yui NARUSE)
10:43 AM Revision f001a450 (git): * test/ruby/envutil.rb (assert_ruby_status): include stderr output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:43 AM Revision cedfed5e (git): * vm_method.c (rb_sweep_method_entry): simplify code to unlink.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:32 AM Revision 01423661 (git): Fix String#rpartition(/re/) against a multibyte string.
* string.c (rb_str_rpartition): Fix String#rpartition(/re/)
against a multibyte string. [Bug #8138] [ruby-dev:47183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:30 AM Bug #7956 (Third Party's Issue): Install fail with RVM
hsbt (Hiroshi SHIBATA)
06:34 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
This is Linux result
% ruby -v test.rb
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]
3.010000 0.000000 3.010000 ( 3.000945)
% ruby -v test.rb
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
...
kosaki (Motohiro KOSAKI)
06:18 AM Feature #8128 (Rejected): New primitives for Rinda::TupleSpace
I think so: https://twitter.com/drbrain/status/315510564233293825
This is a global lock. If you want a KVS, I recommend the Hash or Drip.
seki (Masatoshi Seki)
05:39 AM Bug #8157: How to write document for __LINE__, __FILE__, __END__
=begin
There is a conflict as "_" in RDoc means "emphasis". You can use slashes to escape, but it is a little ugly:
\__FILE__
Maybe I can make __whatever__ special in RDoc, I will try.
=end
drbrain (Eric Hodel)
01:18 AM Bug #8157: How to write document for __LINE__, __FILE__, __END__
I think we will have to teach RDoc to understand these keywords.
If you want to reference them from another class or method, wrapping them in + should prevent RDoc from generating any extra markup, ie: +__FILE__+
zzak (zzak _)
01:12 AM Bug #8157 (Closed): How to write document for __LINE__, __FILE__, __END__
How do I write document for __LINE__, __FILE__, __END__ ?
Moreover, __ is expressed as _ in rdoc.
How can I avoid it?
naruse (Yui NARUSE)
05:13 AM Revision b4a2e268 (git): gc.c: fix compile error
* gc.c (gc_prepare_free_objects): fix compile error. there should be
free objects when new slot is added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:10 AM Feature #8073 (Closed): Add multicast support to Rinda::Ring*
This issue was solved with changeset r39895.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rinda/ring.rb: Add multicast support to Rinda::RingFinger ...
drbrain (Eric Hodel)
04:53 AM Revision e54dadda (git): * gc.c (GC_ENABLE_LAZY_SWEEP): new macro to switch lazy sweeping
for debugging. [Feature #8024] [ruby-dev:47135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
04:51 AM Bug #8100 (Assigned): Segfault in trunk
naruse (Yui NARUSE)
04:50 AM Bug #8100 (Closed): Segfault in trunk
This issue was solved with changeset r39894.
Magnus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Add timeout to infinite loop [Bug #8100]
On FreeBSD, it doesn'...
naruse (Yui NARUSE)
04:20 AM Revision 3ad60679 (git): * gc.c: We have no chance to expand the heap when lazy sweeping is
restricted. So collecting is often invoked if there is not
enough free space in the heap. Try to expand heap when this is
the case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
03:34 AM Bug #8125 (Closed): lost-tuple bug and fix for Rinda::TupleSpaceProxy.take
This issue was solved with changeset r39890.
Joel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rinda/rinda.rb: Fixed loss of tuple when remote is alive b...
drbrain (Eric Hodel)
02:06 AM Revision 052c0e67 (git): * test/ruby/test_require.rb: Remove temporally files in the tests.
* test/ruby/test_rubyoptions.rb: Ditto.
* test/logger/test_logger.rb: Ditto.
* test/psych/test_psych.rb: Ditto.
* test/readline/test_readline.rb: Ditto.
* test/syslog/test_syslog_logger.rb: Ditto.
* test/webrick/test_httpauth.rb: Di...
akr (Akira Tanaka)
12:04 AM Revision 61f50e31 (git): load.c: no longer used variable and object
* load.c (rb_feature_p): remvoe variable and string object which are
no longer used since r39874. [Bug #8048]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/23/2013

11:51 PM Feature #8126: OpenSSL::SSL::SSLSocket does not define #recv and #send messages
Do you have a use-case for these methods? Or do you just want them added for consistency? zzak (zzak _)
01:23 PM Feature #8126: OpenSSL::SSL::SSLSocket does not define #recv and #send messages
Here is a list of methods which are defined by TCPSocket, but not SSLSocket:
* recvfrom
* shutdown
* getsockname
* getpeername
* local_address
* remote_address
* recv
* recv_nonblock
* do_not_reverse_lookup
* sendmsg
* sendm...
postmodern (Hal Brodigan)
10:12 PM Bug #8156: native extensions won't load on Ubuntu
My apologies, I have indeed verified that I can build Ruby myself successfully on Ubuntu, and have opened an issue on rvm as suggested:
https://github.com/wayneeseguin/rvm/issues/1714
rubys (Sam Ruby)
09:40 PM Bug #8156 (Third Party's Issue): native extensions won't load on Ubuntu
Thanks for your report. but I think that this issue is rvm problem. Please report to https://github.com/wayneeseguin/rvm hsbt (Hiroshi SHIBATA)
09:30 PM Bug #8156 (Third Party's Issue): native extensions won't load on Ubuntu
This worked with previous builds of ruby. I've tracked it down to somewhere between revision 39832 and 39842.
$ rvm ruby-head-n39832
$ gem list mysql2*** LOCAL GEMS ***mysql2 (0.3.11)
$ ruby -r mysql2 -e 0
$ rvm ruby-head-n39842...
rubys (Sam Ruby)
09:57 PM Bug #8100: Segfault in trunk
charliesome (Charlie Somerville) wrote:
> nobu-san, this will loop forever when the bug is fixed. Perhaps change it to 100_000.times?
Sure, I've forgot it before the commit.
nobu (Nobuyoshi Nakada)
08:57 PM Bug #8100: Segfault in trunk
I'd set it to a duration rather than a set number of iterations. I've see it go for 2 seconds on my machine before segfault'ing. 3 seconds should fail almost every time.
start_time = Time.now
while (Time.now - start_time) < 3...
wardrop (Tom Wardrop)
07:16 PM Bug #8100: Segfault in trunk
nobu-san, this will loop forever when the bug is fixed. Perhaps change it to 100_000.times? Anonymous
07:02 PM Bug #8100 (Assigned): Segfault in trunk
nobu (Nobuyoshi Nakada)
05:46 PM Bug #8100 (Closed): Segfault in trunk
This issue was solved with changeset r39883.
Magnus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* KNOWNBUGS.rb: test for [Bug #8100].
nobu (Nobuyoshi Nakada)
09:51 PM Bug #7584: Ruby hangs when shutting down an ssl connection in gc finalization
The order of finalizers is indeterminate.
You'd be able to leave FDs open with IO#autoclose.
nobu (Nobuyoshi Nakada)
11:50 AM Bug #7584: Ruby hangs when shutting down an ssl connection in gc finalization
It looks like it is a race condition where the TCPSocket finalizer closes a fd, that fd is reused by another thread and then we try to do SSL_shutdown on this new connection and bad things happen.
Would it make sense to have the TCPSo...
bpot (Bob Potter)
10:32 AM Bug #7584: Ruby hangs when shutting down an ssl connection in gc finalization
=begin
Digging into this some more because it cropped up in another project.
I've had some luck reproducing this issue with a small script: https://gist.github.com/bpot/5225920
Sometimes it reproduces easily, sometimes it doesn't....
bpot (Bob Potter)
08:36 PM Revision 7a64cdeb (git): * lib/rinda/ring.rb: Added documentation for multicast support.
* NEWS: Point to above documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:32 PM Revision f70e0e62 (git): * test/rinda/test_rinda.rb: Restore tests commented out while fixing
test slowdown bug before r39895.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:10 PM Revision 646bcaa7 (git): * lib/rinda/ring.rb: Add multicast support to Rinda::RingFinger and
Rinda::RingServer. [ruby-trunk - Bug #8073]
* test/rinda/test_rinda.rb: Test for the above.
* NEWS: Update with Rinda multicast support
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39895 b2dd03c8-39d4-4d8f-98ff-...
drbrain (Eric Hodel)
07:50 PM Revision 362208c0 (git): Add timeout to infinite loop [Bug #8100]
On FreeBSD, it doesn't SEGV.
http://fbsd.rubyci.org/~chkbuild/ruby-trunk/log/20130323T170203Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:50 PM Revision 20219afd (git): Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:38 PM Feature #8073: Add multicast support to Rinda::Ring*
please commit this patch. seki (Masatoshi Seki)
07:16 PM Bug #8125: lost-tuple bug and fix for Rinda::TupleSpaceProxy.take
please commit it! seki (Masatoshi Seki)
04:37 PM Bug #8125: lost-tuple bug and fix for Rinda::TupleSpaceProxy.take
Oops, I forgot to run all the tests, this fixes the remaining tests by restoring an accidentally deleted line. drbrain (Eric Hodel)
04:26 PM Bug #8125: lost-tuple bug and fix for Rinda::TupleSpaceProxy.take
Here is an updated patch that matches the rinda style and removes a leftover p drbrain (Eric Hodel)
04:21 PM Bug #8125 (Assigned): lost-tuple bug and fix for Rinda::TupleSpaceProxy.take
I think the safe take should be the default take.
I updated your patch and converted thread-int.rb into a test.
drbrain (Eric Hodel)
07:13 PM Revision 71012b3a (git): * test/rinda/test_rinda.rb: Fixed test failures in r39890 and r39890
due to stopping DRb service.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
06:35 PM Revision 90d94133 (git): Commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
06:34 PM Revision ebca3dd3 (git): * lib/rinda/rinda.rb: Fixed loss of tuple when remote is alive but the
call stack was unwound. Patch by Joel VanderWerf.
[ruby-trunk - Bug #8125]
* test/rinda/test_rinda.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:16 PM Revision c09287bd (git): * test/mkmf/test_have_macro.rb: remove temporally files in the tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:00 PM Feature #8155 (Closed): Improve support for streaming responses in WEBrick
Currently WEBrick only understands a body that is a String or an IO. This makes it difficult to stream a response body. Instead of providing a body that duck-types to IO you must use IO.pipe which can be clumsy.
The attached patch c...
drbrain (Eric Hodel)
04:45 PM Feature #8128 (Assigned): New primitives for Rinda::TupleSpace
A TupleSpace isn't designed for these types of operations, see: http://www.lindaspaces.com/book/ (the TupleSpace book). drbrain (Eric Hodel)
04:40 PM Feature #8119: more efficient version of Rinda::TupleSpaceProxy.take
I think #8125 should be applied, then a new patch be generated for this issue. drbrain (Eric Hodel)
04:05 PM Revision 668f6c7b (git): * 2013-03-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:05 PM Revision 3de18117 (git): * addr2line.c (kprintf): added from FreeBSD libstand's printf.
this is consided as async signal safe function.
* addr2line.c (rb_dump_backtrace_with_lines): use kfprintf.
[Bug #8144] [ruby-core:53632]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:05 PM Revision e8f9b664 (git): Remove unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:50 PM Bug #4487: require_relative fails in an eval'ed file
This bug also affects pry: https://github.com/pry/pry/issues/880. Our use-case is slightly different because we are doing TOPLEVEL_BINDING.eval("some code", "/absolute/path.rb").
I think that when an absolute path is set in eval, then...
Conrad.Irwin (Conrad Irwin)
02:30 PM Revision bc438422 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_divide): Use Qnil and NIL_P
instead of (VALUE)0 as a return value.
* ext/bigdecimal/bigdecimal.c (BigDecimal_div): ditto.
* ext/bigdecimal/bigdecimal.c (BigDecimal_divremain): ditto.
* ext/bigdecimal/bigdecimal.c (BigDecimal_remainder): ditto.
git-svn-id: svn+s...
Kenta Murata
02:21 PM Revision 338456ad (git): Suppress warning: OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:45 PM Bug #8151 (Assigned): Duplicate character class warning
Interestingly, this seems to be a bug of Regexp#to_s, not a regexp creation.
re = /(?:[\u{33}])/
p re #=> /(?:[\u{33}])/
puts re.to_s
#=> warning: character class has duplicated range: /[\u{33}]/
#=> (?-mix:[\u{33}])
As I...
mame (Yusuke Endoh)
02:33 AM Bug #8151 (Closed): Duplicate character class warning
I get a duplicate character class warning, but I think it's a bug. Here is the example code:
```
def embed exp, depth
return exp if depth == 0
embed(/#{exp}/, depth - 1)
end
3.times { |i|
puts "DEPTH #{i + 1}"
embed(...
tenderlovemaking (Aaron Patterson)
08:46 AM Bug #7808 (Closed): [PATCH] Allow to install arch specific code into different location then nonarch
I was able to find suitable configuration options for -p0. I no longer need this patch. Thank you. vo.x (Vit Ondruch)
08:46 AM Revision 813ba53b (git): * KNOWNBUGS.rb: test for [Bug #8100].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:45 AM Revision b79ba4a7 (git): * array.c (take_items): honor encoding of class name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:39 AM Revision 04c9bdb1 (git): vm_eval.c: preserve passed_block
* vm_eval.c (check_funcall_respond_to): preserve passed_block, which
is modified in vm_call0_body() via vm_call0(), and caused a bug of
rb_check_funcall() by false negative result of rb_block_given_p().
re-fix [ruby-core:53650] [Bu...
nobu (Nobuyoshi Nakada)
03:38 AM Bug #8139 (Assigned): keyreq and keyrest
I think this is definitely a bugfix. I'll backport r39869. nagachika (Tomoyuki Chikanaga)
01:54 AM Bug #7977 (Feedback): rails 4 crashes ruby 2.0 on Solaris
On sparc Solaris10, by using Oracle SolarisStudio 12.3, I cannot reproduce this issue with ruby 2.0.0p86 (svn ruby_2_0_0 r39852). ngoto (Naohisa Goto)

03/22/2013

11:01 PM Revision 1a56e716 (git): * test_enum.rb: Make test more precise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
10:56 PM Revision e25f03a6 (git): * test_array.rb: Make test more precise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
10:30 PM Revision d9012883 (git): * 2013-03-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:30 PM Revision cb0093d5 (git): * array.c: Avoid zip bug by not using obsolete rb_check_block_call [Bug #8153]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
10:03 PM Bug #8100 (Assigned): Segfault in trunk
kosaki (Motohiro KOSAKI)
08:22 PM Bug #8100: Segfault in trunk
=begin
Magnus and I reduced this down to an even simpler^2 test case:
loop do
def x
"hello" * 1000
end
method(:x).call
end
http://eval.in/13344
=end
Anonymous
07:54 PM Bug #8100: Segfault in trunk
After working with charliesome we've now found an even simpler test case:
http://eval.in/13339
This *always* segfaults for me on trunk.
judofyr (Magnus Holm)
07:15 PM Bug #8100: Segfault in trunk
They've obviously done work on the garbage collector for Ruby 2.0. This is likely a bug introduced as result of that. Good work tracking it down judofyr. wardrop (Tom Wardrop)
07:01 PM Bug #8100: Segfault in trunk
Here's a backtrace I got in gdb: http://pastie.org/7064676. rb_gc_mark_unlinked_live_method_entries seems suspicious and related to what the script does. judofyr (Magnus Holm)
06:38 PM Bug #8100: Segfault in trunk
I've managed to reduce the script down to 30 lines (with no dependencies) that segfaults in both 2.0.0-p0 and trunk (39875). It doesn't segfault every time though so if it takes more than a few seconds to run it, simply Ctrl-C and try ag... judofyr (Magnus Holm)
10:00 PM Bug #7521 (Closed): test_thr_kill(TestQueue) fails
thanks. then closing by duplicate. kosaki (Motohiro KOSAKI)
06:26 PM Bug #7521: test_thr_kill(TestQueue) fails
Yesterday, I did 6 x 6 builds (i.e. 36 builds in total) on different platforms and every time at leas one failed. So I applied the r39728 from #8065, did again 6 x 6 builds and so far so good. Doing now official build and hope it will su... vo.x (Vit Ondruch)
07:47 PM Bug #8148 (Rejected): [patch] reduce allocations due to __FILE__ and {class,module}_eval
In my application, I noticed many long lived "(eval)" strings on the heap.
I also noticed many copies of filename strings when using module_eval(.., __FILE__, ..). Attached patch adds a new NODE_FILE to re-use the original path string...
tmm1 (Aman Karmani)
06:23 PM Feature #8107: [patch] runtime flag to track object allocation metadata
(2013/03/22 17:41), tmm1 (Aman Gupta) wrote:
>
>> > - `task' is ambiguous (all of procedures are task).
> Do you prefer `rb_delayed_task_*` and vm_delayed_task.c ?

I prefer rb_delayed_task_. but if there is more good name, ...
ko1 (Koichi Sasada)
05:41 PM Feature #8107: [patch] runtime flag to track object allocation metadata
> - `task' is ambiguous (all of procedures are task).
Do you prefer `rb_delayed_task_*` and vm_delayed_task.c ?
> ...
Yes, I thought of that when using ALLOC_N. Is it safe to use regular allocation (without xmalloc)? Or better to ...
tmm1 (Aman Karmani)
05:38 PM Feature #8110 (Assigned): Regex methods not changing global variables
It sounds reasonable.
The API can be some of following:
* new API like `Regexp#match_without_backref`
* new option for `Regexp` like `Regexp.new("foo", Regexp::NO_BACKREF)` or `/foo/B`
* new syntax
naruse (Yui NARUSE)
04:26 PM Bug #8133: Regexp macro %r{} is loosing backslash on "\}"
nagachika (Tomoyuki Chikanaga) wrote:
> Hmm, is it a bug introduced in 2.0.0?
> ...
\} in this case doesn't escape a regexp meta character, it escapes closing terminator of %r{...} literal.
naruse (Yui NARUSE)
01:40 AM Bug #8133: Regexp macro %r{} is loosing backslash on "\}"
Hmm, is it a bug introduced in 2.0.0?
I personally feel the behavior of 2.0.0 is natural.
nagachika (Tomoyuki Chikanaga)
03:58 PM Bug #8134: Compilation failure for 2.0.0 on 10.6.8
It seems because your clang is too old; use newer clang or gcc-4.2.
Or report rvm to use gcc-4.2 prior clang/llvm-gcc.
naruse (Yui NARUSE)
11:57 AM Revision 4edd787b (git): cleanup by @vipulnsward [GH fixes #262]
lib/net/http/generic_request.rb: Removes unnecessary assignment
lib/net/ftp.rb: Fixes dead code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
08:48 AM Revision cfe937b9 (git): forwardable.rb: reduce allocations in def_delegators
* lib/forwardable.rb (Forwardable::FILE_REGEXP): create regexp object
outside sources for eval, to reduce allocations in def_delegators
wrappers. //o option does not make each regexps shared. patch by
tmm1 (Aman Gupta) in [ruby-c...
nobu (Nobuyoshi Nakada)
08:38 AM Revision 228b29a6 (git): load.c: loaded_features_index st_table
* load.c (rb_feature_p), vm_core.h (rb_vm_struct): turn
loaded_features_index into st_table. patches by tmm1 (Aman Gupta)
in [ruby-core:53251] and [ruby-core:53274] [Bug #8048]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3987...
nobu (Nobuyoshi Nakada)
07:57 AM Revision 81cb1f63 (git): compiler version
* common.mk (showflags): show the compiler version.
* configure.in (CC_VERSION): compiler with version option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:51 AM Bug #8139 (Closed): keyreq and keyrest
This issue was solved with changeset r39869.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_insnhelper.c: check required kwarg with resthash
* vm_ins...
nobu (Nobuyoshi Nakada)
12:17 AM Bug #8139 (Closed): keyreq and keyrest
=begin
Passing a hash without required key (:keyreq) to a method which takes keyreq: and **keyrest,
then a same hash is set to both keyreq and keyrest.
def m(keyreq:, **keyrest)
[keyreq, keyrest]
end

m(keyreq: 1, keyrest...
no6v (Nobuhiro IMAI)
01:38 AM Revision e52a4a70 (git): * ext/bigdecimal/bigdecimal.c: Fix style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
12:19 AM Bug #8140 (Closed): Incorrect warning: `+' after local variable is interpreted as binary operator
The statement:
puts '' +''
generates an invalid warning when executed with "ruby -w" which (a) implies a syntactical ambiguity where there is none, and (b) refers to a "local variable" of which there are none.
Note that:
puts...
glyn (Glyn Normington)

03/21/2013

11:41 PM Bug #8133: Regexp macro %r{} is loosing backslash on "\}"
Just for information: r39858 introduces the behavior change.
Whether %r{n{3\}}} matches with:
| "nnn}" | "n{3}}"
----------+--------+---------
1.9.3p392 | YES | NO
2.0.0p0 | NO | YES
trunk | YES | NO
...
mame (Yusuke Endoh)
05:46 PM Bug #8133: Regexp macro %r{} is loosing backslash on "\}"
nobu (Nobuyoshi Nakada) wrote:
> This issue was solved with changeset r39858.
Thank you.
vo.x (Vit Ondruch)
04:48 PM Bug #8133 (Closed): Regexp macro %r{} is loosing backslash on "\}"
This issue was solved with changeset r39858.
Josef, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
parse.y: escape all closing parens
* parse.y (simple_re_meta): ...
nobu (Nobuyoshi Nakada)
04:13 PM Bug #8133 (Open): Regexp macro %r{} is loosing backslash on "\}"
It doesn't look to be issue of regexp but issue of parser:
C:\Projects>irb
irb(main):001:0> a = %r|\}|
=> /\}/
irb(main):002:0> b = %r{\}}
=> /}/
irb(main):003:0> a == b
=> false
a and b are apparently not the same. They us...
vo.x (Vit Ondruch)
11:26 AM Bug #8133 (Rejected): Regexp macro %r{} is loosing backslash on "\}"
There is nothing different, as '}' is not a regexp meta character. nobu (Nobuyoshi Nakada)
12:22 AM Bug #8133 (Closed): Regexp macro %r{} is loosing backslash on "\}"
Hello,
Ruby 2.0.0 is loosing the backslash when used on "\}" string (exact match).
How to reproduce in irb:
2.0.0-p0 :003 > %r{\}}
=> /}/
2.0.0-p0 :004 > %r{\{}
=> /\{/
Compared to:
1.9.3p392 :001 > %r{\{}
=> /\{...
jstribny (Josef Stribny)
11:17 PM Bug #8137 (Closed): r39819 以降 Process.kill(0, $$) が終了しない
This issue was solved with changeset r39862.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread.c: fix deadlock
* thread.c (ruby_kill): get rid of dea...
nobu (Nobuyoshi Nakada)
10:14 PM Bug #8137 (Closed): r39819 以降 Process.kill(0, $$) が終了しない
r39819 以降、以下のコードが終了せずにデッドロックとなります。
$ ruby -e 'Process.kill(0, $$)'
1.9.3, 2.0.0 では正常に終了します。この影響により例えば以下のようなコードが動かなくなるので、デッドロックは回避するようにして頂けないでしょうか。
https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/pidlock.rb#L46
hsbt (Hiroshi SHIBATA)
11:07 PM Bug #8138 (Closed): rpartition(regexp) for multibyte string
=begin
以下のように、String#rpartition に正規表現を渡したとき、マルチバイト文字列だと挙動がおかしいようです。
# encoding: UTF-8
"user@domain".partition("@") # => ["user", "@", "domain"]
"user@domain".partition(/@/) # => ["user", "@", "domain"]
"user@domain".rp...
no6v (Nobuhiro IMAI)
10:50 PM Bug #7805 (Closed): ruby 2.0rc2 core on solaris
This issue was solved with changeset r39860.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* marshal.c (marshal_dump, marshal_load): workaround for segv on
...
ngoto (Naohisa Goto)
10:04 PM Feature #7792: Make symbols and strings the same thing
Also, as a nice side effect we wouldn't even have to worry about garbage collecting symbols to avoid DoS as they would be automatically collected just like strings. If MRI wants to keep the original notion of symbols as an internal imple... rosenfeld (Rodrigo Rosenfeld Rosas)
10:01 PM Feature #7792: Make symbols and strings the same thing
What I meant is that most people only use symbols as an identifier that could be a just a string as well. If you look at the code semanthic you'll notice that they don't really care about symbol vs strings differences. They just want an ... rosenfeld (Rodrigo Rosenfeld Rosas)
12:09 PM Feature #7792: Make symbols and strings the same thing
The problem is not "confusion", it is that there is an apparent effort to rework core features in a massive framework in little pieces. These things don't fail in isolation--it is an error to attempt to fix them in isolation.
Student (Nathan Zook)
12:02 AM Feature #7792: Make symbols and strings the same thing
Just another confusion caused by different behavior of strings vs symbols: https://github.com/blog/1440-today-s-email-incident rosenfeld (Rodrigo Rosenfeld Rosas)
09:57 PM Bug #8136: gsub strange behavior when substituting "\\'"
Seems like \' is interpreted as $' ($POSTMATCH) which is in this case 'oo'. Eregon (Benoit Daloze)
07:05 PM Bug #8136 (Closed): gsub strange behavior when substituting "\\'"
=begin
s = "\\'" # => "\\'"
print s # \'
"foo".gsub("f", s) # => "oooo"
Can anybody please explain to me why it works like this? Is this a bug?
=end
alexeymuranov (Alexey Muranov)
08:34 PM Revision c60c0503 (git): * test/ruby/envutil.rb (assert_warning): show diff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:30 PM Revision 9150340b (git): parse.y: refine warning message
* parse.y (ambiguous_operator): refine warning message, since this
warning is shown after literal too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:51 PM Revision 79f7dfab (git): vm_insnhelper.c: check required kwarg with resthash
* vm_insnhelper.c (vm_callee_setup_keyword_arg): should check required
keyword arguments even if rest hash is defined. [ruby-core:53608]
[Bug #8139]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39869 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
06:42 PM Feature #8111 (Closed): Redmine Manager?
Make a ticket as category:Project. naruse (Yui NARUSE)
04:53 PM Feature #8107: [patch] runtime flag to track object allocation metadata
(2013/03/20 12:19), tmm1 (Aman Gupta) wrote:
> But API is too simple, maybe.

Another issues:

- `task' is ambiguous (all of procedures are task).
Yes, name is always issue.
- Allocation during gc is dangerous (maybe, sh...
ko1 (Koichi Sasada)
04:11 PM Revision 7e052c7b (git): use rb_pid_t instead of pid_t.
* process.c (rb_execarg_addopt, run_exec_pgroup): use rb_pid_t
instead of pid_t.
* ext/pty/pty.c (raise_from_check, pty_check): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:05 PM Revision f7108c5d (git): * 2013-03-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision 65a277d7 (git): * addr2line.c (rb_dump_backtrace_with_lines): output line at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:55 PM Revision 03583814 (git): Retry ps if it doesn't do setproctitle
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:32 PM Revision 7f7621e7 (git): revert r39861
* include/ruby/ruby.h: revert r39861 because RB_UNUSED_VAR() is used
for array variables in extension libraries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:17 PM Revision ccde88c1 (git): * thread_win32.c (native_sleep): suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:17 PM Revision 5de144f3 (git): thread.c: fix deadlock
* thread.c (ruby_kill): get rid of deadlock on signal 0.
[ruby-dev:47182] [Bug #8137]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 PM Revision 042594bb (git): ruby.h: RB_UNUSED_VAR from UNINITIALIZED_VAR
* include/ruby/ruby.h (RB_UNUSED_VAR): move code from
UNINITIALIZED_VAR() in vm_core.h.
* vm_core.h (UNINITIALIZED_VAR): use RB_UNUSED_VAR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:50 PM Bug #7756 (Closed): clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
This issue was solved with changeset r39855.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_core.h: suppress warnings
* vm_core.h (UNINITIALIZED_VAR): su...
nobu (Nobuyoshi Nakada)
01:50 PM Revision 82b8467e (git): * marshal.c (marshal_dump, marshal_load): workaround for segv on
Intel Solaris compiled with Oracle SolarisStudio 12.3.
Partly revert r38174. [ruby-core:52042] [Bug #7805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
11:35 AM Revision 1191b359 (git): merge revision(s) 39809,39834,39837: [Backport #8132]
* test/win32ole/test_err_in_callback.rb
(TestErrInCallBack#test_err_in_callback): shouldn't create a file in
source directory.
* test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup): use
...
U.Nakamura
11:31 AM Bug #8017 (Third Party's Issue): Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
nobu (Nobuyoshi Nakada)
11:31 AM Bug #8134 (Third Party's Issue): Compilation failure for 2.0.0 on 10.6.8
nobu (Nobuyoshi Nakada)
03:45 AM Bug #8134: Compilation failure for 2.0.0 on 10.6.8
This is the content of the log file reported by RVM:
[2013-03-20 19:28:58] make
current path: /Users/veleno/.rvm/src/ruby-2.0.0-p0
command(2): make install
CC = clang
LD = ld
LDSHARED = clang -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -W...
vschiavoni (Valerio Schiavoni)
03:45 AM Bug #8134 (Third Party's Issue): Compilation failure for 2.0.0 on 10.6.8
Trying to install 2.0.0 with rvm on Mac OSX 10.6.8, the installation fails.
vschiavoni (Valerio Schiavoni)
07:48 AM Revision ebd86634 (git): parse.y: escape all closing parens
* parse.y (simple_re_meta): escape all closing characters, not only
round parenthesis. [ruby-core:53578] [Bug #8133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:46 AM Feature #8096: introduce Time.current_timestamp
Responding to some concerns:
1. nanoTime deficiencies
Yes, System.nanoTime is not monotonic. It is designed to be a timestamp from the start of the process, as fast as possible across platforms, and with as fine-grained resolution ...
headius (Charles Nutter)
07:23 AM Feature #8096: introduce Time.current_timestamp
(3/20/13 11:14 AM), naruse (Yui NARUSE) wrote:
>
> Issue #8096 has been updated by naruse (Yui NARUSE).
>
>
> Eregon (Benoit Daloze) wrote:
>> On 19 March 2013 17:56, headius (Charles Nutter) <headius@headius.com> wrote:
...
kosaki (Motohiro KOSAKI)
06:53 AM Feature #8096: introduce Time.current_timestamp
"naruse (Yui NARUSE)" <naruse@airemix.jp> wrote:
> Whether wall-clock or monotonic clock is desired is the most important point.

I would like an option/flag so both are available.
normalperson (Eric Wong)
12:14 AM Feature #8096: introduce Time.current_timestamp
Eregon (Benoit Daloze) wrote:
> On 19 March 2013 17:56, headius (Charles Nutter) <headius@headius.com> wrote:
> ...
Python summarized those time related functions:
http://www.python.org/dev/peps/pep-0418/
> The doc says "This meth...
naruse (Yui NARUSE)
05:26 AM Revision 1dfb5bb7 (git): Makefile.in: remove broken symlinks
* Makefile.in ($(LIBRUBY_SO)): always try to remove symlink targets
for broken symlinks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:13 AM Revision 634779e6 (git): string.c: potential memory leak
* string.c (rb_str_conv_enc_opts): allocate and hide wrapper before
creating converter to be wrapped, to get rid of potential memory
leak by failure on the allocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39856 b2dd03c8...
nobu (Nobuyoshi Nakada)
04:50 AM Revision 69d5f4ab (git): vm_core.h: suppress warnings
* vm_core.h (UNINITIALIZED_VAR): suppress warnings by clang 4.2.
[ruby-core:51742] [Bug #7756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:19 AM Bug #8124: gem fails to install valid gems
I periodically have similar but not the same issue.
>gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect SYSCALL returned=5 errno=...
prijutme4ty (Ilya Vorontsov)

03/20/2013

11:53 PM Feature #8096: introduce Time.current_timestamp
On 19 March 2013 17:56, headius (Charles Nutter) <headius@headius.com> wrote:
>
> Issue #8096 has been updated by headius (Charles Nutter).
>
>
> A few more thoughts to keep this alive...
>
> Implementation in JRuby:
>
> def Ti...
Eregon (Benoit Daloze)
08:46 PM Feature #8096: introduce Time.current_timestamp
kosaki (Motohiro KOSAKI) wrote:
> (3/19/13 9:31 PM), headius (Charles Nutter) wrote:
> ...
At the allocation view, there are 3 types:
1. embeded in VALUE itself
2. embeded in struct RVALUE
3. VALUE and extra data
Fixnum and small...
naruse (Yui NARUSE)
11:53 AM Feature #8096: introduce Time.current_timestamp
(3/19/13 9:31 PM), headius (Charles Nutter) wrote:
>
> Issue #8096 has been updated by headius (Charles Nutter).
>
>
> naruse (Yui NARUSE) wrote:
>> What class is it?
>> If Float, it introduces extra error.
>> If Rati...
kosaki (Motohiro KOSAKI)
10:31 AM Feature #8096: introduce Time.current_timestamp
naruse (Yui NARUSE) wrote:
> What class is it?
> ...
It is a Fixnum:
ext-jruby-local ~/projects/jruby $ jruby -e "def Time.timestamp; java.lang.System.nano_time / 1000; end; loop { p Time.timestamp; sleep 1.5 }"
1363742953730794
1...
headius (Charles Nutter)
07:24 AM Feature #8096: introduce Time.current_timestamp
headius (Charles Nutter) wrote:
> A few more thoughts to keep this alive...
> ...
What class is it?
If Float, it introduces extra error.
If Rational, I feel Time is better.
naruse (Yui NARUSE)
01:56 AM Feature #8096: introduce Time.current_timestamp
A few more thoughts to keep this alive...
Implementation in JRuby:
def Time.timestamp
java.lang.System.nano_time / 1000
end
There's also currentTimeMillis, but I think providing sub-ms precision is a good idea. µs seems suff...
headius (Charles Nutter)
10:52 PM Bug #8115 (Closed): make install DESTDIR=/my/install/path fails
This issue was solved with changeset r39841.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
mkmf.rb: prefix install_dirs only with DESTDIR
* lib/mkmf.rb (ins...
nobu (Nobuyoshi Nakada)
10:35 PM Revision 91194dfd (git): * 2013-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:35 PM Revision 5d402803 (git): * ext/date/date_core.c: Typo in Date::MONTHNAMES by Matt Gauger
[GH fixes #261]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:01 PM Bug #8124: gem fails to install valid gems
For handle this issue, it need to know occasion of that "many people".
If you are not "many people" and you could not reproduce such problem, we can not fix it as same as you.
ayumin (Ayumu AIZAWA)
04:37 PM Bug #8124: gem fails to install valid gems
$ gem sources
*** CURRENT SOURCES ***
http://rubygems.org/
Like I said, I'm not able to reproduce the issue, even after a `gem sources -c`. The issue I'm pointing out here is that the error reported on the original is...
Anonymous
02:21 PM Revision 63b66167 (git): merge revision(s) 39835: [Backport #8058]
* test/rubygems/test_gem_installer.rb (test_install_extension_flat):
use ruby in build directory in case ruby is not installed.
[ruby-core:53265] [Bug #8058]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby...
nagachika (Tomoyuki Chikanaga)
02:17 PM Revision 2aaa9ab9 (git): merge revision(s) 39809,39834,39837: [Backport #8132]
* test/win32ole/test_err_in_callback.rb
(TestErrInCallBack#test_err_in_callback): shouldn't create a file in
source directory.
* test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup): use
...
nagachika (Tomoyuki Chikanaga)
02:10 PM Revision 7631f28c (git): merge revision(s) 39781,39783: [Backport #8080]
missing.h: build fix
* include/ruby/missing.h: include time.h and sys/time.h iff needed,
but excepct for sys/time.h on linux to get rid of glibc bug.
* include/ruby/missing.h: removed __linux__. it's unnecessary.
git...
nagachika (Tomoyuki Chikanaga)
02:07 PM Revision 4346f5d6 (git): merge revision(s) 39779: [Backport #8080]
Makefile.sub: fix mswin build
* win32/Makefile.sub (config.h): fix mswin build, also VC has time.h
and struct timeval.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:06 PM Revision 68a2dd54 (git): merge revision(s) 39777: [Backport #8080]
mingw build fix
* configure.in: struct timeval is defined in winsock2.h on mingw.
* include/ruby/missing.h: include time.h for time_t, and sys/time.h
for timeval and timespec.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
nagachika (Tomoyuki Chikanaga)
02:03 PM Revision 9b0861fb (git): merge revision(s) 39200: [Backport #8080]
* configure.in: move OS specific header/function knowledge before
automatic header tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:01 PM Revision c8755ba6 (git): merge revision(s) 39174: [Backport #8080]
* configure.in: move header files check to the beginning of
"header and library section".
test rlim_t with sys/types.h and sys/time.h for MirOS BSD.
sys/types.h and sys/time.h is gurded by #ifdef and the abo...
nagachika (Tomoyuki Chikanaga)
01:57 PM Revision 7d772fbd (git): merge revision(s) 39198: [Backport #8080]
* configure.in: move the test for -march=i486 just after
RUBY_UNIVERSAL_ARCH/RUBY_DEFAULT_ARCH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:56 PM Revision 78a2c1a9 (git): merge revision(s) 39162,39163: [Backport #8080]
* configure.in: change CFLAGS temporally to test
ARCH_FLAG="-march=i486".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:54 PM Revision d4e03967 (git): merge revision(s) 39160: [Backport #8080]
* configure.in: don't define ARCH_FLAG="-march=i486" if it causes
compilation problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:53 PM Revision 9cbd4ac3 (git): mkmf.rb: format message
* lib/mkmf.rb (find_library): fix to format message.
[ruby-core:53568] [Bug #8130]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:52 PM Revision 7e1d5045 (git): mkmf.rb: prefix install_dirs only with DESTDIR
* lib/mkmf.rb (install_dirs, with_destdir): prefix with DESTDIR
directories to install only unless bundled extension libraries.
[ruby-core:53502] [Bug #8115]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39841 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
01:37 PM Revision 7ff076d5 (git): merge revision(s) 39775: [Backport #8080]
* thread.c: disabled _FORTIFY_SOURCE for avoid to hit glibc bug.
[Bug #8080] [ruby-core:53349]
* test/ruby/test_io.rb (TestIO#test_io_select_with_many_files):
test for the above.
git-svn-id: svn+ssh://ci.ru...
nagachika (Tomoyuki Chikanaga)
01:36 PM Revision 552817e5 (git): merge revision(s) 39774: [Backport #8080]
* include/ruby/missing.h (__syscall): moved to...
* io.c: here. because __syscall() is only used from io.c.
* include/ruby/missing.h: move "#include <sys/type.h>" to ....
* include/ruby/intern.h: here. because ...
nagachika (Tomoyuki Chikanaga)
01:34 PM Revision ccb9fb0b (git): merge revision(s) 39772,39773: [Backport #8080]
* configure.in: check struct timeval exist or not.
* include/ruby/missing.h (struct timeval): check HAVE_STRUCT_TIMEVAL
properly. and don't include sys/time.h if struct timeval exist.
* file.c: include sys/tim...
nagachika (Tomoyuki Chikanaga)
12:19 PM Feature #8107: [patch] runtime flag to track object allocation metadata
I implemented a basic task api: https://github.com/tmm1/ruby/compare/tmm1;task-api
But API is too simple, maybe.
- what if task job is holding onto VALUE, it will never be gc_mark()ed
- what if there is an exception during t...
tmm1 (Aman Karmani)
09:00 AM Bug #8129: String#index has drastically different performance when a single unicode character is included
Thanks for the feedback Charlie and Nobuyoshi. This came up from https://github.com/kschiess/parslet/issues/73 which heavily uses String#index (http://www.ruby-doc.org/core-2.0/String.html#method-i-index) by passing a position to search ... zmoazeni (Zach Moazeni)
08:52 AM Bug #8129: String#index has drastically different performance when a single unicode character is included
=begin
You may want to:
* use regexp, e.g. (({scan})).
* convert to fix width wide char encoding, i.e., ((|UTF-32LE|)) or ((|UTF-32BE|)).
=end
nobu (Nobuyoshi Nakada)
08:40 AM Bug #8129 (Rejected): String#index has drastically different performance when a single unicode character is included
When all the characters in a string are ASCII characters (single bytes), the byte index for any given character can be calculated in constant time.
When the string contains multibyte characters, finding the byte index given a characte...
Anonymous
08:23 AM Bug #8129 (Rejected): String#index has drastically different performance when a single unicode character is included
=begin
I created a simple ruby script:
#! /usr/bin/env ruby
raise "need a file name" unless ARGV[0]
contents = File.read(ARGV[0])
326_000.times do |i|
contents[(i + 23) % contents.size]
end
And I uploaded two file...
zmoazeni (Zach Moazeni)
08:52 AM Revision dd210d8f (git): * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup):
allow using different drive for source and build directories.
this may fixes a minor problem of r39834.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:30 AM Bug #8127 (Closed): NoMethodError for private / protected methods with Module#prepend
nobu (Nobuyoshi Nakada)
07:49 AM Bug #8127 (Closed): NoMethodError for private / protected methods with Module#prepend
=begin
Calling protected / private methods after using Module#prepend raises NoMethodError exception.

module Foo
end

class Record
prepend Foo

def protected_method
end

protected :protected_method
end
...
dimko (Dmitriy Meremyanin)
08:00 AM Feature #8128 (Rejected): New primitives for Rinda::TupleSpace
=begin
= New primitives for Rinda::TupleSpace
This issue proposes adding two new primitives to TupleSpace for atomic bulk operations:
== 1. TupleSpace#replace_all
=== What it does
Calling
replace_all(tuple, new_tuple,...
vjoel (Joel VanderWerf)
07:49 AM Revision f4274129 (git): * test/ruby/test_signal.rb (test_hup_me): skip if HUP isn't supported.
On Windows this test causes ArgumentError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
07:49 AM Revision 7f2a13ea (git): * test/rubygems/test_gem_installer.rb (test_install_extension_flat):
use ruby in build directory in case ruby is not installed.
[ruby-core:53265] [Bug #8058]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
06:38 AM Feature #8126 (Assigned): OpenSSL::SSL::SSLSocket does not define #recv and #send messages
OpenSSL::SSL::SSLSocket does not define #recv/#send methods and is not compatible with TCPSocket. postmodern (Hal Brodigan)
06:24 AM Revision 46048d6d (git): * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup): use
relative path to get rid of "too long commandline" error.
* ChangeLog: fixed wrong description.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
06:21 AM Revision 119aa9d2 (git): * test/win32ole/test_err_in_callback.rb: revert r39823 (debug code).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:48 AM Feature #7510: irb --help が古い
add patche.(incl. ja) ayumin (Ayumu AIZAWA)
02:21 AM Bug #8125 (Closed): lost-tuple bug and fix for Rinda::TupleSpaceProxy.take
=begin
Rinda::TupleSpaceProxy prevents tuple loss during #take by exposing a "port" object on the client that the remote side (the tuplespace server) pushes to, instead of relying on the method return value. Pushing to the port fails ...
vjoel (Joel VanderWerf)
02:11 AM Bug #7756: clang 4.2 sees through UNINITIALIZED_VAR macro, gives warning
A macro can be following, but it still changes syntax from current UNINITIALIZED_VAR.
#if GCC_VERSION_SINCE(4,6,0) || defined(__clang__)
# define SUPPRESS_DIAGNOSTIC(arg,rest) \
_Pragma("GCC diagnostic push") \
_Pra...
naruse (Yui NARUSE)
01:53 AM Bug #8120 (Rejected): OptionParser is not handling lists of arguments correctly
You must use commas and no whitespace when entering a list as in your second arguments to opts.on drbrain (Eric Hodel)

03/19/2013

09:02 PM Feature #8107: [patch] runtime flag to track object allocation metadata
This was my first time using the new TracePoint apis. I like the C API a lot- much more flexible than the old event hook api.
> GC related events are special. So I was thinking to separate ordinal
> ...
I agree, but I am not sure ho...
tmm1 (Aman Karmani)
08:53 PM Feature #8107: [patch] runtime flag to track object allocation metadata
(2013/03/19 19:26), tmm1 (Aman Gupta) wrote:
>> > Ah, it is my mistake. I want to say *newobj hook*, instead of Mark hook.
> Oh, OK. This makes much more sense now. I implemented these basic GC hooks in c-only tracepoint API.
>
...
ko1 (Koichi Sasada)
07:26 PM Feature #8107: [patch] runtime flag to track object allocation metadata
> Ah, it is my mistake. I want to say *newobj hook*, instead of Mark hook.
Oh, OK. This makes much more sense now. I implemented these basic GC hooks in c-only tracepoint API.
Is this what you have in mind? https://github.com/tmm1...
tmm1 (Aman Karmani)
06:23 PM Feature #8107: [patch] runtime flag to track object allocation metadata
(2013/03/19 18:02), tmm1 (Aman Gupta) wrote:
> I like your idea. A finalization task api provides an elegant solution for processing profiling data in a safe context.

Thanks.

>> * Introduce new GC related hooks (restricted ...
ko1 (Koichi Sasada)
06:02 PM Feature #8107: [patch] runtime flag to track object allocation metadata
I like your idea. A finalization task api provides an elegant solution for processing profiling data in a safe context.
> * Introduce new GC related hooks (restricted to C function)
> ...
What is the difference between Free and GC h...
tmm1 (Aman Karmani)
04:29 PM Feature #8107: [patch] runtime flag to track object allocation metadata
(2013/03/19 15:45), tmm1 (Aman Gupta) wrote:
> I agree this approach provides more flexibility. But GC hooks cannot allocate ruby objects or interact with GC, so it is tricky to use.

Yes exactly. This is why we need to be more ca...
ko1 (Koichi Sasada)
03:53 PM Feature #8107: [patch] runtime flag to track object allocation metadata
(2013/03/19 14:47), SASADA Koichi wrote:
> I believe this approach allows flexible statistics.

One flexibility example is to collect call-tree of object creation. Not
only collect method name, but collect call-tree.

"Memo...
ko1 (Koichi Sasada)
03:45 PM Feature #8107: [patch] runtime flag to track object allocation metadata
> Using this APIs, users can add your own statistics libraries.
I tried a similar approach in ruby 1.8 some while ago, emulating event hook api for GC events (newobj, free, gc start/end): https://github.com/tmm1/brew2deb/blob/master/...
tmm1 (Aman Karmani)
02:53 PM Feature #8107: [patch] runtime flag to track object allocation metadata
(2013/03/19 13:39), tmm1 (Aman Gupta) wrote:
> Maybe instead of file/line, this should be rb_iseq_t *iseq?

C methods doesn't have an iseq.

> ko1-san, do you have any opinion on this patch?

I'm considering another apprac...
ko1 (Koichi Sasada)
01:48 PM Feature #8107: [patch] runtime flag to track object allocation metadata
Here's an example using this feature in a rails app, to find files that are allocating many long lived objects:
% RUBYOPT=--debug-objects ruby -r config/environment -e'
GC.start
ObjectSpace.each_object.to_a.inject(Hash.new 0){ |...
tmm1 (Aman Karmani)
01:39 PM Feature #8107: [patch] runtime flag to track object allocation metadata
> +typedef struct rb_obj_metadata {
> ...
Maybe instead of file/line, this should be rb_iseq_t *iseq?
ko1-san, do you have any opinion on this patch?
tmm1 (Aman Karmani)
01:37 PM Feature #8107: [patch] runtime flag to track object allocation metadata
> Something like RubyVM.allocated_position(obj) => [file, line].
I'll defer API decisions to core, but a method under RubyVM or in the new objspace.so would be fine. I slightly prefer two separate methods, to avoid an array allocation...
tmm1 (Aman Karmani)
07:41 PM Revision dcbc7b01 (git): * test/rinda/test_rinda.rb: remove unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
07:23 PM Revision 49636da4 (git): * ext/bigdecimal/bigdecimal.c: fixed typo. same as r39830
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
07:19 PM Revision 6f072a36 (git): * ext/bigdecimal/bigdecimal.c: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
07:07 PM Bug #8124: gem fails to install valid gems
Please check results of "gem source" command. hsbt (Hiroshi SHIBATA)
06:02 PM Bug #8124 (Closed): gem fails to install valid gems
I'm not able to reproduce this, but many people have reported it on occasion.
$ gem install bundler
ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository
ERROR: Possible alternatives: bundler
Can anyo...
Anonymous
06:34 PM Revision 62565929 (git): * test/ruby/test_signal.rb (test_hup_me): added a few comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
06:26 PM Revision 8c52515e (git): * thread.c (ruby_kill): added a few comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
06:26 PM Revision df4fcd34 (git): * 2013-03-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:26 PM Revision c9073822 (git): * thread.c (ruby_kill): release GVL while waiting signal delivered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:06 PM Bug #7267 (Closed): Dir.glob on Mac OS X returns unexpected string encodings for unicode file names
This issue was solved with changeset r39821.
Kenny, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
compose HFS file names
* dir.c (glob_helper): compose HFS file ...
nobu (Nobuyoshi Nakada)
04:12 PM Revision 55f14b45 (git): merge revision(s) 39525: [Backport #8102]
configure.in: escape double-quotes
* configure.in (unexpand_shvar): escape double-quotes in backquotes in
double-quotes for some shells. [Bug #7959]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39825 b2dd0...
nagachika (Tomoyuki Chikanaga)
03:05 PM Bug #8100: Segfault in trunk
I'm also getting segfaults on Ruby 2.0.0. It seems to be related to threading or forking. Can't quite put my figure on it. All I can say is that I don't get in when running my web app in WEBrick on my Mac, but if running it on my CentOS ... wardrop (Tom Wardrop)
01:11 AM Bug #8100: Segfault in trunk
Forgot to add a link to the repo on github: https://github.com/zzak/segfault_spec.rb zzak (zzak _)
03:04 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
Attached is the gdb backtrace from running nagai's test script. edmccard (Ed McCardell)
11:09 AM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
That script,
----------------------------------------------------------
module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end
require 'tk'
Tk.mainloop
----------------------------------------------------------
gives the result:
ca...
edmccard (Ed McCardell)
10:53 AM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
Could you test the following script?
----------------------------------------------------------
module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end
require 'tk'
Tk.mainloop
-------------------------------------------------...
nagai (Hidetoshi Nagai)
02:53 PM Bug #8122: [patch] gc: GC.stat improvements and related cleanup
(2013/03/19 11:58), authorNari (Narihiro Nakamura) wrote:
> ko1-san, what do you think?

(1) Performance

One concern is making it fat seems slow it down.

(2) Usage

How to use new statistics?

--
// SASADA Koi...
ko1 (Koichi Sasada)
11:58 AM Bug #8122: [patch] gc: GC.stat improvements and related cleanup
ko1-san, what do you think? authorNari (Narihiro Nakamura)
11:29 AM Bug #8122 (Closed): [patch] gc: GC.stat improvements and related cleanup
I propose 4 related patches below. The end result is more information from GC.stat about mark and sweep activity.
1) Rename heap.free_num to heap.swept_num
This is a purely cosmetic change, to make the purpose of the variable mor...
tmm1 (Aman Karmani)
01:52 PM Bug #8123 (Closed): Transcoding exception when using replace along with universal_newline
The following can be reproduced on 1.9.3-p385, 1.9.3-p392, and 2.0.0-p0.
body, charset = "hey", "hey".encoding.to_s
body = body.encode('UTF-8', charset,
:invalid => :replace, :undef => :replace,
:replace => '', :univers...
k776 (Kieran Pilkington)
11:27 AM Feature #8024 (Rejected): Lazy sweep を on/off するための機能
特にみなさんから反論もなさそうなのでRejectしておきます。 authorNari (Narihiro Nakamura)
11:05 AM Feature #8121 (Closed): updated Curses::Window example
The example on http://ruby-doc.org/stdlib-2.0/libdoc/curses/rdoc/Curses/Window.html produces somewhat garbled output. Subwindow can be used to avoid that:
require 'curses'
Curses.init_screen()
my_str = "LOOK! PONIES!"
bwin = Cu...
hramrach (Michal Suchanek)
10:51 AM Revision d617690a (git): * ruby_kill (internal.h, thread.c): use rb_pid_t instead of pid_t.
this fixes the build failure of mswin introduced at r39819.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:44 AM Bug #8120 (Rejected): OptionParser is not handling lists of arguments correctly
Only the first element in a list of arguments is being processed by OptionParser. With the following program:
-----------------------------------------------------
require 'optparse'
options = {}
optparse = OptionParser.new do...
jpsember (Jeff Sember)
08:40 AM Revision e0b74f8a (git): * test/win32ole/test_err_in_callback.rb: debug print. I'll remove this later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
08:18 AM Bug #8051 (Third Party's Issue): linux_iocparm_len in io.c is ifdef __linux__, but uses glibc specifics
_IOC_SIZE is not glibc feature. It's a Linux feature. Please use Linux aware libc. kosaki (Motohiro KOSAKI)
08:09 AM Revision 10f5312d (git): convert with one converter
* string.c (rb_str_conv_enc_opts): convert with one converter, instead
of re-creating converters for each buffer expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Revision 29dc980e (git): compose HFS file names
* dir.c (glob_helper): compose HFS file names from UTF8-MAC.
[ruby-core:48745] [Bug #7267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:04 AM Revision 353cd01e (git): * dir.c (join_path): move length of path to an argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:23 AM Feature #8119 (Assigned): more efficient version of Rinda::TupleSpaceProxy.take
zzak (zzak _)
06:13 AM Feature #8119 (Closed): more efficient version of Rinda::TupleSpaceProxy.take
=begin
The purpose of Rinda::TupleSpaceProxy is to avoid losing tuples when a client disconnects during a #take call. This is implemented by sending the result value ((*twice*)): first by pushing it to a client-side array, second by r...
vjoel (Joel VanderWerf)
04:40 AM Revision 4ea96ece (git): * internal.h: added a declaration of ruby_kill().
* thread.c (ruby_kill): helper function of kill().
* signal.c (rb_f_kill): use ruby_kill() instead of kill().
* signal.c (rb_f_kill): call rb_thread_execute_interrupts()
to ensure that make SignalException if sent a signal
to myself...
kosaki (Motohiro KOSAKI)
03:17 AM Revision b945ad28 (git): * io.c (linux_iocparm_len): enable only exist _IOC_SIZE().
Because musl libc doesn't have it. [Bug #8051] [ruby-core:53229]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
01:17 AM Bug #8113 (Closed): ArgumentError: cannot interpret as DNS name: nil
This was fixed by r39725. There is a backport ticket #8054 drbrain (Eric Hodel)
12:53 AM Bug #8113: ArgumentError: cannot interpret as DNS name: nil
I cannot reproduce this with: ruby 2.1.0dev (2013-03-18 trunk 39805)
[x86_64-linux]

$irb -ropen-uri
open("http://www.ruby-lang.org/") { |f| f.each_line { |line| p line } }

Could you try it without rails?
zzak (zzak _)
01:09 AM Revision 3ee89c62 (git): * ext/objspace/objspace.c: Fix typo in doc. Patch by Sho Hashimoto.
[Bug #8116] [ruby-dev:47177]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
12:30 AM Bug #8092 (Closed): [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
This issue was solved with changeset r39812.
Aman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Improve accuracy of objspace_live_num() and
allocated/f...
authorNari (Narihiro Nakamura)
12:22 AM Bug #8092: [patch] gc: improve accuracy of objspace_live_num() and allocated/freed counters
Wow, thanks!! I'll commit it soon. authorNari (Narihiro Nakamura)
 

Also available in: Atom