Activity
From 10/13/2015 to 10/19/2015
10/19/2015
- 11:24 PM Revision 49efa668 (git): * configure.in: pthread_getattr_np is broken on AIX.
- More specifically, the stack address and size returned are
not correct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:46 PM Feature #11607 (Closed): [PATCH] fiddle: release GVL for ffi_call
- Some external functions I wish to call may take a long time
and unnecessarily block other threads. This may lead to performance
regressions for fast functions as releasing/acquiring the GVL is not
cheap, but can improve performance f... -
09:46 PM Bug #11606 (Closed): Prime.prime? should throw error on invalid inputs
- irb(main):003:0> Prime.prime?(1,3)
=> false
irb(main):004:0> Prime.prime?(1.3)
=> false
irb(main):005:0> Prime.prime?(20.3)
=> true
Prime.prime? converts floating point numbers to integer to determine if they are prime. A prime ... - 08:56 PM Revision cfa2f954 (git): ext/fiddle/closure.c (callback): static function
- The `callback' function is not used outside of closure.c and
should not be able to cause namespace conflicts in compilers
without visibility pragmas.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52198 b2dd03c8-39d4-4d8f-98ff-823fe6... -
06:49 PM Feature #11599: Dump entries of hash in ObjectSpace
- Yosi Attias wrote:
> Nobuyoshi Nakada wrote:
> ...
Hi,
I have added to reflect the new logic:
* If the key/value are special consts - I write the "to_s" value of them (:a => "a", 1 => "1")
* If the key/value are not special consts -... -
06:28 PM Feature #11599: Dump entries of hash in ObjectSpace
- Nobuyoshi Nakada wrote:
> That distinction makes no sense.
> ...
Oh.. I understand what you are saying, I will fix that!
Just to make sure I understand your position, you say this distinction is not needed, and in case of this hash:
... -
06:52 AM Feature #11599: Dump entries of hash in ObjectSpace
- That distinction makes no sense.
Non-special-const objects (including `String`) are always shown in pointer reference form.
That `"0x007f8f3c8baf88"` is the content of a string but not the pointer, then it never appears with your patch.
-
05:28 AM Feature #11599: Dump entries of hash in ObjectSpace
- Nobuyoshi Nakada wrote:
> Yosi Attias wrote:
> ...
Yes, but how can you distinguish between string value which is address or address to other ruby object:
`h = {a: "0x007f8f3c8baf88"}` to `h = {a: {b: 1}}`
-
01:50 AM Feature #11599: Dump entries of hash in ObjectSpace
- Yosi Attias wrote:
> and to make sure there are no confusion some one did some like this:
> ...
I can't get your point here.
`{"key":":a","value":"0x007f8f3c8baf88"}` seems clear enough to me.
-
05:17 PM Feature #11605: Ruby should raise on def(a='a', b) [optional param that can't be used]
- Oh, thanks. I had no idea on how to try this. I've tried a(, 'required'). Actually, I was reading a method like a(req1, opt='opt', req2) and thought it would be impossible to use the default value, but now I understand how optional argum...
-
05:12 PM Feature #11605 (Rejected): Ruby should raise on def(a='a', b) [optional param that can't be used]
- Why did not you try actually?
~~~
irb(main):001:0> def a(opt='opt',required)
irb(main):002:1> p [opt, required]
irb(main):003:1> end
=> :a
irb(main):004:0> a('required')
["opt", "required"]
=> ["opt", "required"]
~~~ -
04:49 PM Feature #11605 (Rejected): Ruby should raise on def(a='a', b) [optional param that can't be used]
- Why doesn't Ruby complain when defining a method like this?
~~~
def a(opt='opt', required)
end
~~~
I believe it's impossible to call method 'a' passing only required, while sticking to the default value for 'opt', right? So, why... -
04:29 PM Revision 603cdc27 (git): check INFINITY and NAN without C99 option
- * configure.in: check INFINITY and NAN without an option for C99
so that rb_infinity and rb_nan are respectively available
regardless that option if they may be used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52197 b2dd03c8-... -
04:28 PM Revision 9949407f (git): suppress a warning
- * ext/socket/raddrinfo.c (rsock_fd_family): suppress a
sign-compare warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:55 PM Revision 61d51d9d (git): * 2015-10-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:55 PM Revision dba4adb5 (git): fix typos [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:54 PM Revision dca182f2 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:35 PM Bug #11604 (Rejected): Ruby's interpreting hash symbol keys as parts of Ruby syntax
- Cannot initialize hashes with some Ruby reserved keywords like: while, until, if, unless, do. Can with other like class, end, elsif, super. Don't really get why
~~~
{ while: 1 } # Will fail
# error.rb:3: syntax error, unexpected ':'... -
02:47 PM Bug #11603 (Closed): Count trace_running for internal event
- https://github.com/ruby/ruby/pull/1059
I want to fix a crash: https://gist.github.com/k0kubun/86fd9fbff32423bd4974
I noticed that clean_hooks can be executed inside exec_hooks_body.
The hooks of list->hooks can be xfreed during e... -
02:15 PM Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
- Can't you show gdb backtrace?
-
02:09 PM Bug #11602 (Rejected): Compile error on CentOS: Segmentation fault after "linking miniruby"
- Hi,
I can't to compile Ruby 2.1.7 on the one of our servers:
configure:
ruby-2.1.7 # ./configure
...
checking for nroff... /usr/bin/nroff
.ext/include/x86_64-linux/ruby/config.h updated
ruby library version = 2.1.0
configure: c... -
12:10 PM Bug #11601 (Closed): error: implicit declaration of function ‘ENC_GET’
- Applied in changeset r52192.
----------
file.c: fix typos
* file.c (rb_file_expand_path_internal): fix typos.
[ruby-core:71111] [Bug #11601] -
08:50 AM Bug #11601 (Closed): error: implicit declaration of function ‘ENC_GET’
- When trying to compile Ruby trunk with
make up; make install-nodoc
I get the following errors:
compiling file.c
file.c: In function ‘rb_file_expand_path_internal’:
file.c:3561:2: error: implicit declaration of function ‘ENC_GE... -
12:10 PM Revision a3ac9d0b (git): file.c: fix typos
- * file.c (rb_file_expand_path_internal): fix typos.
[ruby-core:71111] [Bug #11601]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:25 AM Revision c92322b5 (git): objspace_dump.c: special const
- * ext/objspace/objspace_dump.c: support special constant objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:34 AM Bug #11600 (Closed): indeterministic failures on socket operations when running out of file descriptors
- Applied in changeset r52190.
----------
init.c: glibc bug
* ext/socket/init.c (rsock_raise_socket_error): get rid of a glibc
bug. [ruby-core:71100] [Bug #11600] -
01:34 AM Bug #11600: indeterministic failures on socket operations when running out of file descriptors
- Accurately, it is not a bug but an intentional crash.
Citing from [`libdispatch-442.1.4/src/source.c`](https://opensource.apple.com/tarballs/libdispatch/libdispatch-442.1.4.tar.gz):
~~~c
int err = errno;
switch (err) {
cas... -
12:48 AM Bug #11600: indeterministic failures on socket operations when running out of file descriptors
- Erkki Eilonen wrote:
> Happens on OSX (10.10.5) as well (on 2.2.3 and earlier, presumably on latest 2_2 as well)
It's a bug of a system library.
We can do nothing for it. -
01:33 AM Revision 7594a993 (git): init.c: glibc bug
- * ext/socket/init.c (rsock_raise_socket_error): get rid of a glibc
bug. [ruby-core:71100] [Bug #11600]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/18/2015
-
05:18 PM Feature #11599: Dump entries of hash in ObjectSpace
- Nobuyoshi Nakada wrote:
> Are `is_{key,value}_address` necessary?
Yes, If the key/value are composite objects (not special consts, like string/hash/class) then the values of "key"/"value" should be address which is *pointer to other ... -
01:24 PM Feature #11599: Dump entries of hash in ObjectSpace
- Are `is_{key,value}_address` necessary?
- 04:30 PM Revision 3ef4dfdc (git): * 2015-10-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:29 PM Revision a01dfd47 (git): * file.c (rb_file_identical_p): not necessary to compare the paths after
- comparing the file indexes on Windows. designate by kosaki.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:02 PM Bug #11600: indeterministic failures on socket operations when running out of file descriptors
- Motohiro KOSAKI wrote:
> In my system, getaddrinfo() return -11(EAI_SYSTEM) and errno=0. That seems glibc's bug.
> ...
Happens on OSX (10.10.5) as well (on 2.2.3 and earlier, presumably on latest 2_2 as well)
~~~
➜ ruby test.rb
10... -
01:07 PM Bug #11600: indeterministic failures on socket operations when running out of file descriptors
- In my system, getaddrinfo() return -11(EAI_SYSTEM) and errno=0. That seems glibc's bug.
I guess this is related to https://sourceware.org/bugzilla/show_bug.cgi?id=15339.
-
12:36 PM Bug #11600: indeterministic failures on socket operations when running out of file descriptors
- Managed to get the testcase slightly simpler with a guaranteed ruby crash.
-
10:24 AM Bug #11600 (Closed): indeterministic failures on socket operations when running out of file descriptors
- We've been getting indeterministic failures on socket operations when running out of file descriptors, instead of the correct `Errno::EMFILE` being raised we've seen various failure modes, on both linux and osx:
1. This is what we're ... - 02:59 PM Revision 0bb6bf24 (git): * ruby/test_require.rb (loading_fifo): checking by defined? is meaningless about
- notimplemented method. such methods are defined, but not respond_to?. this
fixes test failures introduced at r52172.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:17 PM Revision 89db37cf (git): * lib/open-uri.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:21 AM Revision 4eba615a (git): disable warnings unless optimized
- * include/ruby/ruby.h (rb_data_object_{wrap,get}): move
declarations inside ifdef too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:53 AM Revision 6094ac4c (git): disable warnings unless optimized
- * include/ruby/ruby.h (rb_data_object_{wrap,get,make}): warn only
if optimized, as __builtin_choose_expr() does not work fine
unless optimized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52184 b2dd03c8-39d4-4d8f-98ff-823fe69b... -
05:51 AM Revision 503752b1 (git): random.c: comment [ci skip]
- * random.c (fill_random_bytes_urandom): fix comment typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:46 AM Revision 0751bc3f (git): Revert r52180
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:43 AM Revision 6c060b2b (git): * random.c (fill_random_bytes_urandom): add a comment why using
- O_NONBLOCK and O_NOCTTY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:42 AM Revision 47f0a8f9 (git): * random.c (fill_random_bytes_syscall): don't use GRND_NONBLOCK.
- It is meaningless. If SYS_getrandom(GRND_NONBLOCK) return
EAGAIN, we eventually call fill_random_bytes_urandom() and
it block such as SYS_getrandom() without GRND_NONBLOCK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52180 b2d... -
05:42 AM Revision a4c6ad1d (git): * random.c (fill_random_bytes_syscall): use ATOMIC_SET() for
- updating try_syscall.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:41 AM Revision 0bdf13a1 (git): * include/ruby/backward/util.h: Good-by Borland-C.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:40 AM Revision 727ae6f8 (git): * common.mk: add a comment how to use "make test-all"
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:40 AM Revision 75356fc8 (git): * common.mk: add comments how to use "make benchmark"
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:22 AM Revision 1d1ee07f (git): ruby.c: disable nonblock only if nonblocking mode
- * ruby.c (open_load_file): disable O_NONBLOCK only when opened in
non-blocking mode, to get rid of LoadError on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:58 AM Revision 3d61b259 (git): * lib/securerandom.rb: Specify frozen_string_literal: true.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:07 AM Revision 61685c76 (git): test_require.rb: no guarantees to load FIFO
- * test/ruby/test_require.rb (loading_fifo): loading from FIFO is
not guaranteed, it just should not block the whole process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:40 AM Revision 7cb20b8f (git): test_require.rb: test conditions
- * test/ruby/test_require.rb (loading_fifo): check by if FIFO is
available or not, instead of platform names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:23 AM Revision 348d7b09 (git): * dln.c: remove defined(__WATCOMC__).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:17 AM Revision 3a49d353 (git): * lib/mkmf.rb: Good-by Borland-C (cont).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:11 AM Revision 5b9f32c2 (git): * append newline at EOF.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:10 AM Revision 3a48e126 (git): * numeric.c: Good-by Borland-C.
- * include/ruby/backward/rubyio.h: ditto.
* include/ruby/backward/st.h: ditto.
* include/ruby/backward/util.h: ditto.
* include/ruby/backward/rubysig.h: ditto.
* include/ruby/backward/classext.h: ditto.
* dln.c: ditto.
* gc.c: ditto.
* wi... -
02:08 AM Revision e91baf56 (git): * dln.c: simplify #ifdef. _WIN32 and __CYGWIN__ are exclusive.
- see include/ruby/defines.h
* gc.c: ditto.
* ext/sdbm/_sdbm.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:44 AM Revision a923a6f0 (git): * ruby.c (open_load_file): add a comment.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:43 AM Revision 395dd786 (git): fix compile error
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:30 AM Revision 3d7a5354 (git): file.c: fix compile error
- * file.c (rb_file_s_rename): remove unmatched endif not removed at
r52161.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:19 AM Revision a857b11d (git): * file.c (rb_file_identical_p): simplify ifdefs
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:18 AM Revision 64a08a54 (git): * append newline at EOF.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:18 AM Revision 4ad2057f (git): * ChangeLog: Good-bye OS/2.
- * common.mk: ditto.
* configure.in: ditto.
* dln_find.c: ditto.
* ext/Setup.emx: ditto.
* ext/extmk.rb: ditto.
* ext/socket/extconf.rb: ditto.
* ext/zlib/extconf.rb: ditto.
* file.c: ditto.
* include/ruby/defines.h: ditto.
* io.c: ditto.... -
01:17 AM Revision 6803c4e2 (git): * include/ruby/defines.h (DOSISH): add comments.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:40 AM Revision a0a77c5b (git): re-commit r52152
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:33 AM Revision 21704f22 (git): * file.c (ruby_is_fd_loadable): this should be fail if st_mode is
- not regular file nor FIFO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:21 AM Revision 698f6648 (git): * ruby.c (open_load_file): use rb_thread_wait_fd() instead of reopen.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:13 AM Revision ff132bc0 (git): Revert r52154
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/17/2015
-
11:59 PM Revision acc94eb9 (git): ruby.c: unnecessary variable
- * ruby.c (open_load_file): remove unnecessary nested local
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:43 PM Bug #11559: ビジーループの thread と YAML.parse を組み合わせたときの実行時間が 2.2.3 で遅くなっている
- せっかくなので、 did_you_meanが入っても 2.2.0より早くなるよう、r52152で高速化パッチを入れました。Rubyではrequireの速度が超重要であることが経験的に分かっているので、IO.close処理にそれ用の最適化を入れてみました。
$ make benchmark OPTS="-r 10 -p bm_require_t -e ruby-trunk -e ruby-2.2.2"
build-ruby: 0.171... -
09:30 PM Bug #11559: ビジーループの thread と YAML.parse を組み合わせたときの実行時間が 2.2.3 で遅くなっている
- 調査してみたところ、今回のケースではGVLの所有権変更はすべてIO.closeを契機に行われており、
要するにopenの回数が変わっているのですが、それはなにかというと did_you_mean.
gem_prelude.rbから require 'did_you_mean' を削除してみたところ、以下のように性能劣化が
なくなりました。
ruby 2.0.0p598 (2014-11-13) [x86_64-linux] 1.527653928
ruby... -
11:41 PM Revision d6379666 (git): file.c: set errno
- * file.c (ruby_is_fd_loadable): set proper errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:38 PM Revision d5cb997f (git): ruby.c: suppress warnings
- * ruby.c (loadopen_func): suppress a warning, unused function.
* ruby.c (open_load_file): suppress warnings, results of close(2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:31 PM Revision 50024f9d (git): * io.c (fptr_finalize): don't release gvl if fptr is not writable.
- writable fd may block on close(2) when it's on NFS. But readonly
fd doesn't. [Bug #11559]
result: make benchmark OPTS="-p bm_require_t -e ruby-trunk -e ruby-2.2.2"
build-ruby: 0.171
ruby 2.3.0dev(r52151): 0.659
... -
09:38 PM Bug #11060: load(fifo) blocks whole process
- 修正メモ
r50887 はakrパッチにあったS_ISFIFO()のチェックが入っていないため、FIFOがemptyじゃなくなるまで待つが、待った後エラーになってしまいロードできていませんでした。
FIFOから正常にロードできるテストが存在しないのがよくないので、当該テスト足しました。
また、rb_file_load_ok()を修正するのは論理的におかしくて、rb_file_load_ok()でロードできるかどうか一度チェックしてから一旦クローズ、
再度 l... -
09:09 PM Bug #11060 (Closed): load(fifo) blocks whole process
- Applied in changeset r52151.
----------
* ruby.c (open_load_file): reset O_NONBLOCK after open.
Even if S_ISREG() is true, the file may be file on FUSE filesystem
or something. We can't assume O_NONBLOCK is safe.
Moreover, we shou... -
09:09 PM Revision bc8687ac (git): * ruby.c (open_load_file): reset O_NONBLOCK after open.
- Even if S_ISREG() is true, the file may be file on FUSE filesystem
or something. We can't assume O_NONBLOCK is safe.
Moreover, we should wait if the path is point to FIFO. That's
FIFO semantics. GVL should be transparent from ruby ... - 04:40 PM Revision 9ec8d4ef (git): * 2015-10-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:39 PM Revision 058ba6ce (git): * ChangeLog: remove duplicated entry of r52147. [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:06 PM Feature #11599 (Assigned): Dump entries of hash in ObjectSpace
- Hi,
*This is my first c code contribution :)*
I am helping developing heap-analyzer (github.com/tenderlove/heap-analyzer), and currently the dumps lacks of "type metadata" information, like:
* Hash entries - the keys and value
... -
05:01 AM Revision eb4dc179 (git): test_const.rb: suppress warnings
- * test/ruby/test_const.rb (test_redefinition_memory_leak):
suppress warnings instead of redirecting to null device.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:55 AM Revision 78baa98e (git): string.c: rb_str_cat_conv_enc_opts
- * file.c (rb_file_expand_path_internal): concatenate converted
string to the result instead of making converted string and
append it.
* string.c (rb_str_cat_conv_enc_opts): from rb_str_conv_enc_opts,
separate function to concatenat... -
04:31 AM Revision c72ddc44 (git): file.c: prefer encoding index as possible
- * file.c (rb_str_encode_ospath): prefer encoding index as possible
until rb_encoding is needed.
* file.c (rb_file_expand_path_internal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:19 AM Revision c1a6fdc8 (git): ruby.c: unify nested code
- * ruby.c (load_file): unify each preparations and clean-ups by
merging load_file_internal and load_file_internal2, and remove
nested rb_protect and rb_ensure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52145 b2dd03c8-39d4-4d8... -
04:07 AM Revision f63ad355 (git): vm_insnhelper.c: suppress a warning
- * vm_insnhelper.c (vm_yield_with_cfunc): cast to suppress a
warning by VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:03 AM Revision 4bc884c4 (git): ruby.c: conflicting O_NONBLOCK
- * ruby.c (load_file_internal): do not use O_NONBLOCK when
conflicting with O_ACCMODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:30 AM Bug #11596: Getting [BUG] rb_vm_get_cref: unreachable
- Reproduced.
```
$ ruby -v -I lib:test test/cases/scoping/default_scoping_test.rb -n test_default_scope_select_ignored_by_grouped_aggregations
ruby 2.3.0dev (2015-10-15 trunk 52128) [x86_64-linux]
Using sqlite3
Run options: -n test...
10/16/2015
-
11:24 PM Revision 34b877e4 (git): ruby.c: fd leak
- * ruby.c (load_file_internal): fix potential fd leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:36 PM Revision 7a8a49d9 (git): * 2015-10-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:35 PM Revision 251b6628 (git): * test/ruby/test_symbol.rb (test_symbol_fstr_leak): add a warm-up
- code and check RSS to avoid false positive on AIX and false
negative on Mac OS X. [Bug #10686]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:29 AM Bug #11598 (Closed): Ruby crash when I run calabash-android
- Hi All,
I install the calabash-android. If the Chinese is included in the feature file, which is as below:
Feature: Login feature
Scenario: As a valid user I can log into my app
When I press "我的"
Then I can see "Not log... -
07:18 AM Bug #11515 (Rejected): CreateProcessW() can cause "Invalid access to memory location"
- `cmd` in `CreateChild()` is always allocated in heap.
win32/win32.c does not provide wchar-version `spawn` functions. -
06:55 AM Bug #11559 (Closed): ビジーループの thread と YAML.parse を組み合わせたときの実行時間が 2.2.3 で遅くなっている
- Applied in changeset r52139.
----------
file.c: non-blocking open
* file.c (rb_file_load_ok): open in non-blocking mode withoout
releasing GVL. don't care about others than regular files and
directories. [ruby-dev:49272] [Bug #11... -
06:54 AM Revision abf832f4 (git): file.c: non-blocking open
- * file.c (rb_file_load_ok): open in non-blocking mode withoout
releasing GVL. don't care about others than regular files and
directories. [ruby-dev:49272] [Bug #11559]
* ruby.c (load_file_internal): ditto.
git-svn-id: svn+ssh://c... -
03:21 AM Revision 6291c6ad (git): vm_args.c: symbol proc
- * vm_args.c (vm_caller_setup_arg_block): store symbols instead of
ifuncs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:58 AM Bug #10892: Deadlock in autoload
- Benoit Daloze <eregontp@gmail.com> wrote:
> On Wed, Oct 14, 2015 at 9:56 PM, Eric Wong <normalperson@yhbt.net> wrote:
>
> > Fwiw, I mentioned in [ruby-core:70359] that I tried it for [Bug #11384]
> > without success, but Redmine + ...
10/15/2015
-
10:08 PM Feature #11597: Add Linux-specific setfsuid(2)/setfsgid(2)
- Given Ruby already supports Kernel#syscall, I wonder if we should
support something a generated syscall.rb file in the stdlib with
all the available syscall numbers exported as constants:
SYS_setfsuid = 138
SYS_setfsgid = 139
... -
07:36 PM Feature #11597 (Open): Add Linux-specific setfsuid(2)/setfsgid(2)
- I would be helpful if you add a binding to the Linux-specific syscalls
setfsuid(2)
setfsgid(2)
Their purpose is to change the uid/gid with which filesystem access control is performed. Their main usage is simulating fs access on b... -
04:06 PM Revision 2fda4a55 (git): proc.c: merge blocks
- * proc.c (proc_binding): merge blocks in same condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:54 PM Revision 59d0dfca (git): * 2015-10-16
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:54 PM Revision beeaef3d (git): proc.c: refine ifunc checks
- * proc.c (IS_METHOD_PROC_IFUNC): separate from IS_METHOD_PROC_ISEQ
for vm_ifunc.
* proc.c (rb_proc_get_iseq): use RUBY_VM_IFUNC_P to see if iseq is
an ifunc.
* proc.c (rb_proc_get_iseq, proc_binding): reduce redundant checsk
by I... -
02:56 PM Revision 14b85304 (git): proc.c: void env
- * proc.c (rb_sym_to_proc): make void env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:37 PM Revision 4951f3b5 (git): fix typos [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:48 AM Bug #10892: Deadlock in autoload
- On Wed, Oct 14, 2015 at 9:56 PM, Eric Wong <normalperson@yhbt.net> wrote:
> Fwiw, I mentioned in [ruby-core:70359] that I tried it for [Bug #11384]
> without success, but Redmine + list integration was broken at the
> time.
>
A... -
06:51 AM Revision 278ca4db (git): vm_dump.c: unused variable
- * vm_dump.c (vm_stack_dump_each): remove never-used variable and
dead code for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:34 AM Revision 1bcc7ebd (git): proc.c: iseq conditions
- * proc.c (rb_block_min_max_arity, rb_mod_define_method): use
RUBY_VM_NORMAL_ISEQ_P() to check if iseq.
* proc.c (make_curry_proc): IS_METHOD_PROC_ISEQ() includes
RUBY_VM_IFUNC_P().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@... -
04:44 AM Revision 7c4b03e7 (git): vm.c: simplify
- * vm.c (env_mark): remove redundant conditions and mark block.iseq
simply unless null.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:37 AM Bug #11594 (Closed): A Proc call may corrupt a local variable
- Applied in changeset r52129.
----------
proc.c: proc without env
* proc.c (rb_sym_to_proc): move from string.c and create a Proc
with no environments. [ruby-core:71088] [Bug #11594] -
04:37 AM Revision c2e8fb0f (git): proc.c: proc without env
- * proc.c (rb_sym_to_proc): move from string.c and create a Proc
with no environments. [ruby-core:71088] [Bug #11594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/14/2015
-
10:01 PM Bug #11596 (Closed): Getting [BUG] rb_vm_get_cref: unreachable
- I'm getting a crash when running the Rails tests.
When I run this in the ActiveRecord tests:
~~~
$ ruby -v -I lib:test test/cases/scoping/default_scoping_test.rb -n test_default_scope_select_ignored_by_grouped_aggregations
~~~
... -
07:58 PM Bug #10892: Deadlock in autoload
- eregontp@gmail.com wrote:
> Could someone review the patch and apply it or find an alternative fix?
Fwiw, I mentioned in [ruby-core:70359] that I tried it for [Bug #11384]
without success, but Redmine + list integration was broken ... -
07:33 PM Bug #11595 (Rejected): Time#utc? and Time#gmt? return misleading results based on $TZ
- There is an issue with Time#utc? and its alias, Time#gmt?, that return misleading results based on the value of the TZ environment variable. It seems that the only way for a Time instance to return `true` for `utc?` is if you explicitly ...
-
07:17 PM Bug #11594 (Closed): A Proc call may corrupt a local variable
- ~~~~
x, y, z = 1, 2, 3
p [x, y, z] #=> [1, 2, 3]
-> &blk { }.call &:foo
p [x, y, z] #=> [false, 2, 3] !!! WRONG !!!
~~~~
The proc call in Line 3 modifies a local variable.
git bisect showed r52056. I confirmed it worked fine... -
05:10 PM Bug #11271: TestObjSpace#test_trace_object_allocations_start_stop_clear occasional failure
- 遅くなりましたが r52128 でテストを修正しました。
ただ実は推測していた GC のタイミングの問題ではなくて、このテストに入ってきた時点で別のテストメソッドでの ObjectSpace.trace_object_allocations で登録された情報が残っていて、それが影響していたようで、GC.disable しただけではエラーは収まりませんでした。
なので test_trace_object_allocations_start_stop_clear の先頭... -
05:04 PM Bug #11271 (Closed): TestObjSpace#test_trace_object_allocations_start_stop_clear occasional failure
- Applied in changeset r52128.
----------
* test/objspace/test_objspace.rb
(test_trace_object_allocations_start_stop_clear): clear object
allocation table first to get rid of erronous detection for obj3.
[ruby-dev:49095] [Bug #11271] -
05:02 PM Revision d0e86105 (git): * test/objspace/test_objspace.rb
- (test_trace_object_allocations_start_stop_clear): clear object
allocation table first to get rid of erronous detection for obj3.
[ruby-dev:49095] [Bug #11271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52128 b2dd03c8-39d4-4d8... - 04:58 PM Revision 852acc92 (git): * 2015-10-15
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:57 PM Revision 53896619 (git): * test/ostruct/test_ostruct.rb: Add tests for OpenStruct#respond_to.
- Patch by @jeremy in [GH-1041]: https://github.com/ruby/ruby/pull/1041
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:57 PM Revision 3bf9b2f0 (git): * lib/ostruct.rb: Finish defining OpenStruct attributes lazily.
- Patch by @sferik in [GH-1037]: https://github.com/ruby/ruby/pull/1037
This commit is an addendum to https://github.com/ruby/ruby/pull/1033.
It:
1. lazily defines attribute accessors for copied and marshaled objects,
2. returns ni... -
08:55 AM Bug #11592: Chef-client returned 'cannot load such file -- OpEN'
- how can i use embedded ruby?
-
07:19 AM Bug #11592 (Third Party's Issue): Chef-client returned 'cannot load such file -- OpEN'
- Use the ruby embedded in chef.
-
03:41 AM Bug #11592 (Third Party's Issue): Chef-client returned 'cannot load such file -- OpEN'
- i execute ruby(1.8.7) test.rb returned the correct value without error,
but once i execute it by chef-client it will return as below error:
can anyone help me for the issue?
-------sys info--------
~~~
root@localhost:/usr/bin... -
08:08 AM Bug #11559: ビジーループの thread と YAML.parse を組み合わせたときの実行時間が 2.2.3 で遅くなっている
- 数回程度ですが、ratioを見ると大体同じくらいの数値です。
気になっているのはベストケースではなく r50887 をrevertしても2.2.2よりもかなり遅いままという点です。 -
07:57 AM Bug #11591 (Closed): ruby won't build on OS X 10.5 — libunwind.h not available
- Applied in changeset r52124.
----------
configure.in: libunwind.h check
* configure.in: check for libunwind.h, which is not available in
very old OS X SDK. [ruby-core:71080] [Bug #11591] -
02:59 AM Bug #11591 (Closed): ruby won't build on OS X 10.5 — libunwind.h not available
- The libunwind headers were added in OS X 10.6 (darwin10). As a result, ruby will not compile with OS X 10.5 SDK.
~~~
vm_dump.c:441:12: fatal error: 'libunwind.h' file not found
~~~ -
07:56 AM Revision 5c7f36a1 (git): configure.in: libunwind.h check
- * configure.in: check for libunwind.h, which is not available in
very old OS X SDK. [ruby-core:71080] [Bug #11591]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:53 AM Bug #11593 (Closed): Is it possible that ObjectSpace.dump_all catch dead objects?
- Koichi, can you please help. There are lines in a dump that are not referenced by anyone else. And these are not ROOTs. For example, I'm looking in my dump by address of object and there is no other objects which have references to this ...
-
06:52 AM Bug #11590 (Rejected): Improve method debugging
- You used the same name as that method.
-
05:12 AM Feature #11589 (Closed): Disasm callinfo kw output as list of keywords used
- Applied in changeset r52123.
----------
iseq.c: list of keywords [Fix GH-1056]
* iseq.c (rb_insn_operand_intern): change kw in callinfo disasm from the
number of keyword arguments to an ordered list of the keywords used.
[Feature #... -
05:11 AM Revision 4200ddd5 (git): iseq.c: list of keywords [Fix GH-1056]
- * iseq.c (rb_insn_operand_intern): change kw in callinfo disasm from the
number of keyword arguments to an ordered list of the keywords used.
[Feature #11589]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52123 b2dd03c8-39d4-4d8... -
04:58 AM Revision e21f1875 (git): parse.y: fix ripper warnings
- * parse.y (parser_nextc): send a warning to ripper, not to STDERR
always.
* parse.y (rb_warn1, rb_warning1): move argument conversions to
callers. PRIsVALUE is not valid in String#%.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun... - 04:37 AM Revision 049c9fec (git): * 2015-10-14
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:37 AM Revision c4ccdd64 (git): * lib/racc/rdoc/grammar.en.rdoc: fix spell error.
- [fix GH-1053][ci skip] Patch by @Matrixbirds
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:37 AM Bug #11574: chef-client-FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)
- thanks for the reply,
i've downgraded the ruby to 1.8 and try to run the OpEN.so and got the error msg like below:
honestly, before i posted the article yesterday, i got the same msg,using the ryby 1.8 with the .so file from switch equ...
10/13/2015
-
10:29 PM Bug #11590 (Rejected): Improve method debugging
- I forgot to rename a variable that controlled array access inside a method. When I ran the program, Ruby told me that I was not providing enough arguments to the method, instead of saying the variable was not initialized, or something li...
-
10:25 PM Feature #11589 (Closed): Disasm callinfo kw output as list of keywords used
- Feature https://bugs.ruby-lang.org/issues/10440 changed the disasm output so that only the number of keywords used at a call site is added to the callinfo output. This means that if a function has n keyword arguments and k are used at a ...
-
03:15 PM Feature #11588 (Open): Implement structured warnings
- Ruby’s current warning system is lacking. Warnings are controlled by the -W flag on the command line, and are generated via the Kernel#warn method within code. There are a host of problems with this approach to warnings.
First, warnin... -
01:49 PM Revision e794fa5c (git): * ext/socket/raddrinfo.c (rsock_fd_family): Check sa_len.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:49 PM Bug #11559: ビジーループの thread と YAML.parse を組み合わせたときの実行時間が 2.2.3 で遅くなっている
- > ベンチマークを取ってみたのですが、どうもそれだけではないように思えます。
> `-gvl`と付いているのがr50887をrevertしたバージョンです。
これ、何回測定した平均でしょうか。require_threadはブレが非常に大きいので
試行回数を多くする必要があります。ベストケースでは2.2.3でもほぼ性能劣化しません -
07:06 AM Bug #11559: ビジーループの thread と YAML.parse を組み合わせたときの実行時間が 2.2.3 で遅くなっている
- ベンチマークを取ってみたのですが、どうもそれだけではないように思えます。
`-gvl`と付いているのが r50887 をrevertしたバージョンです。
-----------------------------------------------------------
benchmark results:
Execution time (sec)
name |2.2.0 |2.2.2 |2.2.3 |2.2.3-gvl|r5... -
10:39 AM Feature #8976: file-scope freeze_string directive
- `"#{}foo"` is different slightly, -- it is equivalent to `"#{nil.to_s}foo"` and depends on `NilClass#to_s`, so it can't be a static literal.
-
10:03 AM Feature #8976: file-scope freeze_string directive
- Shugo Maeda wrote:
> Nobuyoshi Nakada wrote:
> ...
Another case is `"#{}foo"` -- if that is treated as a dynamic string, it could become an alternative idiom for `"foo".dup` -
09:06 AM Feature #8976: file-scope freeze_string directive
- Nobuyoshi Nakada wrote:
> What about `"#{'foo'}"`?
`"#{'foo'}"` can be considered literal (or static), but there's still room for discussion about it.
-
10:28 AM Bug #11574 (Rejected): chef-client-FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)
- `unknown type 0x22 (0x11 given)` means the extension library you loaded is for 1.8.
It is not binary compatible.
Rebuild that extension library. -
08:51 AM Bug #11574: chef-client-FATAL: Chef::Exceptions::ChildConvergeError: Chef run process terminated by signal 6 (IOT)
- Hi
thanks for the reply,
i used ruby 1.8 to run **`ruby test.rb`** and return value successfully in the switch
test.rb as below in
```ruby
require "OpEN"
require "OpENUtil"
open = OpENUtil.new()
conn_ret = open.conne... -
08:27 AM Bug #11587 (Closed): Make OpenStruct#new_ostruct_member and #modifiable fully private API
- #6056 made OpenStruct#new_ostruct_member and #modifiable protected,
but they still appear in RDoc and normal user documentation:
http://ruby-doc.org/stdlib-2.2.3/libdoc/ostruct/rdoc/OpenStruct.html#method-i-new_ostruct_member
Also, it... - 03:14 AM Revision 33f3789e (git): * 2015-10-13
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:14 AM Revision 61053459 (git): rsock_addrinfo: specify address family
- * ext/socket/rsock_addrinfo (rsock_addrinfo): specify address
family. [Fix GH-1052]
* ext/socket/udpsocket.c (udp_connect, udp_bind, udp_send):
address family by the receiver.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52117... -
03:12 AM Bug #11582: On Solaris, Rational#** returns -Infinity for Rational(0) when passed a negative Float
> Does 0.0 ** -1 return -Infinity too?
Yes, with default compiler option.
On Solaris, the 0.0 ** -1 could return 3 different values depending on compile-time options: 0, -Infinity, +Infinity.
See below for list of corner-case va...-
01:41 AM Bug #11586 (Closed): Weird keyword argument behavior
- It has been fixed in 2.2 already.
-
01:22 AM Bug #11456: Hash リテラル中で rescue をもちいると SyntaxError になる
- 2.2.3でも `%q"key":` は通るけれど `%q[key]:` はダメだとか微妙な感じだったので、ナシということで。