Project

General

Profile

Activity

From 09/30/2012 to 10/06/2012

10/06/2012

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

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

def self.m
C
end
end

puts 'named module'
M.m

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

10/05/2012

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

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

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

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

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

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

def self.m
C
end
end

puts 'named module'
M.m

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

10/04/2012

11:48 PM Feature #7095 (Closed): Non-recursive marking
This issue was solved with changeset r37088.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (init_heap): call init_mark_stack before to allocate
...
authorNari (Narihiro Nakamura)
11:00 AM Feature #7095 (Assigned): Non-recursive marking
authorNari (Narihiro Nakamura) wrote:
> This issue was solved with changeset r37075.
> ...
この変更以降、Linux 32bit 環境で SEGV 時の backtrace がでなくなっているので確認お願いします。
% ./ruby -e'Process.kill :SEGV, $$'
-e:1: [BUG] Segmentation fault
ruby 2.0.0...
naruse (Yui NARUSE)
08:48 PM Feature #6637 (Feedback): Add HTML5 support to CGI
I need your full support patch to support the complete HTML5.
I will write "patch by stomar" to log, I promise.
Please provide.
xibbar (Takeyuki FUJIOKA)
07:32 PM Feature #6637: Add HTML5 support to CGI
=begin
Hi Takeyuki,
Did you consider the issue with the <header> tag?
At the moment it can not be created with the tag writer
like the other tags. I proposed a possible solution
in my previous posts.
Do you have any thoughts ab...
stomar (Marcus Stollsteimer)
11:20 AM Feature #6637 (Closed): Add HTML5 support to CGI
This issue was solved with changeset r37077.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi/html5.rb: Add html5 tag maker.
* lib/cgi/core.rb:...
xibbar (Takeyuki FUJIOKA)
11:03 AM Feature #6637: Add HTML5 support to CGI
Sorry, I was into other cgi performance tuning.
I will commit immediately.
xibbar (Takeyuki FUJIOKA)
07:32 PM Feature #7106 (Open): FileUtils.touch should allow touching the symlink itself rather than the file the link points to
Most systems support POSIX lutimes sys call that allows a symlink to be touched. I'd like to see this feature implemented.
Unfortunately I'd like to see this feature on Solaris as soon as possible but I cannot see lutimes syscall suppor...
cirrusthinking (Alessandro Diaferia)
04:57 PM Bug #6941 (Closed): ID_H_TARGET no longer created after running make
Now id.h doesn't depend on parse.y since r36864. nobu (Nobuyoshi Nakada)
02:48 PM Revision ec62e301 (git): * gc.c (init_heap): call init_mark_stack before to allocate
altstack. This change avoid the stack overflow at the signal
handler on 32bit, but I don't understand reason... [Feature #7095]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
01:52 PM Revision 08c8605d (git): * insns.def (getlocal, setlocal): remove old getlocal/setlocal
instructions and rename getdaynmic/setdynamic instructions
to getlocal/setlocal.
* compile.c: ditto.
* iseq.c: remove TS_DINDEX.
* vm_exec.h (dindex_t): remove type definition of `dindex_t'.
* tool/instruction.rb: ditto.
git-svn-id:...
ko1 (Koichi Sasada)
12:48 PM Revision 326e22e1 (git): * vm.c (vm_analysis_insn|operand|register): use st_insert
instead of using rb_hash_aset() because rb_hash_aset()
check $SAFE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:31 PM Revision 23dc0dbc (git): * vm.c (VM_COLLECT_USAGE_DETAILS): make new VM usage analysis
hooks (old macro name is COLLECT_USAGE_ANALYSIS).
This feature is only for VM developers. (I'm not sure I can use
`VM developers' (the plural form) in this sentence).
If VM_COLLECT_USAGE_DETAILS is not 0, VM enables the following
...
ko1 (Koichi Sasada)
11:43 AM Bug #7084 (Closed): RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
This issue was solved with changeset r37080.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: precise stack size
* thread_pthread.c (ruby_i...
nobu (Nobuyoshi Nakada)
02:22 AM Bug #7084 (Open): RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
まだ直ってません。ulimit -s 32768 の場合はきちんと SystemStackError で終了しましたが、
ulimit -s 4096 の場合に Segmentation Fault が発生しています。
さっき追加で調査した結果を以下に述べます。
https://gist.github.com/3828296
この gist に貼った 1.patch を当てて問題をコードを実行すると、
1.log として貼付けたように iseq_compi...
mrkn (Kenta Murata)
10:00 AM Revision b1ad7977 (git): * test/ruby/test_settracefunc.rb (test_tracepoint):
remove unused test case.
(this test case is redefined by newer tests)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:34 AM Revision 2f9f17ac (git): * gc.c (rb_objspace_call_finalizer): call gc_mark_stacked_objects
at suitable point.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
07:31 AM Revision 6aa2aabd (git): gc.c: self-referencing finalizers
* gc.c (rb_objspace_call_finalizer): mark self-referencing finalizers
before run finalizers, to fix SEGV from btest on 32bit.
* gc.c (gc_mark_stacked_objects): extract from gc_marks().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
nobu (Nobuyoshi Nakada)
07:23 AM Revision 6fa2980e (git): * gc.c: use enum for debugging.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:55 AM Bug #7105 (Closed): Socket documentation fix
The "Quick start" section of the Socket documentation refers to the Socket::INET constant, which doesn't exist. I've attached a small patch changing the reference to Socket::AF_INET, which seems consistent with the rest of the documentat... davidbalbert (David Albert)
02:43 AM Revision fab7e661 (git): thread_pthread.c: precise stack size
* thread_pthread.c (ruby_init_stack): round stack limit to page size
boundary to calculate stack size more precisely. [ruby-dev:46174]
[Bug #7084]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37080 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
02:39 AM Revision cbe3646e (git): * thread_pthread.c (RUBY_STACK_MIN_LIMIT): name magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:21 AM Revision 6ed36284 (git): * 2012-10-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:20 AM Revision aeca9656 (git): * lib/cgi/html5.rb: Add html5 tag maker.
* lib/cgi/core.rb: ditto.
[Feature #6637]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA

10/03/2012

09:30 PM Feature #7095 (Closed): Non-recursive marking
This issue was solved with changeset r37075.
Narihiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Use the non-recursive marking instead of recursion. T...
authorNari (Narihiro Nakamura)
06:38 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
これって,r37072 で直ったんでしょうか.
ko1 (Koichi Sasada)
03:33 PM Bug #7084 (Closed): RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
This issue was solved with changeset r37072.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
thread_pthread.c: init stack with ulimit
* thread_pthread.c (ru...
nobu (Nobuyoshi Nakada)
05:30 PM Bug #7080: Segmentation Fault (sometimes) when running script
This fix does work, with on caveat:
When your instructions say to run
"gem install mysql --platform=ruby -- --with-mysql-dir=C:/mysql-connector-c-noinstall-6.0.2-win32"
I had to download mysql 2.8.1-x86-mingw32 and install from my...
scnissen (Sam Nissen)
01:23 PM Revision 4336caf2 (git): gc.c: unused function
* gc.c (free_stack_chunks): it is used only when per-VM object space
is enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:30 PM Revision 8d53a08e (git): * gc.c: Use the non-recursive marking instead of recursion. The
recursion marking of CRuby needs checking stack overflow and the
fail-safe system, but these systems not good at partial points,
for example, marking deep tree structures. [ruby-dev:46184]
[Feature #7095]
* configure.in (GC_MARK_S...
authorNari (Narihiro Nakamura)
12:18 PM Feature #7047: Add new C API: rb_newobj_with
kou (Kouhei Sutou) wrote:
> rb_obj_new()はどうでしょうか。
> ...
ありがとうございます。
でも、おっしゃる通りすこし紛らわしい気がしますねぇ。
authorNari (Narihiro Nakamura)
11:43 AM Feature #7103 (Closed): Improved IO#reopen which accepts optional hash
This issue was solved with changeset r37071.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: improved IO#reopen
* io.c (rb_io_reopen): improvement to...
nobu (Nobuyoshi Nakada)
07:58 AM Revision f6d0cb46 (git): ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:33 AM Revision 396903d3 (git): depend: dependency
* ext/json/generator/depend: fix missing dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:33 AM Revision 54c17dc8 (git): thread_pthread.c: init stack with ulimit
* thread_pthread.c (ruby_init_stack): use getrlimit() for the main
thread on Mac OS X, since pthread_get_stack{addr,size}_np() and
return the default value always, but not the ulimit value.
[ruby-dev:46174] [Bug #7084]
git-svn-id:...
nobu (Nobuyoshi Nakada)
05:59 AM Bug #7097: Thread locals don't work inside Enumerator
>> I'm afraid compatibility breakage. mame-san said:
>
> Maybe I wasn't clear. I think we should leave Thread#[] behavior as-is.
> We can add new methods for accessing thread locals. This will maintain
> backwards compatibilit...
kosaki (Motohiro KOSAKI)
03:53 AM Bug #7097: Thread locals don't work inside Enumerator
On Wed, Oct 03, 2012 at 02:46:02AM +0900, KOSAKI Motohiro wrote:
> >> For example:
> >>
> >> Thread[:foo] = :bar
> >> Fiber.new(derive_fiber_local_storage: true) do
> >> Thread[:foo] #=> :bar
> >> end
> >>
> ...
Anonymous
03:47 AM Bug #7097: Thread locals don't work inside Enumerator
Here is a patch to implement thread locals. It just sets a hash on the thread that you can access via Thread#get_local and Thread#set_local. We should probably add a Thread#local? to test for keys. tenderlovemaking (Aaron Patterson)
02:53 AM Bug #7097: Thread locals don't work inside Enumerator
>> For example:
>>
>> Thread[:foo] = :bar
>> Fiber.new(derive_fiber_local_storage: true) do
>> Thread[:foo] #=> :bar
>> end
>>
>> And use Fiber in enumerator with this option true.
>
> I think the "...
kosaki (Motohiro KOSAKI)
02:43 AM Revision 5c677a83 (git): io.c: improved IO#reopen
* io.c (rb_io_reopen): improvement to accept optional arguments.
a patch by Glass_saga (Masaki Matsushita) in [ruby-core:47806].
[Feature #7103]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37071 b2dd03c8-39d4-4d8f-98ff-823fe69...
nobu (Nobuyoshi Nakada)

10/02/2012

11:51 PM Feature #7103 (Closed): Improved IO#reopen which accepts optional hash
I propose improved IO#reopen which accepts optional hash.
The new IO#reopen has the same interface as IO.open and it enables us to reopen IO with full configuration.
I have attached a patch.
I have removed mode_enc() and rb_io_mode_...
Glass_saga (Masaki Matsushita)
10:29 PM Feature #7047: Add new C API: rb_newobj_with
rb_obj_new()はどうでしょうか。
rb_obj_がprefixのみなさんとまぎらわしいかしら。
kou (Kouhei Sutou)
07:36 PM Revision 48af304c (git): * ext/openssl/ossl_x509store.c (ossl_x509store_add_file): Added
documentation
* ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths):
ditto
* ext/openssl/ossl_x509store.c (ossl_x509store_add_cert): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37070 b2dd03c8-39d4-4d8f-98ff-8...
drbrain (Eric Hodel)
05:25 PM Revision a0ead9fc (git): * 2012-10-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:25 PM Revision a1ed68b9 (git): * error.c (exc_to_s, name_err_to_s, name_err_mesg_to_str): do not
taint messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:21 PM Bug #7100 (Closed): WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
=begin
以下のようにすると必ず警告が記録されるようです。
$ ruby -v -r webrick -e 'WEBrick::HTTPServer.new(Port: 3000)'
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
[2012-09-04 19:20:48] INFO WEBrick 1.3.1
[2012-09-04 19:20:48] INFO ...
sho-h (Sho Hashimoto)
03:11 PM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
rklemme (Robert Klemme) wrote:
> shugo (Shugo Maeda) wrote:
> ...
I heard the word "reentrant mutex" in the late 90's, but I don't know whether it's Java's invention or not.
> Monitor on the other hand is reentrant and so is synchro...
shugo (Shugo Maeda)
03:47 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
shugo (Shugo Maeda) wrote:
> kosaki (Motohiro KOSAKI) wrote:
> ...
Mutex is not reentrant so there is one reason why Mutex cannot be designed after Java monitor. Monitor on the other hand is reentrant and so is synchronize in Java. R...
rklemme (Robert Klemme)
02:53 PM Bug #7097: Thread locals don't work inside Enumerator
On Tue, Oct 02, 2012 at 10:34:47AM +0900, SASADA Koichi wrote:
> (2012/10/02 9:42), Aaron Patterson wrote:
> > On Tue, Oct 02, 2012 at 08:32:51AM +0900, SASADA Koichi wrote:
> >> (2012/10/02 8:22), SASADA Koichi wrote:
> >>>
> >>> ...
Anonymous
10:53 AM Bug #7097: Thread locals don't work inside Enumerator
(2012/10/02 9:42), Aaron Patterson wrote:
> On Tue, Oct 02, 2012 at 08:32:51AM +0900, SASADA Koichi wrote:
>> (2012/10/02 8:22), SASADA Koichi wrote:
>>>
>>> One idea is:
>>>
>>> - Define: Thread#[] -> Thred#current_fiber#...
ko1 (Koichi Sasada)
09:53 AM Bug #7097: Thread locals don't work inside Enumerator
On Tue, Oct 02, 2012 at 08:32:51AM +0900, SASADA Koichi wrote:
> (2012/10/02 8:22), SASADA Koichi wrote:
> >
> > One idea is:
> >
> > - Define: Thread#[] -> Thred#current_fiber#[]
> > - Add: Thread#truly_thread_local_get(key...
Anonymous
08:53 AM Bug #7097: Thread locals don't work inside Enumerator
(2012/10/02 8:32), SASADA Koichi wrote:
> Add an option to derive Fiber local storage at a Fiber creation.

Sorry, `derive' is not a correct word. I want to say `share'.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
08:53 AM Bug #7097: Thread locals don't work inside Enumerator
(2012/10/02 8:22), SASADA Koichi wrote:
>
> One idea is:
>
> - Define: Thread#[] -> Thred#current_fiber#[]
> - Add: Thread#truly_thread_local_get(key)
> and Thread#truly_thread_local_set(key, val)
>
> (of cou...
ko1 (Koichi Sasada)
08:23 AM Bug #7097: Thread locals don't work inside Enumerator
(2012/10/02 3:12), Aaron Patterson wrote:
>> > I guess it's a side effect to use Fiber in Enumerator internal.
> Yes, it is. I don't know why Fibers impact thread locals, but I hope
> this test demonstrates how it can cause probl...
ko1 (Koichi Sasada)
03:53 AM Bug #7097: Thread locals don't work inside Enumerator
On Mon, Oct 1, 2012 at 2:24 PM, KOSAKI Motohiro
<kosaki.motohiro@gmail.com> wrote:
> On Mon, Oct 1, 2012 at 2:12 PM, Aaron Patterson
> <tenderlove@ruby-lang.org> wrote:
>> On Tue, Oct 02, 2012 at 03:05:17AM +0900, kosaki (Motohi...
kosaki (Motohiro KOSAKI)
03:29 AM Bug #7097: Thread locals don't work inside Enumerator
On Mon, Oct 1, 2012 at 2:12 PM, Aaron Patterson
<tenderlove@ruby-lang.org> wrote:
> On Tue, Oct 02, 2012 at 03:05:17AM +0900, kosaki (Motohiro KOSAKI) wrote:
>>
>> Issue #7097 has been updated by kosaki (Motohiro KOSAKI).
>>
...
kosaki (Motohiro KOSAKI)
03:23 AM Bug #7097: Thread locals don't work inside Enumerator
On Tue, Oct 02, 2012 at 03:05:17AM +0900, kosaki (Motohiro KOSAKI) wrote:
>
> Issue #7097 has been updated by kosaki (Motohiro KOSAKI).
>
> Status changed from Open to Assigned
> Assignee set to ko1 (Koichi Sasada)
>
> I guess...
Anonymous
03:05 AM Bug #7097 (Assigned): Thread locals don't work inside Enumerator
I guess it's a side effect to use Fiber in Enumerator internal.
ko1: what do you think?
kosaki (Motohiro KOSAKI)
02:58 AM Bug #7097 (Closed): Thread locals don't work inside Enumerator
I set a thread local outside an Enumerator. The Enumerator runs inside the same thread where I set the local. I would expect the thread local to be available since I am in the same thread, but it is not.
Here is a test that shows th...
tenderlovemaking (Aaron Patterson)
02:38 PM Feature #7095: Non-recursive marking
パッチのレビューありがとうございます!
kosaki (Motohiro KOSAKI) wrote:
> 2012/10/1 SASADA Koichi <ko1@atdot.net>:
> ...
(snip)
> > 遅くなっていない,ということで,デメリットが思いつかないのでよろしいの
> ...
いろいろ気にしすぎました…。
この辺はあんまり効果なさそうなのでテキトーに決め打ちしたいと思います。
pageは紛らわしいのでchunkとか、segmentがい...
authorNari (Narihiro Nakamura)
03:23 AM Feature #7095: Non-recursive marking
2012/10/1 SASADA Koichi <ko1@atdot.net>:
> (2012/10/02 0:21), authorNari (Narihiro Nakamura) wrote:
>>
>> Issue #7095 has been reported by authorNari (Narihiro Nakamura).
>>
>> ----------------------------------------
>> Bug...
kosaki (Motohiro KOSAKI)
01:23 AM Feature #7095: Non-recursive marking
(2012/10/02 0:21), authorNari (Narihiro Nakamura) wrote:
>
> Issue #7095 has been reported by authorNari (Narihiro Nakamura).
>
> ----------------------------------------
> Bug #7095: Non-recursive marking
> https://bugs.r...
ko1 (Koichi Sasada)
12:21 AM Feature #7095 (Closed): Non-recursive marking
nariです。
GCのマーキングで関数の再帰呼び出しを使わないバージョンを書いてみました。
差分: https://github.com/authorNari/ruby/compare/non_recursion_marking
パッチ: https://github.com/authorNari/ruby/compare/non_recursion_marking.patch
= 現状の問題点
現在のマークは、基本的にはオブジェクト、子オブジェク...
authorNari (Narihiro Nakamura)
01:17 PM Bug #6900 (Closed): execinfo ライブラリ(およびそのヘッダ)の探索に --with-opt-dir の指定が利かない
Fix committed in r37062. knu (Akinori MUSHA)
08:28 AM Bug #7099 (Closed): Fixing some grammar in thread.c docs
Just some small grammar fixes, nothing huge. steveklabnik (Steve Klabnik)
07:47 AM Revision a63bde6d (git): * 2012-10-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:47 AM Revision a416367b (git): eval.c: hide internal hash
* eval.c (identity_hash_new): hide internal hashes for refinements.
* eval.c (rb_mod_refine): no default value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:12 AM Feature #5531: deep_value for dealing with nested hashes
I think there is a strong case for this logic built in to ruby. weexpectedTHIS (Kyle Peyton)
12:09 AM Feature #6737: Add Hash#read and alias as #[].
=begin
I attempted to use #fetch as the CRUD method of reading and ran into an issue that may make it infeasible. Because #fetch accepts an argument or block for the default, it never handles the instance-level default or default_proc. I...
trans (Thomas Sawyer)

10/01/2012

06:43 PM Feature #7091: Object#puts_to
nobu (Nobuyoshi Nakada) wrote:
> =begin
> ...
Thank you, Nobu. Hadn't seen this before. I wish to have similar syntax for output in file by filename, but this is also good enough.
prijutme4ty (Ilya Vorontsov)
06:31 PM Feature #7091: Object#puts_to
Don't you feel that mixing function call and method-chain is ugly? This was the main reason why I proposed this method, not inability to do this.
In case that expression is full of curl-braces and so on, additional level of "brace-deepn...
prijutme4ty (Ilya Vorontsov)
10:30 AM Feature #7091: Object#puts_to
=begin
readlines.sort.map{...}.select{...}.display($stderr)
=end
nobu (Nobuyoshi Nakada)
12:54 AM Feature #7091 (Rejected): Object#puts_to
=begin
There are several ways to do this just as easily:
Write to $stdout:
puts(*readlines.sort.map{...}.select{...})
Write to $stderr:
$stderr.puts(*readlines.sort.map{...}.select{...})
Write to 'file.txt':
File...
drbrain (Eric Hodel)
06:38 PM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
kosaki (Motohiro KOSAKI) wrote:
> monitor is based on Java monitor semantics.
My Java knowledge is rusted, but monitor is not based on Java monitor semantics, at least when it was designed. Java's monitor mechanism mixes a mutex and...
shugo (Shugo Maeda)
02:52 PM Revision 39ef471e (git): * ChangeLog: fix typos of r37064.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
01:56 PM Revision e56eb1b1 (git): * eval.c (identify_hash_new): new function to create a new identity
hash.
* eval.c (rb_overlay_module, rb_mod_using, rb_mod_refine): use
identify_hash_new().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
01:29 PM Feature #7047: Add new C API: rb_newobj_with
(2012/10/01 13:15), authorNari (Narihiro Nakamura) wrote:
> with_flagsでもいいと思うんだけど、引数としてはflagsもklassも、どちらも
> 何かしらのタイプを受け取るので、 rb_newobj_of(xxx) がいいのじゃないか、
> とおっしゃってました。new obj of class みたいな意味で。
>
> * rb_newobj_of(klass, VALU...
ko1 (Koichi Sasada)
01:15 PM Feature #7047: Add new C API: rb_newobj_with
ko1 (Koichi Sasada) wrote:
> (2012/09/26 22:22), authorNari (Narihiro Nakamura) wrote:
> ...
まつもとさんに直接意見を聞いてみました。
with_flagsでもいいと思うんだけど、引数としてはflagsもklassも、どちらも
何かしらのタイプを受け取るので、 rb_newobj_of(xxx) がいいのじゃないか、
とおっしゃってました。new obj of clas...
authorNari (Narihiro Nakamura)
07:59 AM Feature #7047: Add new C API: rb_newobj_with
(2012/09/26 22:22), authorNari (Narihiro Nakamura) wrote:
> rb_newobj_with(klass, VALUE flags) でパッチを修正しました。

flags を取るようにしたので,rb_newobj_with_flags でどうでしょうか.
何かしら,マクロで隠蔽して,実質こいつは呼ばない,となると,長い名前でも
良いのではないか,と思うのですが(別に長くてもいいか?).
...
ko1 (Koichi Sasada)
06:38 AM Bug #7092 (Rejected): StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives
To reproduce:
>> require 'strscan'
>> ss = StringScanner.new("ab")
>> ss.scan(/./)
=> "a"
>> ss.scan(/^./) # expecting nil, since the head is in the middle of a line
=> "b"
As a workaround-that-didn't-w...
jayferd (Jay Adkisson)

09/30/2012

11:40 PM Feature #7091 (Rejected): Object#puts_to
I suggest a new method Object#puts_to(io_or_filename) (or BasicObject#puts_to)
It's usual that one-two-three-line scripts have big chains like
readlines.sort.map{...}.select{...} and so on and after you wrote such a monstruous expres...
prijutme4ty (Ilya Vorontsov)
11:40 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
=begin
A single dot is very unobtrusive. So I just think that `.foo` and `foo` resp. `@.foo` and `@foo` would look too similar to be easily distinguished, especially when browsing through larger pieces of code.
=end
=end
stomar (Marcus Stollsteimer)
06:07 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
@stomar, maybe you are right that `self.foo =` is more readable than `@.foo =` or `.foo =`, especially for someone who would see it for the first time. However, then it seems to me that `bar = self.foo()` is also more readable than just... alexeymuranov (Alexey Muranov)
02:57 PM Feature #7055: Allow `.foo=` as a synonym of `self.foo=`
=begin
I think that would decrease readability of the code quite a lot (even more so for the first suggestion) and I don't see ((*any*)) benefit. It's only four characters.
=end
stomar (Marcus Stollsteimer)
09:53 PM Bug #7085: Subversion → GitHub gateway stops.
Hi, I guess you use a fixed SSH_AUTH_SOCK ? Then it's OK as long as you carefully
restrict the socket's permission. Anyone can read form the socket can fake you.
Anyway that's a normal security (not colo-specific). So go ahead, w...
shyouhei (Shyouhei Urabe)
04:23 PM Bug #7085: Subversion → GitHub gateway stops.
Yes, it is possible. If you're comfortable with this, I can set it up as soon as I have the gateway code.

- Evan // via iPhone


On Sep 29, 2012, at 6:27 PM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:

> On 09/30/2012 02:...
evanphx (Evan Phoenix)
10:29 AM Bug #7085: Subversion → GitHub gateway stops.
On 09/30/2012 02:33 AM, Evan Phoenix wrote:
> Hello shyouhei,
>
> I would be happy to have RubyCentral run the gateway but I'd like to run it in colocation. I can guarantee security of the keys by using passphrases and ssh-agent....
shyouhei (Shyouhei Urabe)
10:29 AM Bug #7085: Subversion → GitHub gateway stops.
Hello.

On 09/30/2012 02:21 AM, Luis Lavena wrote:
> Thank you Shyouhei Urabe,
>
> Wouldn't be possible setup the bridge on same subversion server so it doesn't require ssh keys to push?

Yes, SSH key business is not need...
shyouhei (Shyouhei Urabe)
02:53 AM Bug #7085: Subversion → GitHub gateway stops.
Hello shyouhei,

I would be happy to have RubyCentral run the gateway but I'd like to run it in colocation. I can guarantee security of the keys by using passphrases and ssh-agent. The machine in question will only run the gateway, ...
evanphx (Evan Phoenix)
02:23 AM Bug #7085: Subversion → GitHub gateway stops.
Thank you Shyouhei Urabe,

Wouldn't be possible setup the bridge on same subversion server so it
doesn't require ssh keys to push?

The idea is: subversion repository is local, so is git repository.

We expose git repo too...
luislavena (Luis Lavena)
09:38 PM Bug #6900: execinfo ライブラリ(およびそのヘッダ)の探索に --with-opt-dir の指定が利かない
knu (Akinori MUSHA) wrote:
> 手元のFreeBSD 9.1-PRERELEASE/amd64環境では、 --with-opt-dir=/usr/local を付けてもLIBRUBY_SOのビルドでこけます。
> ...
なるほど、コミットしてください
naruse (Yui NARUSE)
09:20 PM Bug #7090 (Closed): UTF-16LE String#<< append 0x0 for certain codepoints
This issue was solved with changeset r37058.
Stefan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_concat): use memcpy to copy a string which c...
naruse (Yui NARUSE)
08:34 PM Bug #7090: UTF-16LE String#<< append 0x0 for certain codepoints
With older Ruby version: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
the string correctly contains 0x20, 0x300 for UTF-8, UTF-16LE and UTF-16BE.
stefan (Stefan Lang)
08:30 PM Bug #7090: UTF-16LE String#<< append 0x0 for certain codepoints
UTF-16BE
irb(main):003:0> s = "".force_encoding('utf-16be')
=> ""
irb(main):004:0> s << 0x20
=> "\u0000"
irb(main):005:0> s << 0x300
=> "\u0000\u0300"
stefan (Stefan Lang)
08:18 PM Bug #7090 (Closed): UTF-16LE String#<< append 0x0 for certain codepoints
$ irb193 -r unicode_utils/u
irb(main):001:0> RUBY_VERSION
=> "1.9.3"
irb(main):002:0> s1 = "".force_encoding('utf-16le')
=> ""
irb(main):003:0> s1 << 0x20
=> " "
irb(main):004:0> s1 << 0x300
=> " \u0000"
irb(...
stefan (Stefan Lang)
08:23 PM Bug #7084: RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault
(2012/09/29 23:11), mrkn (Kenta Murata) wrote:
>
> ulimit -s の値に依存して SEGV してしまう場合があるので、それだけでも直したいです。

 ulimit -s の値に依存せず SEGV するのはもっと嫌な気がしますが,それはと
もかく,直るのなら大変結構なことだと思います.よろしくお願いします.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
08:22 PM Bug #7089 (Feedback): Rails server refuses to start
Is pg_ext.bundle compiled for the version of Ruby you have? (1.9.3-p194 x86_64-darwin11.4.2)
A segfault from your vendor/bundle most likely is coming from a extension that wasn't compiled for that particular version of Ruby.
Can yo...
luislavena (Luis Lavena)
06:13 PM Bug #7089 (Closed): Rails server refuses to start
denis:questicker/ (master✗) $ rs [13:11:25]
/Users/denis/code/questicker/vendor/bundle/gems/pg-0.14...
sadfuzzy (Denis Savitsky)
05:36 PM Revision a0f43fad (git): * 2012-10-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:36 PM Revision 1d695c36 (git): * configure.in (--with-opt-dir): Make this also work on DLDFLAGS
so LIBRUBY_SO links fine with libexecinfo installed in a
non-system directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
02:34 PM Revision 0d3cd411 (git): * vm_dump.c (rb_vm_bugreport): add /Library/Logs/DiagnosticReports
in the list of locations of crash reports.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:32 PM Revision 173aacf9 (git): * test/ruby/test_enumerator.rb (enum_test, test_inspect): remove unused
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
12:20 PM Revision ab5545ee (git): * 2012-09-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:20 PM Revision 64989fa5 (git): * string.c (rb_str_concat): use memcpy to copy a string which contains
NUL characters. [ruby-core:47751] [Bug #7090]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:44 AM Feature #7086: ConditionVariable#wait has meaningless return value
kosaki (Motohiro KOSAKI) wrote:
> I think Java API spec is crazy and buggy.
:-)
> ...
There is some truth in what you write. In the usual case you certainly need to check your condition. But I think nevertheless that the Java wa...
rklemme (Robert Klemme)
12:47 AM Feature #7086: ConditionVariable#wait has meaningless return value
I think Java API spec is crazy and buggy. It explicitly says:
http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/Condition.html#await(long,%20java.util.concurrent.TimeUnit)
> When waiting upon a Condition, a "spu...
kosaki (Motohiro KOSAKI)
12:21 AM Feature #7086: ConditionVariable#wait has meaningless return value
rklemme (Robert Klemme) wrote:
> There's another issue exhibited through the script but I will create a separate ticket for this.
That is bug #7087 now.
rklemme (Robert Klemme)
12:14 AM Feature #7086 (Assigned): ConditionVariable#wait has meaningless return value
I consider this an API bug: when invoked with a timeout value the caller cannot distinguish from the return value whether the condition has been signaled or the time has run out. Consider how Java does it: http://docs.oracle.com/javase/... rklemme (Robert Klemme)
01:32 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
kosaki (Motohiro KOSAKI) wrote:
> At least, this is intentional. condtion variable and monitor have different inspiration source.
> ...
For me the difference between Mutex and Monitor is only reentrancy. Other than that I'd have expec...
rklemme (Robert Klemme)
12:52 AM Feature #7087: ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
At least, this is intentional. condtion variable and monitor have different inspiration source.
condition variable is based on POSIX CV and monitor is based on Java monitor semantics. To be
honest, I'm not familiar Java's conditon vari...
kosaki (Motohiro KOSAKI)
12:19 AM Feature #7087 (Assigned): ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist
See program attached to bug #7086: timeout_4 always throws:
ERROR: method "timeout_4": #<NoMethodError: private method `sleep' called for #<Monitor:0x87e49f8>>
$ irb19 -r monitor
irb(main):001:0> Monitor.new.method(:sleep)
=> #<M...
rklemme (Robert Klemme)
01:00 AM Bug #7088 (Closed): Documentation of Timeout::timeout is wrong about which thread executes the block
See http://rubydoc.info/stdlib/timeout/Timeout#timeout-class_method - it reads "The block will be executed on another thread and will be given one argument: sec." If you make the source code visible or look into the file timeout.rb in t... rklemme (Robert Klemme)
 

Also available in: Atom