Project

General

Profile

Activity

From 11/25/2012 to 12/01/2012

12/01/2012

11:24 PM Feature #7488 (Assigned): Receiving object_id in object creation probes
Hi.
I want to get a object id in object creation probes to know a creation
point of a suspect object.
I've wrote a patch for above.
https://gist.github.com/4182140
Could you check it?
# I'm sorry, I don't have a Mac so I do n...
authorNari (Narihiro Nakamura)
10:24 PM Revision f242cefc (git): * lib/rdoc/parser.rb: Parse files with a -*- rdoc -*- modeline
* test/rdoc/test_rdoc_parser.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:19 PM Feature #7487: Cutting through the issues with Refinements
This is too big, but refinements aren't? trans (Thomas Sawyer)
01:31 PM Feature #7487: Cutting through the issues with Refinements
And it's too big to next minor.
Matz.
matz (Yukihiro Matsumoto)
09:55 AM Feature #7487: Cutting through the issues with Refinements
Sorry, cuts are too late for ruby 2.0.0. We started feature freeze last month. drbrain (Eric Hodel)
09:13 AM Feature #7487: Cutting through the issues with Refinements
Here is a slightly more updated version of the RCR: https://github.com/rubyworks/cuts/blob/master/RCR.textile trans (Thomas Sawyer)
08:55 AM Feature #7487 (Rejected): Cutting through the issues with Refinements
=begin
In issue #4085, there has been a long somewhat contentious discussion about Refinements. While it seems that everyone agrees they have merit, no one seems to have a concrete idea about how they should actually work. There are all...
trans (Thomas Sawyer)
09:23 PM Feature #4085: Refinements and nested methods
On 30.11.2012 20:41, headius (Charles Nutter) wrote:
> respond_to? brings up a really good point: there's lots of methods that might need special refinement care...but I think it makes things more confusing rather than less.
>
> L...
The8472 (Aaron G)
06:46 AM Feature #4085: Refinements and nested methods
Could someone make a summary of the current proposed refinements feature in the next couple of days once the churn of corner cases slows down a bit? I have been reading through this and I have three observations:
1. It takes a long t...
enebo (Thomas Enebo)
05:16 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> I mean that all refinements appear in the method lookup 1.blah, but
> ...
This is exactly right.
>
> ...
A refines X, and no other refinements are active. super calls X#blah.
> > |module B; refin...
headius (Charles Nutter)
05:07 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> I guess your idea is similar to ko1's idea using prepend to implement refinements.
> ...
Yes, this doesn't work unfortunately. The super chain is a source of endless problems. Again, C# extension methods do...
headius (Charles Nutter)
05:02 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> Hi,
> ...
I believe you are incorrect. FooImpl1 and FooImpl2 are not simply implementation details...they're critical parts of the OO hierarchy.
Refinements are supposed to localize monkey-patching, but what you w...
headius (Charles Nutter)
04:54 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> |This is incredibly confusing to me. Why are the String refinements active within the refine Array block? That module:
> ...
I'm still very confused by this. You said this won't work:
module R
refine String do
...
headius (Charles Nutter)
04:41 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> From usability perspective, all retrospective methods e.g. respond_to?
> ...
respond_to? brings up a really good point: there's lots of methods that might need special refinement care...but I think it makes things m...
headius (Charles Nutter)
03:59 AM Feature #4085: Refinements and nested methods
> Since there still remain undefined corner case behavior in refinements, and the time is running out, I decided not to introduce full refinement for Ruby 2.0. The limited Ruby 2.0 refinement spec will be:
>
> * refinements are file...
The8472 (Aaron G)
09:15 PM Revision 2ba9cdce (git): * gc.h (SET_MACHINE_STACK_END): add volatile for preventing
harmful optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:31 PM Bug #7356: ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
wanabe さん、情報ありがとうございます。
下記のバージョンで再測定してみました。
* ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]
* ruby 2.0.0dev (2012-11-01 trunk 37411) [i686-linux] <- 2.0.0-preview1
* ruby 2.0.0dev (2012-11-29 trunk 37962) [i686-linux] <...
yanoh (Yutaka Yanoh)
08:07 PM Revision 5bdd0393 (git): * iseq.c (rb_iseq_line_trace_each): iterate `line' event only.
* test/ruby/test_iseq.rb: add a test for this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:24 PM Bug #5986 (Closed): Segmentation Fault
This issue was solved with changeset r38120.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: recurse for the argument
* io.c (rb_io_puts): recurse for ...
nobu (Nobuyoshi Nakada)
06:44 PM Bug #5986: Segmentation Fault
Since that to_ary method creates new arrays for each time, rb_exec_recursive() can't catch it. nobu (Nobuyoshi Nakada)
06:53 PM Bug #7481 (Closed): gem cleanup が正常に完了しない
Committed, thank you kou! drbrain (Eric Hodel)
02:40 PM Bug #7481 (Assigned): gem cleanup が正常に完了しない
RubyGemsのリポジトリの方に修正するコミットをしておきました。drbrainに確認してもらったらtrunkの方に入ります!(drbrainが入れてくれるはず!)
https://github.com/rubygems/rubygems/commit/24fdcd744683bcc0931e895dd4eba41c725e112f
kou (Kouhei Sutou)
01:55 PM Bug #7481: gem cleanup が正常に完了しない
あ、再現できた気がします。一番最後のcleanupでmongo-1.7.1がuninstallできないのが問題という事ですね。
% /tmp/local/bin/gem install mongo
Fetching: i18n-0.6.1.gem (100%)
Successfully installed i18n-0.6.1
Fetching: multi_json-1.4.0.gem (100%)
Successfully installed mu...
kou (Kouhei Sutou)
01:42 PM Bug #7481: gem cleanup が正常に完了しない
gem listもらえませんか!?
手元でも試してみます。
kou (Kouhei Sutou)
06:16 PM Feature #6539 (Closed): public and private for core methods
This issue was solved with changeset r38113.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_method.c: make initialize methods private
* id.c (Init_...
nobu (Nobuyoshi Nakada)
05:47 PM Revision 921385a6 (git): * vm_trace.c: add TracePoint#inspect.
* test/ruby/test_settracefunc.rb: add a test for this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:13 PM Bug #6742 (Closed): Emacs compilation-shell-minor-mode misconfiguration
This issue was solved with changeset r38107.
Jean-Christophe, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
inf-ruby.el: fix compilation-shell-minor-mode
* misc/...
nobu (Nobuyoshi Nakada)
03:26 PM Revision e78cf44a (git): * vm_trace.c (rb_tracepoint_new): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:25 PM Revision d9254071 (git): * 2012-12-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:25 PM Revision 17b19ca0 (git): * tool/gen_dummy_probes.rb: add mode name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:25 PM Revision 66fd9d44 (git): adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:22 PM Revision 82b1bfe4 (git): make-snapshot: PATH_SEPARATOR
* tool/make-snapshot (package): now PATH_SEPARATOR is needed for
id2token.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:54 PM Revision 0efa7abc (git): * test/rubygems/test_gem_specification.rb (test_emits_zulu_timestamps_properly): too old bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:54 PM Revision 3faee652 (git): time.c, vm_method.c: update rdoc
* time.c (time_{mdump,dump,mload,load): update rdoc.
* vm_method.c (obj_respond_to_missing): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:52 PM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
I guess -march=i486 enable __sync_val_compare_and_swap. kosaki (Motohiro KOSAKI)
09:11 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
@nobu Why do we have to bother old broken compiler? shyouhei (Shyouhei Urabe)
08:41 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
__sync_or_and_fetch wasn't available in Apple derivative gcc. nobu (Nobuyoshi Nakada)
07:38 AM Bug #7485 (Closed): ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
mingw32 GCC has the other atomic builtins but not this one. The attached patch checks for the GCC builtins used in ruby_atomic.h but not checked for by configure. drbrain (Eric Hodel)
01:35 PM Revision ccebd9b0 (git): vm_method.c: private
* vm_method.c (basic_obj_respond_to): call even if private.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:52 PM Feature #7427: Update Rubygems
I can build 2.0.0-preview1 on 32bit XP SP3 (right click My Computer -> properties) using the mingw-32-4.6.2 toolchain. `make test` has 0 errors, `make test-all` has 7 failures, 3 errors, 86 skips.
Unfortunately, our mingw64-32-4.7.2 t...
jonforums (Jon Forums)
10:37 AM Feature #7427: Update Rubygems
drbrain (Eric Hodel) wrote:
> set and ruby -v: http://paste.segment7.net/ace.html
Looks ok.

> ...
Bad link..should be http://paste.segment7.net/acf.html (missing 7). This in GEM_PATHS is troubling but may be a red-herring since...
jonforums (Jon Forums)
09:27 AM Feature #7427: Update Rubygems
set and ruby -v: http://paste.segment7.net/ace.html
gem env: http://paste.segment.net/acf.html
drbrain (Eric Hodel)
08:21 AM Feature #7427: Update Rubygems
Odd. On both my trunk (mingw-w64 gcc 4.7.2) and ruby_1_9_3 (mingw.org gcc 4.6.2) builds, HAVE_GCC_ATOMIC_BUILTINS is defined and all is well on 32bit Win7. I think something else is interferring.
I'm going to try to talk a friend int...
jonforums (Jon Forums)
07:39 AM Feature #7427: Update Rubygems
Filed #7485 drbrain (Eric Hodel)
07:35 AM Feature #7427: Update Rubygems
It seems that using rubyinstaller downloaded its own compiler, so I don't think it got in the way. Since configure doesn't check for these GCC builtins I will submit a patch to check for them momentarily. drbrain (Eric Hodel)
07:30 AM Feature #7427: Update Rubygems
drbrain (Eric Hodel) wrote:
> The RubyInstaller build tools are fantastic!
> ...
That is weird, mingw-w64 provides that, which is the compiler we have been using for Ruby 2.0 (GCC 4.7.2)
Perhaps your other mingw-inst-get installatio...
luislavena (Luis Lavena)
07:26 AM Feature #7427: Update Rubygems
The RubyInstaller build tools are fantastic!
Unfortunately I fail at exactly the same spot, undefined reference to __sync_val_compare_and_swap_4.
Looking closer, ruby_atomic.h checks HAVE_GCC_ATOMIC_BUILTINS and assumes the one I n...
drbrain (Eric Hodel)
07:00 AM Feature #7427: Update Rubygems
Don't worry about installing a toolchain and double check that you have a minimal PATH and clean env vars; no pointers to an existing cygwin or mingw install.
We've made the build recipes self-contained so you don't have to worry abou...
jonforums (Jon Forums)
06:36 AM Feature #7427: Update Rubygems
=begin
I have Windows XP running in VirtualBox. (I don't have a license for a newer version.) I believe I have it set up for 32bit operation, but I can't see how to check in VirtualBox or Windows.
I downloaded mingw-inst-get-201204...
drbrain (Eric Hodel)
06:07 AM Feature #7427: Update Rubygems
> r38074 was good. r38071 is fine. The message may not be completely correct, but without a windows environment it is difficult to tell. (I tried setting one up with MinGW this morning but failed.)
Eric, what windows version were you ...
jonforums (Jon Forums)
04:37 AM Feature #7427: Update Rubygems
Thank you for your assistance, usa!
I imported all these fixes and your RDoc fix.
r38074 was good. r38071 is fine. The message may not be completely correct, but without a windows environment it is difficult to tell. (I tried setti...
drbrain (Eric Hodel)
02:24 AM Feature #7427 (Closed): Update Rubygems
I hope... I've fixed... all problems on Windows... cause by rubygems.....
Eric, check these revisions and merge your tree:
r38064, r38065, r38066, r38071, r38074, r38075 and r37077
I'm uncertain about r38071 and r38074.
Eric, p...
usa (Usaku NAKAMURA)
12:19 PM Revision 095022cb (git): * test/ruby/test_backtrace.rb: add a test for
Thread::Backtrace::Location#inspect.
BTW, tests for `caller_locations' are not enough.
Any volunteers are welcome.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:09 PM Revision c906e879 (git): * vm_backtrace.c (location_inspect_m): add
Thread::Backtrace::Location#inspect.
It same as loc_obj.to_s.inspect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:24 AM Revision 01eb117b (git): io.c: recurse for the argument
* io.c (rb_io_puts): recurse for the argument itself, not converted
array elements. [ruby-core:42444] [Bug #5986]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:06 AM Revision af4ceeff (git): * misc: ignore pre-compiled emacs lisp files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:01 AM Revision 4f0c9b2b (git): marshal.c: private methods
* marshal.c (w_object, r_object0): call private marshal methods.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:52 AM Revision 4090ec10 (git): * lib/rubygems/commands/cleanup_command.rb: Fix cleanup command for
multiple gems. [ruby-trunk - #7481] by Kouhei Sutou
* test/rubygems/test_gem_commands_cleanup_command.rb: Test for above.
* lib/rubygems.rb: Autoload Gem::Source to prevent test failures
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
drbrain (Eric Hodel)
09:30 AM Revision 018d8261 (git): gc.c: suppress warnings
* gc.c (add_slot_local_freelist, slot_sweep, mark_locations_array):
suppress unused-value warnings, even with valgrind enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:17 AM Revision 9c1b3161 (git): complex.c, time.c: make marshal methods private
* complex.c (Init_Complex), time.c (Init_Time): make marshal methods
private. [Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:16 AM Revision 82ec3de0 (git): object.c: make remove_instance_variable public
* object.c (Init_Object): make remove_instance_variable public.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:16 AM Revision cf9d17a3 (git): vm_method.c: make initialize methods private
* id.c (Init_id), template/id.h.tmpl: add initialize_{copy,clone,dup}
and respond_to_missing?.
* vm_method.c (rb_method_entry_make): make above methods private.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3811...
nobu (Nobuyoshi Nakada)
09:15 AM Revision 0a8575c8 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:57 AM Feature #7486: Cutting through the issues with Refinements
Please disregard this issue. Something went wrong with the RD syntax, so I just created a new issue b/c I saw no way to edit, and thus fix this issue's text.
trans (Thomas Sawyer)
08:50 AM Feature #7486 (Rejected): Cutting through the issues with Refinements
=begin
In issue #4085, there has been a long somewhat contentious discussion about Refinements. While it seems that everyone agrees they have merit, no one seems to have a concrete idea about how they should actually work. There are all...
trans (Thomas Sawyer)
08:54 AM Bug #7197: Error: test_tls_v1_2(OpenSSL::TestSSL)
fwiw, I still get this on trunk with ubuntu 12.10
uname -a:
Linux ux31a 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:26:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
zzak (zzak _)
08:29 AM Revision 89ff44e2 (git): * test/ruby/test_thread.rb: move ConditionVariable related test
into test/thread/test_cv.rb.
* test/thread/test_cv.rb: new file.
* test/thread/test_cv.rb (test_condvar_empty_signal): new tests.
* test/thread/test_cv.rb (test_condvar_empty_broadcast): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
kosaki (Motohiro KOSAKI)
08:28 AM Revision afbbcd13 (git): * test/ruby/test_thread.rb (test_cv_wait_deadlock): enable
cv deadlock test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:28 AM Revision 1f1db611 (git): * lib/thread.rb (ConditionVariable): use hash instead of array for
@waiters.
* test/thread/test_queue.rb (test_sized_queue_and_wakeup): remove
a test because @waiters no longer have a chance to duplicated. Now it's
a hash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38109 b2dd03c8-39d4-4d8f-9...
kosaki (Motohiro KOSAKI)
08:17 AM Revision f9aef184 (git): ruby-electric.el: use kill-region
* misc/ruby-electric.el (ruby-electric-curlies): use kill-region
instead of interactive command delete-backward-char.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:13 AM Revision 5852d901 (git): inf-ruby.el: fix compilation-shell-minor-mode
* misc/inf-ruby.el (inferior-ruby-mode): fix the
compilation-shell-minor-mode configuration. a patch by
j2petkov (Jean-Christophe Petkovich) in [ruby-core:46518].
[Bug #6742]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3810...
nobu (Nobuyoshi Nakada)
08:08 AM Revision 214938f1 (git): * ChangeLog: fix a typo for r38075.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
06:38 AM Feature #7426 (Closed): Update Rdoc
drbrain (Eric Hodel)
06:05 AM Revision 0f37c951 (git): dir.c: use NAMLEN
* dir.c (glob_helper): use NAMLEN() to tell the length of d_name
instead of strlen(), which can access beyond the boundary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:48 AM Revision 6e46c048 (git): * lib/rubygems/specification.rb: Don't add default gems to $LOAD_PATH
as they are already there.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
04:41 AM Feature #4276: Allow use of quotes in symbol syntactic sugar for hashes
Sorry, this feature is too late for 2.0.0 drbrain (Eric Hodel)
02:31 AM Feature #4276: Allow use of quotes in symbol syntactic sugar for hashes
This would improve a lot of my code that's punctuated with `{ foo: bar, :'hoge' => piyo }`. Switching syntax is a mental and visual interruption.
I hope Ruby 2 supports this quoted-symbol syntax from the first day it's released, so ev...
bitsweat (Jeremy Daer)
04:23 AM Feature #6762: Control interrupt timing
OK. I see the logic in using the term "interrupt" if you are actually
trying to unify exceptions from other threads with handling of OS
signals. However, both of these are generally thought of as being
asynchronous events.

...
brent (Brent Roman)
03:58 AM Revision f593911d (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:57 AM Revision 946ab45d (git): markdown.rb: \r
* lib/rdoc/markdown.rb (RDoc::Markdown): use \r instead of raw control
code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:35 AM Revision bfd5921e (git): * re-added r38053 that is reverted by r38061. Problems by r38053
are resolved by r38096. r38096 removed GEM_SKIP configuration.
The below is ChangeLog of r38053:
* defs/default_gems: Add base directory column.
* tool/rbinstall.rb:
- Install .gemspecs of default gem to
#{GEM_HOME}/specificat...
Sutou Kouhei
03:30 AM Revision 3f50943b (git): test_gem_specification.rb: suppress warnings
* test/rubygems/test_gem_specification.rb (with_syck): we all know
that syck has been removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:39 AM Bug #7484 (Closed): Fiddle::Importer incompatibility with DL::Importer
As described in r38054, Fiddle::Importer is not compatible with DL::Importer about :stdcall.
I hope attached patch fixed the issue.
ngoto (Naohisa Goto)
02:28 AM Bug #7482: test_system_redirect_win(TestSystem) failure on Windows 8
Ah, I should check these Win8 tickets, but I have no time before the release
limit of preview 2.
Committers, please check the tickets and fix them (if you can) before the release...
usa (Usaku NAKAMURA)
02:13 AM Revision afb02bbe (git): * variable.c (rb_class_path_no_cache): add a function to get the class
path without caching the computed path. Some classes are frozen, and
will raise an exception without this.
* probes.d (cmethod-entry, cmethod-return): separate cmethods from
regular methods to match set trace func.
* probes_helper....
tenderlovemaking (Aaron Patterson)
02:02 AM Feature #6670: str.chars.last should be possible
duerst (Martin Dürst) wrote:
> For with_index in particular, wouldn't it make sense to either add it to Enumerable or deprecate it on Enumerator? That would eliminate one more difference.
If we add Enumerable#with_index, we could wri...
yhara (Yutaka HARA)
01:28 AM Feature #6670: str.chars.last should be possible
I often use StringIO as an IO substitute for tests. I would prefer matching behavior.
You can get the last line by stringio.string.lines.last. Is this acceptable?
drbrain (Eric Hodel)
01:57 AM Bug #7440 (Rejected): IO#lines etc. should return Array
This issue is now included in #6670. yhara (Yutaka HARA)
12:57 AM Bug #7483 (Closed): Fiddle::Function::STDCALL is never defined even on WIN32
This issue was solved with changeset r38073.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/fiddle/extconf.rb, ext/fiddle/function.c
(Fiddle::Func...
ngoto (Naohisa Goto)
12:44 AM Bug #7483 (Closed): Fiddle::Function::STDCALL is never defined even on WIN32
In ext/fiddle/function.c, Fiddle::Function::STDCALL is defined only when "#ifdef FFI_STDCALL" is true. However, in ffi.h, FFI_STDCALL is declared as an enumerated type, not a macro, and it is always false even on x86 WIN32. According to ... ngoto (Naohisa Goto)
12:49 AM Revision d3c6187a (git): * test/rdoc/test_rdoc_options.rb: Windows drive letters are
case-insensitive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:42 AM Revision 5db8f999 (git): * lib/rubygems.rb: Search for gem deps file up the directory tree.
* test/rubygems/test_gem.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:34 AM Revision 18a37744 (git): * test/runner.rb: Set GEM_HOME, GEM_PATH and GEM_SKIP to empty set.
With default_gem support in RubyGems GEM_SKIP prevents loading of
built-in gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)

11/30/2012

11:43 PM Feature #1586: Including a module already present in ancestors should not be ignored
As Clay said, I think the example I gave previously is not the way to go.
The important aspect is the ability to include a module at different levels in the hierarchy.
If C < B < A, we should be able to include a module M for each ...
marcandre (Marc-Andre Lafortune)
07:04 PM Feature #1586: Including a module already present in ancestors should not be ignored
This would cause compatibility issue, in some cases, when a module is
included twice but it expects it never get called twice or more by
super. Or, if a method of the module does not call super, the super
calls stops unexpectedly.
...
nobu (Nobuyoshi Nakada)
10:58 PM Bug #7482 (Closed): test_system_redirect_win(TestSystem) failure on Windows 8
I found the following test failure on Windows 8.
test_system_redirect_win(TestSystem) [c:/work/snapshot-mg64/test/ruby/test_system.rb:123]:
[ruby-talk:258939].
<false> expected but was
<true>.
I think the test_system_redirect_wi...
phasis68 (Heesob Park)
10:52 PM Bug #4911 (Closed): timer_thread_function() が thead unsafe
This issue was solved with changeset r38063.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_core.h (rb_vm_struct): add thread_destruct_lock field.
*...
kosaki (Motohiro KOSAKI)
10:51 PM Bug #7475: Unexpected behavior of Module#append_features on singleton class
Another quick set of observations from this morning:
class Baz
class << self
Const = 'Const'
@@foo = 'foo'
end
end
Baz.class_variables.inspect # => [:@@foo]
Baz.singleton_class.clas...
ernie (Ernie Miller)
10:56 AM Bug #7475 (Closed): Unexpected behavior of Module#append_features on singleton class
=begin
A more involved explanation is available at ((<URL:http://erniemiller.org/2012/11/29/ruby-tidbit-include-vs-extend-with-module-class-variables/>))
In short, the handling of class variables (and constants) when a module is exte...
ernie (Ernie Miller)
10:29 PM Revision 7c407e2a (git): * compile.c (ADD_CATCH_ENTRY): add a cast to fix SEGV with x64 mingw
on Windows 8. Without cast, 0 might be non zero value at higher bits
in rb_ary_new3().
[ruby-core:50258] [Bug #7456]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
09:46 PM Bug #7481 (Closed): gem cleanup が正常に完了しない
gem cleanup を実行すると先頭の gem のみ cleanup に成功し、以降の gem の cleanup に失敗してしまいます。
% yes | gem cleanup
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0.8.1)
WARN: Clearing out unresolved specs.
Please report a...
hsbt (Hiroshi SHIBATA)
08:53 PM Feature #4085: Refinements and nested methods
Em 29-11-2012 23:42, Yukihiro Matsumoto escreveu:
> | class C
> | def foo; p :C; end
> | end
> | module M1
> | refine String do def foo; p :M1; super; end; end
> | end
> | module M2
> | include M1
> | ...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:41 PM Feature #4085: Refinements and nested methods
> |* Performance expectations. Is performance being completely ignored here, or shall we set some goals for the implementation? I appreciate your desire to make Ruby more expressive, but that doesn't pay the bills at the end of the day ... jonforums (Jon Forums)
12:23 PM Feature #4085: Refinements and nested methods
Your mail seems to be failed to synced into bugs.ruby-lang.org, so I
reply by e-mail.

2012/11/30 Yukihiro Matsumoto <matz@ruby.or.jp>:
> |So, the current behavior of main.using need not be changed, right?
> |Technically, the curre...
shugo (Shugo Maeda)
11:23 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50357] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 11:02:10 +0900, "trans (Thomas Sawyer)" <transfire@gmail.com> writes:

|> I was thinking of M2->M1->C, but M2->...
Anonymous
11:23 AM Feature #4085: Refinements and nested methods
Hi,

In message "Re: [ruby-core:50355] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 10:43:04 +0900, "trans (Thomas Sawyer)" <transfire@gmail.com> writes:

|Then I'd say they refined the ...
Anonymous
11:04 AM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> By stacking, I assume you mean something like this:
> ...
I guess your idea is similar to ko1's idea using prepend to implement refinements.
What happens when refinements are used in a different order...
shugo (Shugo Maeda)
10:58 AM Feature #4085: Refinements and nested methods
> |What happens if the same class is refined both in a module and another module included into that module?
> ...
This can't be b/c then you can't refine a previous refinement. Thus it breaks modularity (black box) principle. E.g. if I ...
trans (Thomas Sawyer)
10:42 AM Feature #4085: Refinements and nested methods
=begin
@matz
> It makes refinement decoration quite unpredictable. For example,
>
> module M
> refine Integer do
> def /(n); self / n.to_f; end
> end
> end
> using M
> 1 / 2 # => you expect 0.5
>
> Bu...
trans (Thomas Sawyer)
10:23 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50338] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 04:05:15 +0900, "headius (Charles Nutter)" <headius@headius.com> writes:

|> Any more questions?
|
|Yes, lots! ...
Anonymous
10:00 AM Feature #4085: Refinements and nested methods
Thanks for your answering my questions. I understand your intention.
matz wrote:
> In message "Re: [ruby-core:50299] [ruby-trunk - Feature #4085] Refinements and nested methods"
> ...
So, the current behavior of main.using need not...
shugo (Shugo Maeda)
06:23 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50338] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 04:05:15 +0900, "headius (Charles Nutter)" <headius@headius.com> writes:

|I assume this is so that refinement ...
Anonymous
04:35 AM Feature #4085: Refinements and nested methods
As headius wants substantive questions, here are some
* What is the plan to make sure, that this feature is compatible to future versions? You introduce a behavior now which depends on 'using' being at the beginning of every file, whi...
Gibheer (Stefan Radomski)
04:05 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> In message "Re: [ruby-core:50299] [ruby-trunk - Feature #4085] Refinements and nested methods"
> ...
I assume this is so that refinement methods will see each other, yes?
module X
refine String do
def foo;...
headius (Charles Nutter)
01:53 AM Feature #4085: Refinements and nested methods
On Nov 29, 2012, at 4:56, "steveklabnik (Steve Klabnik)" <steve@steveklabnik.com> wrote:

> Wasn't a 'feature freeze' declared on October 24th? Why are major additions to the language being modified post-freeze, so close to the deadli...
drbrain (Eric Hodel)
01:09 AM Feature #4085: Refinements and nested methods
@rosenfeld -- yeah, that sounds like it would work fine, as long as there wasn't a perf impact just by having the code there in MRI w/ it turned off. myronmarston (Myron Marston)
01:05 AM Feature #4085: Refinements and nested methods
Myron, congrats for the lead maintainer position in RSpec. You're really doing a great job there.
With regards to your suggestion, I think I've read another comment suggesting something like you want but most probably more doable for ...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:42 AM Feature #4085: Refinements and nested methods
=begin
@headius Your idea of having refinements in class hierarchy is very interesting. It is remarkably similar to Cuts. If you are not familiar with cuts see http://rubyworks.github.com/cuts/rcr.html (yea an RCR, remember those!). In f...
trans (Thomas Sawyer)
12:41 AM Feature #4085: Refinements and nested methods
I find refinements to be a _very_ interesting idea, but, as with many others, it concerns me that there aren't rubyspecs behind it, there's still undefined edge cases, the main language maintainers are still discussing how it should work... myronmarston (Myron Marston)
08:13 PM Revision 1b6c1cb6 (git): * Fixed commit reference for r38083
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
07:59 PM Bug #7443 (Closed): Method redefinition from Fiddle is causing a test failure (MinGW)
This issue was solved with changeset r38055.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ChangeLog: mention to ML and ticket: [ruby-core:50194] [Bug #7443]
usa (Usaku NAKAMURA)
07:59 PM Feature #5174 (Feedback): Export ruby_init_prelude()
I don't think exporting it is a nice idea.
What's wrong with ruby_options(0, 0)?
nobu (Nobuyoshi Nakada)
07:30 PM Feature #7427: Update Rubygems
drbrain, good work!
The current trunk seems to work on many platforms [1], but unfortunately, usa told me that it does not work on windows [2].
[1] http://rubyci.org/
[2] http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/317...
mame (Yusuke Endoh)
07:23 PM Feature #6762: Control interrupt timing
(2012/11/30 18:59), Brent Roman wrote:
> Koichi,
>
> Sorry about misspelling your name in my previous post. :-(

Kosaki-san is also a member of this discussion.

> In reference to:
> ----------------
> * thraed.c: a...
ko1 (Koichi Sasada)
07:23 PM Feature #6762: Control interrupt timing
How about:

Thread.allow_exception(RuntimeError => :on_blocking){
while true
...

- brent

--
Posted via http://www.ruby-forum.com/.
brent (Brent Roman)
07:23 PM Feature #6762: Control interrupt timing
Koichi,

Sorry about misspelling your name in my previous post. :-(

In reference to:
----------------
* thraed.c: add Thread.async_interrupted?.
This method check any defered async interrupts.

Ah, I want to say...
brent (Brent Roman)
06:31 PM Feature #6762 (Feedback): Control interrupt timing
I renamed it as [ruby-core:50147] says.
and I also remove/add method:
* thread.c: remove Thread.check_interrupt.
This method is difficult to understand by name.
* thraed.c: add Thread.async_interrupted?.
This method ch...
ko1 (Koichi Sasada)
06:29 PM Feature #6762: Control interrupt timing
I like this proposal.
It looks very similar to one I made five years ago on this thread:

www.ruby-forum.com/topic/135822

The key, of course, is to associate a (hidden) queue with each thread
for incoming exceptions from ot...
brent (Brent Roman)
06:28 PM Feature #6762 (Closed): Control interrupt timing
This issue was solved with changeset r38046.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c: rename Thread.control_interrupt
to Thread.async_i...
ko1 (Koichi Sasada)
05:53 PM Feature #6762: Control interrupt timing
(2012/11/26 13:53), kosaki (Motohiro KOSAKI) wrote:
> Ko1 suggested me defer_async_interrupt or async_interrupt_timing(...){...}.
> Both looks acceptable to me.
>
> async_interrupt_timing(X => :immediate)
> async_interrupt_t...
ko1 (Koichi Sasada)
07:10 PM Revision b1920c03 (git): * parse.y (parser.utf8): remove unused property.
* parse.y (UTF8_ENC): remove unused macro.
* parse.y (parser_tokadd_utf8): use rb_utf8_encoding() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:10 PM Revision b1b7c389 (git): suppress warnings: uninitialized variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:10 PM Revision 9207474f (git): suppress warnings: unused variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:10 PM Revision 8539a917 (git): Use RUBYOPT to overwrite original RUBYOPT ENV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:05 PM Bug #7480 (Closed): tracepoint deadlock on exception without :raise
=begin
to reproduce
TracePoint.new { |tp| p [tp.lineno, tp.event, tp.raised_exception] }.enable { 0 / 0 }
=end
zzak (zzak _)
06:55 PM Revision c62ec3ae (git): * lib/sync.rb (Sync_m#sync_synchronize): add Thread.async_interrupt_timing
for protecting from async interrupt.
* lib/sync.rb (Sync_m#sync_lock): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:55 PM Revision 028ca79f (git): * lib/thread.rb (ConditionVariable#broadcast): s/RuntimeError/StandardError/
* lib/thread.rb (ConditionVariable#signal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:55 PM Revision 3357d88a (git): * lib/thread.rb (SizedQueue#pop): rewrite by using ConditionVariable.
* lib/thread.rb (SizedQueue#push): ditto.
* lib/thread.rb (SizedQueue#max): ditto.
* lib/thread.rb (Queue#pop): ditto.
* lib/thread.rb (Queue#push): ditto.
* lib/thread.rb (SizedQueue#num_waiting): adopt the above changes.
* lib/thread....
kosaki (Motohiro KOSAKI)
06:47 PM Revision e742a446 (git): * thread.c (Thread.async_interrupt_timing): fix RDoc.
:never is not used any more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:44 PM Bug #7479 (Third Party's Issue): undefined symbol: rb_thread_blocking_region_begin
on linux
[root@localhost ~]# ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
[root@localhost ~]# ruby binlog.rb
ruby: symbol lookup error: /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ruby-binlog-0.1.8/lib/binlog.so...
kevinbin (hong bin)
06:28 PM Bug #4285 (Closed): Ruby don't have asynchrounous exception safe syntax and It should have.
This issue was solved with changeset r38046.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c: rename Thread.control_interrupt
to Thread.async_i...
ko1 (Koichi Sasada)
06:25 PM Feature #6895 (Closed): TracePoint API
This issue was solved with changeset r38045.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_trace.c: Documentation for TracePoint API
[ruby-core:472...
zzak (zzak _)
01:22 AM Feature #6895 (Assigned): TracePoint API
I didn't receive your comment from ruby-core.
trans (Thomas Sawyer) wrote:
> > I can't get points.
> ...
tp.event has always symbol or raise an exception.
> > caller or caller_locations is not enough?
> ...
I understand your poi...
ko1 (Koichi Sasada)
06:08 PM Feature #6670: str.chars.last should be possible
knu (Akinori MUSHA) wrote:
> Here's a patch to deprecate #lines, #bytes, #chars and #codepoints of IO-likes.
Maybe we can change StringIO#lines to return Array now because it does not have problems like IO and ARGF.
(problems = retu...
yhara (Yutaka HARA)
06:02 PM Revision 5697f69b (git): * iseq.c: add RubyVM::InstructionSequence (ISeq) inspection methods.
* ISeq#path returns path of this ISeq written.
* ISeq#absolute_path returns absolute path.
* ISeq#label returns label (method name and so on).
* ISeq#base_label returns base label (see Thread::Backtrace::Location).
* ISeq#first_lineno re...
ko1 (Koichi Sasada)
05:59 PM Revision 57a83c4c (git): * include/ruby/ruby.h (rb_event_flag_t): Maintain integer precision
for clang error (VALUE aka unsigned long vs unsigned int)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:54 PM Revision 646eeab1 (git): * test/rubygems/test_gem_dependency_installer.rb: Use Gem.read_binary
instead of File.binread for ruby 1.8 compatibility in the rubygems
source repository. Updates r38071
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:43 PM Bug #7342 (Closed): String#<=> checks for a #to_str method on other but never uses it?
This issue was solved with changeset r38044.
Joshua, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
string.c: compare with to_str
* string.c (rb_str_cmp_m): try t...
nobu (Nobuyoshi Nakada)
05:43 PM Bug #7478 (Rejected): Do not include vararg.h - always include stdarg.h
Cause : https://gist.github.com/4172330
It seems that stdarg.h is included in many separate C files unconditionally:
array.c, class.c, error.c, sprintf.c, include/ruby/ruby.h, include/ruby/encoding.h - all includes stdarg.h without c...
funny_falcon (Yura Sokolov)
05:39 PM Revision a113ab64 (git): * thread.c (rb_threadptr_interrupt_mask, async_interrupt_timing_func):
merge into them into rb_thread_s_async_interrupt_timing.
* thread.c (rb_thread_s_async_interrupt_timing): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:39 PM Revision 279cd29b (git): * thread.c (rb_threadptr_interrupt_mask): add argument check.
* thread.c (async_interrupt_timing_arg_check_i): helper function
for the above.
* test/ruby/test_thread.rb (test_async_interrupt_timing_invalid_argument):
test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38081 b...
kosaki (Motohiro KOSAKI)
05:39 PM Revision 6ca32179 (git): * lib/thread.rb (ConditionVariable#broadcast): protect from
async interrupt by using Thread.async_interrupt_timing.
* lib/thread.rb (ConditionVariable#signal): ditto.
* lib/thread.rb (ConditionVariable#wait): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38080 b2dd03c8-39d4-4d8f-98ff-...
kosaki (Motohiro KOSAKI)
05:14 PM Revision a1d837cc (git): * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): raise if assert_in_out_err misused.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:14 PM Revision 8f9b451d (git): assert_in_out_err with block ignores test_stdout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:11 PM Revision ad01ea42 (git): * test/rdoc/test_rdoc_rubygems_hook.rb
(TestRDocRubygemsHook#test_setup_unwritable): 1. check the existance
of the file(directory) before touch it. 2. remove test
file(directory) after the test. see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
U.Nakamura
05:00 PM Revision 12f2f737 (git): [EXPERIMENTAL]
* iseq.c: add following two methods.
* ISeq#line_trace_all returns all line traces (line numbers)
* ISeq#line_trace_specify(pos, set) set `pos'th line event to
specified_line event (if set is true).
These features are introduced for ...
ko1 (Koichi Sasada)
04:51 PM Revision 60317fa8 (git): * test/rubygems/test_gem_dependency_installler.rb: gems are of course
binary files, so use a binary reading method when reading it.
see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:27 PM Revision 952beb5f (git): * lib/rubygems/command.rb (Gem::Command#get_all_gem_names_and_versions):
who assumes that the pathname of a gem never contains ':' ?
yes, on Unixen pathnames can contain ':', and on Windows they almost
certainly contain ':'. see [ruby-core:50388].
* lib/rubygems/requirement.rb (Gem::Requirement::PATTERN...
U.Nakamura
03:57 PM Revision 4bb1bfa0 (git): * ext/fiddle/extconf.rb, ext/fiddle/function.c
(Fiddle::Function::STDCALL): FFI_STDCALL is not a macro, but an enumeration. [ruby-core:50398] [Bug #7483]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
03:25 PM Feature #7476 (Closed): missing "IP_TRANSPARENT" constant for IP sockets.
There is a missing constant for IP_TRANSPARENT on linux.
to set the TPROXY on a socket I use:
s.setsockopt(Socket::SOL_IP, 19, 1)
The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.
elico (Eliezer Croitoru)
03:16 PM Revision 7c1a19b6 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:11 PM Revision a847bedb (git): * test/rubygems/test_gem_installer.rb
(TestGemInstaller#test_check_executable_overwrite_other_non_gem):
on Windows, rubygems always generate a wrapper .bat file when
installing a file into bin, so testing no-overwrite a wrapper file
and a non-wrapper file is nonsence. ...
U.Nakamura
03:07 PM Revision b688029a (git): * ChangeLog: remove duplicated lines for r38042-r38044.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:05 PM Revision ed13a84a (git): * 2012-12-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 PM Revision b20e7eb9 (git): * ChangeLog: fix a typo for r38064.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:05 PM Revision f125ec9a (git): * ChangeLog: fix a typo for r38063.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:43 PM Revision ec7d935c (git): * test/rubygems/test_gem_installer.rb
(TestGemInstaller#test_check_executable_overwrite_default_bin_dir):
if the executable to be overwritten was generated by rubygems, the
error messsage differs from the only copied one's.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
U.Nakamura
02:29 PM Revision 053ca25f (git): * test/rubygems/test_gem_ext_ext_conf_builder.rb
(TestGemExtExtConfBuilder::test_class_make): reading with binary mode
of course introduce \r on Windows. see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:15 PM Revision bcef7159 (git): * lib/rubygems/specification.rb
(Gem::Specification.validate_permissions): don't check executablity
of the source on Windows. they will be wrapped to .bat files when
installing. see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38064 b2dd...
U.Nakamura
02:06 PM Bug #7465 (Closed): Rdoc for CGI (html generation example)
This issue was solved with changeset r38033.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi.rb: CGI example for HTML generation
Patch by Marcus...
zzak (zzak _)
01:53 PM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/30 10:25), sam.saffron (Sam Saffron) wrote:
> @ko1 will try to write some tests next week.

Thank you so much.

> On first go I got a segfault:

Cool!
Reproduce code?

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
10:23 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
@ko1 will try to write some tests next week.
On first go I got a segfault:
(pry):1: [BUG] backtrace_collect: unreachable
ruby 2.0.0dev (2012-11-30) [i686-linux]
-- Control frame information -----------------------------------...
sam.saffron (Sam Saffron)
01:53 PM Bug #7326 (Closed): Time.c doc improvements
This issue was solved with changeset r38032.
Bernd, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* time.c: Documentation improvements, grammar and formatting
P...
zzak (zzak _)
01:52 PM Revision 15b25acd (git): * vm_core.h (rb_vm_struct): add thread_destruct_lock field.
* thread.c (Init_Thread): ditto.
* thread.c (rb_vm_gvl_destroy): ditto.
* thread.c (thread_start_func_2): make sure vm->running_thread
don't point to dead thread.
* thread.c (timer_thread_function): close a race against thead
destru...
kosaki (Motohiro KOSAKI)
01:52 PM Revision 2e72d1c3 (git): revert r35486 (add rb_thread_t#yeiling field). because it doesn't help
to close a race.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
01:02 PM Bug #7471 (Open): character class has duplicated range warning for "" =~ /[\w\W]/
While I worked around this, the warning itself looks like a bug in our regexp engine (Onigmo?). knu (Akinori MUSHA)
01:01 PM Bug #7471 (Closed): character class has duplicated range warning for "" =~ /[\w\W]/
This issue was solved with changeset r38028.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Stop using a regexp that causes a false warning.
* lib/abbrev.rb...
knu (Akinori MUSHA)
08:06 AM Bug #7471 (Closed): character class has duplicated range warning for "" =~ /[\w\W]/
=begin
The warning seems bogus, \w and \W do not overlap.
$ cat test.rb
$-w = true
""=~/[\w\W]/
$ make runruby
/Users/drbrain/Work/svn/ruby/trunk/test.rb:3: warning: character class has duplicated range: /[\w\W]/
...
drbrain (Eric Hodel)
01:00 PM Revision 5d33dad1 (git): * revert r38053 because it causes too many test failures.
if you've already installed r38053 or later, remove the installed
lib/ruby/gems/2.0.0 directory and reinstall this revision or later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:50 PM Revision 759619ca (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:27 PM Feature #7472: Add a mechanism to remove objects from the GC cycle
@charlie looking at the code and the heap design I think there is very little cheating we could do here.
I vote to close for now.
Perhaps some mechanism for optimising the freelist could give the GC a boost:
Something like reo...
sam.saffron (Sam Saffron)
11:48 AM Feature #7472: Add a mechanism to remove objects from the GC cycle
What happens if an object in the 'permanent' objectspace references an object in the ephemeral objectspace?
Now this essentially becomes a generational GC and brings along all the implementation problems of one.
Anonymous
10:57 AM Feature #7472: Add a mechanism to remove objects from the GC cycle
> if you mean "move to a different memory address" this will cause crashes.
no, not at all, leave it exactly where it is, just have objectspace partitioned in 2. the refs that are "skipped" don't get scanned in the lazy sweep.
sam.saffron (Sam Saffron)
09:59 AM Feature #7472: Add a mechanism to remove objects from the GC cycle
sam.saffron (Sam Saffron) wrote:
> How about we add.
> ...
What do you mean by "copy"?
If you mean "move to a different memory address" this will cause crashes. If a C extension has a reference to the object and you move it you will...
drbrain (Eric Hodel)
08:47 AM Feature #7472 (Rejected): Add a mechanism to remove objects from the GC cycle
For typical rails apps there is a huge largely static object graph in memory. Requests come in, some objects are added, and the GC runs.
The blocking nature of the GC introduces a jitter that stops all execution.
In our typicalis...
sam.saffron (Sam Saffron)
12:09 PM Revision d07346a1 (git): * lib/test/unit/parallel.rb (Test::Unit::Worker.run): wrap LoadError
because it's Gem::LoadError sometimes. see [Bug #6882]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:54 AM Bug #7469 (Assigned): WEBrick "Could not determine content-length of response body. Set content-length of the response..." even when content-length is set
=begin
I cannot reproduce it with the example code given or by removing (({response.body = ''})), (({response.content_length = 0})) or both lines with latest trunk.
=end
drbrain (Eric Hodel)
10:41 AM Bug #7469: WEBrick "Could not determine content-length of response body. Set content-length of the response..." even when content-length is set
We were seeing this as well when using webrick with Rails. However, putting
gem 'webrick', '= 1.3.1'
in the Gemfile seemed to fix it, which is strange, since the standard library one is also v1.3.1. Is it possible that the gem is...
steveklabnik (Steve Klabnik)
05:01 AM Bug #7469 (Closed): WEBrick "Could not determine content-length of response body. Set content-length of the response..." even when content-length is set
Minimal demonstration code:
########
require 'webrick'
class BugDemonstrator < WEBrick::HTTPServlet::AbstractServlet
def do_GET(request, response)
response.body = ''
response.status = 204
response.content_length ...
meta (mathew murphy)
11:50 AM Revision bb4410a2 (git): * thread.c: TracePoint#self returns invoking/exitting thread object
at thread_begin/end event.
* test/ruby/test_settracefunc.rb: fix test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
11:22 AM Revision d0a4fecf (git): * test/ruby/memory_status.rb (Memory::Win32): sorry, ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:15 AM Revision 88201504 (git): * test/ruby/memory_status.rb (Memory::Win32): rescue non libffi user, such as ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
10:59 AM Revision 7ca1927a (git): * ChangeLog: mention to ML and ticket: [ruby-core:50194] [Bug #7443]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
10:57 AM Revision 77df72a6 (git): * test/ruby/memory_status.rb (Memory::Win32): use fiddle instead of dl,
but I doubt fiddle is not compatible with dl. (if you are interested,
see the diff.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:45 AM Revision f807e1b8 (git): * defs/default_gems: Add base directory column.
* tool/rbinstall.rb:
- Install .gemspecs of default gem to
#{GEM_HOME}/specifications/default/.
- Update files parameter of .gemspecs by relative path from
library directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
Sutou Kouhei
10:29 AM Revision 57540a49 (git): * vm_trace.c:
tracepoint_attr_return_value (TracePoint#return_value):
include `:b_return` for method doc
tracepoint_enable_m, tracepoint_disable_m (#enable/#disable):
don't have block argument, document block scope
git-svn-id: svn+ssh://ci...
zzak (zzak _)
10:28 AM Bug #7474 (Rejected): I am getting undefined symbol: rb_enable_interrupt when running event machine
I would like to cross report
https://github.com/eventmachine/eventmachine/issues/389
Clearly this breakage could be "on purpose" not sure who should be fixing it.
sam.saffron (Sam Saffron)
10:08 AM Revision 5a82fca5 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
09:55 AM Revision 6df1b3a9 (git): * vm_trace.c (tracepoint_disable_m, tracepoint_enable_m):
fix block parameter.
No arugment should be given to a block which is passed
to TracePoint#enable (and disable).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:50 AM Revision fcd4ecd5 (git): vm_backtrace.c: suppress warning
* vm_backtrace.c (rb_debug_inspector_open): suppress
uninitialized-variable warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:50 AM Revision ed0aa14f (git): zlib.c: suppress warning
* ext/zlib/zlib.c (zstream_run): suppress unused-but-set-variable
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:50 AM Revision 578deb65 (git): zlib.c: suppress warning
* ext/zlib/zlib.c (zlib_mem_alloc): suppress unused-value warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:28 AM Revision 719e0cd5 (git): * thread.c: rename Thread.control_interrupt
to Thread.async_interrupt_timing.
The option name `:never' is also changed to `:defer'.
[ruby-core:50375] [ruby-trunk - Feature #6762]
* thread.c: remove Thread.check_interrupt.
This method is difficult to understand by name.
* th...
ko1 (Koichi Sasada)
09:25 AM Revision f2fee844 (git): * vm_trace.c: Documentation for TracePoint API
[ruby-core:47243] [Feature #6895]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
09:02 AM Feature #7473 (Closed): new events for TracePoint thread_begin/end, b_call/b_end
On the trunk, there are new 4 events for TracePoint.
* vm_trace.c: add events
* :thread_begin - hook at thread beggining.
* :thead_end - hook at thread ending.
* :b_call - hook at block enter.
* :b_return - hook at bl...
ko1 (Koichi Sasada)
08:43 AM Revision 020cc0ad (git): string.c: compare with to_str
* string.c (rb_str_cmp_m): try to compare with to_str result if
possible before calling <=> method. [ruby-core:49279] [Bug #7342]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:43 AM Revision c08785a3 (git): string.c: use rb_check_funcall
* string.c (rb_str_cmp_m): use rb_check_funcall instead of respond_to
and call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:43 AM Revision 1dbc720c (git): string.c: always fixed value
* string.c (rb_str_cmp_m): return fixed value, one of -1,0,+1 always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:19 AM Revision 981f9c52 (git): vm_dump.c: no methods in segv handler
* vm_dump.c (rb_vm_bugreport): get rid of calling methods in sigsegv
handler. based on a patch by charliesome (Charlie Somerville)
[ruby-core:49573] [Bug #7402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38041 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
07:06 AM Revision b5d8a0b3 (git): * NEWS: Added RubyGems 2.0.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
06:24 AM Revision 8e2839ba (git): parse.y: false usage of local variable
* parse.y (parser_yylex): fix false usage of local variable, it cannot
appear in fname state [ruby-core:49659] [Bug #7408]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 AM Revision 69690434 (git): * lib/rubygems/package.rb: Load YAML for building gems.
* test/rubygems/test_gem_commands_contents_command.rb: Sort expected
output of default gem contents. Re-fixes r38004 and r38005.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
06:15 AM Revision 0d672c18 (git): * vm_trace.c (set_trace_func): Formatting of params and events
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:45 AM Revision 421d4f62 (git): * lib/net/http.rb: Net::HTTP::Patch to list of HTTP Request Classes
Patch by Ryunosuke SATO [Fixes #217 on github]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:42 AM Revision 25b0a58b (git): parse.y: LVAR_USED
* parse.y (LVAR_USED): use MSB of ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:41 AM Revision 7e42e55e (git): parse.y: IS_lex_state_for
* parse.y (IS_lex_state_for): new macro similar to IS_lex_state() but
for arbitrary variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:06 AM Revision 90d43225 (git): * lib/cgi.rb: CGI example for HTML generation
Patch by Marcus Stollsteimer [ruby-core:50303] [Bug #7465]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:53 AM Revision 088b04e8 (git): * time.c: Documentation improvements, grammar and formatting
Patch by Bernd Homuth [ruby-core:49203] [Bug #7326]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:48 AM Revision 24c0d076 (git): * lib/rdoc.rb: Set version to 4.0.0.preview2
* lib/rubygems.rb: Set version to 2.0.0.preview2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
04:32 AM Revision 368d99b3 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:30 AM Revision 42968fe6 (git): * lib/rubygems/commands/setup_command.rb: Remove old files on install
of RubyGems. (not by rbinstall.rb).
* test/rubygems/test_gem_commands_setup_command.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
04:01 AM Revision 3c4633a3 (git): Stop using a regexp that causes a false warning.
* lib/abbrev.rb (Abbrev#abbrev): Stop using a regexp that causes a
false warning. [Bug #7471]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
03:56 AM Revision 4078d42b (git): Fix a line matching problem in Abbrev.abbrev(words, "prefix").
* lib/abbrev.rb (Abbrev#abbrev): A fixed string prefix pattern
should only match the beginning of each word, not the beginning
of every line in it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38027 b2dd03c8-39d4-4d8f-98ff-823f...
Akinori MUSHA
03:56 AM Revision aac52e2b (git): Improve test data in test_abbrev.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:35 AM Revision 06c3b413 (git): Add tests for lib/abbrev.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:28 AM Revision aee295fc (git): * lib/rubygems/spec_fetcher.rb: Allow prerelease spec fetching to fail
for bundler.
* test/rubygems/test_gem_spec_fetcher.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
03:21 AM Revision 8137152e (git): * lib/rake/backtrace.rb: Removed duplication in
Rake::Backtrace::SUPPRESSED_PATHS
* test/rake/test_rake_backtrace.rb: Skip tests when tmpdir is in the
suppressed pattern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:35 AM Bug #7466 (Closed): Hashの大きさによってHash#keysでvalueが返ることがある
This issue was solved with changeset r38000.
Shin-ichiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (compile_array_): refix r37991 remove assertio...
naruse (Yui NARUSE)
01:09 AM Bug #7466 (Assigned): Hashの大きさによってHash#keysでvalueが返ることがある
naruse (Yui NARUSE)
02:11 AM Revision 9e449748 (git): * revert r37993 to avoid SEGV in tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
01:39 AM Revision 696ebcd8 (git): * lib/rdoc/ri/driver.rb: Relaxed matching for pages to be more
user-friendly.
* test/rdoc/test_rdoc_ri_driver.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:35 AM Revision e553663c (git): value.rb: adjust indent
* ext/fiddle/lib/fiddle/value.rb (Fiddle::ValueUtil#wrap_arg): adjust
indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 1459cabe (git): value.rb: remove DL
* ext/fiddle/lib/fiddle/value.rb (Fiddle::ValueUtil#wrap_arg): remove
deprecated require.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:29 AM Revision d8da36dd (git): Refix r38002: capture_subprocess_io also doesn't fork
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:01 AM Revision 96748600 (git): * lib/rdoc/markdown.rb: Fixed warnings with -w
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
12:54 AM Revision b479ca0c (git): Use capture_subprocess_io instead of capture_io. fix r38002
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:38 AM Revision 4f451ddd (git): vm_backtrace.c: RB_GC_GUARD
* include/ruby/ruby.h (RB_GC_GUARD_PTR): add note.
* vm_backtrace.c (backtrace_to_str_ary): use RB_GC_GUARD() instead of
RB_GC_GUARD_PTR() which has no effect.
(backtrace_to_location_ary): ditto.
(vm_backtrace_to_ary): ditto.
git-...
nobu (Nobuyoshi Nakada)
12:23 AM Revision 82e6c75d (git): * lib/rubygems/commands/contents_command.rb: Sort output from command.
Replaces r38004, r38005
* test/rubygems/test_gem_commands_contents_command.rb: ditto.
* lib/rubygems/defaults.rb: Use Gem.path_separator for jruby support.
* lib/rubygems/path_support.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.or...
drbrain (Eric Hodel)

11/29/2012

11:34 PM Revision 09af9d7f (git): * lib/rdoc/generator/darkfish.rb: Silenced warning
* test/rdoc/test_rdoc_rdoc.rb: ditto
* lib/rdoc/markup/parser.rb: Use byteslice when available for
performance
* test/rdoc/test_rdoc_markup_parser.rb: Test for above
* lib/rdoc/test_case.rb: ditto
...
drbrain (Eric Hodel)
11:23 PM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50299] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Thu, 29 Nov 2012 15:02:03 +0900, "shugo (Shugo Maeda)" <redmine@ruby-lang.org> writes:

|> * refinements are file scope
|> * o...
Anonymous
09:56 PM Feature #4085: Refinements and nested methods
=begin
Sorry, I didn't realize that the form was submitted because redmine is being a bit slow today. This comment was a duplicate of my previous one, please ignore this one.
=end
steveklabnik (Steve Klabnik)
09:56 PM Feature #4085: Refinements and nested methods
Wasn't a 'feature freeze' declared on October 24th? Why are major additions to the language being modified post-freeze, so close to the deadline for an actual release? steveklabnik (Steve Klabnik)
08:43 PM Feature #4085: Refinements and nested methods
Yeah, "using" at file scope will mean a bit of boilerplate to specify it across several files, but since there are no leaking abstractions I think new proposal answers all concerns about debugging and readability.
And in future releas...
brainopia (Ravil Bayramgalin)
08:19 PM Feature #4085: Refinements and nested methods
@matz, I like the suggestion of "using" being file scoped, although I don't understand why you want it to be applied to top-level object only... Would you mind in explaining why you think this is more interesting or would simplify things? rosenfeld (Rodrigo Rosenfeld Rosas)
06:59 PM Feature #4085: Refinements and nested methods
@trans I am thinking of combination of require and using, but I don't want to put half baked idea into Ruby 2.0.
So I leave it to the future.
Matz.
matz (Yukihiro Matsumoto)
06:31 PM Feature #4085: Refinements and nested methods
=begin
> refinements are file scope
That's a very interesting and significant recalibration of refinements. On one hand it certainly simplifies the whole scoping issue. On the other, would it mean we would have to reiterate `using` f...
trans (Thomas Sawyer)
06:09 PM Feature #4085: Refinements and nested methods
Hello,
I followed the discussion of refinements not as close as most others commenting here, but the state I saw till now was a bit disturbing. As I understand it, there are some definition, implementation and performance problems in ...
Gibheer (Stefan Radomski)
05:43 PM Feature #4085: Refinements and nested methods
The last two comments here again confirm my view that we should not add refinements to Ruby 2.0. Apparently it is not even clear to the people developing Ruby itself what the feature means. If there is ambiguity and questions like this h... dbussink (Dirkjan Bussink)
03:02 PM Feature #4085: Refinements and nested methods
matz (Yukihiro Matsumoto) wrote:
> Since there still remain undefined corner case behavior in refinements, and the time is running out, I decided not to introduce full refinement for Ruby 2.0. The limited Ruby 2.0 refinement spec will b...
shugo (Shugo Maeda)
01:56 PM Feature #4085: Refinements and nested methods
Since there still remain undefined corner case behavior in refinements, and the time is running out, I decided not to introduce full refinement for Ruby 2.0. The limited Ruby 2.0 refinement spec will be:
* refinements are file scope
...
matz (Yukihiro Matsumoto)
11:14 PM Bug #5353: TLS v1.0 and less - Attack on CBC mode
=begin
This could be an option:
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb (revision 37996)
+++ test/openssl/test_ssl.rb (working copy)
@@...
nahi (Hiroshi Nakamura)
11:10 PM Revision a22bb18e (git): * gc.c : remove a unused function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
11:02 PM Revision 6b627e6c (git): fix a revisited typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
10:56 PM Revision 59770bf9 (git): * gc.c (rb_objspace_call_finalizer): finalize_deferred may free up
a object which is reachable from a part after this function,
e.g. ruby_vm_destruct(). [ruby-dev:46647] [Bug #7452]
* test/ruby/test_gc.rb (test_finalizing_main_thread): add a test
for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
authorNari (Narihiro Nakamura)
10:54 PM Bug #7463 (Closed): OpenSSL::TestSSL#test_npn_* fail with "string contains null byte" on big-endian machines
This issue was solved with changeset r37996.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_ssl.c (ssl_npn_encode_protocol_i): fix byte...
ngoto (Naohisa Goto)
12:29 PM Bug #7463 (Closed): OpenSSL::TestSSL#test_npn_* fail with "string contains null byte" on big-endian machines
On Solaris10 running in sparc64 CPU, during make test-all, the following 4 tests raise "ArgumentError: string contains null byte". Patch attached fix the bug.
OpenSSL::TestSSL#test_npn_protocol_selection_ary = 0.05 s = E
OpenSSL::T...
ngoto (Naohisa Goto)
10:44 PM Revision c8637940 (git): * thread.c (rb_thread_interrupted): avoid warning of
implicit conversion.
* thread.c (rb_threadptr_execute_interrupts): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:35 PM Bug #6141 (Feedback): rails-3.2.2+1.9.3p125 の環境で SEGV が発生
すいません、私にassignしたばっかりに放置されてしまいました。。。で、今見てもさっぱりわからないので、再現したらまた教えてください。 nahi (Hiroshi Nakamura)
10:35 PM Revision 0c3f23ae (git): * vm_backtrace.c: add GC guards.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:28 PM Revision 4db83403 (git): [EXPERIMENTAL: NEED DISCUSS]
* vm_trace.c: add events
* :thread_begin - hook at thread beggining.
* :thead_end - hook at thread ending.
* :b_call - hook at block enter.
* :b_return - hook at block leave.
This change slow down block invocation.
Please try and giv...
ko1 (Koichi Sasada)
10:28 PM Bug #4408 (Third Party's Issue): Net::SSH connections are subject to plaintext recovery due to lack of CTR mode
Indeed. Closing this as TPI. Added CTR test at r37994 for making sure we can use CTR. nahi (Hiroshi Nakamura)
10:20 PM Bug #4332 (Third Party's Issue): Some seemingly random segfaults
Thanks for the confirmation. Closing. nahi (Hiroshi Nakamura)
10:05 PM Bug #4418: OpenSSL::PKey::DH#public_key
I like to keep ext/openssl just reflects OpenSSL API but we already have some exceptions in API for ease of use.
I postponed this to "next minor" but as we talked at RubyConf, we can try it at openssl gem (vaporgem ATM.)
nahi (Hiroshi Nakamura)
10:02 PM Revision 2dc5e625 (git): Imported minitest 4.3.2 (r8027)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
09:53 PM Bug #3817: current ruby-openssl impl wrongly utilizes CRYPTO_EX_DATA in X509_STORE
Postpone this issue again. Let us (nahi and emboss) know if you seem to be bitten by this. nahi (Hiroshi Nakamura)
08:48 PM Revision 213ba524 (git): Fix typo of r38004
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:34 PM Revision e818b24c (git): Sort th result to compare multiple lines
The order of the lines is depend on Dir.glob's result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:16 PM Revision d1d4490a (git): * lib/rake/*: Updated to rake 0.9.5
* test/rake/*: ditto.
* NEWS: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:15 PM Bug #7466 (Closed): Hashの大きさによってHash#keysでvalueが返ることがある
This issue was solved with changeset r37991.
Shin-ichiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
compile.c: hash must be paired
* compile.c (compile_array...
nobu (Nobuyoshi Nakada)
04:23 PM Bug #7466 (Closed): Hashの大きさによってHash#keysでvalueが返ることがある
=begin
jpmobileのRuby 2.0対応をやっていてわかったのですが、添付のようなHashでkeysの戻り値が途中でvalueになってしまい、それ以降valueが返るようになります。
% ruby -v
ruby 2.0.0dev (2012-11-29 trunk 37974) [x86_64-linux]
% ruby google.rb
[1040450,
(snip)
1041201...
conceal_rs (Shin-ichiro OGAWA)
07:07 PM Bug #7467: lib/mkmf.rb merge_lib fails on larger sets of libraries
here is a link to a working patch: https://github.com/tokaido/tokaido-build/blob/master/patches/darwin/1.9.3-p327/fix_merge_libs.patch mpapis (Michal Papis)
05:42 PM Bug #7467 (Closed): lib/mkmf.rb merge_lib fails on larger sets of libraries
running:
merge_libs(["-lncurses", "-ltinfo", "-lssl", "-lcrypto", "-lz", "-lreadline", "-ltermcap", "-lyaml"],["-lcrypto", "-lssl", "-lcrypto", "-lz"],[])
fails with an exception
I have tried a bit and it works fine with a lot s...
mpapis (Michal Papis)
06:22 PM Revision 40bae2f6 (git): Run another process to avoid failure when objspace is already loaded
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:55 PM Revision 97094484 (git): * vm.c: add a return hook when a method raises an exception.
* probes_helper.h: look up klass and method if none are provided.
* eval.c: update macro usage.
* vm_eval.c: ditto.
* vm_insnhelper.c: ditto.
* test/dtrace/test_function_entry.rb: test for change.
git-svn-id: svn+ssh://ci.ruby-lang....
tenderlovemaking (Aaron Patterson)
05:50 PM Feature #6823: Where/how should ruby-mode issues be reported?
vote to remove ruby-mode.el. nobu (Nobuyoshi Nakada)
05:45 PM Bug #7190 (Closed): warning: already initialized constant の書式
This issue was solved with changeset r37990.
Tsuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
variable.c: show namespace
* variable.c (rb_const_set): show...
nobu (Nobuyoshi Nakada)
05:35 PM Revision 4556a9ec (git): * compile.c (compile_array_): refix r37991 remove assertion:
it is true only if type == COMPILE_ARRAY_TYPE_HASH.
[ruby-dev:46658] [Bug #7466]
* vm.c (m_core_hash_from_ary): add assertion instead of above.
* vm.c (m_core_hash_merge_ary): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
naruse (Yui NARUSE)
05:15 PM Bug #7449 (Closed): Rdoc for obj.object_id
This issue was solved with changeset r37987.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Documentation for GC, GC::Profiler, ObjectSpace, and
...
zzak (zzak _)
10:12 AM Bug #7449: Rdoc for obj.object_id
"return a fixnum" is not a specification of #object_id so the more generic "integer" is better. drbrain (Eric Hodel)
05:18 AM Bug #7449: Rdoc for obj.object_id
eric, you mean Fixnum right?
Or change rb_obj_id implementation to return INT2NUM((SIGNED_VALUE)obj);
zzak (zzak _)
05:12 PM Feature #6670: str.chars.last should be possible
We don't have much time left before 2.0 to decide how to change IO#lines, #chars, etc. .
Can we deprecate them for now as a first step as proposed above?
knu (Akinori MUSHA)
02:13 PM Feature #6670: str.chars.last should be possible
yhara (Yutaka HARA) wrote:
> For String, the impact will be limited.
> ...
For with_index in particular, wouldn't it make sense to either add it to Enumerable or deprecate it on Enumerator? That would eliminate one more difference.
duerst (Martin Dürst)
05:11 PM Bug #7420 (Closed): Writeable pipe and timeout tests are failing (MinGW)
This issue was solved with changeset r37984.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
test_io_wait.rb: Bug #7420
* test/io/wait/test_io_wait.rb (TestI...
nobu (Nobuyoshi Nakada)
05:07 PM Bug #5350: WeakRef で謎の NoMethodError
Could someone help me understand WeakMap?
I'm looking for a good example, or use-case for it to use in documentation.
Thank you!
zzak (zzak _)
05:05 PM Revision 0e0a8244 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:55 PM Revision 6a631b7b (git): * 2012-11-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:55 PM Revision 584e0526 (git): fix indent and typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:04 PM Bug #7465 (Closed): Rdoc for CGI (html generation example)
I "modernized" the example for HTML generation a little,
it now produces HTML4 Strict, validated with the W3C validator
(there only remain warnings for missing charset information;
an ACTION attribute and a <p> element had to be added...
stomar (Marcus Stollsteimer)
03:54 PM Bug #7464 (Closed): minitest 4.3.2 in r37967 breaks RDoc tests
drbrain (Eric Hodel)
03:53 PM Bug #7464: minitest 4.3.2 in r37967 breaks RDoc tests
Fixed by r37974 thank you naruse drbrain (Eric Hodel)
01:10 PM Bug #7464 (Closed): minitest 4.3.2 in r37967 breaks RDoc tests
=begin
With r37966:
$ svnversion
37966
$ make all test-all TESTS='minitest rdoc'
[…]
Finished tests in 7.686270s, 279.0690 tests/s, 677.8320 assertions/s.
2145 tests, 5210 assertions, 0 failures, 0 errors,...
drbrain (Eric Hodel)
02:10 PM Feature #7457 (Closed): GC.stat to return "allocated object count" and "freed object count"
Finally, I introduce two keys.
* total_allocated_object: total allocated object number.
* total_freed_object: total freed object number.
I remove "heap_" prefix because this information is not about current "heap_".
Give ...
ko1 (Koichi Sasada)
01:59 PM Feature #7457: GC.stat to return "allocated object count" and "freed object count"
(2012/11/29 5:06), bitsweat (Jeremy Kemper) wrote:
> The ruby-prof gem supports object allocation profiling for 1.8.x (REE patches). The REE patches provide rb_os_allocated_objects and ObjectSpace.allocated_objects. Ideally, we would ...
ko1 (Koichi Sasada)
08:53 AM Feature #7457: GC.stat to return "allocated object count" and "freed object count"
Could you commit it?

Thanks!
authorNari (Narihiro Nakamura)
05:06 AM Feature #7457: GC.stat to return "allocated object count" and "freed object count"
Yes!! A million times yes. Tracking *total* allocations makes it possible to profile Ruby code by object creation instead of time. This is very useful, often more so than profiling process time, because reducing excessive object creation... bitsweat (Jeremy Daer)
04:31 AM Feature #7457 (Closed): GC.stat to return "allocated object count" and "freed object count"
How about to return "allocated object count" and "freed object count"?
The following patch enable to show "total allocated object number"
and "total freed (deallocated) object number".
pp GC.stat #=>
{:count=>0,
:heap_used=>12,...
ko1 (Koichi Sasada)
01:54 PM Revision 36c40166 (git): * ext/openssl/ossl_ssl.c (ssl_npn_encode_protocol_i): fix byte order
issue on big-endian architecture [ruby-core:50292] [Bug #7463]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
01:25 PM Revision 40a44254 (git): Add issue ref to the previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Hiroshi Nakamura
01:24 PM Revision 361f6b25 (git): * test/openssl/test_cipher.rb (test_ctr_if_exists): add CTR mode test
if underlying OpenSSL supports it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Hiroshi Nakamura
12:50 PM Revision 421314cf (git): * vm_method.c (rb_method_entry_make): add a method entry with
VM_METHOD_TYPE_REFINED to the class refined by the refinement if
the target module is a refinement. When a method entry with
VM_METHOD_TYPE_UNDEF is invoked by vm_call_method(), a method with
the same name is searched in refinemen...
shugo (Shugo Maeda)
12:44 PM Bug #7462 (Closed): x86_64-linux build failure after r37951
It seems make distclean fixed it.
https://twitter.com/tenderlove/status/273990942866931712
zzak (zzak _)
11:56 AM Bug #7462 (Closed): x86_64-linux build failure after r37951
I can only produce this in my working svn clone, here is the make log:
https://gist.github.com/4166280
re: r37951
zzak (zzak _)
12:25 PM Bug #7442 (Closed): StringScanner#charpos vs StringScanner#pos
I think so. We can keep it unless any serious problem is reported after preview2. Thanks for your quick action!
I'm slightly worried about its very inefficient implementation, but I don't know whether it matters because I understand...
mame (Yusuke Endoh)
09:23 AM Bug #7442: StringScanner#charpos vs StringScanner#pos
No objections (yet)... can this be merged to 2.0 branch for next preview release? zenspider (Ryan Davis)
11:53 AM Bug #7461 (Closed): Deadlock
fixed at r37964 kosaki (Motohiro KOSAKI)
11:49 AM Bug #7461: Deadlock
"minimal" reproduction:
require 'minitest/metametameta'
class TestMiniTestUnit < MetaMetaMetaTestCase
parallelize_me!
end
thanks to ko1 for the reduction.
zenspider (Ryan Davis)
10:45 AM Bug #7461: Deadlock
Sorry. No. 37921 is the first bad. 37920 runs clean. zenspider (Ryan Davis)
10:43 AM Bug #7461: Deadlock
I double checked and r37921 runs clean. zenspider (Ryan Davis)
10:37 AM Bug #7461 (Closed): Deadlock
When I try to update minitest in trunk and run my tests I get the following error:
% ./miniruby -I./lib ./tool/runruby.rb --extout=.ext -- -Itest test/minitest/test_minitest_unit.rb
Run options: --seed 61066
# Running tests:
....
zenspider (Ryan Davis)
11:09 AM Revision bda0aca2 (git): Revert r37991 "compile.c: hash must be paired"
DO BUILD BEFORE COMMIT !
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:15 AM Revision 399a32df (git): compile.c: hash must be paired
* compile.c (compile_array_): hash elements must be paired even for
literal elements. [ruby-dev:46658] [Bug #7466]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:03 AM Bug #7460 (Assigned): メインスレッド終了後のサブスレッド終了待ち処理においてデッドロック検知が動作していない
kosaki (Motohiro KOSAKI)
10:02 AM Bug #7460 (Closed): メインスレッド終了後のサブスレッド終了待ち処理においてデッドロック検知が動作していない
[Bug #5368] からの派生なんですが、
Thread.new do
begin
p "sleep1"
sleep
p "sleep2"
ensure
p "stop1"
Thread.stop
p "stop2"
end
end
このスクリプトでデッドロック検知が動かないのはおかしいと思います。
要するに thread_terminate_all() でも vm->sl...
kosaki (Motohiro KOSAKI)
09:56 AM Bug #7459 (Closed): at_exit { Thread.new {} } broken in r37921
fixed at r37958
kosaki (Motohiro KOSAKI)
09:44 AM Bug #7459: at_exit { Thread.new {} } broken in r37921
This is blocking my merge of minitest to trunk for 2.0 preview. zenspider (Ryan Davis)
09:40 AM Bug #7459: at_exit { Thread.new {} } broken in r37921
I don't think main thread should be marked dead until after at_exit is done:
% multiruby -e 'p Thread.current; at_exit { p Thread.current }'
VERSION = mri_trunk
CMD = ~/.multiruby/install/mri_trunk/bin/ruby -e p Thread.current...
zenspider (Ryan Davis)
09:19 AM Bug #7459 (Closed): at_exit { Thread.new {} } broken in r37921
ruby -e 'p Thread.current; at_exit { p Thread.current; [Thread.new {}].map(&:join) }'
outputs:
#<Thread:0x007feeb28b0fa8 run>
#<Thread:0x007feeb28b0fa8 dead>
-e:1:in `new': can't alloc thread (ThreadError)
from -e:1:in `block i...
zenspider (Ryan Davis)
09:23 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/28 6:08), sam.saffron (Sam Saffron) wrote:
> I think either 1) or 3-1), works ok.

I committed (3-1).

Could you check it?
Also I'm very happy if you write tests for it.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
09:12 AM Feature #7434 (Closed): Allow caller_locations and backtrace_locations to receive negative params
This issue was solved with changeset r37957.
Sam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_backtrace.c (vm_backtrace_to_ary): support range argument
l...
ko1 (Koichi Sasada)
04:53 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/28 6:08), sam.saffron (Sam Saffron) wrote:
> Though there is an issue with accepting ranges: caller(1..-6, 8) becomes a bit weird cause you are defining the length in two spots.

It should be error.

See:

[][0.....
ko1 (Koichi Sasada)
08:49 AM Feature #5481: Gemifying Ruby standard library
@vo.x Don't count your eggs before they hatch ;) I think the exceptions will be pretty well defined, basically anything RubyGems requires --isn't that going to be the case regardless of which way it's done? I thought packaged gems would ... trans (Thomas Sawyer)
07:22 AM Feature #5481: Gemifying Ruby standard library
@trans You know how it is with exceptions. They tend to become rules and justification for another exceptions. I believe that my proposal is the best solution, because it will be almost like shipping already preinstalled gems, which you ... vo.x (Vit Ondruch)
06:23 AM Feature #5481: Gemifying Ruby standard library
@vo.x Psych would have to be an exception. And really, with the inclusion of libyaml, YAML is becoming more and more an integral aspect of Ruby. trans (Thomas Sawyer)
06:17 AM Feature #5481: Gemifying Ruby standard library
@sdaubert That shouldn't be a problem in this case. All the necessary gems would be distributed with the Ruby source (it would sort of act like it's own miniature gem server, figuratively speaking).
trans (Thomas Sawyer)
04:30 AM Feature #5481: Gemifying Ruby standard library
trans (Thomas Sawyer) wrote:
> Why keep the source code in the Ruby repository at all? Development occurs at the library's repository anyway, so why waste time with copying the files into Ruby repository for each release. Instead, just ...
sdaubert (Sylvain Daubert)
08:45 AM Revision f77c97a8 (git): variable.c: show namespace
* variable.c (rb_const_set): show namespace in warning messages.
[Feature #7190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:34 AM Revision 5cab66cb (git): * lib/rubygems.rb (Gem.load_yaml): return if Kernel#gem is not defined
yet. This causes crash if test-all requires libraries in a certain
order. A simple reproducible code is
ruby --disable-gem -e'require"yaml";require"minitest/autorun"'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37989 b2dd03c8-...
naruse (Yui NARUSE)
08:22 AM Revision 88f5a4ff (git): * lib/tracer.rb: Updated to match removal of custom_require from
RubyGems.
* test/test_tracer.rb: ditto. Improved failure message if the test
fails
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:15 AM Revision 8baab38a (git): * gc.c: Documentation for GC, GC::Profiler, ObjectSpace, and
ObjectSpace::WeakMap [ruby-core:50245] [Bug #7449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:13 AM Revision 8818a574 (git): helper.rb: try with sudo
* test/dtrace/helper.rb (DTrace::TestCase#trap_probe): try with $SUDO if set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:12 AM Revision d22ac50a (git): tool/vpath.rb
* tool/generic_erb.rb, tool/id2token.rb: add --path-separator option
for mingw where make and built ruby live in different world.
* tool/vpath.rb: extract from tool/instruction.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37...
nobu (Nobuyoshi Nakada)
08:11 AM Revision 2f80fdda (git): test_io_wait.rb: Bug #7420
* test/io/wait/test_io_wait.rb (TestIOWait#fill_pipe):
Errno::EWOULDBLOCK may not be the same as Errno::EAGAIN. patch by
phasis68 (Heesob Park) at [ruby-core:49894]. [Bug #7420]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3...
nobu (Nobuyoshi Nakada)
08:10 AM Revision cf1d6730 (git): remove trainling spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:04 AM Revision 0a7d24cc (git): * lib/rubygems/test_case.rb: Determine path to certificates to avoid
build-dir problems.
* test/rubygems/test_gem_security_signer.rb: Use predetermined paths
to avoid build-dir problems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:18 AM Revision d9422d87 (git): * lib/rubygems/test_case.rb: Disable loading of keys and certificates
outside rubygems or ruby tests as the files are not available (or
necessary).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:15 AM Revision e8af0046 (git): * vm_backtrace.c (rb_debug_inspector_open): use RARRAY_LENINT() for
int variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:05 AM Revision 585ac7f1 (git): * include/ruby/debug.h: add rb_debug_inspector_* APIs.
* vm_backtrace.c: ditto.
* common.mk: add dpendency from vm_backtrace.o to
include/ruby/debug.h.
* proc.c (rb_binding_new_with_cfp): constify.
* vm.c (rb_vm_get_ruby_level_next_cfp): consitify.
* vm_core.h, vm_trace.c: move decls.
g...
ko1 (Koichi Sasada)
07:01 AM Revision 07b10cd5 (git): * lib/rdoc/test_case.rb (RDoc::TestCase#verbose_capture_io):
defined for asserts of warnings.
* test/rdoc: use verbose_capture_io on asserts of warnings.
they failed when tests was run with RUBYOPT=-W0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:54 AM Revision a985c589 (git): * ext/psych/extconf.rb: added --enable-bundled-libyaml option. this
enforces using bundled libyaml.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
06:52 AM Revision 9694bb8c (git): * lib/rubygems*: Updated to RubyGems 2.0
* test/rubygems*: ditto.
* common.mk (prelude): Updated for RubyGems 2.0 source rearrangement.
* tool/change_maker.rb: Allow invalid UTF-8 characters in source
files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37976 b2dd0...
drbrain (Eric Hodel)
06:43 AM Revision 3f606b70 (git): * include/ruby/debug.h: provide rb_tracearg_*() APIs,
instead of rb_tracepoint_attr_*().
These APIs are for debuggers/profilers.
They will be explained in another docs somtime.
* vm_trace.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37975 b2dd03c8-39d4-4d8f-98ff-823fe6...
ko1 (Koichi Sasada)
06:19 AM Revision d81b5a4f (git): * test/minitest/test_minitest_unit.rb: restore orig_verbose only
if it is set. This broke rdoc's tests.
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20121129T050102Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:57 AM Revision 479e3961 (git): * vm_trace.c (rb_tracepoint_attr_method_id):
rename TracePoint#id to TracePoint#method_id.
* include/ruby/debug.h: ditto.
* test/ruby/test_settracefunc.rb: ditto,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:52 AM Revision 89c889d4 (git): * vm_trace.c (rb_tracepoint_attr_defined_class):
rename TracePoint#klass to TracePoint#defined_class.
[ruby-core:50187] Re: [ruby-trunk - Feature #6895]
* include/ruby/debug.h: ditto.
* test/ruby/test_settracefunc.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37972 ...
ko1 (Koichi Sasada)
05:29 AM Revision 502ab126 (git): * gc.c (gc_stat): prepre Symbol objects at first time
to make it fast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:21 AM Bug #7458 (Closed): Depending on value of BigDecimal::limit, addition can give inaccurate results
=begin
This bug is present in ruby-trunk and also in 1.8.7 and 1.9.3p125.
I apologize that I cannot figure out what exactly is going wrong and how to patch, but at least I have a small reproducible test case.
When adding very smal...
bpow (Bradford Powell)
05:05 AM Revision c512d6ac (git): * gc.c (gc_stat): GC.stat supports new information
* total_allocated_object: total allocated object number.
* total_freed_object: total freed object number.
Above two numbers are only accumulated and they will
overflow (return to 0). Please use them as a hint.
git-svn-id: svn+ssh:...
ko1 (Koichi Sasada)
04:53 AM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
(2012/11/27 9:02), SASADA Koichi wrote:
> (2012/09/23 15:43), sam.saffron (Sam Saffron) wrote:
>> Also it feels very tied to MRI returning RubyVM:::Backtrace::Location , Location seems to me in the wrong namespace. Is JRuby and Rubi...
ko1 (Koichi Sasada)
04:39 AM Revision 5bb12509 (git): * test/dtrace/helper.rb (DTrace::TestCase): check dtrace availability
once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Feature #7375: embedding libyaml in psych for Ruby 2.0
Aaron, you have to add the ticket in the message, like:
[Feature #7375]
zzak (zzak _)
03:26 AM Feature #7375 (Closed): embedding libyaml in psych for Ruby 2.0
I fixed this in r37919, but it didn't seem to close. I'm closing now. tenderlovemaking (Aaron Patterson)
03:24 AM Revision 0e515efd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:23 AM Revision 81eb635f (git): Imported minitest 4.3.2 (r8026)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
02:58 AM Revision 304885cd (git): test/dl: no warnings
* test/dl/test_base.rb, test/dl/test_c_struct_entry.rb: deprecation
warnings make no sense here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:58 AM Revision ecaba0f2 (git): remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:50 AM Revision c058d821 (git): Revert r37956: thread.c (thread_start_func_2): small cleanups.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
02:30 AM Feature #5458: DL should be removed
DL is deprecated in trunk. To maintain backwards compatibility, I've moved some parts of DL to Fiddle. We should be able to remove `ext/dl` after 2.0 release. tenderlovemaking (Aaron Patterson)
02:09 AM Revision 989c529c (git): * thread.c (thread_start_func_2): remove unused code. When
th->safe_level == 4, th->errinfo never be thrown. So, to
create new exception makes no sense.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
01:30 AM Revision f22f1fbb (git): * vm_backtrace.c: same as a last patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:26 AM Revision d7ab6820 (git): * vm_backtrace.c: use `long' for return values of `NUM2LONG()'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:11 AM Revision d1dfebc0 (git): Revert r37953: thread.c (thread_start_func_2): remove unused code. security
This sticks at bootstraptest/test_fork.rb:24 on FreeBSD and darwin.
http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20121128T230302Z.log.html.gz
http://a.mrkn.jp/~mrkn/chkbuild/sl/ruby-trunk-m64-gcc42-o0/log/20121128T235908Z.log.html.gz
g...
naruse (Yui NARUSE)
12:52 AM Revision e2779a53 (git): * thread.c (do_select): suppress warning (uninitialized value warning)
with UNINITIALIZED_VAR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:48 AM Revision 98ed344a (git): * eval.c (ruby_cleanup): delay THREAD_KILLED timing.
It should be located just before rb_thread_terminate_all().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:33 AM Bug #7356 (Feedback): ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
横からすみません。adlint-benchmark 使わせていただきました。
git bisect で調べてみたのですが、r34948 で rb_ary_push_m() が
rb_ary_cat() を呼び出すように変更されているのが性能劣化の原因ではないでしょうか。
また、r37582 でその rb_ary_cat() の内容が変更されたため、再度性能が回復しているように見えます。
実験的に r34948 の関連する部分を revert するパッチと、r37...
wanabe (_ wanabe)
12:12 AM Revision 3d47e7b2 (git): * vm_backtrace.c (vm_backtrace_to_ary): support range argument
like Array#[].
[ruby-core:50092] [ruby-trunk - Feature #7434]
Test and document is not available. Please help us.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)

11/28/2012

11:41 PM Bug #7455 (Closed): Queue#popで待っている間にtrapに入りその時にQueue#pushされると、Queue#popから戻ってこなくなる。
This issue was solved with changeset r37944.
Masaya, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
add ticket ref: [ruby-dev:46654] [ruby-trunk - Bug #7455]
ko1 (Koichi Sasada)
10:47 PM Bug #7455: Queue#popで待っている間にtrapに入りその時にQueue#pushされると、Queue#popから戻ってこなくなる。
とりあえず原因を書いておくと
1. que.popで、mutex.sleepが呼ばれ、結局sleep_forever()が呼ばれる。ここで一旦 status = THREAD_STOPPED_FOREVERになる
2. Process.kill をうけて status = THREAD_RUNNABLEにしてトラップハンドラを実行はじめる
3. que.push を呼ぶが、main threadはすでに thread runnableなので何もおこらず
4....
kosaki (Motohiro KOSAKI)
10:36 PM Bug #7455 (Closed): Queue#popで待っている間にtrapに入りその時にQueue#pushされると、Queue#popから戻ってこなくなる。
以下スクリプトを実行すると期待したように終わらずに、deadlockしてしまいます。
ささださんよろしく。
--
require 'thread'
que = Queue.new
th = Thread.new{
sleep 0.1
Process.kill(:INT,$$)
sleep 0.1
que.push 2
}
Signal.trap :INT do
p :trap_task
123456**100...
tarui (Masaya Tarui)
11:30 PM Feature #5534: Redefine Range class and introduce RelativeNumeric and RelativeRange
=begin
I propose to disregard the second part of my proposal: about (({RelativeNumeric})) and
(({RelativeRange})). When i look back at it now, it looks quite crazy and not
particularly useful.
However, i still would have liked to se...
alexeymuranov (Alexey Muranov)
10:35 PM Bug #3351: stack overflow on super
shugo-san, do you know why Override#foo called only once?
ko1 (Koichi Sasada)
09:55 PM Revision b76b6b5c (git): * thread.c (thread_start_func_2): small cleanups.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
09:55 PM Revision 5e606aee (git): * thread.c (thread_start_func_2): remove unused code.
this function never be used for main thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:55 PM Revision fdda95ed (git): * thread.c (thread_start_func_2): remove unused code.
errinfo = th->errinfo; and errinfo = rb_errinfo(); are
the same.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:54 PM Revision 1d207fcf (git): * thread.c (thread_start_func_2): remove unused code. security
level is checked before rb_eSecurityError raises.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:30 PM Revision 2fa079b6 (git): * vm_backtrace.c (backtrace_to_str_ary2): rename to backtrace_to_str_ary.
* vm_backtrace.c (rb_backtrace_to_str_ary): use `backtrace_to_str_ary()'.
* vm_backtrace.c (backtrace_to_frame_ary): rename to
backtrace_to_location_ary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37952 b2dd03c8-39d4-4d8f-98f...
ko1 (Koichi Sasada)
08:20 PM Revision 4bdd9095 (git): * probes.d: Change function-entry probe to method-entry.
* insns.def: ditto
* probes_helper.h: ditto
* test/dtrace/test_function_entry.rb: ditto
* test/dtrace/test_singleton_function.rb: ditto
* vm.c: ditto
* vm_eval.c: ditto
* vm_insnhelper.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
tenderlovemaking (Aaron Patterson)
08:01 PM Bug #7445: strptime('%s %z') doesn't work
this is intentional behaviour.
`%s` cannot represent localtime with offset.
`%s` implies utc.
this is just odd as a date.
but, it's an option.
we may be able to adopt this feature on next major.
i'm not sure at the present time.
tadf (tadayoshi funaba)
07:46 PM Revision 0fe2051c (git): * vm_backtrace.c: rename Class name from
::RubyVM::Backtrace and ::RubyVM::Backtrace::Location
to ::Thread::Backtrace and ::Thread::Backtrace::Location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:09 PM Revision c5c1d8c2 (git): * ChangeLog: fix a typo for r37928.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:56 PM Revision c788b5f5 (git): * 2012-11-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:56 PM Revision af6decf8 (git): * ChangeLog: fix a typo for r37938.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:31 PM Bug #7450 (Closed): Thread#raise may override Thread#status unexpectedly
This issue was solved with changeset r37931.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_core.h (enum rb_thread_status): remove THREAD_TO_KILL
* ...
kosaki (Motohiro KOSAKI)
02:10 PM Bug #7450 (Closed): Thread#raise may override Thread#status unexpectedly
test.rb
---------------------
ary = []
t = Thread.new {
begin
sleep
ensure
begin
ary << Thread.current.status
sleep
ensure
ary << Thread.current.status
end
end
}
sleep 0.01
t.ki...
kosaki (Motohiro KOSAKI)
05:01 PM Bug #4559 (Closed): Proc#== does not match the documented behaviour
This issue was solved with changeset r37929.
Adam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
add ticket number [Bug #4559]
ko1 (Koichi Sasada)
04:23 PM Bug #4559: Proc#== does not match the documented behaviour
(2012/11/28 16:10), matz (Yukihiro Matsumoto) wrote:
>
> @ko1 You've chosen the latter option, so it is natural conclusion.

Okay. I'll delete Proc#==.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
04:10 PM Bug #4559: Proc#== does not match the documented behaviour
@ko1 You've chosen the latter option, so it is natural conclusion.
Matz.
matz (Yukihiro Matsumoto)
03:29 PM Bug #7451 (Closed): r37911 breaks build on non gcc or non IA-32 platforms
This issue was solved with changeset r37924.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in: revert r37911, r37906 and r37904 which break b...
ngoto (Naohisa Goto)
03:12 PM Bug #7451 (Closed): r37911 breaks build on non gcc or non IA-32 platforms
r37911 以降、__sync_val_compare_and_swap がリンク失敗したら必ず -march=i486 が付くため、
gccではないコンパイラ、またはIA-32ではない環境ではコンパイルに失敗します。
Sun(Oracle)の SolarisStudio 12.3 のccでは、-m はリンカに何かを渡すオプションらしく、
以下のようにminirubyのリンクに失敗します。Fujitsu C Compiler でも同様です。
cc -...
ngoto (Naohisa Goto)
02:55 PM Revision 7b6e26ae (git): * ext/fiddle/closure.c: cosmetic fix for rdoc comment. (fix for r37917)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:53 PM Revision 5c32aff1 (git): revert some part of r37942. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
02:41 PM Revision 36b21ada (git): add ticket ref: [ruby-dev:46654] [ruby-trunk - Bug #7455]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
02:40 PM Revision 09f9aa43 (git): * thread.c (rb_mutex_sleep): fix to allow spurious wakeup.
* NEWS: write about spurious wakeup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:37 PM Revision e59c7307 (git): * NEWS (Thread) remove incompatible changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
02:20 PM Bug #7449: Rdoc for obj.object_id
changing to Integer is fine with me. It seems to be a better type. drbrain (Eric Hodel)
02:05 PM Bug #7449: Rdoc for obj.object_id
zzak (Zachary Scott) wrote:
> Luis, can you confirm this on windows?
I don't think the Windows part is relevant but the documentation mistake.
You can confirm this here:
http://rubydoc.info/stdlib/core/Object:object_id
It sa...
luislavena (Luis Lavena)
01:53 PM Bug #7449: Rdoc for obj.object_id
Luis, can you confirm this on windows? zzak (zzak _)
01:46 PM Bug #7449 (Assigned): Rdoc for obj.object_id
luislavena (Luis Lavena)
01:45 PM Bug #7449 (Closed): Rdoc for obj.object_id
Documentation for return type of obj.object_id is wrong on Windows x64.
C:\Users\phasis>irb
irb(main):001:0> 0.1.object_id
=> -158526706883441454
irb(main):002:0> 0.1.object_id.class
=> Bignum
Here is a patch:
diff --git a/gc....
phasis68 (Heesob Park)
01:57 PM Revision bf442ed2 (git): * thread_win32.c: catch up latest change of BLOCKING_REGION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:56 PM Revision ff2ca81b (git): * vm_insnhelper.c (vm_call_method): fix undefined behavior.
Should not access scope local variable from outer scope.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:44 PM Bug #7443: Method redefinition from Fiddle is causing a test failure (MinGW)
=begin
Thank you Aaron
This indeed improved the error, but now we are getting a different one:
http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/286/console
1) Failure:
test_modify_expand_memory_leak(Test_StringModif...
luislavena (Luis Lavena)
03:54 AM Bug #7443: Method redefinition from Fiddle is causing a test failure (MinGW)
I should probably mention the failures I saw were due to missing libffi headers, carry on! zzak (zzak _)
01:24 PM Revision c6557c6f (git): * test/ruby/test_thread.rb (test_thread_status_in_trap): change test for
thread status in trap. now can accept Thread#join and Thread#value in trap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
01:12 PM Bug #6531 (Closed): Increase Racc runtime versions
zzak (zzak _)
01:01 PM Bug #6416: Deadlock when calling Thread#join from signal interrupt context
kosaki (Motohiro KOSAKI) wrote:
> Nari,
> ...
I see, Thanks!
authorNari (Narihiro Nakamura)
11:46 AM Bug #6416: Deadlock when calling Thread#join from signal interrupt context
Nari,
In your case, main thread and trap handler uses the same mutex and it is racy and deadlockable. Even if I revert my change, it wouldn't work.
kosaki (Motohiro KOSAKI)
11:31 AM Bug #6416: Deadlock when calling Thread#join from signal interrupt context
Hello
I need sometimes to call Thread#join in Signal.trap when I want to implement safe termination in a server.
For instance: https://gist.github.com/4158509
Is it a wrong use case in the first place?
Thanks.
authorNari (Narihiro Nakamura)
01:01 PM Revision 9d0de48e (git): * include/ruby/thread.h (rb_thread_call_without_gvl2): change
meaning of function.
This function is called with same parameters of
`rb_thread_call_without_gvl()'.
However, if interrupts are detected, when return immediately.
* thread.c: implement `rb_thread_call_without_gvl2()'.
git-svn-id...
ko1 (Koichi Sasada)
12:34 PM Revision f5dc27aa (git): * thread.c (thread_join_sleep): check spurious wakeup by itself for
corresponding status change in trap context.
* vm_core.h (struct rb_thread_struct): add rb_thread_list_t and use as join_list for
reentry by trap context.
* thread.c (thread_start_func_2): ditto.
* thread....
Masaya Tarui
12:23 PM Revision ac93d931 (git): emitter.c: constify
* ext/psych/yaml/emitter.c (yaml_emitter_write_indicator): constify.
* ext/psych/yaml/emitter.c (yaml_emitter_write_block_scalar_hints):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:22 PM Revision 082a2716 (git): extconf.rb: mingw32
* ext/psych/extconf.rb: mingw32 also needs macros for win32, not
only mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:21 PM Revision d8da0faf (git): extconf.rb: VPATH
* ext/psych/extconf.rb: compile sources in the source directory
without copying by using VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:20 PM Feature #6670: str.chars.last should be possible
duerst (Martin Dürst) wrote:
> Instead of this proposal, what about adding some/most/all of the Array methods to Enumerator?
It is not easy to define behavior of Enumerator#[].
For example:
File.open(path){|f|
ls = f.lines...
yhara (Yutaka HARA)
09:38 AM Feature #6670: str.chars.last should be possible
Instead of this proposal, what about adding some/most/all of the Array methods to Enumerator?
E.g. like so:
module Enumerator
def [] (pos)
to_a[pos]
end
end
Of course, this is just the simplest case of [], and the si...
duerst (Martin Dürst)
01:32 AM Feature #6670: str.chars.last should be possible
trans (Thomas Sawyer) wrote:
> If I understand correctly, this is going to break a lot of code?
For String, the impact will be limited.
* String#lines returns Array, which has most of the methods defined in Enumerator.
* Except...
yhara (Yutaka HARA)
12:19 PM Revision a0f7f36a (git): mkmf.rb: each_compile_rules
* lib/mkmf.rb (MakeMakefile#each_compile_rules): splat $(*VPATH*) for
each VPATH elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:17 PM Revision 3baef1fc (git): unit.rb: remove unnecessary includes
* lib/test/unit.rb (Test::Unit::{GlobOption,LoadPathOption}): remove
unnecessary includes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:31 AM Bug #7442: StringScanner#charpos vs StringScanner#pos
Committed revision 37916.
Please beat up on it.
zenspider (Ryan Davis)
08:57 AM Bug #3022 (Closed): What are $. and ARGF.lineno ?
This issue was solved with changeset r37913.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/globals.rdoc: Add documentation file for magic global...
zzak (zzak _)
08:31 AM Revision 9cbf4732 (git): * vm_core.h (enum rb_thread_status): remove THREAD_TO_KILL
* vm_core.h (struct rb_thread_struct): add to_kill field
* thread.c (terminate_i): convert THREAD_TO_KILL to to_kill.
* thread.c (rb_threadptr_to_kill): ditto.
* thread.c (rb_thread_kill): ditto.
* thread.c (rb_thread_wakeup_alive): ditt...
kosaki (Motohiro KOSAKI)
08:30 AM Revision b8a1e362 (git): * thread.c (struct rb_mutex_struct): add allow_trap field.
* internal.h (rb_mutex_allow_trap): added.
* thread.c (rb_mutex_lock, rb_mutex_unlock): check mutex->allow_trap.
* thread.c (mutex_sleep): remove trap check because it uses
rb_mutex_lock and rb_mutex_unlock internally.
* thread.c (rb_m...
kosaki (Motohiro KOSAKI)
08:01 AM Revision fc57f2bf (git): add ticket number [Bug #4559]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:00 AM Revision 49ed2a75 (git): * proc.c: remove Proc#== and Proc#eql?.
Proc objects compared with thier object ids.
* test/ruby/test_proc.rb: remove related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:41 AM Revision 45011d08 (git): * lib/rdoc/servlet.rb: Add support for serving documentation from a
subdirectory.
* lib/rdoc/generator/darkfish.rb: ditto
* test/rdoc/test_rdoc_servlet.rb: Test for above
* test/rdoc/test_rdoc_servlet.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
06:45 AM Revision 013521e5 (git): * configure.in: fix r37294: run only on i[3-6]86-linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:36 AM Revision e6ef313a (git): * io.c (FMODE_SYNCWRITE): removed unused macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
06:29 AM Revision 58b85730 (git): * configure.in: revert r37911, r37906 and r37904 which break build
with non-gcc and/or non-IA32 compilers, e.g. Solaris Studio,
Fujitsu C Compiler. [ruby-dev:46646] [Bug #7451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
06:08 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
I think either 1) or 3-1), works ok.
Though there is an issue with accepting ranges: caller(1..-6, 8) becomes a bit weird cause you are defining the length in two spots.
I can not find any other place with a similar api, anyone el...
sam.saffron (Sam Saffron)
05:59 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> headius (Charles Nutter) wrote:
> ...
The interaction between super chains and refinements bothers me.
A new idea...
Because we'd like refinements to act like they live in the class hierarchy...let's ...
headius (Charles Nutter)
05:52 AM Revision 1ff0a3d0 (git): * ext/psych/extconf.rb: copy sources into build directory,
not into srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:40 AM Revision 835d24f6 (git): * thread.c (rb_mutex_lock): moved trap context check from
rb_mutex_trylock because try_lock have no change to make
a deadlock.
* thread.c (rb_mutex_trylock): ditto.
* NEWS: news for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
04:43 AM Revision 8111b32d (git): * thread.c (thread_s_new): uses main_thread->status instead of
th->inhibit_thread_creation for preventing thread creation.
* vm_core.h (rb_vm_struct): remove inhibit_thread_creation field.
* thread.c (rb_thread_terminate_all): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37921 b2dd03c8-...
kosaki (Motohiro KOSAKI)
04:35 AM Revision d5c463b5 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:34 AM Revision 14099149 (git): * ext/psych/extconf.rb: use embedded libyaml if no system libyaml is
found. [ruby-core:49463]
* ext/psych/lib/psych.rb: updating to psych 2.0.0
* ext/psych/lib/psych/deprecated.rb: updated docs
* ext/psych/psych.gemspec: updated to psych 2.0.0
* ext/psych/psych.h: fixing header file include for rename
* e...
tenderlovemaking (Aaron Patterson)
04:09 AM Revision 694c7763 (git): * thread.c (thread_join): A trap handler check was moved from
thread_join_m because Thread#value should be raised an exception
too.
* thread.c (thread_join_m): remove trap handler check.
* test/ruby/test_thread.rb (test_thread_join_in_trap): add test
for thread#value.
* NEWS: documentation fix ...
kosaki (Motohiro KOSAKI)
03:14 AM Feature #5458: DL should be removed
I wrote a patch for the deprecation notice: https://gist.github.com/4155983 zzak (zzak _)
02:08 AM Revision 4ed6a88b (git): * ext/fiddle/closure.c: Documentation for Fiddle
* ext/fiddle/lib/fiddle/import.rb: ditto
* ext/fiddle/lib/fiddle/value.rb: ditto
* ext/fiddle/lib/fiddle/pack.rb: ditto
* ext/fiddle/lib/fiddle/cparser.rb: ditto
* ext/fiddle/lib/fiddle/struct.rb: ditto
* ext/fiddle/lib/fiddle/function.r...
zzak (zzak _)
02:08 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
> なお、#1952 ですでに指摘されているように Ctrl-c が押された時にサブスレッドを待たずに終了してしまうという案はSEGVを引き起こすのでNG。
もうちょっとまじめに書くと、SEGVを引き起こすのは終了処理でまじめに1つ1つリソース解放処理をしてるからで、いきなりexit()するという選択肢はあるだろう。しかしそれは当然MVMにしたときに問題を引き起こす。
SEGVしないように各所にNULLチェックを入れるという案については、pthread_cond...
kosaki (Motohiro KOSAKI)
12:53 AM Feature #5481: Gemifying Ruby standard library
trans (Thomas Sawyer) wrote:
> Why keep the source code in the Ruby repository at all? Development occurs at the library's repository anyway, so why waste time with copying the files into Ruby repository for each release. Instead, just ...
vo.x (Vit Ondruch)
12:19 AM Feature #5481: Gemifying Ruby standard library
Why keep the source code in the Ruby repository at all? Development occurs at the library's repository anyway, so why waste time with copying the files into Ruby repository for each release. Instead, just ship the .gem package with Ruby ... trans (Thomas Sawyer)
12:17 AM Revision 0700a911 (git): Added #charpos for multibyte string position.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
12:03 AM Revision db9fe59b (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:02 AM Revision 0713f899 (git): * ext/fiddle/fiddle.c: adding alignment constants for compatibility
with DL.
* ext/fiddle/fiddle.h: ditto
* ext/fiddle/lib/fiddle/cparser.rb: importing the C parser for DL
backwards compatibility.
* ext/fiddle/lib/fiddle/import.rb: importing the import DSL for DL
backwards compatibility.
* ext/fiddle...
tenderlovemaking (Aaron Patterson)

11/27/2012

11:57 PM Revision 118d9f43 (git): * doc/globals.rdoc: Add documentation file for magic globals
[ruby-core:29048] [Bug #3022]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
11:56 PM Feature #6670: str.chars.last should be possible
Here's a patch to deprecate #lines, #bytes, #chars and #codepoints of IO-likes. knu (Akinori MUSHA)
10:21 PM Feature #6670: str.chars.last should be possible
If I understand correctly, this is going to break a lot of code?
trans (Thomas Sawyer)
08:14 PM Feature #6670: str.chars.last should be possible
It may be an idea to simply obsolete IO#{lines,chars,codepoints,bytes} for now.
First of all, line wise operation is known to be popular and we've already got #readlines since a long time ago.
So, there is no need for a new IO#lines tha...
knu (Akinori MUSHA)
12:21 PM Feature #6670: str.chars.last should be possible
Okay, I understand that it may be harmful to change the behavior right now.
Then, let's warn a user to use `each_line' instead in 2.0.0, and change it in future.
Yhara-san, could you create the following type of patch for all methods...
mame (Yusuke Endoh)
08:15 AM Feature #6670: str.chars.last should be possible
#size will return `nil` for all enumerators based on IO.
Maybe the best is to have `chars` return an array for strings and deprecate it with a warning for IO.
marcandre (Marc-Andre Lafortune)
05:36 AM Feature #6670 (Assigned): str.chars.last should be possible
Now we have Enumerable#size, so we can know whether the last character is available or not by it.
So how about changing String#chars to not Array but Enumerator with size and define last method?
naruse (Yui NARUSE)
11:55 PM Revision d07c73be (git): * .document: Add README's to be included with docs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:36 PM Bug #7445 (Assigned): strptime('%s %z') doesn't work
usa (Usaku NAKAMURA)
10:33 PM Bug #7445: strptime('%s %z') doesn't work
I've attached a patch that fixes this. Anonymous
05:02 PM Bug #7445 (Rejected): strptime('%s %z') doesn't work
See:
ruby -e "require 'date'; p DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')"
The timezone is ignored.
felipec (Felipe Contreras)
11:30 PM Revision 13dc0e14 (git): Refix of r37904
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:27 PM Revision 4ba88161 (git): * ext/dl/lib/dl.rb: Deprecation notice for DL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:26 PM Revision 9c831edb (git): * ext/fiddle/closure.c: Documentation for Fiddle
* ext/fiddle/pointer.c: ditto
* ext/fiddle/function.c: ditto
* ext/fiddle/lib/fiddle.rb: ditto
* ext/fiddle/fiddle.c: ditto
* ext/fiddle/handle.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37909 b2dd03c8-39d4-4d8f-98ff-8...
zzak (zzak _)
11:20 PM Feature #5481: Gemifying Ruby standard library
=begin
Hi,
I played around a bit an put together a few patches. You can find it here: https://github.com/voxik/ruby/commits/gemified-stdlib . I took Rake as an example.
In a nutshell:
(1) I created the gems/ subdirectory in Rub...
vo.x (Vit Ondruch)
10:52 PM Bug #7180: set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc
This can be reproduced inside eval:
eval 'set_trace_func proc {|event, file, line, id, binding, classname| raise "error"}'
Edit: It seems this can be repro'd whenever there is a parent control frame.
Anonymous
10:36 PM Bug #6573: Webrick test failures
Thanks to bkabrda and mlartz's minimal reproducer and the investigation, I could easily understand the issue.
I think we should fix this by avoiding RbConfig.ruby caching at cgihandler.rb. Let me try.
nahi (Hiroshi Nakamura)
10:05 PM Feature #7444: Array#product_set
I'd prefer `Array.product`, all things being the same.
But you have given me a neat idea. In Ruby Facets there is a method Enumerable#every. It works like so:
[1,2,3].every + 2 #=> [3,4,5]
[1,2,3].every * 2 #=> [2,4,6]
#e...
trans (Thomas Sawyer)
02:44 PM Feature #7444 (Assigned): Array#product_set
I'd like to propose `Array#product_set` to return the product set of arrays (aka cartesian product)
deck = [1..13, %i(spades hearts diamond clubs)].product_set
# => <#Enumerator ...>
deck.first(2) # => [[1, :spades],...
marcandre (Marc-Andre Lafortune)
09:20 PM Bug #7356: ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
=begin
まずは ruby 単体で動くベンチマークプログラムを adlint-benchmark という gem で作成しました。
== 短時間で終了する版で測定
% gem install adlint-benchmark
% adlint_bm -p
user system total real
screen-4.0.3/proces...
yanoh (Yutaka Yanoh)
07:57 PM Revision 7e4b6fa7 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:54 PM Revision c1fb6a82 (git): * ext/fiddle/handle.c: Make Fiddle independent of DL, copy DL::Handle
to Fiddle::Handle.
* ext/fiddle/pointer.c: Make Fiddle independent of DL, copy
DL::Pointer to Fiddle::Pointer.
* test/fiddle/test_func.rb: relevent tests
* test/fiddle/test_handle.rb: ditto
* test/fiddle/test_pointer.rb: ditto
* ext/dl...
tenderlovemaking (Aaron Patterson)
06:59 PM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/27 18:35), sam.saffron (Sam Saffron) wrote:
>> > The last point is API design.
>> > "negative number" to this purpose is feasible?
> I like negative numbers cause it has some parity with the range APIs, eg: [1,2,3][0..-2...
ko1 (Koichi Sasada)
06:35 PM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
> The last point is API design.
> ...
I like negative numbers cause it has some parity with the range APIs, eg: [1,2,3][0..-2] # skip last
> Any other example for other methods?
I can not think of a use case for for the first param b...
sam.saffron (Sam Saffron)
05:23 PM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/27 15:52), sam.saffron (Sam Saffron) wrote:
> Issue #7434 has been updated by sam.saffron (Sam Saffron).
>
>
>> My question is: use-case of negative number for performance. Your answer only shows "backtrace is big".
...
ko1 (Koichi Sasada)
03:52 PM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
> My question is: use-case of negative number for performance. Your answer only shows "backtrace is big".
Apologies, well for MiniProfiler ( https://github.com/SamSaffron/MiniProfiler/tree/master/Ruby ) we gather stack traces quite ag...
sam.saffron (Sam Saffron)
08:53 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/27 7:35), sam.saffron (Sam Saffron) wrote:
> This means that there are 60 or so frames below my application. If I just want to gather a trace for my application code, I really want:
>
> caller_locations(0, -60) ... I wo...
ko1 (Koichi Sasada)
07:37 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
This means, I don't really know how many frames I want to take, I just know how many frames I want to discard. sam.saffron (Sam Saffron)
07:35 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
This is a "typical" caller trace for a rails app:
app/controllers/list_controller.rb:8:in `block (2 levels) in <class:ListController>'
actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpac...
sam.saffron (Sam Saffron)
06:24 PM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> I would think they stack like module includes, so at lookup time we'd see refined methods on String, look in calling scope in reverse order, and use the first refinement we encounter as the key.
I se...
shugo (Shugo Maeda)
01:37 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> headius (Charles Nutter) wrote:
> ...
I would think they stack like module includes, so at lookup time we'd see refined methods on String, look in calling scope in reverse order, and use the first refinemen...
headius (Charles Nutter)
06:23 PM Feature #7426: Update Rdoc
On Nov 26, 2012, at 11:21 PM, Eric Hodel <drbrain@segment7.net> wrote:
> On Nov 26, 2012, at 10:17 PM, Eric Hodel <drbrain@segment7.net> wrote:
>> On Nov 26, 2012, at 10:09 PM, Luis Lavena <luislavena@gmail.com> wrote:
>>> On Tue, No...
drbrain (Eric Hodel)
04:23 PM Feature #7426: Update Rdoc
On Nov 26, 2012, at 10:17 PM, Eric Hodel <drbrain@segment7.net> wrote:
> On Nov 26, 2012, at 10:09 PM, Luis Lavena <luislavena@gmail.com> wrote:
>> On Tue, Nov 27, 2012 at 12:57 AM, SASADA Koichi <ko1@atdot.net> wrote:
>>> I can't bu...
drbrain (Eric Hodel)
03:23 PM Feature #7426: Update Rdoc
On Nov 26, 2012, at 10:09 PM, Luis Lavena <luislavena@gmail.com> wrote:
> On Tue, Nov 27, 2012 at 12:57 AM, SASADA Koichi <ko1@atdot.net> wrote:
>> (2012/11/27 13:33), drbrain (Eric Hodel) wrote:
>>> You may need to delete .ext/rdoc ...
drbrain (Eric Hodel)
03:23 PM Feature #7426: Update Rdoc
On Tue, Nov 27, 2012 at 12:57 AM, SASADA Koichi <ko1@atdot.net> wrote:
> (2012/11/27 13:33), drbrain (Eric Hodel) wrote:
>> You may need to delete .ext/rdoc as the format of the ri data has changed. While I did my best to support bac...
luislavena (Luis Lavena)
02:59 PM Feature #7426: Update Rdoc
(2012/11/27 13:33), drbrain (Eric Hodel) wrote:
> You may need to delete .ext/rdoc as the format of the ri data has changed. While I did my best to support backwards compatibility I may not (yet) have fixed every problem. Please try...
ko1 (Koichi Sasada)
01:32 PM Feature #7426: Update Rdoc
I have updated RDoc to 4.0.
You may need to delete .ext/rdoc as the format of the ri data has changed. While I did my best to support backwards compatibility I may not (yet) have fixed every problem. Please try this before reporting...
drbrain (Eric Hodel)
06:12 PM Revision c8d35368 (git): fix r37904: it forced i486 though -marh was usually i686
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:04 PM Revision bb2e9e9e (git): * configure.in (opt-dir): don't use non portable flag -E of sed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:02 PM Revision c41e749c (git): * configure.in (ARCH_FLAG): __sync_val_compare_and_swap_4 needs
-march=i486 on at least linux gcc 4.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:20 PM Revision e6be8784 (git): * 2012-11-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:20 PM Revision bd43e67e (git): * ChangeLog: fix typos for r37867, r37874, r37877 and r37884.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:49 PM Feature #7427: Update Rubygems
I plan to commit RubyGems by Thursday Pacific Time. drbrain (Eric Hodel)
02:39 PM Feature #6499: Array::zip
I've thought a bit about this, and the proposed `Array.zip` basically already exists if all arrays have the same length.
It's called `Array#transpose` :-)
Array.zip([1,2,3], [4,5,6]) == [[1,2,3], [4,5,6]].transpose
Note that...
marcandre (Marc-Andre Lafortune)
01:34 PM Revision 06d6edca (git): * string.c (rb_str_enumerate_chars, rb_str_enumerate_codepoints)
(rb_str_enumerate_lines): Dummy initialization of ary has been
replaced with UNINITIALIZED_VAR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
01:16 PM Bug #7443: Method redefinition from Fiddle is causing a test failure (MinGW)
Luis, sorry to pollute your ticket, I was just discussing this with drbrain on irc. Ignore me :)
edit: that test passes ok for me on x86_64-linux
zzak (zzak _)
01:11 PM Bug #7443: Method redefinition from Fiddle is causing a test failure (MinGW)
=begin
zzak (Zachary Scott) wrote:
> For what it's worth, here's the issues I'm getting:
> https://gist.github.com/4152220
Thanks Zachary,
The issue is not a test from Fiddle that is failing, but Fiddle redefinition causing a...
luislavena (Luis Lavena)
01:07 PM Bug #7443: Method redefinition from Fiddle is causing a test failure (MinGW)
For what it's worth, here's the issues I'm getting:
https://gist.github.com/4152220
zzak (zzak _)
01:00 PM Bug #7443 (Closed): Method redefinition from Fiddle is causing a test failure (MinGW)
=begin
The modification introduced in r37881 associated with #5458 is causing a test failure on RubyInstaller CI:
1) Failure:
test_modify_expand_memory_leak(Test_StringModifyExpand) [C:/Users/Worker/Jenkins/workspace/ruby-trun...
luislavena (Luis Lavena)
12:53 PM Revision 8c4992f1 (git): * NEWS: typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
12:46 PM Revision 1dce5edf (git): * bignum.c (bigdivrem): optimize the way to retry calculation of
bigdivrem so that the calculation is started from the point where
the last interruption was occurred.
* bignum.c (bigdivrem1): ditto.
* test/ruby/test_bignum.rb: add a test case for rb_bigdivrem in the
case that an interruption is ...
Kenta Murata
12:25 PM Bug #7442 (Feedback): StringScanner#charpos vs StringScanner#pos
Sorry, it is too late to fix such a spec-level bug. Setting the target to Next Major.
If you create and commit a patch by preview2 (1 Dec.), and if it does not lead to any problem (and any discussion) at all, we might include it in 2.0...
mame (Yusuke Endoh)
11:04 AM Bug #7442 (Closed): StringScanner#charpos vs StringScanner#pos
=begin
I talked to Matz at rubyconf and he agreed this was a bug I should file. Sorry I took so long to do so.
As mentioned in #3482, StringScanner#pos is byte-oriented even when scanning multibyte strings. The reasoning was that IO#...
zenspider (Ryan Davis)
12:18 PM Bug #7440: IO#lines etc. should return Array
Eregon (Benoit Daloze) wrote:
> Strongly agreed. It could also increase a lot the memory usage (while on String we anyway already have the whole String in memory so it is less of a concern).
> ...
In that case you can use IO#each_line,...
yhara (Yutaka HARA)
03:49 AM Bug #7440: IO#lines etc. should return Array
drbrain (Eric Hodel) wrote:
> With the exception of StringIO hey also support infinite streams. I think the current Enumerator is best.
Strongly agreed. It could also increase a lot the memory usage (while on String we anyway already...
Eregon (Benoit Daloze)
02:29 AM Bug #7440: IO#lines etc. should return Array
With the exception of StringIO hey also support infinite streams. I think the current Enumerator is best. drbrain (Eric Hodel)
01:49 AM Bug #7440: IO#lines etc. should return Array
Is this really wnat you'd want? ARGF and IO (and possibly Zlib's readers) can stream data lazily in lines/chars/bytes/codepoints, where forcing them to an Array would have to eagerly read everything (and potentially block).
irb(main):...
headius (Charles Nutter)
12:46 AM Bug #7440 (Rejected): IO#lines etc. should return Array
String#bytes, #chars, #codepints and #lines are changed to return Array in #6670.
For consistent behavior, following methods should return Array too:
* ARGF.lines, chars, bytes, codepoints
* IO#lines, chars, bytes, codepoints
* S...
yhara (Yutaka HARA)
12:11 PM Bug #2402: super in instance_eval
shugo (Shugo Maeda) wrote:
> instance_evalの中でsuperを呼んだ時に正しいレシーバを見つけるために r36640 で外側のフレームを辿る
> ...
一点補足すると、1.8ではinstance_evalではフレームのselfは変えずにrb_evalの引数だけ変えているみたいなので
instance_evalの中でsuperした時もちゃんと元のselfが使われるようですが、このためだけにselfを二重に持つのは
何だかな...
shugo (Shugo Maeda)
11:58 AM Revision 956cc293 (git): * vm.c (rb_vm_make_env_object): make Proc object if Env is possible
to point block.
[ruby-core:41038] [ruby-trunk - Bug #5634]
* vm.c (rb_vm_make_proc): No need to make Proc object here.
* bootstraptest/test_proc.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37898 b2dd03c8-39d4-4d...
ko1 (Koichi Sasada)
11:03 AM Feature #1952: cannot stop with Ctrl+C
ついでというわけではないんですが、mameさんのcomment#10のようなスクリプトへの防御力をあげるため、メインスレッドがサブスレッド終了を待ってる時はステータスをTHREAD_KILLEDに変える修正を r37886 で入れました。メインスレッドはすでに終了しているのだから、thr.raiseが動いてしまっているのがそもそもおかしかった。
kosaki (Motohiro KOSAKI)
08:08 AM Feature #1952 (Closed): cannot stop with Ctrl+C
This issue was solved with changeset r37875.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (rb_thread_terminate_all): broadcast eTerminateSignal...
kosaki (Motohiro KOSAKI)
10:53 AM Feature #5458: DL should be removed
On Sat, Nov 24, 2012 at 11:26:16AM +0900, mame (Yusuke Endoh) wrote:
>
> Issue #5458 has been updated by mame (Yusuke Endoh).
>
>
> Aaron?

Sorry, I'm working on this. I should have the deprecation warning added
some...
Anonymous
10:21 AM Revision 5faf4cc7 (git): * ruby_atomic.h (ATOMIC_CAS): added for Solaris and other platforms.
* ruby_atomic.h, signal.c (NEED_RUBY_ATOMIC_OPS): renamed from
NEED_RUBY_ATOMIC_EXCHANGE.
* signal.c (ruby_atomic_compare_and_swap): naive, non-atomic
compare-and-swap implementation only used for platforms without
valid support fo...
ngoto (Naohisa Goto)
09:58 AM Bug #7439 (Closed): Please revert r32841
This issue was solved with changeset r37878.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
extconf.rb: git rid of post-1.8 feature
* ext/digest/*/extconf.rb...
nobu (Nobuyoshi Nakada)
06:45 AM Bug #7439 (Assigned): Please revert r32841
Well, may be it was incomprehensible, but I really wanted you to accept my patch, not fix the Ruby 1.8 support as a BASERUBY.
And the reasoning was: "Since Ruby 1.8 cannot be used as a BASERUBY due to (or at least) the line I am point...
vo.x (Vit Ondruch)
04:12 AM Bug #7439 (Closed): Please revert r32841
This issue was solved with changeset r37870.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
extmk.rb: git rid of post-1.8 features
* ext/extmk.rb (extmake): ...
nobu (Nobuyoshi Nakada)
03:58 AM Bug #7439: Please revert r32841
That line is not in r32841. nobu (Nobuyoshi Nakada)
09:23 AM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
(2012/09/23 15:43), sam.saffron (Sam Saffron) wrote:
> Also it feels very tied to MRI returning RubyVM:::Backtrace::Location , Location seems to me in the wrong namespace. Is JRuby and Rubinius going to be expected to add this namespa...
ko1 (Koichi Sasada)
08:54 AM Revision 6d1266a8 (git): * lib/rdoc/*: Added --root option for building documentation outside
the source directory.
* test/rdoc/*: ditto
* common.mk (rdoc): Added --root to rdoc rule
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:53 AM Feature #6895: TracePoint API
(2012/11/26 5:47), SASADA Koichi wrote:
> * Is #klass method necessary since one can call `self.class`? But maybe `self.class` is much less efficient?

`klass' and `self.class' is different.

`klass' is several meaning:

*...
ko1 (Koichi Sasada)
08:53 AM Feature #6895: TracePoint API
I renamed methods:
* TracePoint#file -> TracePoint#path
* TracePoint#line -> TracePoint#lineno
to make consistent to RubyVM::Backtrace::Location.

Make sense?

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
08:16 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
1.8と同等と書いたのは
Thread.new do
begin
sleep
ensure
sleep
end
end
というプログラムが一度ensure節のsleepで寝てしまうが、Ctrl-Cにより終わることは出来る。という挙動を指しており、
このスクリプト以外の細かい挙動について、不整合はあると思います。
kosaki (Motohiro KOSAKI)
08:13 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
[Feature #1952]の対策として、r37875でCtrl-Cが押されるたびに eTerminateSignalを最送出するようにしたので、現状1.8と同等の動きをするようになってます。
kosaki (Motohiro KOSAKI)
05:09 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
1.8の挙動の方がバグっぽいですけれどねぇ
Ctrl-Cでensureの実行が保証されず、終わってしまうのは大きな問題だと思います。
現にTimeoutでensureが飛ばされるので困ってcontrol_interruptをなどを導入しようと
しているのだと理解しています。kill -KILLしないと死なないプロセスは良くある事で、
これはensureを必ず実行しようとする事とのトレードオフだと思います。
デフォルトでの挙動ではCtrl-CでIntrrup...
tarui (Masaya Tarui)
01:15 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
1.8 だと、Ctrl-C でsleepを抜けてくれるようです。うーん、この挙動のほうがいいんかなあ。1.8がどういう理屈でこう動いているのかよくわからないんだけど、ようするにInterruptがmain threadではなく、たまたまその時動いていたThreadに飛ぶようなシロモノだったということだろうか(推測) kosaki (Motohiro KOSAKI)
07:29 AM Revision 7de9e2df (git): * test/rdoc/test_rdoc_ri_paths.rb: Fixed duplicate path bug which
caused windows failures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:09 AM Revision ef8e0908 (git): * test/rdoc/test_rdoc_generator_darkfish.rb: Updated tests for windows
* test/rdoc/test_rdoc_options.rb: ditto
* test/rdoc/test_rdoc_parser.rb: ditto
* test/rdoc/test_rdoc_rdoc.rb: ditto
* test/rdoc/test_rdoc_ri_driver.rb: ditto
* test/rdoc/test_rdoc_servlet.rb: ditto
git-svn-id: svn+ssh://ci.ruby-la...
drbrain (Eric Hodel)
06:31 AM Bug #5985: miniruby skews "make benchmark" results
"ko1 (Koichi Sasada)" <redmine@ruby-lang.org> wrote:
>
> Issue #5985 has been updated by ko1 (Koichi Sasada).
>
>
> Sorry, the previous comment is for [Bug #7380].
>
> BTW, the current benchmark using `ruby' instead of...
normalperson (Eric Wong)
06:19 AM Revision 585de40a (git): * common.mk (rdoc): Set --debug for rdoc generation in case of bugs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
06:01 AM Revision cb581e20 (git): * lib/rdoc/rubygems_hook.rb: Updated for (upcoming) RubyGems 2
import.
* test/rdoc/test_rdoc_rubygems_hook.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:59 AM Revision 1eac1cb2 (git): reverting r37881
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tenderlovemaking (Aaron Patterson)
05:16 AM Bug #7437 (Closed): Array#delete(obj) should return obj when there is an object that is equal in the array
Documentation fixed, thanks for bringing this up. marcandre (Marc-Andre Lafortune)
01:44 AM Bug #7437: Array#delete(obj) should return obj when there is an object that is equal in the array
marcandre (Marc-Andre Lafortune) wrote:
> Indeed, the documentation does not match the code and there is no test for this.
> ...
Yes, it appears to have been an explicit behavioral change in the 1.9.1/1.8.7 timeframe that never got ref...
headius (Charles Nutter)
12:20 AM Bug #7437 (Assigned): Array#delete(obj) should return obj when there is an object that is equal in the array
mame (Yusuke Endoh)
05:00 AM Revision 1d8d7a3e (git): * NEWS: add improvements of the garbage collector.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
04:28 AM Revision 1c279a7d (git): * lib/rdoc*: Updated to RDoc 4.0 (pre-release)
* bin/rdoc: ditto
* test/rdoc: ditto
* NEWS: Updated with RDoc 4.0 information
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
03:18 AM Revision c72f0daa (git): * thread.c (rb_thread_terminate_all): retry broadcast only when
an exception is raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:11 AM Feature #6762: Control interrupt timing
kosaki (Motohiro KOSAKI) wrote:
> Sure. then we can't drop Thread.raise even though 99% programmers don't use it directly.
Sure we can...drop timeout as well :)
Of course I accept that Thread#kill and raise aren't going away...I'm...
headius (Charles Nutter)
02:10 AM Feature #6762: Control interrupt timing
> The timeout module uses Thread#raise, of course.
Sure. then we can't drop Thread.raise even though 99% programmers don't use it directly.
kosaki (Motohiro KOSAKI)
01:50 AM Feature #6762: Control interrupt timing
kosaki (Motohiro KOSAKI) wrote:
> Thread.raise is not big problem, the most big problems are timeout module and Ctrl-C. I don't think we can disallow
> ...
The timeout module uses Thread#raise, of course.
headius (Charles Nutter)
12:47 AM Feature #6762: Control interrupt timing
> Honestly, the only safe answer is to disallow asynchronous exceptions. The better long-term design would probably be
> ...
Thread.raise is not big problem, the most big problems are timeout module and Ctrl-C. I don't think we can disa...
kosaki (Motohiro KOSAKI)
12:40 AM Feature #6762: Control interrupt timing
normalperson (Eric Wong) wrote:
> Really, naming is hard :<
> ...
The examples of Thread.may_raise do not guarantee an ensure block will run, because you still have to get to the may_raise call.
begin
raise Something
ensure
...
headius (Charles Nutter)
03:04 AM Revision 2f9ee7af (git): * thread.c (rb_thread_terminate_all): broadcast terminate event
not only an interrupt exception but any exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:00 AM Revision 9ace5c12 (git): * eval.c (ruby_cleanup): set thread status to THREAD_KILLED
for preventing thr.raise.
* test/ruby/test_thread.rb (test_main_thread_status_at_exit):
test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:00 AM Revision 863e0873 (git): * thread.c (rb_thread_terminate_all): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
02:00 AM Revision b1a18cf4 (git): * thread.c (thread_join): raises ThreadError if target therad
is a main thread.
* test/ruby/test_thread.rb (test_thread_join_main_thread):
test for the above.
* NEWS: news for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:00 AM Revision 8079f8a6 (git): * thread.c (thread_join): raises ThreadError if target thread
is a current thread.
* test/ruby/test_thread.rb (test_thread_join_current):
test for the above.
* NEWS: news for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
01:43 AM Revision 82cc52ed (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:38 AM Revision ab2a7a93 (git): * ext/fiddle/handle.c: Make Fiddle independent of DL, copy DL::Handle
to Fiddle::Handle.
* ext/fiddle/pointer.c: Make Fiddle independent of DL, copy
DL::Pointer to Fiddle::Pointer.
* test/fiddle/test_func.rb: relevent tests
* test/fiddle/test_handle.rb: ditto
* test/fiddle/test_pointer.rb: ditto
* ext/dl...
tenderlovemaking (Aaron Patterson)
01:35 AM Revision 357d4256 (git): Suppress uninitialized variable warning with UNINITIALIZED_VAR()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:11 AM Bug #7441 (Third Party's Issue): Segmentation Fault generated with 1.9.3 installed by library1.8.so.1.8.7
Hi,
I reported this under issue #7428 which was closed with the recommendation that I move to 1.9.3 and see if the problem persists.
Well, the problem, now, is that though I've installed 1.9.3, 1.8 is still in place and I don't kno...
agenerette (Anthony Generette)
12:59 AM Revision 3677a68d (git): extmk.rb: fix mixing mkmf.log
* ext/extmk.rb (extmake): close mkmf.log for each libraries so that
failure messages are not mixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:58 AM Revision f0a229b6 (git): extconf.rb: git rid of post-1.8 feature
* ext/digest/*/extconf.rb, ext/openssl/extconf.rb: get git rid of
post-1.8 feature require_relative for cross compilation.
[ruby-core:50160] [Bug #7439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37878 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
12:26 AM Feature #7429: Provide options for core collections to customize behavior
matz (Yukihiro Matsumoto) wrote:
> @headius I am afraid it's not going to 2.0, for some reasons:
> ...
In CRuby, with the GIL, you can pretend the existing ones are parallel-safe, can't you?
> * the future CRuby will lean toward non...
headius (Charles Nutter)
12:18 AM Revision 4df479f5 (git): * NEWS: add TracePont.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)

11/26/2012

11:25 PM Revision d187f4bc (git): * vm_trace.c: rename TracePoint#file and TracePoint#line
to TracePoint#path and TracePoint#lineno respectively.
They are consistent to RubyVM::Backtrace::Location.
* include/ruby/debug.h: ditto.
* vm_core.h: ditto.
* test/ruby/test_settracefunc.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lan...
ko1 (Koichi Sasada)
11:08 PM Revision a9162789 (git): * thread.c (rb_thread_terminate_all): broadcast eTerminateSignal
again when Ctrl-C was pressed. [Feature #1952] [ruby-dev:39107]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
11:01 PM Revision 8c138db3 (git): * vm_core.h: add members to rb_trace_arg_t:
* `klass_solved' represents klass and id is checked.
* `line' represents line calculated from cfp.
* `file' represents line calculated from cfp.
* vm_trace.c: fix to use above data stractures.
No need to calculate klass and id, line an...
ko1 (Koichi Sasada)
10:59 PM Bug #5368 (Assigned): ensure節でsleepするようなThreadがあるとインタプリタが終了しない
現状、ささださんが #1にてCPU使用率が跳ね上がるのだけがバグで、終わらない、かつCtrl-Cも効かなくなるのは仕様という見解を出しているのでそれにそって、r37865でCPU使用率問題を直しました。
さて、このまま閉じてしまっていいのかまったく分からないので、まつもとさん意見をください。
元の起票バグだとensureで無限sleepというちょっとありえなさそうなスクリプトですが、IO.read などでも同様の「終了しない+Ctrl-C効かない」が起こります。...
kosaki (Motohiro KOSAKI)
10:47 PM Bug #5368 (Closed): ensure節でsleepするようなThreadがあるとインタプリタが終了しない
This issue was solved with changeset r37865.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c (rb_thread_terminate_all): use native_sleep() instea...
kosaki (Motohiro KOSAKI)
10:40 PM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
なお、#1952 ですでに指摘されているように Ctrl-c が押された時にサブスレッドを待たずに終了してしまうという案はSEGVを引き起こすのでNG。 kosaki (Motohiro KOSAKI)
12:27 PM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
読み返しました。[Feature #1952] とちょっと似た話で終了途中で例外食われてしまったら、という話のようですね。論点をまとめると
- ensure節の中でsleep等、無限待ちが記述されているとハングしてしまう。これはバグではないか (Glass_saga)
- この場合止まっているのはサブスレッドなので、Ctrl-cは意味が無い。メインスレッドが食って無視してしまう
- しかし、タイムアウト等をつくると終了処理に時間のかかるスクリプトが壊れて...
kosaki (Motohiro KOSAKI)
09:26 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
ticket の詳細が思い出せないので小崎先生に振ってみます.
control_interrupt じゃ解決しないんだよな,多分.
ko1 (Koichi Sasada)
10:49 PM Revision 25393806 (git): * thread.c (rb_thread_terminate_all): add RUBY_VM_CHECK_INTS_BLOCKING().
Otherwise the loop in this function behave as busy loop because
native_sleep() return immediately when RUBY_VM_INTERRUPTED() is true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
10:46 PM Bug #7439: Please revert r32841
=begin
This is error I get when using 1.8 for cross-compilation:
./ext/extmk.rb:228:in `extmake': undefined method `prepend' for #<String:0x7fed568d8e20> (NoMethodError)
from ./ext/extmk.rb:504
from ./ext/extmk.rb:500:in `each'
...
vo.x (Vit Ondruch)
10:28 PM Bug #7439 (Assigned): Please revert r32841
This was applied due a bunch of issues cross-compiling Ruby 1.9.x using Ruby 1.8.7 as baseline.
I'm not sure if this is still the case for BASERUBY being 1.8 and other changes that might not allow 1.8 to cross-compile 1.9.x
I'm ass...
luislavena (Luis Lavena)
10:21 PM Bug #7439 (Closed): Please revert r32841
I cannot find any reference why r32841 was committed and what is the real issue it solves, but since R1.8 cannot be used as a baseruby anymore (./ext/extmk.rb:228:in `extmake': undefined method `prepend' for #<String:0x7fed568d8e20> (NoM... vo.x (Vit Ondruch)
10:18 PM Bug #7364 (Rejected): CGI::Cookie.parse can't deal with cookie options
I agree with mame-san.
In this case, I think CGI::Cookie::parse is out of role.
xibbar (Takeyuki FUJIOKA)
10:12 PM Bug #7380: benchmark/driver.rb: --executables separator
ko1 (Koichi Sasada) wrote:
> I always use -e with quote strings. does it bother you?
> ...
Oh, right, I did not think to the name::path usage, it would be weird to have both : and ::.
I like the solution to pass multiple -e options...
Eregon (Benoit Daloze)
06:19 PM Bug #7380 (Closed): benchmark/driver.rb: --executables separator
This issue was solved with changeset r37854.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* benchmark/driver.rb: accept multiple `-e'.
You don't need t...
ko1 (Koichi Sasada)
09:52 AM Bug #7380: benchmark/driver.rb: --executables separator
I always use -e with quote strings. does it bother you?
By the way, -e accept `:'
like -e "foo::path1; bar::path2"
as a label of path.
ko1 (Koichi Sasada)
08:14 PM Revision 5768a4a7 (git): * array.c: Fix rdoc for Array#delete [#7437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
08:05 PM Bug #5768 (Closed): TestRequire#test_race_exceptionで競合するケースがまだある
さすがに時期的に、書き直しはあきらめるべきなので、close
kosaki (Motohiro KOSAKI)
08:04 PM Bug #4909 (Closed): trapハンドラは再入されてはいけないのではないか?
#6009と重複しているので、こちらのチケットは閉じますね。英語のほうを残します。
kosaki (Motohiro KOSAKI)
09:21 AM Bug #4909: trapハンドラは再入されてはいけないのではないか?
小崎先生にお任せ. ko1 (Koichi Sasada)
08:02 PM Bug #6416 (Closed): Deadlock when calling Thread#join from signal interrupt context
Fixed at r37852.
Thanks, Timothy!
kosaki (Motohiro KOSAKI)
09:35 AM Bug #6416: Deadlock when calling Thread#join from signal interrupt context
I agree with kosaki-san's comment.
ko1 (Koichi Sasada)
07:57 PM Bug #6009 (Closed): Rapid signal delivery via kill(2) causes SystemStackError
This issue was solved with changeset r37861.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ruby_atomic.h (ATOMIC_CAS): new macro for compare-and-exchange....
kosaki (Motohiro KOSAKI)
07:46 PM Bug #6786 (Closed): Add :trace_instruction to the output of RubyVM::InstructionSequence.compile_option
This issue was solved with changeset r37860.
David, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* iseq.c (make_compile_option_value): add trace_instruction opti...
ko1 (Koichi Sasada)
07:19 PM Revision cd246ff2 (git): string.c: suppress warning
* string.c (rb_str_enumerate_bytes): suppress a uninitialized variable
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:12 PM Revision 943b664e (git): extmk.rb: git rid of post-1.8 features
* ext/extmk.rb (extmake): git rid of post-1.8 features for cross
compilation. [ruby-core:50160] [Bug #7439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:54 PM Bug #4559: Proc#== does not match the documented behaviour

def test_eq2
b1 = proc { }
b2 = b1.dup
assert(b1 == b2)
end
will be `false'. Is it okay?
ko1 (Koichi Sasada)
06:43 PM Bug #5985: miniruby skews "make benchmark" results
Sorry, the previous comment is for [Bug #7380].
BTW, the current benchmark using `ruby' instead of `miniruby'.
The difference is `--disable-gems':
$ make benchmark COMPARE_RUBY='installed::~/tmp/trunk/bin/ruby --disable-gems' ...
ko1 (Koichi Sasada)
06:20 PM Bug #5985 (Closed): miniruby skews "make benchmark" results
I changed to accept multiple `-e' like "-e path1 -e path2". or "-e label1::path1 -e label2::path2".
You don't need to use `;' character.
ko1 (Koichi Sasada)
06:34 PM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> ko1's suggestion, as I understand it, was to add a flag to the method table (or method entry) of a refined class/method as a trigger for the call site to search refinements. While writing my blog post, ...
shugo (Shugo Maeda)
05:48 AM Feature #4085: Refinements and nested methods
I was reading this discussion (http://branch.com/b/rubyists-which-would-you-rather-have-in-ruby-2-0-0) about refinements, and read the last post by Magnus Holm (@judofyr) which said:
> I think refinements are useful for some specific ...
trans (Thomas Sawyer)
05:42 PM Bug #7356: ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
反応が遅れてすみません。
まずは、ko1 さんからリクエストがあった ruby 単体で動くベンチマークを作ってみて、
その後 dtrace してみます。
yanoh (Yutaka Yanoh)
09:50 AM Bug #7356: ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
最悪「refinementのせい」「siphash のせい」ということで一つ.
いや,プロファイラ作れって話か.
簡単に試せそうなら,せっかく入った dtrace で見てみたいのですが,
yanoh さん,いかがでしょうか.
ko1 (Koichi Sasada)
04:01 PM Revision 79d42a88 (git): * README: mention about README.win32.
* win32/README.win32: small changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:50 PM Feature #2255: unicode parameters cannot be passed to ruby
% Done: 0% ;-( usa (Usaku NAKAMURA)
03:23 PM Bug #7437: Array#delete(obj) should return obj when there is an object that is equal in the array
Indeed, the documentation does not match the code and there is no test for this.
It was clearly Matz' intention to return the (last) deleted element: https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/18527
This is...
marcandre (Marc-Andre Lafortune)
01:21 PM Bug #7437: Array#delete(obj) should return obj when there is an object that is equal in the array
Here's the patch. Where should the tests go? RubySpec? hasari (Hiro Asari)
01:00 PM Bug #7437 (Closed): Array#delete(obj) should return obj when there is an object that is equal in the array
According to http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-delete, Array#delete(obj) should return "obj" when there are objects in the array that are "equal to obj" (internally, "==" is used, it seems).
Notice that the docume...
hasari (Hiro Asari)
03:17 PM Revision 4491b98c (git): * 2012-11-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:17 PM Revision 5b238e8d (git): * thread.c (rb_mutex_trylock, rb_mutex_unlock, mutex_sleep):
raises ThreadError if called from trap handler as Thread#join.
* NEWS: news fot the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:01 PM Bug #7276: TestFile#test_utime failure
This seems due to r37337. I don't know the reason of r37337, but reverting the commit (use rb_w32_fstati64 for fstat) will fix this. h.shirosaki (Hiroshi Shirosaki)
02:55 PM Revision 23d5c282 (git): * NEWS: update for Thread#join incompatible change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
01:53 PM Feature #6762: Control interrupt timing
For the records.
Ko1 suggested me defer_async_interrupt or async_interrupt_timing(...){...}.
Both looks acceptable to me.
async_interrupt_timing(X => :immediate)
async_interrupt_timing(X => :on_blocking)
async_interrupt_timing...
kosaki (Motohiro KOSAKI)
10:29 AM Feature #6762: Control interrupt timing
SASADA Koichi <ko1@atdot.net> wrote:
> Okay mame-san.
>
> Eric, could you advice a good name?

Really, naming is hard :<

I think Thread.may_raise is fine, however...

I prefer not to introduce new methods at all, but...
normalperson (Eric Wong)
09:53 AM Feature #6762: Control interrupt timing
(2012/11/03 8:33), kosaki (Motohiro KOSAKI) wrote:
>> Okay. Give us a good name.
>
> How's this?
>
> control_interrupt() => defer_async_raise() or defer_unwinding()
>
> "control" is unclear and don't explain what actio...
ko1 (Koichi Sasada)
09:53 AM Feature #6762: Control interrupt timing
Okay mame-san.

Eric, could you advice a good name?

Kosaki-san's points:
[ruby-core:48769] [ruby-trunk - Feature #6762] Control interrupt timing

(2012/11/24 12:15), mame (Yusuke Endoh) wrote:
>
> Issue #6762 has bee...
ko1 (Koichi Sasada)
01:47 PM Revision 39d38ff8 (git): * thread.c (rb_thread_terminate_all): use native_sleep() instead
of rb_thread_schedule(). Otherwise, it consume 100% cpu meaninglessly.
[Bug #5368] [ruby-dev:44546]
* thread.c (thread_start_func_2): last sub-thread wakes up main thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37865 b2dd03...
kosaki (Motohiro KOSAKI)
12:17 PM Revision 66e2e6ee (git): * vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT)
(RUBY_VM_SET_FINALIZER_INTERRUPT, RUBY_VM_SET_TRAP_INTERRUPT)
(RUBY_VM_INTERRUPTED): use enum symbol instead of immediate value.
* thread.c (thread_join_m, rb_threadptr_execute_interrupts): ditto.
* signal.c (signal_exec): ditto.
git-sv...
kosaki (Motohiro KOSAKI)
11:45 AM Revision 58543f00 (git): * thread.c (thread_join_m): use th->interrupt_mask instead of
th->in_trap.
* vm_core.h (struct rb_thread_struct): remove in_trap member.
* signal.c (signal_exec): ditto.
* thread.c (thread_create_core): ditto.
* thread.c (Init_Thread): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3786...
kosaki (Motohiro KOSAKI)
11:25 AM Revision 12d48f4e (git): * test/ruby/test_argf.rb (TestArgf#test_chars): since marshal data is
binary, shouldn't pass via text mode. use base64 encoded data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:11 AM Bug #2402: super in instance_eval
ko1 (Koichi Sasada) wrote:
> shugo-san
> ...
instance_evalの中でsuperを呼んだ時に正しいレシーバを見つけるために r36640 で外側のフレームを辿る
ようにしたのですが、 Bug #6907 の問題があったので r36795 でrevertしました。
現状はNotImplementedErrorがraiseされますが、こういうケースでsuperが呼べないのを仕様ということに
するなら(sel...
shugo (Shugo Maeda)
09:05 AM Bug #2402: super in instance_eval
shugo-san
これ,どういう話でしたっけ.
ko1 (Koichi Sasada)
10:57 AM Revision 6190bb4d (git): * ruby_atomic.h (ATOMIC_CAS): new macro for compare-and-exchange.
* vm_core.h (struct rb_thread_struct): add interrupt_mask member.
* thread.c (thread_create_core, Init_Thread): initialize
th->thread_mask.
* vm_core.h (RUBY_VM_INTERRUPTED_ANY): new macro for avoiding
bare th->interrupt_flag.
* vm_...
kosaki (Motohiro KOSAKI)
10:46 AM Revision 8c6ad2b0 (git): * iseq.c (make_compile_option_value): add trace_instruction option.
a patch by davidbalbert (David Albert).
[Bug #6786]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:14 AM Revision 42e9fc41 (git): * bootstraptest/test_thread.rb: try to `join' each 100
threads.
This benchmark seems consuming long time on travis-ci
several times (and make `failure').
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:54 AM Bug #6832 (Closed): Module#instance_method and Module#method_defined? act inconsistently w.r.t #respond_to_missing?
Closed on request of myronmarston.
(I'm not totally sure, but I think only people in the Assignee list can close issues.)
duerst (Martin Dürst)
09:22 AM Bug #6832: Module#instance_method and Module#method_defined? act inconsistently w.r.t #respond_to_missing?
Is there a way to close the issue? I haven't used rubymine enough to figure out how to do that, but I would if I could. myronmarston (Myron Marston)
09:21 AM Bug #6832: Module#instance_method and Module#method_defined? act inconsistently w.r.t #respond_to_missing?
While I still think this is initially surprising behavior, I've thought about it some more and realized that there's a big problem here. Consider this class:
class Foo
def initialize(prefix)
@prefix = prefix
end
def r...
myronmarston (Myron Marston)
09:48 AM Bug #7259 (Closed): ruby-debug-base19x does not compile on 2.0.0-head
ko1 (Koichi Sasada)
09:46 AM Bug #6981: set_trace_func passes strange bindng on method call defined by define_method
time up.
ko1 (Koichi Sasada)
09:35 AM Bug #6701: once literal doesn't care escape
これ,preview 2 の後でも許されますか?
許されないなら next minor 行き.
ko1 (Koichi Sasada)
09:34 AM Bug #6117: Transfers allowed into Fibers that have resumed into other fibers
Exception seems good.
`transfer' and `resume' should not be mix.
Any volunteer?
or it will be tagged `next minor'.
ko1 (Koichi Sasada)
09:30 AM Revision 7b918be3 (git): * common.mk: specify label `built-ruby'.
* benchmark/driver.rb: quote path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:28 AM Revision 521af835 (git): * signal.c (signal_exec): add volatile to make sure setjmp safe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
09:27 AM Bug #5527: set_trace_func binding incorrect
no discussion.
ko1 (Koichi Sasada)
09:25 AM Revision 458796d4 (git): * signal.c (signal_exec): suppress "warning: variable 'signum'
might be clobbered by 'longjmp' or 'vfork'" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:23 AM Bug #5240 (Feedback): Hang when using threads + forks on Debian GNU/kFreeBSD
ko1 (Koichi Sasada)
09:23 AM Bug #5236: Including a module in a superclass after it has been included in a subclass leads to infinite recursion if the module uses `super`
nobu, could you check it?
ko1 (Koichi Sasada)
09:22 AM Bug #4911: timer_thread_function() が thead unsafe
これは忘れてはいけなかった気がする.
小崎先生お願いします.
ko1 (Koichi Sasada)
09:22 AM Revision 70871531 (git): split trap interrupt and async interrupt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
09:20 AM Feature #4614: [RFC/PATCH] thread_pthread.c: lower RUBY_STACK_MIN_LIMIT to 64K
Priority: *High*.
ko1 (Koichi Sasada)
09:19 AM Bug #4537: Incorrectly creating private method via attr_accessor
No discussion.
ko1 (Koichi Sasada)
09:19 AM Revision 2e87867a (git): * benchmark/driver.rb: accept multiple `-e'.
You don't need to use `;' separation character.
[ruby-core:50139] [ruby-trunk - Bug #7380]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:18 AM Bug #4502: strange Module.new behaviour
nobu, could you check it?
I think you tried something like this issue.
ko1 (Koichi Sasada)
09:16 AM Bug #4492 (Feedback): Segfault on successive stack overflows
ko1 (Koichi Sasada)
09:14 AM Bug #4379: [patch] eval(s, b, "(eval)", n) discards location
Are there any applications that this problem is critical for? ko1 (Koichi Sasada)
09:11 AM Bug #4285 (Feedback): Ruby don't have asynchrounous exception safe syntax and It should have.
ko1 (Koichi Sasada)
09:10 AM Bug #4040: SystemStackError with Hash[*a] for Large _a_
We need re-consideration about method invocation to support such cases.
I want to challenge at next version.
ko1 (Koichi Sasada)
09:05 AM Bug #3080: class_variable_set issue with duped Module
nobu, could you check it?
ko1 (Koichi Sasada)
09:03 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
I will check it *after* preview2.
This ticket will not affect *Ruby* level spec.
ko1 (Koichi Sasada)
09:01 AM Feature #1952: cannot stop with Ctrl+C
これはやらんといかんということで,pr2 前か後かわかりませんが,やります. ko1 (Koichi Sasada)
09:01 AM Feature #1586: Including a module already present in ancestors should not be ignored
nobu, could you check it?
ko1 (Koichi Sasada)
09:00 AM Bug #1152: profiler.rb is not concurrent-execution threadsafe
nobu, could you check it?
ko1 (Koichi Sasada)
08:59 AM Bug #953: 深い入れ子の配列の取り扱いで落ちる
タイムアップとして次に回します. ko1 (Koichi Sasada)
08:59 AM Feature #7436: Allow for a "granularity" flag for backtrace_locations
(2012/11/26 7:06), sam.saffron (Sam Saffron) wrote:
> This allows for one to take quicker backtraces if they need less information, additionally BacktraceInfo::Bindings and BacktraceInfo::Klass could be added which allow you to gather...
ko1 (Koichi Sasada)
07:49 AM Feature #7436 (Assigned): Allow for a "granularity" flag for backtrace_locations
zzak (zzak _)
07:08 AM Feature #7436: Allow for a "granularity" flag for backtrace_locations
ouch, this was meant to be a feature req not a bug ... cant figure out how to change sam.saffron (Sam Saffron)
07:06 AM Feature #7436 (Assigned): Allow for a "granularity" flag for backtrace_locations
related to http://bugs.ruby-lang.org/issues/7051
Sometimes one need less information (or more information) associated with backtraces.
It would be nice if one could send in a separate flag informing the VM about the granularity of ...
sam.saffron (Sam Saffron)
08:59 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/26 6:59), sam.saffron (Sam Saffron) wrote:
> caller_locations(0,-2) # should strip the bottom frame

2nd parmeter specify `how many frames'.
I feel 1st parameter is nice to accept negative index.

I don't have posi...
ko1 (Koichi Sasada)
07:49 AM Feature #7434 (Assigned): Allow caller_locations and backtrace_locations to receive negative params
zzak (zzak _)
07:08 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
ouch, this was meant to be pointed at 2.0 can't figure out how to change sam.saffron (Sam Saffron)
06:59 AM Feature #7434 (Closed): Allow caller_locations and backtrace_locations to receive negative params
Further to http://bugs.ruby-lang.org/issues/7051
It would be nice if caller_locations and backtrace_locations has some parity with range apis.
pry(main)> [1,2,3][0..-2]
=> [1, 2]
Similarly:
caller_locations(0,-2) # should ...
sam.saffron (Sam Saffron)
08:56 AM Feature #7435 (Rejected): Exceptions should have backtrace_locations
ko1 (Koichi Sasada)
08:53 AM Feature #7435: Exceptions should have backtrace_locations
(2012/11/26 7:02), sam.saffron (Sam Saffron) wrote:
> This means exceptions could be more efficient as filenames could easily be pinned in memory leading to significantly reduced allocation for exceptions.

Current implementation...
ko1 (Koichi Sasada)
07:54 AM Feature #7435: Exceptions should have backtrace_locations
Sorry, meant next minor, as #7051 zzak (zzak _)
07:48 AM Feature #7435 (Assigned): Exceptions should have backtrace_locations
zzak (zzak _)
07:07 AM Feature #7435: Exceptions should have backtrace_locations
ouch, this was meant to be a feature req not a bug ... cant figure out how to change sam.saffron (Sam Saffron)
07:02 AM Feature #7435 (Rejected): Exceptions should have backtrace_locations
Further to http://bugs.ruby-lang.org/issues/7051
def boom
raise "boom"
end
begin
boom
rescue => e
p e.backtrace
end
# ["t.rb:2:in `boom'", "t.rb:6:in `<main>'"]
It seems exceptions still store backtraces in strin...
sam.saffron (Sam Saffron)
08:13 AM Revision 6746eeca (git): * string.c (rb_str_enumerate_chars, rb_str_enumerate_codepoints)
(rb_str_enumerate_lines): suppress "may be used uninitialized in
this function" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:05 AM Revision f150ed15 (git): * vm_core.h (rb_thread_struct): added 'in_trap' member for marking
running trap handler.
* signal.c (signal_exec): turn on in_trap when running trap.
* thread.c (Init_Thread, thread_create_core): initialize in_trap
when creating new threads.
* thread.c (thread_join_m): raise ThreadError when running t...
kosaki (Motohiro KOSAKI)
07:39 AM Feature #7429: Provide options for core collections to customize behavior
@headius I am afraid it's not going to 2.0, for some reasons:
* it's too late to add new classes to 2.0
* and it will take more time to prepare parallel collection implementation for other Ruby (in this case mainly CRuby).
* the fut...
matz (Yukihiro Matsumoto)
03:57 AM Feature #7429: Provide options for core collections to customize behavior
Speed isn't everything...until it becomes everything. Ruby should not be wasteful unnecessarily. There are also immutable truths about data structure implementation, like the fact that adding thread-safety to most data structures comes a... headius (Charles Nutter)
03:44 AM Feature #7429: Provide options for core collections to customize behavior
That is interesting. I suspect part of the problem is the design of the Hash class itself --something I addressed before in #6442. If Hash had a core set of non-reducible methods which all the others depended, then those should be the on... trans (Thomas Sawyer)
03:26 AM Feature #7429: Provide options for core collections to customize behavior
trans (Thomas Sawyer) wrote:
> I wonder if concurrency behavior can be designed as a mixin. As long as the underlying class conforms to its interface then "ParallelWhatever" becomes possible. ParallelHash would then not be needed as a b...
headius (Charles Nutter)
03:23 AM Feature #7429: Provide options for core collections to customize behavior
matz (Yukihiro Matsumoto) wrote:
> Even though I prefer smaller set of built-in fundamental classes, I don't think 'concurrent' option is sufficient,
> ...
That was indeed my intention; concurrent: true would allow using a completely d...
headius (Charles Nutter)
07:37 AM Revision 3e0becb4 (git): * io.c (argf_each_codepoint): add missing ARGF#codepoints [Bug #7438]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:09 AM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
Addeed #7436 #7435 and #7434 sam.saffron (Sam Saffron)
07:00 AM Revision cb0a4c0f (git): * bignum.c (bigdivrem): restart calculation when bigdivrem1 was
interrupted by signal. Otherwise, ruby script may see a garbage
value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:49 AM Revision 6f3ad9bd (git): * bignum.c (big_div_struct): added volatile to 'stop' member.
Otherwise, "if (bds->stop)" check in bigdivrem1 don't read
memory and ignore interrupt.
* bignum.c (bigdivrem, rb_big_stop): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:43 AM Feature #6895: TracePoint API
> I can't get points.
> ...
Undefined event, where `tp.event #=> nil`. I would assume there is always an event type, but just checking this is so.
> caller or caller_locations is not enough?
Wouldn't caller_locations return the lo...
trans (Thomas Sawyer)
05:53 AM Feature #6895: TracePoint API
Hi,

(2012/11/26 4:27), trans (Thomas Sawyer) wrote:
> I made a comparison of the API with the pure Ruby TracePoint gem I had
written and have a few points:

I don't copy TracePoint gem.

> * Do all traces have a defined...
ko1 (Koichi Sasada)
04:27 AM Feature #6895: TracePoint API
I made a comparison of the API with the pure Ruby TracePoint gem I had written and have a few points:
* Do all traces have a defined event type now? I see that I had #event? and #eventless? methods in my API b/c sometimes event is nil...
trans (Thomas Sawyer)
06:01 AM Feature #6670: str.chars.last should be possible
=begin
An IO may be infinite (({open "/dev/zero" do |io| io.chars.to_a }})), and so may ARGF ((%ruby -e 'ARGF.chars.to_a' /dev/zero%)).
It doesn't make sense to add it to StringIO, but you make work around the omission through String...
drbrain (Eric Hodel)
02:23 AM Feature #6670: str.chars.last should be possible
What about IO, StringIO, ARGF as mentioned above?
Thanks,
Brian
brixen (Brian Shirai)
04:52 AM Bug #7344: gem pristine bigdecimal が失敗してしまう
須藤さんありがとうございます。直りそうな気がします!
mrkn よろしくお願いします!
hsbt (Hiroshi SHIBATA)
03:12 AM Revision e4b54208 (git): string.c: suppress warnings
* string.c (rb_str_enumerate_{lines,chars,codepoints}): suppress
uninitialized variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:11 AM Revision 6a858bc1 (git): Makefile.sub: fix r37821
* win32/Makefile.sub (DLNOBJ): missing in r37821.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:08 AM Feature #7400: Incorporate OpenSSL tests from JRuby.
MartinBosslet (Martin Bosslet) wrote:
> > ((*Some caveats:*))
> ...
Sounds good. I will monitor this bug, but poke me if I haven't noticed updates.
> > * ((*There are several tests that reference bug numbers from JRuby. We would lik...
headius (Charles Nutter)
01:57 AM Revision 769781a0 (git): * test/ruby/test_process.rb (test_setsid): added a few wait for
preventing that Process.getsid(io.pid) makes Errno::ESRCH.
(refix r37844)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
12:52 AM Bug #7246 (Assigned): FileUtils.cp_r does not preserve attributes of directories
Thanks, I'll import your fix unless there is objection.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:19 AM Bug #7180: set_trace_func with error in proc block locks up Ruby with 100% cpu usage and no way to exit without killing proc
The following script also repeat "[:return, 1]".
I'm not sure it is same problem or not.
def m
p:m
end
TracePoint.trace(:call, :return){|tp| p [tp.event, tp.line]; raise "bar"}
m
ko1 (Koichi Sasada)

11/25/2012

11:19 PM Feature #7429: Provide options for core collections to customize behavior
=begin
I wonder if concurrency behavior can be designed as a mixin. As long as the underlying class conforms to its interface then "ParallelWhatever" becomes possible. ParallelHash would then not be needed as a built-in class b/c it wou...
trans (Thomas Sawyer)
09:54 PM Feature #7429 (Rejected): Provide options for core collections to customize behavior
Even though I prefer smaller set of built-in fundamental classes, I don't think 'concurrent' option is sufficient,
since it requires totally different implementation. I think it's rather better for you to propose 'ParallelHash' etc.
...
matz (Yukihiro Matsumoto)
09:55 AM Feature #7429: Provide options for core collections to customize behavior
Too late completely, as you said.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:49 AM Feature #7429 (Rejected): Provide options for core collections to customize behavior
Many folks know that Matz is a fan of having a few classes that handle a wide range of behavior. For this reason, I think we're unlikely to get a set of parallelism-safe collections added to Ruby. I propose an alternative that would allo... headius (Charles Nutter)
11:11 PM Feature #7432: Explicit way to define local variable in scope
I see why then. Thanks. trans (Thomas Sawyer)
09:49 PM Feature #7432 (Rejected): Explicit way to define local variable in scope
Since I am sick of 'var' and 'local' in other languages, I don't want to add explicit local variable declaration, that requires a new keyword. Introducing a new keyword may break existing programs.
@trans Your idea would eliminate ma...
matz (Yukihiro Matsumoto)
08:02 PM Feature #7432: Explicit way to define local variable in scope
I have always been curious why there is no dynamic way to create local variables (other then eval).
Eg. x = 10 might be dynamically written:
local :x, 10
Since we can create just about anything else dynamically, it seems like ...
trans (Thomas Sawyer)
06:17 PM Feature #7432 (Assigned): Explicit way to define local variable in scope
Assigning to matz, but don't hold your breath; matz has rejected such a explicit variable declaration syntax many times.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
05:18 PM Feature #7432: Explicit way to define local variable in scope
This should definitely not be a method, however I would welcome a 'local' keyword for this purpose. Anonymous
04:32 PM Feature #7432 (Rejected): Explicit way to define local variable in scope
Imagine code such as this
def test_smth
result = nil
assert_nothing_raised { result = some_slow_calculation }
assert_equal expected_answer, result
end
Line `result = nil` means nothing more than our intention to sim...
prijutme4ty (Ilya Vorontsov)
10:40 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
あぁ、それは解決しないです。そっちはrubygems.orgにあるbigdecimal-1.1.0.gemをダウンロードしてビルドするのでdefault gemとかは関係ない世界になります。
gem install bigdecimalする機会があるのかどうかはおいておくとして、bigdecimal gemがトップレベルにextconf.rbとかbigdecimal.cとかを転がしているのをext/bigdecimal/以下に移動すれば解決するような気がします!
...
kou (Kouhei Sutou)
09:42 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
gem install bigdecimal でも同様の結果になってしまいました。rubygems/rubygems の #377 でインストールできない問題も解決するのであれば、rubygems 側の変更でよさそうです。 hsbt (Hiroshi SHIBATA)
01:46 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
RubyGemsに https://github.com/rubygems/rubygems/pull/377 がマージされて、RubyGemsがRuby本体にマージされれば #7427 解決しそうな気がします。RubyGemsの方のpull requestではdefault gemのpristineはスキップするようにしてあるので。 kou (Kouhei Sutou)
02:16 AM Bug #7344: gem pristine bigdecimal が失敗してしまう
他のライブラリは pure-ruby なので問題無いようです。EM 等にならってビルド時の working ディレクトリを tmp とかにすれば良さそうな気もしますが、rubygems や fake_gem.rb の仕組みをあまりよくわかってないので、パッチまでは作れませんでした。 hsbt (Hiroshi SHIBATA)
09:32 PM Feature #6688: Object#replace
This is a very dangerous proposal and has the potential to cause all sorts of crashes and other nastiness.
Consider this case:
o = {}
m = o.method :[]=
o.replace []
m.call("foo", "bar")
And this case:
a = Class.ne...
Anonymous
02:33 AM Feature #6688: Object#replace
This is an awful, awful idea. Objects should never change their basic type in-place, or the very essence of OO is destroyed. Matz has also said in the past he did not like #become and would not add it to Ruby.
It is bad enough that we...
headius (Charles Nutter)
09:00 PM Bug #7430: 'unexpected return' occurs when call a Proc that returning value in rescue
In fact, there is no problem with 'return' in 'rescue'.
My intention is to return after the Proc not continue execution. Like this:
def test
puts "start: test"
p = Proc.new do |date_str|
begin
require "time"
...
danilo.s.coelho (Danilo Coelho)
09:50 AM Bug #7430 (Rejected): 'unexpected return' occurs when call a Proc that returning value in rescue
This is the spec. To exit from Proc, use next instead of return.
p = Proc.new do
begin
1 / 0
rescue
next "error handled by proc"
end
end
p.call
You can use return to exit from lambda.
p = lambd...
mame (Yusuke Endoh)
05:44 AM Bug #7430 (Rejected): 'unexpected return' occurs when call a Proc that returning value in rescue
p = Proc.new do
begin
1 / 0
rescue
return "error handled by proc"
end
end
p.call
danilo.s.coelho (Danilo Coelho)
04:59 PM Revision 251dbc12 (git): * 2012-11-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:59 PM Revision 997518c6 (git): * test/ruby/test_process.rb (test_setsid): call Process.getsid for
child process in child process. because parent process call
Process.getsid with io.pid, Errno::ESRCH could be raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:45 PM Bug #6653: 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections
Unfortunately, I've seen nothing wrong even if file descriptor limits are greater than FD_SETSIZE.
kosaki (Motohiro KOSAKI)
11:41 AM Bug #6653 (Assigned): 1.9.2/1.9.3 exhibit SEGV with many threads+tcp connections
Erik, thank you for the reply!
Well, it seems that there is something wrong in the handling of file descriptors bigger than FD_SETSIZE.
Akr-san, kosaki-san, ko1, do you have any idea?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
01:39 PM Revision 56132b13 (git): array.c: refactoring of rb_ary_delete_same()
* array.c (ary_resize_smaller): new function to resize array.
* array.c (rb_ary_delete): refactoring to extract a function.
* array.c (rb_ary_delete_same): refactoring.
It renames function, reduces duplicated code and removes unused
...
h.shirosaki (Hiroshi Shirosaki)
01:28 PM Revision 0012b0ab (git): * array.c: fixes for the updated documentation in r35858:
Typos and #take/#drop accept to take/drop 0 elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
01:08 PM Bug #7431 (Rejected): Encoding.compatible? results are order-dependent for Strings but not Encodings
mame (Yusuke Endoh)
12:48 PM Bug #7431: Encoding.compatible? results are order-dependent for Strings but not Encodings
Nevermind, I was writing other specs and interchanging Encoding constants and encoding names (eg that #encode and #force_encoding accept). I'm sure no one could ever get confused by these APIs.
You can close the issue.
Cheers,
Brian
brixen (Brian Shirai)
12:32 PM Bug #7431 (Rejected): Encoding.compatible? results are order-dependent for Strings but not Encodings
Could someone please explain the following?
1.9.3p286 :001 > Encoding.compatible? "euc-jp", "utf-8"
=> #<Encoding:UTF-8>
1.9.3p286 :002 > Encoding.compatible? "utf-8", "euc-jp"
=> #<Encoding:UTF-8>
1.9.3p286 :003 > a = "a".for...
brixen (Brian Shirai)
12:15 PM Bug #7311 (Assigned): DRb test suite fails when hostname cannot be reached
Seki-san, Urabe-san, Naruse-san, what do you think?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:03 PM Bug #7318 (Feedback): activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213: [BUG] Segmentation fault
Sorry, please contact first on pg gem developer. The segfault seems to occur in pg_ext.so.
If they say this is definitely Ruby issue, please tell us the detailed reproducing process, assuming that we are ignorant about rails.
Thanks...
mame (Yusuke Endoh)
11:57 AM Bug #7364 (Assigned): CGI::Cookie.parse can't deal with cookie options
I guess that CGI::Cookie::parse is a method for parsing ENV["HTTP_COOKIE"], not http response.
Anyway I'm assigning to xibbar, cgi.rb maintainer.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:17 AM Feature #6589: Set#rehash
headius (Charles Nutter) wrote:
> Is it specified that Set must be hashtable-based forever? There are alternate ways to implement a Set.
Alternate ways of implementing Set with check/insertion in O(1) that would also work if structur...
marcandre (Marc-Andre Lafortune)
02:05 AM Feature #6589: Set#rehash
Is it specified that Set must be hashtable-based forever? There are alternate ways to implement a Set. headius (Charles Nutter)
10:51 AM Feature #7349: Struct#inspect needs more meaningful output
This is not a bug. This ticket has been moved to the feature tracker.
I'm not against this proposal, but I don't think that people normally check the singleton class to know Struct fields. You may want to use Struct.#members:
p...
mame (Yusuke Endoh)
10:44 AM Feature #7349 (Assigned): Struct#inspect needs more meaningful output
mame (Yusuke Endoh)
10:45 AM Revision d91b1dd4 (git): * NEWS: add a news about iconv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
10:42 AM Bug #7373 (Assigned): FileUtils#chmod verbose gives error when mode is string
Thank you.
I'll apply the following patch unless there is objection.
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index af2d19a..57ab0cf 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -996,6 +996,10 @@ private
...
mame (Yusuke Endoh)
09:46 AM Feature #6647: Exceptions raised in threads should be logged
headius (Charles Nutter) wrote:
> Can we at least agree it should happen for 2.0.0?
No, objection. This looks to me nothing except for a feature request.
I cannot estimate the impact how writing to stderr affects existing applicati...
mame (Yusuke Endoh)
02:18 AM Feature #6647: Exceptions raised in threads should be logged
Checking in on this again. Can we at least agree it should happen for 2.0.0? Perhaps Matz should review this? headius (Charles Nutter)
09:34 AM Feature #6769: rbinstall.rb: install both src and batch files separetely
Though it is better if it is implemented in this month, an accepted feature can be implemented up to code freeze (around Christmas).
If you are still having difficulties, it is okay to postpone to next minor.
Thanks,
--
Yusuke E...
mame (Yusuke Endoh)
09:16 AM Feature #6769: rbinstall.rb: install both src and batch files separetely
Sorry, was unable to work on this while still working on the other bug/issues.
I'm moving this to next minor.
Either way, RubyInstaller binary distributions have been doing what this ticket describes.
Thank you.
luislavena (Luis Lavena)
07:39 AM Revision 1ab73afb (git): Fix test to follow r37838
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:00 AM Bug #7326: Time.c doc improvements
After going over the file one last time I found a couple of lines I've missed. bt (Bernd Homuth)
06:19 AM Feature #7121: Extending the use of `require'
Just an alternative idea. What about using Regexp as an alternative to String?
require /.*_helper/
prijutme4ty (Ilya Vorontsov)
03:46 AM Feature #6670 (Closed): str.chars.last should be possible
This issue was solved with changeset r37838.
Yutaka, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
String#{lines,chars,codepoints,bytes} now return an array.
* s...
knu (Akinori MUSHA)
02:28 AM Feature #6721: Object#yield_self
It occurs to me #apply is used in some other languages to refer to the elements of a collection rather than to the collection itself.
~~~ruby
[1,2,3].apply {|n| puts n}
~~~
Did we ever decide if the `#self` method would be added?...
headius (Charles Nutter)
02:03 AM Feature #7299: Ruby should not completely ignore blocks.
Perhaps methods that want to ensure nobody accidentally passes in a block should just check for it? `fail if block_given?` for example?
An option for a syntactic check in Ruby code: def foo(&nil) => raise error on call if a block is g...
headius (Charles Nutter)
01:39 AM Bug #7081: GServer orphaned threads lead to resource exhaustion
FWIW, this could have been fixed by ko1's proposal for threads that don't start until you start them. This would guarantee the thread was created and in the list before started.
There's an alternative fix:
diff --git a/lib/ruby/1.9...
headius (Charles Nutter)
 

Also available in: Atom