Activity
From 03/27/2014 to 04/02/2014
04/02/2014
-
10:34 PM Bug #9694: Bad regexp hangs ruby
- For some reason the regex is not displayed correctly. I'm able to reproduce the reported issue (see the correct regex below):
~~~
$ cat test.rb
str = ('a' * ARGV[0].to_i) + '?'
re = /(\w*)*$/
re.match(str)
$ time ruby test.rb 14... -
10:21 PM Bug #9694: Bad regexp hangs ruby
- I tried to reproduce with your script and could not:
```
$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
$ cat foo.rb
str = ('a' * ARGV[0].to_i) + '?'
re = /(\w)$/
re.match(str)
$ time ruby foo.rb 14... -
09:36 AM Bug #9694 (Closed): Bad regexp hangs ruby
- Here is an extracted problem i ran into recently:
~~~
$ cat test.rb
str = ('a' * ARGV[0].to_i) + '?'
re = /(\w*)*$/
re.match(str)
~~~
On few chars match returns quite fast, but here's what happens on 14 'a'-s and up:
~~~
$ t... -
09:19 PM Bug #9695 (Rejected): Substring search exhibit quadratic behaviour.
- http://nelhagedebugsshit.tumblr.com/post/81301884746/surveying-various-languages-string-search-algorithms
~~~ruby
12.upto(21).map do |i|
needle='a'*(2**(i-1)) + 'b'
haystack = 'a' * (2**i)
a = Time.now; haystack.include?(nee... -
01:00 PM Revision 08d40c92 (git): configure.in: use the first candidate
- * configure.in (ac_cv_func___builtin_setjmp): use the first cast
which works with __builtin_longjmp(). [Bug #9692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:50 PM Revision a0237409 (git): configure.in: fix for clang 5.1 __builtin_longjmp
- * configure.in (ac_cv_func___builtin_setjmp): __builtin_longjmp() in
clang 5.1 uses `void**`, not `jmp_buf`. [Bug #9692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:04 PM Revision fb59efb9 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:03 PM Revision 295480a0 (git): * remove trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:59 AM Revision 37067ed9 (git): * gc.c, gc.h (rb_objspace_each_objects_without_setup):
- Add a new (hidden) C-API to iterate objspace snapshot.
This API is not safe to call any C-APIs in a given callback
function. Be careful to use this C-API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45505 b2dd03c8-39d4-4d8f-... -
10:57 AM Revision b230d20e (git): eval_intern.h: __builtin_longjmp requires literal 1 on gcc 4.9
- * eval_intern.h (rb_threadptr_tag_jump): gcc 4.9 disallows other than
literal 1 as the second argument of __builtin_longjmp().
[ruby-core:61800] [Bug #9692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45504 b2dd03c8-39d4-4d8f-... -
08:43 AM Bug #9692 (Closed): __builtin_longjmp is called with a value greater than 1 (GCC compilation error)
- Applied in changeset r45503.
----------
configure.in: do not use a variable for longjmp
* configure.in (`ac_cv_func___builtin_setjmp`): gcc 4.9 disallows a
variable as the second argument of `__builtin_longjmp()`.
[ruby-core... -
08:41 AM Bug #9692: __builtin_longjmp is called with a value greater than 1 (GCC compilation error)
- I think `JUMP_TAG` in the trunk doesn't use a variable.
-
08:43 AM Revision 4ad0071d (git): configure.in: do not use a variable for longjmp
- * configure.in (ac_cv_func___builtin_setjmp): gcc 4.9 disallows a
variable as the second argument of __builtin_longjmp().
[ruby-core:61800] [Bug #9692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45503 b2dd03c8-39d4-4d8f-98ff-... -
08:27 AM Bug #9683: Segmentation fault when using default proc feature in ruby Hash object
- I could reproduce it with 2.0.0p353 but 2.0.0p466 occurred `SystemStackError`.
-
06:15 AM Misc #9511 (Closed): [Doc] Relic url in `make help` instructions
- Applied in changeset r45502.
----------
* common.mk: Use redmine-2.x url for DeveloperHowto wiki.
[ruby-core:60657] [Bug #9511] -
06:15 AM Revision 1f208200 (git): * common.mk: Use redmine-2.x url for DeveloperHowto wiki.
- [ruby-core:60657] [Bug #9511]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:55 AM Revision b3b9b6e5 (git): * doc/syntax/assignment.rdoc: [DOC] Fix typo unclosed HTML tag by @andrewdotn
- [fix GH-574][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:50 AM Feature #9602: Logic with `Enumerable#grep`
- I've updated my patch some more with Enumerable#reject and Array#reject. (Array#reject was weird... I reabsorbed `ary_reject()` into `rb_ary_reject()` and left the only use of `rb_ary_push_1()` intact. I think some of this code was very ...
- 02:51 AM Revision bb81bbf3 (git): * 2014-04-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:51 AM Revision 60d4fc9f (git): Fix error with empty args.
- * ext/pathname/lib/pathname.rb (Pathname#join): Fix error with
empty args. Reported by ko1 via IRC.
* test/pathname/test_pathname.rb (TestPathname#test_join): Add the
test for above case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby... -
12:49 AM Bug #9693 (Rejected): \x{} in regexp
- https://github.com/rurema/doctree/issues/80 の話です。
`regparse.c` の `OnigSyntaxRuby` では `ONIG_SYN_OP_ESC_X_BRACE_HEX8` が有効になっていて、使えることを意図しているように見えるのですが、正規表現リテラルだと parser が通してくれなくて `syntax error, unexpected '{', expecting end-of-input` にな...
04/01/2014
-
07:23 PM Bug #9683: Segmentation fault when using default proc feature in ruby Hash object
- Currently, trunk act's like Eran's example: `a[1]` first results in SystemStackError, then results in segmentation fault. I've tracked the segfault down to vm.c, in `vm_exec()`:
1327 vm_loop_start:
1328 result = vm_exe... -
06:26 PM Bug #9691: Wrong value on float
- Use Fixnum (14995 * 100) or BigDecimal:
~~~
require 'bigdecimal'
d = BigDecimal.new('149.95')
d * 100
# => 0.14995E5
~~~
More info on floating point vs. decimal numbers:
http://www.youtube.com/watch?v=PZRI1IfStY0 -
11:29 AM Bug #9691 (Rejected): Wrong value on float
- This is how it works. Learn floating point numbers.
"What Every Computer Scientist Should Know About Floating-Point Arithmetic"
http://docs.sun.com/source/806-3568/ncg_goldberg.html -
09:52 AM Bug #9691 (Rejected): Wrong value on float - Getting strange value on multiplying a float
149.95 * 100
=> 14994.999999999998 -
02:57 PM Bug #9692: __builtin_longjmp is called with a value greater than 1 (GCC compilation error)
- I found the problem in configuration:
without LTO:
~~~
configure:15773: checking for __builtin_setjmp
configure:15790: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -flto=9 -fno-lto -fno-use-linker-plugin -fno-stric... -
09:55 AM Bug #9692 (Closed): __builtin_longjmp is called with a value greater than 1 (GCC compilation error)
- Hello,
during testing of LTO on a gentoo machine:
Linux qemubox 3.12.13-gentoo #2 SMP Fri Mar 28 22:30:38 Local time zone must be set--see zic x86_64 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz GenuineIntel GNU/Linux
Configure dete... - 02:40 PM Revision 1170b057 (git): * lib/csv.rb: Symbol HeaderConverter: strip leading/trailing space.
- Reported by Skye Shaw
[Fixes GH-575]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:35 PM Revision 7c4d4e1e (git): * lib/csv.rb: Don't attempt to convert nil headers.
- Reported by Skye Shaw
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:12 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
- As nobu said, I guess that backporting r45015 helps to solve the issue.
-
11:45 AM Bug #9321: rb_mod_const_missing does not generate a c-return event
- As far as I'm concerned, this changes an (incorrect) behaviour and it should be backported. In byebug's case, having a balanced count of call and return events is critical and directly affects usability of the debugger. And when I though...
-
06:13 AM Bug #9321: rb_mod_const_missing does not generate a c-return event
- This issues is available on 2.1 and 2.0.
This is possible that some applications implement workaround for this issue. This patch can breaks such applications. However, I'm not sure such applications exist (maybe don't exist).
-
06:07 AM Bug #9321 (Closed): rb_mod_const_missing does not generate a c-return event
- ささださん曰く、
> const_missing が呼ばれると、c_call は飛ばれるのに c_return が呼ばれない、ので、デバッガ作るときに困るので、
> ...
とのこと。
具体的に結果がどう変わるかは
https://bugs.ruby-lang.org/issues/9321#note-20
-
05:19 AM Bug #9321: rb_mod_const_missing does not generate a c-return event
- Ah, I see.
I think it should be backported, but it changes a behavior.
@naruse-san, can we backport it?
-
10:55 AM Revision 86034eaf (git): fix the example of failed URI
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:59 AM Bug #9662 (Closed): [Doc] Typo in README.EXT
- Applied in changeset r45495.
----------
* README.EXT: fix typo.
[ruby-core:61634] [Bug #9662]
* README.EXT.ja: ditto. -
08:58 AM Revision 4192341e (git): * README.EXT: fix typo.
- [ruby-core:61634] [Bug #9662]
* README.EXT.ja: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:29 AM Bug #9690 (Closed): Better orror message for config.guess downloading
- Applied in changeset r45494.
----------
config_files.rb: show failure
* tool/config_files.rb (ConfigFiles.download): show failed URI.
[ruby-core:61792] [Bug #9690] -
06:27 AM Bug #9690 (Closed): Better orror message for config.guess downloading
- I recently tried to compile Ruby on a new machine and got the error below:
Trying again today, it suddenly worked, but I think it would be great if there were a better error message. "getaddrinfo: Name or service not known (SocketErro... -
08:29 AM Revision 0b57f675 (git): config_files.rb: show failure
- * tool/config_files.rb (ConfigFiles.download): show failed URI.
[ruby-core:61792] [Bug #9690]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:10 AM Bug #9685 (Closed): psych-2.0.5 のバックポート
-
05:12 AM Bug #9689 (Closed): (BigDecimal + Float) no longer commutative due to #7176
- So, there was a bug filed a while back (#7176) about Rational + BigDecimal failing, despite BigDecimal + Rational working.
https://bugs.ruby-lang.org/issues/7176
When this bug was fixed (in r37406), the new BigDecimal#+ also (I bel... -
03:38 AM Revision 99d1f5f8 (git): * addr2line.c (rb_dump_backtrace_with_lines): don't depend hard coded
- symbol '_start'.
* addr2line.c (fill_lines): instead of above, get a dynamic symbol
in the main executable and use it to know the base address.
* addr2line.c (follow_debuglink0): use obj_info_t instead of
line_info_t to handle obje... -
12:07 AM Revision f6686b51 (git): * parse.y (rb_str_dynamic_intern): set mark bit if dynamic symbol
- is before sweeping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/31/2014
-
10:39 PM Revision f265ce70 (git): * addr2line.c (fill_lines): use dynsym, which is used for dynamic
- linking and always exists, if there's no symtab.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 10:34 PM Revision e1952036 (git): * 2014-04-01
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:34 PM Revision 6ba2c24c (git): * vm_dump.c (rb_print_backtrace): current implementation
- uses dladdr to get the path of objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:58 PM Bug #9660: test/unit, minitest & bundler
- normalperson@yhbt.net wrote:
> e@zzak.io wrote:
> > I like the name ruby-unit, in this case we should also consider
> > changing the namespaces to match (ie: RubyUnit)
>
> Might as well use Minitest:: at that point, right?
... -
05:58 PM Bug #9660: test/unit, minitest & bundler
- e@zzak.io wrote:
> I like the name ruby-unit, in this case we should also consider
> changing the namespaces to match (ie: RubyUnit)
Might as well use Minitest:: at that point, right? -
08:21 AM Bug #9660: test/unit, minitest & bundler
- I like the name ruby-unit, in this case we should also consider changing the namespaces to match (ie: RubyUnit)
-
07:49 AM Bug #9660: test/unit, minitest & bundler
- I think bundled test-unit should be rename like rbunit or ruby-unit. many of users is confused by bundled test-unit and test-unit gem.
If we can't merge their, it should be renamed. -
02:58 PM Bug #9578: ‘Function’ undeclared in readline.c
- Takahiro Kambe wrote:
> Who are you asking to commit? (BTW, I am not a commiter.)
Really!?
-
02:57 PM Bug #9578 (Closed): ‘Function’ undeclared in readline.c
- Applied in changeset r45488.
----------
`readline/extconf.rb`: fix typo
* `ext/readline/extconf.rb`: fix typo, `$defs` not `$DEFS`.
[ruby-core:61756] [Bug #9578] -
03:44 AM Bug #9578: ‘Function’ undeclared in readline.c
- Nobuyoshi Nakada wrote:
> Takahiro Kambe wrote:
> ...
Who are you asking to commit? (BTW, I am not a committer.)
-
02:57 PM Revision 66481367 (git): readline/extconf.rb: fix typo
- * ext/readline/extconf.rb: fix typo, `$defs` not `$DEFS`.
[ruby-core:61756] [Bug #9578]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:38 PM Revision 6b9b8531 (git): variable.c, vm_method.c: pin down
- * variable.c (rb_alias_variable): ensure pinned down.
* vm_method.c (rb_method_entry_make): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:17 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
- Same thing as Dieter - intermittent fault at util.rb:39, haven't been able manually reproduce yet but it's happening regularly in production ( every few days )
/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/bigdecimal/util.rb:39: [BU... -
02:10 PM Bug #9321: rb_mod_const_missing does not generate a c-return event
- no no I was missing something.... :( I thought this bug fix was included in 2.1 but it's not. Last master works fine. I'm sorry for the confusion. And thanks a lot for having a look so quick!
Can I ask for this to be backported to 2.0... -
09:31 AM Bug #9321: rb_mod_const_missing does not generate a c-return event
- I check with test/unit (modified as follow) and I got no error. Do I miss anything?
```ruby
require 'test/unit'
class TestTracePoint < Test::Unit::TestCase
def test_method_missing
events = []
assert !respond_to?(:miss... -
10:55 AM Bug #9681 (Feedback): miniruby Bus Error at 0x3d44c4
- It might be due to GCC bug, because GCC 4.5.2 is too old. Could you please try latest GCC?
- 08:24 AM Revision bf905503 (git): * test/ruby/memory_status.rb: require envutil before accessing EnvUtil
- module. reported by ko1 via twitter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:39 AM Bug #9592: Fix segfault with old OpenSSL
- backported into ruby_1_9_3 at r45485. (see #9672)
- 06:38 AM Revision f150dbba (git): merge revision(s) 45271: [Backport #9672]
- * ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
error reasons with old OpenSSL, and insert a colon iff formatted
message is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@4... -
02:48 AM Revision 97cef275 (git): fix typos
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:34 AM Revision d14458fb (git): signal.c: preserve encoding
- * signal.c (esignal_init): preserve encoding in error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:34 AM Revision 03f0ca4c (git): vm.c: avoid inadvertent pin-down
- * vm.c (vm_stat): get rid of inadvertent dynamic symbol pin-down,
and preserve encoding in error messages. also should not use
RSTRING_PTR macro on function calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45482 b2dd03c8-39... - 01:34 AM Revision 8125399c (git): st.c (st_init_table_with_size): update comment
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:14 AM Bug #8182: XMLRPC request fails with "Wrong size. Was 31564, should be 1501"
- As I wrote, the check is useless. It should be removed.
03/30/2014
-
10:38 PM Bug #9321 (Open): rb_mod_const_missing does not generate a c-return event
-
04:32 PM Bug #9321: rb_mod_const_missing does not generate a c-return event
- Hi @koichi, I'm still running into this issue... :( I really don't know what's going on, because the tests pass in ruby's test suite, but the `c_return` event is not generated when I use the TracePoint API.
require 'minitest/autor... -
10:26 PM Bug #9578: ‘Function’ undeclared in readline.c
- Takahiro Kambe wrote:
> But it should be `$defs` instead of `$DEFS`?
Exactly. Please commit it.
-
01:22 PM Bug #9578 (Assigned): ‘Function’ undeclared in readline.c
-
12:30 AM Bug #9578: ‘Function’ undeclared in readline.c
- r45240 added these lines to extconf.rb:
> ~~~ruby
> ...
But it should be $defs instead of $DEFS? -
09:55 PM Revision a9237467 (git): gc.c: avoid inadvertent pin-down
- * gc.c (gc_info_decode): get rid of inadvertent dynamic symbol
pin-down, and preserve encoding in error messages. also should
not use RSTRING_PTR macro on function calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45480 b2dd... - 09:00 PM Revision 1cd98eb9 (git): * 2014-03-31
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:00 PM Revision c0dee604 (git): process.c: preserve encodings
- * process.c (rlimit_resource_type, rlimit_resource_value):
preserve argument encoding in error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:00 PM Revision 956745ee (git): test_process.rb: test if success?
- * test/ruby/test_process.rb (test_rlimit_value): should not use
magic number 0, which may not be EXIT_SUCCESS. use `success?`
instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:01 PM Bug #8405: CSV module - improper regexp for escaping special characters
- r45374 was backported to ruby_2_0_0 at r45476.
-
04:01 PM Revision 5d53e5b7 (git): merge revision(s) r45374: [Backport #8405]
- * lib/csv.rb: Fixed a broken regular expression that was causing
CSV to miss escaping some special meaning characters when used
in parsing.
Reported by David Unric
[ruby-core:54986] [Bug #8405]
g... -
03:52 PM Revision fe736ccf (git): * test/ruby/envutil.rb (assert_no_memory_leak): increase default value
- of `limit` keyword argument.
assert_no_memory_leak occasionally fails with limit=1.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:46 PM Bug #9651: __dir__ returns nil in instance_eval/module_eval
- r42230 and r42231 were backported to ruby_2_0_0 at r45473. These changesets were required for resolv conflict.
And r45360 and r45361 were backported to ruby_2_0_0 at r45474. -
03:43 PM Revision d0be5c2d (git): merge revision(s) r45360,r45361: [Backport #9651]
- * vm_eval.c (eval_string_with_cref): Use file path even if scope is
given. Related to [ruby-core:56099] [Bug #8662] and r42103.
* vm_eval.c (eval_string_with_cref): Unify to use NIL_P.
git-svn-id: svn+ssh://ci.ruby-l... -
03:06 PM Revision 3041f215 (git): merge revision(s) r42230,r42231: [Backport #9651]
- parse.y, vm_eval.c: file encoding in eval
* parse.y (yycompile): store file name as String to keep the encoding.
* parse.y (rb_parser_compile_string_path, rb_parser_compile_file_path):
new functions to pass file name ... -
02:53 PM Bug #9592: Fix segfault with old OpenSSL
- r45271 was backported to `ruby_2_0_0` at r45472.
コミット連動で閉じてしまいましたが、trunk では修正済みなので Closed にした上で Backport 欄を使うということでそのままにしておきます。 -
02:50 PM Bug #9592 (Closed): Fix segfault with old OpenSSL
- Applied in changeset ruby-200:r45472.
----------
merge revision(s) r45271: [Backport #9592] [Backport #9670]
* ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
error reasons with old OpenSSL, and insert a colon iff form... -
02:50 PM Revision 0cc54369 (git): merge revision(s) r45271: [Backport #9592] [Backport #9670]
- * ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
error reasons with old OpenSSL, and insert a colon iff formatted
message is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@4... -
02:43 PM Bug #9688 (Closed): Ruby's child process inherits parent's sockets (mswin)
- Applied in changeset r45471.
----------
* win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):
reset inherit flag of socket to avoid unintentional inheritance of
socket. note that the return value of SetHandleInform... -
02:38 PM Bug #9688: Ruby's child process inherits parent's sockets (mswin)
- Thank you for testing my patch!
- 02:42 PM Revision 38c3ba2f (git): * win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):
- reset inherit flag of socket to avoid unintentional inheritance of
socket. note that the return value of SetHandleInformation() is not
verified intentionally because old Windows may return an error.
[Bug #9688] [ruby-core:61754]
... -
01:16 PM Bug #9687 (Closed): Make a cap for malloc_limit adjustment
- 08:10 AM Revision 97a3464b (git): * 2014-03-30
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:10 AM Revision e4879afe (git): * parse.y (rb_str_dynamic_intern): [DOC] move rdoc from rb_str_intern.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:38 AM Bug #9608: [PATCH] avoid large alloca on Complex/Rational calls
- tadf: ping?
-
03:28 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
- Eric Wong <normalperson@yhbt.net> wrote:
> normalperson@yhbt.net wrote:
> > 0001-doubly-linked-list-from-ccan-to-manage-vm-living_thr.patch (68.1 KB)
>
> I'll de-duplicate the CC0 declaration files if allowed to commit this.
> The...
03/29/2014
-
03:16 PM Bug #9688 (Closed): Ruby's child process inherits parent's sockets (mswin)
- When Ruby application creates child process, sockets are inherited from the parent process.
This causes severe troubles.
In my situation, I have some web services using WEBrick and Sinatra. They invoke child process as a batch file usi... -
02:58 PM Feature #9453 (Rejected): Return symbols of defined methods for `attr` and friends
- I am not positive. The example
private *attr_reader(:images, :key_map, :window, :screen_manager,:animations)
is not really intuitive. Besides that, you can define private_attr_reader, etc. by yourself.
In that case, the code w... -
08:10 AM Bug #9518: Objects in large arrays are leaked
- (2014/03/29 15:48), normalperson@yhbt.net wrote:
> I strongly believe there should no magic based on size.
I need to ask tarui-san, who introduce this mechanism.
Tarui-san, could you give me a comment?
--
// SASADA Koichi a... -
06:48 AM Bug #9518: Objects in large arrays are leaked
- ko1: may I commit the removal of special case for large array/hash?
* gc.c (rb_gc_writebarrier): remove special case for large hash/array
http://bogomips.org/ruby.git/patch?id=40849ff1bc881
git://80x24.org/ruby.git gc-nomagic
... -
04:43 AM Bug #9687 (Open): Make a cap for malloc_limit adjustment
-
04:37 AM Bug #9687 (Closed): Make a cap for malloc_limit adjustment
- Applied in changeset r45468.
----------
* gc.c (gc_before_sweep): cap `malloc_limit' to
gc_params.malloc_limit_max. It can grow and grow with such case:
`loop{"a" * (1024 ** 2)}'
[Bug #9687]
This issue is pointed by Tim Rober... -
04:14 AM Bug #9687 (Closed): Make a cap for malloc_limit adjustment
- The blog post [Ruby Garbage Collection: Still Not Ready for Production] (http://www.omniref.com/blog/blog/2014/03/27/ruby-garbage-collection-still-not-ready-for-production/) pointed out that the following code consumes all of memory:
... -
04:37 AM Revision 835186a3 (git): * gc.c (gc_before_sweep): cap `malloc_limit' to
- gc_params.malloc_limit_max. It can grow and grow with such case:
`loop{"a" * (1024 ** 2)}'
[Bug #9687]
This issue is pointed by Tim Robertson.
http://www.omniref.com/blog/blog/2014/03/27/ruby-garbage-collection-still-not-ready... -
04:08 AM Feature #9686: Syntax for symbols used in hashes
- Sorry, `string.to_sym`.
03/28/2014
-
10:58 PM Feature #9686: Syntax for symbols used in hashes
- On Mar 29, 2014 8:52 AM, <nobu@ruby-lang.org> wrote:
>
> You can write simply for that case:
>
> ~~~ruby
> string = 'foo'
> {string => 'bar'}
> ~~~
You'd need
~~~ruby
{string.to_s => 'bar'}
~~~ -
10:52 PM Feature #9686: Syntax for symbols used in hashes
- You can write simply for that case:
~~~ruby
string = 'foo'
{string => 'bar'}
~~~
-
08:22 PM Feature #9686: Syntax for symbols used in hashes
- See #4276
-
07:56 PM Feature #9686 (Open): Syntax for symbols used in hashes
- Symbols are often used literally as keys in hashes like this:
~~~ruby
{foo: 'bar'}
~~~
But acutally there is a little inconvenience when using the alternative `:"name"` literal syntax:
~~~ruby
string = 'foo'
{:"#{string}" =>... - 10:43 PM Revision ec02cc29 (git): * 2014-03-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:43 PM Revision 8062cdc6 (git): test_member.rb: fix locale depending test failure
- * test/-ext-/struct/test_member.rb (test_member_get): set
default_external encoding to fix locale depending test failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:54 PM Bug #9659: crash in FIPS mode after unchecked algo->init_func failure
- I've just compared the Debian and CentOS OpenSSL sources, and it looks like large parts of the FIPS functionality in OpenSSL that I've taken for granted are provided in CentOS/RHEL-specific patches. So you may not be able to duplicate th...
-
05:11 AM Bug #9659 (Feedback): crash in FIPS mode after unchecked algo->init_func failure
- I can't reproduce that assertion failure, with openssl 0.9.8y and 1.0.1f.
`OPENSSL_FIPS` needs to be defined, perhaps? -
12:29 AM Bug #9659: crash in FIPS mode after unchecked algo->init_func failure
- If any credit is given for finding this problem, it belongs to Joseph Yaworski; see https://tickets.puppetlabs.com/browse/PUP-1840.
-
12:28 AM Bug #9659: crash in FIPS mode after unchecked algo->init_func failure
- Attached are three cumulative patches against source:/trunk@45452.
The first, 001-detect-digest-failure, changes the prototypes of digest initialization and finalization functions in the digest extension to return int instead of void;... -
03:55 PM Feature #9453 (Assigned): Return symbols of defined methods for `attr` and friends
-
12:36 PM Revision 1d223a3b (git): struct.c: avoid pinning down
- * struct.c (rb_struct_set, rb_struct_aref, rb_struct_aset): get
rid of pinning down dynamic symbols by SYM2ID.
* struct.c (rb_struct_aref_sym, rb_struct_aset_sym): use Symbol
instead of ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru... -
12:36 PM Revision fd8f3cb9 (git): parse.y: rb_id_attrget
- * parse.y (rb_id_attrget): new function to convert setter ID to
getter ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:56 AM Feature #9678: New heredoc syntax
- Some use cases for fun:
system <<:
> ./configure
> make
> make install
eval <<:
> 10.times do
> puts <<:
> > Who is the silly person who wrote this program?
> end -
10:32 AM Revision 4a463622 (git): struct.c: encoding of member name
- * struct.c (not_a_member): preserve encoding of member name in
error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:32 AM Bug #9684 (Closed): Use same error messages in struct.c
- Applied in changeset r45462.
----------
struct.c: not_a_member message
* struct.c (not_a_member): extract name error and use same error
messages. based on the patch by Marcus Stollsteimer <sto.mar AT
web.de> at [ruby-core:61721]. ... -
06:02 AM Bug #9684 (Feedback): Use same error messages in struct.c
- Do you have code to raise those exceptions?
-
10:32 AM Revision afb4bcbf (git): struct.c: not_a_member message
- * struct.c (not_a_member): extract name error and use same error
messages. based on the patch by Marcus Stollsteimer <sto.mar AT
web.de> at [ruby-core:61721]. [Bug #9684]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45462 b2d... -
07:58 AM Revision 4a3f08d3 (git): .gdbinit (rp): dump T_SYMBOL
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:28 AM Revision 9d1bf5b3 (git): string.c: infect match result
- * string.c (rb_pat_search): match result should be infected by the
pattern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:28 AM Revision 2f14bde8 (git): string.c: backref substitution
- * re.c (rb_reg_regsub): allow nil regexp for string matching.
* string.c (rb_str_sub_bang, str_gsub): make substitution if
replacement string has backref escapes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45459 b2dd03c8-39d4-... -
02:27 AM Revision 2d82342c (git): string.c: unset $~ if unmatch
- * string.c (rb_pat_search): unset $~ if the last match failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:23 AM Revision 209a310c (git): revert r45417
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:17 AM Revision 0795c716 (git): revert r45417
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:28 AM Bug #9685 (Closed): psych-2.0.5 のバックポート
- CVE-2014-2525 の修正を含んだ psych-2.0.5 のバックポートをお願いします。
ref. https://github.com/tenderlove/psych/pull/187
related commits. r45454, r45455 -
12:23 AM Revision 7a01bfcd (git): * ext/psych/psych.gemspec: update gemspec for psych-2.0.5
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:19 AM Revision 7efc09ec (git): * 2014-03-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:19 AM Revision e221c6ce (git): * ext/psych/lib/psych.rb: Merge psych-2.0.5. bump version to
- libyaml-0.1.6 for CVE-2014-2525.
* ext/psych/yaml/config.h: ditto.
* ext/psych/yaml/scanner.c: ditto.
* ext/psych/yaml/yaml_private.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03/27/2014
-
10:42 PM Bug #9680 (Closed): String#sub and siblings should not use regex when String pattern is passed
- I missed to include this ticket reference in the commit log.
Inflector seems using other replacements with RE, so this improvement might not be significant much. -
07:03 PM Bug #9680: String#sub and siblings should not use regex when String pattern is passed
- Good point, Benoit! This is actually why I started looking into #gsub in the first place. I benchmarked ActiveSupport::Inflector [1], which does operations like `gsub!('/', '::')` and `gsub('::', '/')`. Here are the benchmarks, before an...
-
04:17 PM Bug #9680: String#sub and siblings should not use regex when String pattern is passed
- It would be interesting to run the benchmark on a more realistic example. One should use String#tr or String#tr! if it is only to replace a single character.
-
02:02 AM Bug #9680: String#sub and siblings should not use regex when String pattern is passed
- I think the speedup in this patch comes almost entirely from skipping the regex engine, not from the GC savings.
Preserving `$&` (and `$~` and friends) while still not firing up the regex engine might be possible (constructing the bas... -
01:28 AM Bug #9680: String#sub and siblings should not use regex when String pattern is passed
- I had an idea to replace the current reg_cache with memoization for
converting string literals, but never got around to it. That would
also reduce garbage while preserving $& compatibility. -
12:09 AM Bug #9680 (Closed): String#sub and siblings should not use regex when String pattern is passed
- Currently `String#sub`, `#sub!`, `#gsub, and `#gsub!` all accept a String pattern, but immediately create a Regexp from it, and use the regex engine to search for the pattern. This is not performant. For example, `"123:456".gsub(":", "_"...
-
08:16 PM Feature #9678: New heredoc syntax
- Yes, it has to be defined immediately, otherwise it would be impossible to reuse the same heredoc "identifier" (`Message:`), and it may conflict with program identifiers.
-
08:13 PM Feature #9678: New heredoc syntax
- Rodrigo Rosenfeld Rosas wrote:
> What should the scope for interpolation be?
I had thought about it, but i did not see a better option than to require the heredoc to be defined immediately after the line where it is used, as usual. -
07:12 PM Feature #9678: New heredoc syntax
- What should the scope for interpolation be?
~~~
def my_method
a = 1
b = <<:message
end
a = 2
message:
>> #{a}
my_method # what is the output?
~~~ -
07:08 PM Feature #9678: New heredoc syntax
- Rodrigo Rosenfeld Rosas wrote:
> Is it possible to start the '>' anywhere besides the first char?
Good point, why not. My motivation was however to be able to write heredocs without indentation in a nice and clear way.
I have jus... -
07:02 PM Feature #9678: New heredoc syntax
- Is it possible to start the '>' anywhere besides the first char?
~~~
def my_method
a = <<Message1:
Message1:
> Some
> content
end
~~~
Or even something anonymous like:
~~~
def my_method
a = <<:
> So... -
01:36 PM Feature #9678: New heredoc syntax
- I try to summarize again, hopefully better, and with a bit different syntax.
### Example
class C
def f(x)
print <<Message1: + <<Message2: + <<Message3:
Message1:
> 1. Some text
> without any in... -
01:42 AM Feature #9678 (Feedback): New heredoc syntax
- Could you summarize your proposal concretely?
-
05:13 PM Feature #9453: Return symbols of defined methods for `attr` and friends
- It's been almost 2 months...any chance we could get a comment on this from the core team?
-
03:30 PM Bug #8358: TestSprintf#test_float test failure
- We've decided to revert the whole sse2 block from configure.in in official Linux Arch ruby package. https://www.archlinux.org/packages/extra/x86_64/ruby/
That change breaks our users who uses 32-bit packages on old hardware that does ... -
02:36 PM Bug #9681: miniruby Bus Error at 0x3d44c4
- Just to give an update.
After many different tries, the solutions for compiling ruby 2.1 is to use Sunstudio rather than gcc.
This has working well.
-
10:06 AM Bug #9681 (Closed): miniruby Bus Error at 0x3d44c4
- Dear team,
I'm trying to compile ruby 2.1.1 on Solaris Oracle Solaris 11.1 SPARC, with gcc version 4.5.2 (GCC).
I wonder that maybe you can help on the issue.
Here is the result of the configure :
It complains for the conftes... -
02:00 PM Bug #9683: Segmentation fault when using default proc feature in ruby Hash object
- In ruby-2.0.0
➜ bruno-v2 rvm:(ruby-2.0.0) git:(master) ✗ ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin13.1.0]
➜ bruno-v2 rvm:(ruby-2.0.0) git:(master) ✗ irb
2.0.0-p451 :001 > a = Hash.new {|h,k| h[k] += 1}
=> ... -
01:51 PM Bug #9683 (Closed): Segmentation fault when using default proc feature in ruby Hash object
➜ bruno-v2 rvm:(ruby-2.1.0) git:(master) ✗ uname -a
Darwin erans-mbp.intkontera.com 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
➜ bruno-v2 rvm:(ruby-2.1.0) git:(mas...-
01:59 PM Bug #9684 (Closed): Use same error messages in struct.c
- In `struct.c`, use the same error message "`foo' is not a struct member" in
- `rb_struct_getmember` (line 97) and
- `rb_struct_set` (lines 157)
-
01:42 PM Bug #9682 (Closed): [Doc] Improve Time.parse documentation (in lib/time)
- Consistently use EST like all other examples in lib/time.
Also tries to clarify the behaviour by adding a comment with the return value of Time.parse in the given example.
See discussion on #9521. -
12:03 PM Revision fb3bd787 (git): string.c: suppress warnings
- * string.c (rb_str_sub_bang, str_gsub): initialize conditionally
assigned variables to suppress maybe-uninitialized warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:58 AM Revision 5752b61d (git): string.c: search by rb_str_index
- * re.c (match_regexp): set regexp for MatchData from string.
* re.c (rb_backref_set_string): create MatchData from string and
set backref.
* string.c (rb_pat_search, rb_str_sub, rb_str_sub_bang, str_gsub),
(scan_once, rb_str_scan, rb... -
09:47 AM Revision 227a5a2a (git): string.c: mustnot_broken
- * string.c (mustnot_broken): extract function to reject invalid
byte sequence, from rb_str_split_m().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:08 AM Revision ffdb3ce9 (git): re.c: class name encoding
- * re.c (match_inspect): preserve class name encoding by PRIsVALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:08 AM Revision 2dc8f669 (git): test_m17n_comb.rb: refine assertions
- * test/ruby/test_m17n_comb.rb (test_str_scan): refine assertion
messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:42 AM Revision 7c9f1aa3 (git): [DOC] Fix NEWS about Symbol GC
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:18 AM Bug #9606: Ocassional SIGSEGV inTestException#test_machine_stackoverflow on OpenBSD
- kosaki: any ideas for the lack of guard page for the main thread?
I have one idea, but I hate it: run timer thread function in the main
thread and have all normal Ruby code in pthread_create-ed threads.
However, long term, I will... -
03:48 AM Bug #9606: Ocassional SIGSEGV inTestException#test_machine_stackoverflow on OpenBSD
- Increasing guard page size doesn't not fit for x86 32bit, at least. They have no enough room.
I see no regression if changes 64bit only.
-
03:03 AM Revision 949f1160 (git): string.c: invert flag
- * string.c (str_gsub): invert and rename `str_replace` flag as
`need_backref`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:01 AM Revision acc3cf5f (git): * addr2line.c (fill_lines): check shdr[i].sh_type because even if
- .symtab section exists, the section's type can be SHT_NOBITS and
actual data doesn't exist in the file. [Bug #9654]
revert r45441.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:58 AM Revision 6c27d383 (git): re.c: indent
- * re.c (rb_reg_search): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:58 AM Revision d94dcf1e (git): parse.y: type-punning cast
- * parse.y (rb_gc_free_dsymbol): use intermediate st_data_t and get
rid of type-punning cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e