Project

General

Profile

Activity

From 03/19/2014 to 03/25/2014

03/25/2014

11:55 PM Revision 3bd0fd11 (git): temporaly change/add to debug on powerpc64-linux
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:55 PM Revision 633b2fc9 (git): * addr2line.c (fill_lines): don't run fill_lines multiple times.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:52 PM Revision df0034f8 (git): * internal.h (rb_reg_search0): not a public API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:46 PM Bug #9676 (Closed): String#gsub shouldn't allocate so many Strings in its loop
Applied in changeset r45414.
----------
Stop allocating backref strings within gsub's search loop
* internal.h: add prototype for rb_reg_search0
* re.c: rename rb_reg_search to rb_reg_search0, add set_backref_str
argument to allow c...
Anonymous
10:55 PM Bug #9676 (Closed): String#gsub shouldn't allocate so many Strings in its loop
`rb_reg_search()` allocates (dups) a String to attach to the backreference object ( `RMATCH(match)->str = rb_str_new4(str);` ). If #gsub has been passed 2 arguments (not Enumerator form) and the second argument is a String, then it shoul... srawlins (Sam Rawlins)
11:46 PM Revision a7720658 (git): Stop allocating backref strings within gsub's search loop
* internal.h: add prototype for rb_reg_search0
* re.c: rename rb_reg_search to rb_reg_search0, add set_backref_str
argument to allow callers to indicate that they don't require the
backref string to be allocated
* string.c: don't a...
Charlie Somerville
11:29 PM Revision ebd9f1d0 (git): lib/rubygem.rb: Weirich
* lib/rubygem.rb: fix spelling of Jim Weirich. [Fixes GH-577]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:29 PM Bug #9674: Segfault when marshaling Queue
For clarity, a Queue is not dumpable. With DRb a reference to the Queue (DRbObject) is sent instead. drbrain (Eric Hodel)
03:36 PM Bug #9674 (Closed): Segfault when marshaling Queue
Marshaling `Queue` segfaults on ruby 2.1.1p76 (see attachment) splattael (Peter Leitzen)
06:44 PM Revision 0fe34c4c (git): main is not a pubic function, use _start instead
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:11 PM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
usa@garbagecollect.jp wrote:
> r45364 introduced a test failure on Windows, and r45395 didn't fix it.
> After all, there is no portabl time zone name, I guess.
> Doesn't someone think of a better test?

Sorry about the portability ...
normalperson (Eric Wong)
06:49 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
r45364 introduced a test failure on Windows, and r45395 didn't fix it.
After all, there is no portabl time zone name, I guess.
Doesn't someone think of a better test?
usa (Usaku NAKAMURA)
06:02 PM Feature #9673: pieをconfigureからdisableしたい
さらっと見た感じ、あってそうです。どうせオプション増やしてるだけで失敗してても大きな影響はないんですから突っ込んでしまっていいのではないでしょうか。 kosaki (Motohiro KOSAKI)
02:38 PM Feature #9673 (Closed): pieをconfigureからdisableしたい
手持ちのある環境でtrunkを使いたくなって、./configure && makeでminirubyが落ちてしまいました。1.9の時代は動いていたという情報がたくさんあったので比較したところ、PIEが怪しかったので消してmakeしたところ無事コンパイルが終わってとりあえずmake testが終わるところまで確認しました。
configure.inをみると、一部のプラットフォームではデフォルトでPIEがdisableになっていますが、手持ちの環境(とあるNAS)のta...
kanemoto (Yutaka Kanemoto)
04:58 PM Revision 925a1e1d (git): * 2014-03-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:58 PM Revision c1b81d35 (git): * addr2line.c (rb_dump_backtrace_with_lines): a function to get must
be a function in the main executable, whose absolute path is not
available by dladdr, and ruby get it by /proc/self/exe on Linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:58 PM Revision cd2afc30 (git): * addr2line.c (fill_lines): skip if path is NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:54 PM Bug #9675 (Rejected): Marshal.load fails with recursive structures and user defined hash method
If a user class redefines hash to something that depends on instance variables, and the object is loaded both before a hash, and as a key of a hash of one of its own instance variables (that's loaded *before* the instance variables neede... ccutrer (Cody Cutrer)
02:57 PM Bug #9669 (Closed): Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
Applied in changeset r45408.
----------
parse.y: required kwarg without parentheses
* parse.y (parser_yylex): only a newline after label should be
significant. [ruby-core:61658] [Bug #9669]
nobu (Nobuyoshi Nakada)
08:15 AM Bug #9669 (Open): Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
It doesn't work yet... nobu (Nobuyoshi Nakada)
07:47 AM Bug #9669 (Closed): Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
Applied in changeset r45405.
----------
parse.y: required kwarg without parentheses
* parse.y (lex_state_e, parser_params, f_arglist, parser_yylex):
separate EXPR_LABELARG from EXPR_BEG and let newline significant,
so that required...
nobu (Nobuyoshi Nakada)
05:25 AM Bug #9669: Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
Nobuyoshi Nakada wrote:
> Do you mean **all** line continuations?
I don't think so; the only one that ever comes up as a gotcha is a final required keyword argument in a function definition.
phluid61 (Matthew Kerwin)
04:52 AM Bug #9669: Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
Or put a semicolon after `b:`.
Matthew Kerwin wrote:
> I think Ruby should drop the line continuation, and interpret all three code samples like the second case above, even though it might be hard to solve with the current parser.
...
nobu (Nobuyoshi Nakada)
03:42 AM Bug #9669: Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
It's because of line continuations. It interpreted the code as:
~~~ruby
def foo a:, b: 'bar'
# returns `nil`
end
def foo a:, b: puts 'bar' #<< syntax error
end
~~~
There are two ways to add parentheses to make it legal:
...
phluid61 (Matthew Kerwin)
03:33 AM Bug #9669: Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
That is consistent. In the first example, `'bar'` is interpreted as the default value of `b`. In the second example, the expression `puts 'bar'` is inappropriate as the default value, hence the error. sawa (Tsuyoshi Sawada)
02:36 AM Bug #9669 (Closed): Inconsistent SyntaxError in Ruby 2.1 mandatory keyword arguments definition without parentheses.
Ruby allowed us to define method with arguments without parentheses.
~~~
def foo a:, b:
'bar'
end
#=> :foo
def foo a:, b:
puts 'bar'
end
#=> syntax error
~~~
tejanium (Teja Sophista)
02:57 PM Revision dcd1e5e5 (git): parse.y: required kwarg without parentheses
* parse.y (parser_yylex): only a newline after label should be
significant. [ruby-core:61658] [Bug #9669]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:42 PM Revision 6df5f314 (git): remove unnecessary unshift
* ext/pathname/lib/pathname.rb (Pathname#join): remove unnecessary unshift.
* test/pathname/test_pathname.rb (TestPathname#test_join): add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
11:32 AM Feature #9620: Rename "curry" to "schönfinkelize"
http://en.wikipedia.org/wiki/Currying
> The name "currying", coined by Christopher Strachey in 1967, is a reference to logician Haskell Curry.
So in this case, the Third Party is Christopher Strachey.
mame (Yusuke Endoh)
05:09 AM Feature #9620: Rename "curry" to "schönfinkelize"
I think because the proposed method is not for “native” speakers, its meant for third party individuals ;)

It was meant as a joke

On Mar 24, 2014, at 1:53 PM, duerst@it.aoyama.ac.jp wrote:

> Issue #9620 has been updated by Mart...
zzak (zzak _)
07:57 AM Revision 602a9c14 (git): * test/ruby/test_time.rb: extended the timeout span and reduce the loop count.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:47 AM Revision d7442c32 (git): parse.y: required kwarg without parentheses
* parse.y (lex_state_e, parser_params, f_arglist, parser_yylex):
separate EXPR_LABELARG from EXPR_BEG and let newline significant,
so that required keyword argument can place at the end of
argument list without parentheses. [ruby-...
nobu (Nobuyoshi Nakada)
07:39 AM Revision 0574b646 (git): parse.y: removing padding
* parse.y (parser_params): shrink struct size by removing padding
on 64-bit platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:55 AM Revision 69c80f18 (git): * test/ruby/test_time.rb: use portable time zone. see [ruby-core:61671] [Bug #9652]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:48 AM Feature #9667: Optimization of __FILE__ and __dir__
`test/rubygems/test_gem.rb` fails at `untaint`ing `__FILE__`, when parallel test. nobu (Nobuyoshi Nakada)
01:30 AM Revision b8c376cb (git): defs/gmake.mk: no _FORTIFY_SOURCE unless optimization
* defs/gmake.mk (XCFLAGS): remove _FORTIFY_SOURCE if optimization is
disabled as it requires compiling with optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/24/2014

11:00 PM Bug #9659: crash in FIPS mode after unchecked algo->init_func failure
I changed the `rb_digest_hash_init_func` typedef from a return type of `void` to `int`, so that the return value of `MD5_Init` could be checked. I changed digest.c to check the return value of `algo->init_func`, which at the time of the ... jared.jennings.ctr (Jared Jennings)
07:08 PM Bug #9664: cannot resume transferred Fiber even if it should resume
More straightforward example and a convenient way to detect the bug:
~~~
begin
Fiber.new { Fiber.yield Fiber.current }.transfer.resume
puts "Cool I'm in ruby 1.9.x. I've got fibers!"
rescue FiberError
puts "Too bad, I'm in ...
royaltm (Rafał Michalski)
03:28 PM Revision c54e268a (git): * 2014-03-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 PM Revision 4765f9c7 (git): vm.c: extract core_hash_merge
* vm.c (core_hash_merge): extract from m_core_hash_merge_ary and
m_core_hash_merge_ptr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:28 PM Revision d617a02b (git): vm.c: merge code
* vm.c (m_core_hash_from_ary, m_core_hash_merge_ary): merge
duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:51 PM Revision f9382d03 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:19 PM Revision 0331e42b (git): parse.y: freeze filename
* parse.y (ripper_initialize): filename can not be modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:25 AM Feature #9667: Optimization of __FILE__ and __dir__
Sorry, my examples were inappropriate. Please ignore the examples above.
<hr>
Currently, different object id is returned each time:
2.times{puts __FILE__.object_id}
# => 70183725179420
# => 70183725129020
I propose ...
sawa (Tsuyoshi Sawada)
09:19 AM Feature #9667 (Open): Optimization of __FILE__ and __dir__
In the same spirit as the string literal followed by `freeze` is optimized, I think `__FILE__` and `__dir__` should be optimized. Currently, they return different object id each time they are called.
__FILE__.object_id # => 701837...
sawa (Tsuyoshi Sawada)
08:26 AM Revision 87108634 (git): test_time.rb: arguments order
* test/ruby/test_time.rb (TestTime#test_marshal_zone_gc): fix
the order of arguments. expected value should come first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:23 AM Feature #9620 (Rejected): Rename "curry" to "schönfinkelize"
> Status changed from Open to Third Party's Issue
This is a discussion about the name of Proc#curry, which is built in. I don't think "Third Party's Issue" is appropriate for this.
duerst (Martin Dürst)
08:12 AM Bug #9666 (Closed): Segmentation fault while printing out C level backtrace information, when $0 is set
It is because glibc's dladdr doesn't return absolute path.
r45394 fixes this with /proc/self/exe.
(this insists it cannot get symbols where ruby cannot fetch the absolute path of the executable like AIX)
naruse (Yui NARUSE)
07:33 AM Bug #9666 (Closed): Segmentation fault while printing out C level backtrace information, when $0 is set
This might be related to [Bug #9654], but when $0 is set, a segmentation fault happens while printing out C-level backtrace. Due to this issue, `TestRubyOptions#test_segv_setproctitle` fails in my environment (ppc64 linux).
~~~
rub...
ReiOdaira (Rei Odaira)
08:02 AM Revision f664ffb5 (git): Asia/Tokyo is more portable value for ENV["TZ"] [Bug #9652]
FreeBSD doesn't accept "Japan".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:31 AM Bug #8344 (Assigned): Status of Psych and Syck
zzak (zzak _)
06:28 AM Revision 2e47a521 (git): * addr2line.c (rb_dump_backtrace_with_lines): fetch path of the
executable from /proc/self/exe on Linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:28 AM Revision 23d790e4 (git): gc.c: Fix up default GC params by @csfrancis [fix GH-556]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
04:18 AM Revision 75f44fc3 (git): * 2014-03-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:18 AM Revision d2b1deda (git): * addr2line.c (parse_debug_line_cu): explicitly specify signed char
because DWARF's line_Base is signed char and char maybe unsigned.
patched by Rei Odaira. [ruby-dev:48068] [Bug #9654]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:55 AM Bug #9654: Segmentation fault while printing out C level backtrace information
Thanks for the quick fix. The second segmentation fault no longer happens.
Unfortunately, I found another problem regarding the C-level backtrace. Here is what I see in my environment (ruby 2.2.0dev (2014-03-23) [powerpc64-linux]):
...
ReiOdaira (Rei Odaira)

03/23/2014

09:48 PM Bug #9665 (Closed): Ruby 2.1.1 fails to build on PowerPC darwin, due to __builtin_unreachable
Ruby 2.1.1 (and possibly a few older versions) fails to build on PowerPC Darwin using Apple-provided GCCs. When linking miniruby, the build fails due to:
~~~
/usr/libexec/gcc/powerpc-apple-darwin8/4.2.1/ld: Undefined symbols:
___bui...
mistydemeo (Misty De Meo)
02:47 PM Revision d550d722 (git): .gdbinit: use st_numhash
* .gdbinit (rb_numtable_entry): use st_numhash() to follow r45384.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:25 AM Feature #9620 (Third Party's Issue): Rename "curry" to "schönfinkelize"
zzak (zzak _)
06:06 AM Bug #9664 (Rejected): cannot resume transferred Fiber even if it should resume
The simplified case:
~~~
root = Fiber.current
f = Fiber.new {
puts 'transfer'
root.transfer
puts 'yield'
Fiber.yield
puts 'ok'
}
f.resume
f.transfer
f.resume
~~~
First we resume into a new fiber, then the fibe...
royaltm (Rafał Michalski)
03:37 AM Bug #9653: gc_sweep(): unknown data type 0x0
Thanks again Eric. For reference, I posted the list of C extensions Gems I used. I am trying different versions of them to figure out where the error came from.
therubyracer-0.12.1
yajl-ruby-1.2.0
passenger-3.0.21
mysql2-0.3.15
js...
hongbin (Hongbin Lu)
02:05 AM Revision 0ab88d13 (git): vm_method.c fix commit miss
* vm_method.c (rb_method_entry_get_without_cache): fix commit miss.
remove extra !. [Bug #9663]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:03 AM Bug #9663 (Closed): Segfault with alias_method and include
Applied in changeset r45387.
----------
vm_method.c: check if klass is 0
* vm_method.c (rb_method_entry_get_without_cache): me->klass is 0
for a method aliased in a module. [ruby-core:61636] [Bug #9663]
nobu (Nobuyoshi Nakada)
02:03 AM Revision 99baae99 (git): vm_method.c: check if klass is 0
* vm_method.c (rb_method_entry_get_without_cache): me->klass is 0
for a method aliased in a module. [ruby-core:61636] [Bug #9663]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:03 AM Revision bedc6fdf (git): vm_method.c: check if klass is 0
* vm_method.c (rb_method_entry_get_without_cache): me->klass is 0
for a method aliased in a module. [ruby-core:61636] [Bug #9663]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:10 AM Revision 10cf7c5b (git): hash.c: use ID_SCOPE_SHIFT
* hash.c (rb_any_hash): use ID_SCOPE_SHIFT instead of magic number.
[Feature #9425]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/22/2014

11:48 PM Feature #9425: [PATCH] st: use power-of-two sizes to avoid slow modulo ops
normalperson@yhbt.net wrote:
> OK, I was right about compare_by_identity being worse with power-of-two,
> but I fixed it by tweaking numhash:
>
> http://bogomips.org/ruby.git/patch?id=1579e9d0d82789

I tweaked that further, a...
normalperson (Eric Wong)
11:34 PM Feature #9425 (Closed): [PATCH] st: use power-of-two sizes to avoid slow modulo ops
Applied in changeset r45384.
----------
st.c: use power-of-two sizes to avoid slow modulo ops
* st.c (hash_pos): use bitwise AND to avoid slow modulo op
(new_size): power-of-two sizes for hash_pos change
(st_numhash): adjust for co...
Anonymous
11:34 PM Revision 152b33a1 (git): * 2014-03-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:34 PM Revision ef59670a (git): st.c: use power-of-two sizes to avoid slow modulo ops
* st.c (hash_pos): use bitwise AND to avoid slow modulo op
(new_size): power-of-two sizes for hash_pos change
(st_numhash): adjust for common keys due to lack of prime modulo
[Feature #9425]
* hash.c (rb_any_hash): right shift for ...
Eric Wong
03:46 PM Bug #8177: ext/openssl/pkcs7 signing fails with EC keys
I'm still encountering similar issue with ruby 2.1.1p76 when using `OpenSSL::PKey::EC#sign`. Will it be fixed only in 2.2?
Using the following monkey-patch it does work.
~~~
class OpenSSL::PKey::EC
def private?
private_key...
davispuh (Dāvis Mosāns)
03:24 PM Bug #9663: Segfault with alias_method and include
Is NULL-check needed?
```diff
diff --git a/vm_method.c b/vm_method.c
index 2279190..6516a0b 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -578,7 +578,7 @@ rb_method_entry_get_without_cache(VALUE klass, ID id,
VALUE defined_...
eagletmt (Kohei Suzuki)
02:50 PM Bug #9663 (Closed): Segfault with alias_method and include
The following code results in segfault since r45367.
```ruby
module M
alias_method :orig_to_s, :to_s
def to_s
'to_s'
end
end
class C
include M
end
C.new.orig_to_s
```
```
% ruby -v segv.rb
ruby 2.2.0dev...
eagletmt (Kohei Suzuki)
02:06 PM Bug #9654 (Closed): Segmentation fault while printing out C level backtrace information
Applied in changeset r45383.
----------
* addr2line.c (fill_lines): compare the file names of object in which
symbols exist. [Bug #9654] [ruby-dev:48058]
naruse (Yui NARUSE)
02:06 PM Revision 14c9cf88 (git): * addr2line.c (fill_lines): compare the file names of object in which
symbols exist. [Bug #9654] [ruby-dev:48058]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:28 AM Bug #9662 (Closed): [Doc] Typo in README.EXT
Enumerate module -> Enumerable module stomar (Marcus Stollsteimer)
04:59 AM Bug #9660: test/unit, minitest & bundler
I guess this ugly patch fixes problem, but I want to find better solutions...
```
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index ccfe1ce..eb7545b 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -1,5 +1,25 @@
-gem...
sorah (Sorah Fukumori)
12:42 AM Bug #9661 (Closed): CSV Header Conversion Causes NoMethodError For Empty Headers
Empty headers are parsed and returned as nil. CSV's symbol and downcase header converters call encode() on nil, causing a NoMethodError.
I've created a pull request with the fix: https://github.com/ruby/ruby/pull/575
sshaw (s shaw)
12:04 AM Bug #9591: io-console versioning
BTW, I've forgotten the passphrace of the PEM, so I can't make new gem file now. nobu (Nobuyoshi Nakada)

03/21/2014

11:58 PM Bug #9641 (Feedback): Digest libraries are built incorrectly due to ambiguous location of "extconf.h"
`-I.` option should be placed the top of `INCFLAGS`.
Why is the file in the parent directory used?
At least, your patch is wrong at the point that `extconf.h` won't be generated in `$(srcdir)` but in the cwd.
And what happens if n...
nobu (Nobuyoshi Nakada)
09:58 PM Bug #9607: Change the full GC timing
Eric Wong <normalperson@yhbt.net> wrote:
> ko1@atdot.net wrote:
> > File gc.patch added
>
> Running this (on top of current trunk) to serve my (mostly static sites)
> on yhbt.net. Memory usage seems stable at ~31M (from ~49M)

...
normalperson (Eric Wong)
09:46 PM Revision af1da410 (git): cgi/util.rb: use alias
* lib/cgi/util.rb (escape_html, unescape_html): make synonyms
aliases instead of wrapper methods.
* lib/cgi/util.rb (escape_element, unescape_element): ditto.
[Fixes GH-573]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45382 b2...
nobu (Nobuyoshi Nakada)
09:46 PM Revision 6ea03277 (git): * 2014-03-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:46 PM Revision 993fd536 (git): test_cgi_util.rb: escape for ruby-mode.el
* test/cgi/test_cgi_util.rb (CGIUtilTest): escape '<' not
ruby-mode.el to confuse with here documents.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:10 PM Bug #9653: gc_sweep(): unknown data type 0x0
hongbin034@gmail.com wrote:
> Issue #9653 has been updated by Hongbin Lu.
>
> File Gemfile.txt added
> File Gemfile.lock.txt added

Maybe therubyracer or passenger. I see a lot of reports on ruby-core
for therubyracer (but othe...
normalperson (Eric Wong)
03:56 PM Bug #9653: gc_sweep(): unknown data type 0x0
For several reasons, I cannot update all of them, but I try my best. Also, I have a large set of depending Gems. It will be better if I have a subset of them which looks suspicious to this mysterious error. For reference, I attached the ... hongbin (Hongbin Lu)
06:18 AM Bug #9653: gc_sweep(): unknown data type 0x0
hongbin034@gmail.com wrote:
> File log-545.txt added
>
> Got a slightly different error after upgraded to ruby 1.9.3p545:
> /usr/local/lib/ruby/1.9.1/net/protocol.rb:160: [BUG] rb_gc_mark(): unknown data type 0x0(0x6333370) corrupt...
normalperson (Eric Wong)
01:51 AM Bug #9653: gc_sweep(): unknown data type 0x0
Got a slightly different error after upgraded to ruby 1.9.3p545:
/usr/local/lib/ruby/1.9.1/net/protocol.rb:160: [BUG] rb_gc_mark(): unknown data type 0x0(0x6333370) corrupted object
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-li...
hongbin (Hongbin Lu)
07:15 PM Bug #9660 (Closed): test/unit, minitest & bundler
test/unit now calls `gem 'minitest'`, but this will create regressions for anyone using `bundler`.
For example, create an empty `Gemfile` and try `bundle exec ruby -e "require 'test/unit'"`
You get an error:
.rvm/gems/ruby-h...
marcandre (Marc-Andre Lafortune)
03:36 PM Bug #9599: Fiddle::Function#call leaks memory
r45311 was also backported to ruby_2_0_0. It fixes a bug introduced by r45298. nagachika (Tomoyuki Chikanaga)
03:34 PM Revision fd2d5797 (git): merge revision(s) r45311: [Backport #9599]
r45298 fix trivial bug
$initial_size must be a size, not a status
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:23 PM Bug #9658: configure --with-opt-dir=dir と clang の組合せでビルドに失敗する
Nobuyoshi Nakada wrote:
> いいんじゃないでしょうか。
trunkに入れました。2.1にもそのまま当たり、同じように直ると思います。
> ...
* コンパイラのフラグはソースファイル群に対してまとめて指定する
* -Idirの先のヘッダファイルをincludeするかどうかは個々のソースファイル次第
なので、目障りなケースが多いのは事実ですね。
-Iについてだけ警告を抑制できるようなきめ細かい指定があればいいのですが。
knu (Akinori MUSHA)
12:59 PM Bug #9658 (Closed): configure --with-opt-dir=dir と clang の組合せでビルドに失敗する
Applied in changeset r45378.
----------
Fix a build problem with clang and --with-opt-dir.
* configure.in: Fix a build problem with clang and --with-opt-dir.
If ruby is configured with --with-opt-dir=dir when using clang
as compile...
knu (Akinori MUSHA)
01:26 AM Bug #9658 (Assigned): configure --with-opt-dir=dir と clang の組合せでビルドに失敗する
いいんじゃないでしょうか。
しかし、その警告は本当にただの余計なお世話ですよねぇ。
nobu (Nobuyoshi Nakada)
12:59 PM Revision cc4271c9 (git): Fix a build problem with clang and --with-opt-dir.
* configure.in: Fix a build problem with clang and --with-opt-dir.
If ruby is configured with --with-opt-dir=dir when using clang
as compiler, a warning `clang: warning: argument unused during
compilation: '-I dir'` is emitted almo...
Akinori MUSHA
07:33 AM Revision 27b9d591 (git): * gc.c: [DOC] Fix call-seq for GC.start by @jasonrclark [Fixes GH-572]
https://github.com/ruby/ruby/pull/572 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
02:19 AM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
Seems r45015. nobu (Nobuyoshi Nakada)
12:45 AM Revision 6bb471a2 (git): * 2014-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:45 AM Revision cbf4eca6 (git): * complax.c: [DOC] Document number conversion of `nil` by @skade [fix GH-570] [ci skip]
* object.c, rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

03/20/2014

09:43 PM Bug #9659: crash in FIPS mode after unchecked algo->init_func failure
Now I see that `rb_digest_hash_init_func_t` (source:ext/digest/digest.h@43668#L20) is a typedef for a pointer to a function returning void. This complicates the patch: the typedef must be changed so init functions return an int, and the ... jared.jennings.ctr (Jared Jennings)
07:50 PM Bug #9659 (Closed): crash in FIPS mode after unchecked algo->init_func failure
This is just like #4944, but in the `digest` extension instead of the `openssl` extension.
On my host, which is configured for FIPS 140-2 compliance (this is a U.S. Government security standard), OpenSSL refuses to perform an MD5 chec...
jared.jennings.ctr (Jared Jennings)
03:29 PM Bug #9658 (Closed): configure --with-opt-dir=dir と clang の組合せでビルドに失敗する
ruby 2.1以降で configure に --with-opt-dir=/opt/local を指定すると、
* checking for printf prefix for long long... が、 clang の吐く clang: warning: argument unused during compilation: '-I /opt/local/include' のせいで失敗し、 config.h に PRI_LL_PREFIX の定義が入らな...
knu (Akinori MUSHA)
03:26 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
I've had the same issue.
I've attached the crash report and the segfault output
jlecour (Jérémy Lecour)
02:31 PM Bug #9657 (Closed): Segfault in bigdecimal/util.rb Float#to_d
We're seeing some segfaults with ActiveRecord (rails 4-1-0 branch) when running on travis ci.
Haven't been able to reproduce yet, but we're seeing about a dozen build failures until now but still wanted to share it.
Maybe someone wit...
kommen (Dieter Komendera)
02:38 PM Bug #8405 (Closed): CSV module - improper regexp for escaping special characters
Applied in changeset r45374.
----------
* 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 #...
JEG2 (James Gray)
02:38 PM Revision 3fb752a9 (git): * 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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
James Edward Gray II
12:23 PM Bug #9645: [PATCH] variable.c: avoid memory leak on const redefinition
r45350 was backported to ruby_2_0_0 at r45373. nagachika (Tomoyuki Chikanaga)
12:22 PM Revision 4b72c61d (git): merge revision(s) r45350: [Backport #9645]
* variable.c (rb_const_set): delete existing entry on redefinition
[Bug #9645]
* test/ruby/test_const.rb (test_redefinition): test for leak
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45373 b2dd03...
nagachika (Tomoyuki Chikanaga)
12:11 PM Bug #9599: Fiddle::Function#call leaks memory
r40930 and r45298 were backported to ruby_2_0_0 (at r45371 and r45372) to resolv conflicts.
And I want to backport r45291, r45299, r45301, r45314, r45315 and r45325, but with them dl and fiddle tests fail. I wonder if there are any ot...
nagachika (Tomoyuki Chikanaga)
11:50 AM Revision e7ee0b13 (git): merge revision(s) r45298: [Backport #9599]
test/ruby/envutil.rb: compare RSS to check memory leak
* test/ruby/envutil.rb (Test::Test#assert_no_memory_leak): compare
also RSS if available.
* test/ruby/memory_status.rb (Memory::Status.parse): read string
form ...
nagachika (Tomoyuki Chikanaga)
11:45 AM Revision 797c476f (git): merge revision(s) r40930:
* test/fiddle/test_c_struct_entry.rb,
test/fiddle/test_c_union_entity.rb,
test/fiddle/test_cparser.rb, test/fiddle/test_func.rb,
test/fiddle/test_handle.rb, test/fiddle/test_import.rb,
test/fiddle/...
nagachika (Tomoyuki Chikanaga)
10:28 AM Bug #9656 (Closed): check for -fno-defer-pop option in ext/dl/extconf.rb
Clang 5.1 no longer support -fno-defer-pop option.
Already commited at r45365.
This ticket is only for backport management.
nagachika (Tomoyuki Chikanaga)
08:05 AM Revision 3e20c50d (git): * gc.c (objspace_malloc_increase): should not invoke
garbage_collect_with_gvl() here on non-ruby threads.
Should just ignore the malloc_increase.
This issue is pointed by Eric Wong [ruby-core:61519].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45370 b2dd03c8-39d4-4d8f-98ff-823...
ko1 (Koichi Sasada)
07:31 AM Bug #9655 (Third Party's Issue): Build failure of Arch linux
See. https://github.com/sstephenson/ruby-build/issues/500
```
$ rbenv install --version
ruby-build 20140204
$ uname -a
Linux box 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET 2014 x86_64 GNU/Linux
$ rbenv install -v 2....
hsbt (Hiroshi SHIBATA)
04:06 AM Revision c813697d (git): * struct.c (rb_struct_alloc): use RARRAY_CONST_PTR() instead of
RARRAY_PTR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
04:03 AM Revision 53bd4502 (git): * include/ruby/intern.h (rb_obj_call_init, rb_class_new_instance):
constify a parameter (VALUE *).
I believe this incompatibility doesn't break any code.
However, if you have trouble, please tell us.
* eval.c, object.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45368 b2dd03c8-39d4-...
ko1 (Koichi Sasada)
04:02 AM Bug #9654 (Assigned): Segmentation fault while printing out C level backtrace information
nobu (Nobuyoshi Nakada)
01:59 AM Bug #9654 (Closed): Segmentation fault while printing out C level backtrace information
When SIGSEGV happens, C level backtrace information should be printed out, but the printing-out itself causes another segmentation fault.
~~~
$ ./ruby -e 'Process.kill :SEGV, $$'
-e:1: [BUG] Segmentation fault at 0x00584f
ruby 2.2....
ReiOdaira (Rei Odaira)
03:31 AM Bug #9475 (Closed): Behavior change with include + super + alias_method between 1.9.x and 2.x
Applied in changeset r45367.
----------
vm_method.c: fix infinite recursion
* vm_method.c (rb_method_entry_get_without_cache): get rid of
infinite recursion at aliases in a subclass and a superclass.
return actually defined class f...
nobu (Nobuyoshi Nakada)
03:31 AM Revision 3453070f (git): vm_method.c: fix infinite recursion
* vm_method.c (rb_method_entry_get_without_cache): get rid of
infinite recursion at aliases in a subclass and a superclass.
return actually defined class for other than singleton class.
[ruby-core:60431] [Bug #9475]
git-svn-id: sv...
nobu (Nobuyoshi Nakada)
03:21 AM Revision af723ec8 (git): * 2014-03-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:21 AM Revision 3981d60b (git): dl/extconf.rb: check for -fno-defer-pop option
* ext/dl/extconf.rb: check for -fno-defer-pop option, since clang
5.1 no longer support -fno-defer-pop option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/19/2014

08:24 PM Bug #9653: gc_sweep(): unknown data type 0x0
Thanks for your advice. Yes, I will try ruby 1.9.3-p545, and post the findings.
Eric Wong wrote:
> hongbin034@gmail.com wrote:
> ...
hongbin (Hongbin Lu)
06:41 PM Bug #9653: gc_sweep(): unknown data type 0x0
hongbin034@gmail.com wrote:
> * ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

Hi, can you try Ruby 1.9.3-p545? (And if possible, try 2.1.1)
Early versions of ruby 1.9.3 had a bad lazy sweeping bug which
affec...
normalperson (Eric Wong)
04:54 PM Bug #9653 (Closed): gc_sweep(): unknown data type 0x0
The error message:
/usr/local/lib/ruby/1.9.1/fileutils.rb:828: [BUG] gc_sweep(): unknown data type 0x0(0x54fd1e8)
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
This error is not deterministic. It occurred about 5% in my ...
hongbin (Hongbin Lu)
08:28 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
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 original had symlinks, but I assume symlinks are no...
normalperson (Eric Wong)
08:28 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
Thanks all, committed as r45364
Sorry my original patch set the ivar on the wrong object :x
But fortunately I was able to reproduce the GC error and test
for it.
normalperson (Eric Wong)
08:19 AM Bug #9652 (Closed): Marshal doesn't dump/load Time#zone correctly with too many time object
Applied in changeset r45364.
----------
time.c: freeze and preserve marshal-loaded time zone
We need to prevent vtm.zone from pointing to a GC-ed string buffer.
The rb_copy_generic_ivar call misses it because get_attr deleted it.
Thank...
Anonymous
08:10 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
normalperson@yhbt.net wrote:
> nobu@ruby-lang.org wrote:
> > Seems better to call `rb_str_new_frozen()` before setting `vtm.zone`.
>
> OK. Though rb_fstring() might be better because time objects
> with identical zones are c...
normalperson (Eric Wong)
07:48 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
nobu@ruby-lang.org wrote:
> Seems better to call `rb_str_new_frozen()` before setting `vtm.zone`.

OK. Though rb_fstring() might be better because time objects
with identical zones are common.
normalperson (Eric Wong)
07:37 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
Seems better to call `rb_str_new_frozen()` before setting `vtm.zone`. nobu (Nobuyoshi Nakada)
07:28 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
I cannot reproduce the problem here, however it could be the
lack of reference for GC.

Can you add this `rb_ivar_set` call?

~~~diff
--- a/time.c
+++ b/time.c
@@ -4828,6 +4828,7 @@ end_submicro: ;
}
if (!NIL_P(zone...
normalperson (Eric Wong)
06:54 AM Bug #9652 (Closed): Marshal doesn't dump/load Time#zone correctly with too many time object
Hi, there
I wrote a script to test Marshal dump/load with many time object ( see attachment ).
basic idea is:
1) A is container of time, it contains 100,000 time instance (all Time.now).
2) dump/load A by using Marshal, expected...
Cantin (Cantin Xu)
08:19 AM Revision e0a0edf5 (git): time.c: freeze and preserve marshal-loaded time zone
We need to prevent vtm.zone from pointing to a GC-ed string buffer.
The rb_copy_generic_ivar call misses it because get_attr deleted it.
Thanks to nobu for the rb_str_new_frozen suggestion.
* time.c (time_mload): freeze and preserve mar...
Eric Wong
01:41 AM Feature #9347: Accept non callable argument to detect
[GH-561] <https://github.com/ruby/ruby/pull/561> ? nobu (Nobuyoshi Nakada)
12:42 AM Revision 5f00b999 (git): * 2014-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:42 AM Revision 3dfe270f (git): .gdbinit: super moved
* .gdbinit (rb_method_entry, rb_ancestors): `super` moved to
RClass from rb_classext_t since r44294.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom