Project

General

Profile

Activity

From 05/09/2014 to 05/15/2014

05/15/2014

10:15 PM Bug #9843 (Feedback): curb_core.bundle: [BUG] Segmentation fault ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
As the message shows, please give us the Crash Report log file.
BTW, as a general rule, when SEGV is occured in curbcore.bundle, you should ask it to the author of curbcore.
Even then, the Crash Report log file would be necessary.
usa (Usaku NAKAMURA)
04:33 PM Bug #9843 (Rejected): curb_core.bundle: [BUG] Segmentation fault ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
I am using Mavericks OS and project was working fine earlier and then I decided to change the
Ruby 2.0.0 to ruby 2.0.0-p451
and Rails from 4.0.0 to 4.0.5
And when I did bundle install everything worked well
But as soon as I tried "ra...
shivanibhanwal (shivani thakur)
03:29 PM Bug #8405: CSV module - improper regexp for escaping special characters
r45374 was backported into `ruby2_1` branch at r45956. nagachika (Tomoyuki Chikanaga)
03:28 PM Revision a9006d3a (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...
nagachika (Tomoyuki Chikanaga)
03:25 PM Bug #9475: Behavior change with include + super + alias_method between 1.9.x and 2.x
r45367, r45387, r45388 and r45389 were backported into `ruby_2_1` branch at r45955. nagachika (Tomoyuki Chikanaga)
03:24 PM Revision 67f5f1be (git): merge revision(s) r45367,r45387,r45388,r45389: [Backport #9475]
* 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] [Bu...
nagachika (Tomoyuki Chikanaga)
02:14 PM Bug #9840: [darwin] configure script fails if an empty file named `Info.plist` exists in the user's home directory
It seems to occur only when running `configure` under the home directory.
Very strange.
nobu (Nobuyoshi Nakada)
02:06 PM Feature #9842: system configuration variables (sysconf(), confstr(), pathconf() and fpathconf())
Motohiro KOSAKI wrote:
> > Etc.sysconf(Etc::SC_ARG_MAX) #=> 2097152
> ...
I see. I agree to drop IO.pathconf.
Is there a problem with sysconf(), confstr() and fpathconf()?
akr (Akira Tanaka)
01:38 PM Feature #9842: system configuration variables (sysconf(), confstr(), pathconf() and fpathconf())
On Thu, May 15, 2014 at 7:45 AM, <akr@fsij.org> wrote:
> Issue #9842 has been reported by Akira Tanaka.
>
> ----------------------------------------
> Feature #9842: system configuration variables (sysconf(), confstr(), pathconf() ...
kosaki (Motohiro KOSAKI)
11:45 AM Feature #9842 (Closed): system configuration variables (sysconf(), confstr(), pathconf() and fpathconf())
How about providing methods to obtain system configuration variables?
POSIX defines sysconf(), confstr(), pathconf() and fpathconf().
I implemented following methods in ext/etc.
* Etc.sysconf(name)
* Etc.confstr(name)
* IO.pathc...
akr (Akira Tanaka)
12:43 PM Bug #9739 (Closed): TestException#test_machine_stackoverflow(_by_define_method) failures on x64-mingw32
Applied at r45947. Thank you. h.shirosaki (Hiroshi Shirosaki)
03:13 AM Bug #9739: TestException#test_machine_stackoverflow(_by_define_method) failures on x64-mingw32
I found this fix was provided on mswin at r43748, but not on mingw.
We can use Structured Exception Handling by
Addvectoredexceptionhandler() for machine stack overflow on mingw.
This would be equivalent to the handling using `__try...
h.shirosaki (Hiroshi Shirosaki)
12:31 PM Bug #8358 (Closed): TestSprintf#test_float test failure
Applied in changeset r45954.
----------
configure.in: enable SSE2 on mingw
* configure.in: enable SSE2 on mingw. target='i386-pc-mingw32'.
[ruby-core:62095] [Bug #8358]
Anonymous
12:31 PM Bug #9767 (Closed): test-all parallel fails if a test is skipped after raise
Applied in changeset r45953.
----------
parallel.rb: fix test-all parallel failure
* lib/test/unit/parallel.rb: fix test-all parallel failure if a test
is skipped after raise.
DL::TestFunc#test_sinf is skipped after raise on mingw ...
Anonymous
12:31 PM Revision a7ebfe4b (git): configure.in: enable SSE2 on mingw
* configure.in: enable SSE2 on mingw. target='i386-pc-mingw32'.
[ruby-core:62095] [Bug #8358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
12:31 PM Revision eceff15e (git): parallel.rb: fix test-all parallel failure
* lib/test/unit/parallel.rb: fix test-all parallel failure if a test
is skipped after raise.
DL::TestFunc#test_sinf is skipped after raise on mingw ruby.
But it causes Mashal.load failure due to undefined class/module
DL::DLError...
h.shirosaki (Hiroshi Shirosaki)
10:53 AM Revision 27082c9d (git): * gc.c (heap_extend_pages): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:34 AM Revision 31876e7c (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:58 AM Revision bceb5470 (git): * gc.c (garbage_collect_body): move gc_heap_prepare_minimum_pages()
from gc_sweep().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:54 AM Revision 8d81c976 (git): * gc.c (heap_extend_pages): calculate next growing heap size.
* gc.c (heap_set_increment): accept addition pages instead of
minimum pages.
* gc.c (gc_after_sweep): use heap_etend_pages().
* gc.c (gc_heap_prepare_minimum_pages): add only 1 page.
* gc.c (heap_ready_to_gc): add only 1 page.
git-s...
ko1 (Koichi Sasada)
09:43 AM Revision 28a180ed (git): * gc.c: introduce macros to remove magic number.
GC_HEAP_FREE_SLOTS_MIN_RATIO = 0.3: guarantee minimum empty slots
ratio after sweep.
GC_HEAP_FREE_SLOTS_MAX_RATIO = 0.8: allow to free pages 0.2 (= 1-0.8)
of c...
ko1 (Koichi Sasada)
08:32 AM Revision 3343feee (git): Handle machine stack overflow on mingw
* thread_win32.c (rb_w32_stack_overflow_handler): use Structured
Exception Handling by Addvectoredexceptionhandler() for machine
stack overflow on mingw.
This would be equivalent to the handling using __try and __exept
on mswin i...
nobu (Nobuyoshi Nakada)
07:06 AM Feature #9612 (Open): Gemify OpenSSL
It might be better to create a subtask? nobu (Nobuyoshi Nakada)
06:39 AM Feature #9612 (Closed): Gemify OpenSSL
Applied in changeset r45945.
----------
openssl/depend: ossl.o
* ext/openssl/depend (ossl.o): now depends on thread\_native.h
under `$(hdrdir)` instead of `$(top_srcdir)`. [Feature #9612]
nobu (Nobuyoshi Nakada)
06:39 AM Revision 48de9363 (git): * 2014-05-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:39 AM Revision 34f95c7c (git): openssl/depend: ossl.o
* ext/openssl/depend (ossl.o): now depends on thread_native.h
under $(hdrdir) instead of $(top_srcdir). [Feature #9612]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:08 AM Feature #9841 (Rejected): [RFC] use ihash for fstring implementation
This results in ~100K[1] memory savings on start up (with RubyGems
loaded) with no user-visible changes.
While this is not the best example of potential ihash-related memory
savings, there is zero-visible impact related to the loss ...
normalperson (Eric Wong)

05/14/2014

10:12 PM Feature #6074: Allow alias arguments to have a comma
Special cases always make me cringe. Why is alias a special case anyway? It seems very odd since alias_method is a method and does the same thing.
trans (Thomas Sawyer)
08:11 PM Bug #9840 (Third Party's Issue): [darwin] configure script fails if an empty file named `Info.plist` exists in the user's home directory
On OS X 10.9.2, the ruby-2.1.2 configure script fails if an empty file named `Info.plist` exists in the user's home directory.
**Steps to reproduce:**
~~~
#!/usr/bin/env bash
touch ~/Info.plist
[[ -f ruby-2.1.2.tar.gz ]] || ...
pje (patrick ellis)
07:58 PM Feature #9614: ordering of non-Hash items which use st_ internally
ko1@atdot.net wrote:
> Adding similar data structure can also increase complexity.
> At least, I like same interfaces for such similar data structures.

Right, I try to make ihash API like st (insert/update/foreach/lookup).
However...
normalperson (Eric Wong)
08:17 AM Feature #9614: ordering of non-Hash items which use st_ internally
> ko1: adding flag for ordering might complicate the st code even more.
> ...
I agree that st.c is already complicated.
But I think Hash class should use original one.
Adding similar data structure can also increase complexity.
At...
ko1 (Koichi Sasada)
06:59 AM Feature #9614: ordering of non-Hash items which use st_ internally
Hi, thank you for the comments!

ko1: adding flag for ordering might complicate the st code even more.
I think st should only be for implementing Hash.

My primary goals for ihash are to reduce pointer chasing and malloc use.
ihas...
normalperson (Eric Wong)
05:50 AM Feature #9614: ordering of non-Hash items which use st_ internally
I suspect that tests for `local_variables` would need fixing too. nobu (Nobuyoshi Nakada)
05:48 AM Feature #9614: ordering of non-Hash items which use st_ internally
How is it the rate of reduction?
Since I wasn't very positive to make the ordering a spec, I'm not against it.
But it doesn't feel nice to have many similar mechanisms, too.
nobu (Nobuyoshi Nakada)
05:29 AM Feature #9614: ordering of non-Hash items which use st_ internally
Just a comment.
I think it should be another parameter of st_table.
Now all st_tables have order.
But most of case, it doesn't needed.
I think it is fine for me that st_table user can select.
ko1 (Koichi Sasada)
12:58 AM Feature #9614: ordering of non-Hash items which use st_ internally
normalperson@yhbt.net wrote:
> Hi matz, I would like your permission to remove the order preservation from
> ...
matz: ping?
normalperson (Eric Wong)
07:28 PM Bug #9835: IGNORE signal handler has possible race condition in Ruby 2.1.2
It looks like a race condition in your code. You were lucky to not hit
it in 1.8.7 or with a different use of trap (because execution speeds
may be different different).

parent execution timeline
-------------------------...
normalperson (Eric Wong)
06:20 PM Bug #9835: IGNORE signal handler has possible race condition in Ruby 2.1.2
Nobuyoshi Nakada,
Please take a second look at the ticket and attached source, you failed to address two things:
1) Why is this code not an issue in 1.8.7. The children (as expected) inherit the signal handler from the parent and...
askreet (Kyle Smith)
01:38 AM Bug #9835 (Rejected): IGNORE signal handler has possible race condition in Ruby 2.1.2
It's your bug, just sending a signal before the children trap `SIGUSR1`. nobu (Nobuyoshi Nakada)
07:14 PM Bug #9836: Bad Implementation of Time.strptime
Sorry for the unclear wording. I would expect that it behaves similar to `DateTime`'s implementation and to not ignore any fields returned by `Date._strptime`. At the very least the documentation should reflect the fact that it will only... silverhammermba (Max Anselm)
06:28 AM Bug #9836: Bad Implementation of Time.strptime
I guess the OP expects `%U` not to be ignored.
~~~diff
diff --git a/lib/time.rb b/lib/time.rb
index 3728fef..ec45767 100644
--- a/lib/time.rb
+++ b/lib/time.rb
@@ -194,13 +194,18 @@ class Time

LeapYearMonthDays = [31, 29...
nobu (Nobuyoshi Nakada)
04:16 PM Bug #9839 (Feedback): Segment fault in http
What is the version of openssl?
It seems known problem of ruby 2.1.1.
Please try ruby 2.1.2.
usa (Usaku NAKAMURA)
03:22 PM Bug #9839 (Rejected): Segment fault in http
I've got segment fault in ruby 2.1.1
/home/ubuntu/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/net/http.rb:920: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
-- Control frame inform...
siera (Ruo S)
12:50 PM Bug #9705: Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)
Great tip, thanks a lot Heesob Park!
In line 67 in Ruby 2.1.2 Makefile, one simply has to change `-msse2` to `-msse`, and compilation will complete successfully on Athlon XP processor.
I hope this will get fixed in future releases.
...
athlon_user (C. A.)
10:52 AM Bug #9705: Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)
Athlon XP processor does not have SSE2 support.
SSE2 support was added with the Athlon 64 processor.
But the generated Makefile has XCFLAGS includes -msse2 -mfpmath=sse
It seems that the configure script failed to check whether -ms...
phasis68 (Heesob Park)
10:10 AM Bug #9705: Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)
I have exactly the same issue with my Athlon XP 2600+.
The compilation process stops every time at the same point as mentioned by Ahilleas Balaktsis, no matter if I compile with rvm or use the Ruby sources directly. Trying to compile wi...
athlon_user (C. A.)
10:56 AM Feature #9612 (Open): Gemify OpenSSL
Modified.
But current version doesn't work on 2.1.2 or before.
ko1 (Koichi Sasada)
10:55 AM Feature #9612 (Closed): Gemify OpenSSL
Applied in changeset r45944.
----------
* ext/openssl/depend: remove dependency from internal headers.
[Feature #9612]
* ext/openssl/ossl.c (`ossl_fips_mode_set`): ditto.
* ext/coverage/depend: ditto.
* include/ruby/thread\_nat...
ko1 (Koichi Sasada)
10:55 AM Revision 7093a2cb (git): * ext/openssl/depend: remove dependency from internal headers.
[Feature #9612]
* ext/openssl/ossl.c (ossl_fips_mode_set): ditto.
* ext/coverage/depend: ditto.
* include/ruby/thread_native.h: added.
This header file only provides wrapper functions to control
native threads. These wrapper function...
ko1 (Koichi Sasada)
09:04 AM Revision 1b03f51f (git): * gc.c: enable RGENGC_AGE2_PROMOTION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
09:03 AM Revision b4d9f9ca (git): * gc.c (rgengc_rememberset_mark): promote remembered object earlier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:38 AM Revision fac59ac7 (git): * common.mk: need to quote $BASERUBY because it may includes options.
this change is only for release management, not bug fix.
[Backport #9837] [ruby-dev:48218]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@45941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:07 AM Revision 6e2a2dd3 (git): * LEGAL: added license infomation of ccan files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

05/13/2014

11:40 PM Bug #9836 (Feedback): Bad Implementation of Time.strptime
I am not sure what behavior you are referring as "extremely naive".
Please be concrete. How do you think it should behave?
Matz.
matz (Yukihiro Matsumoto)
07:59 PM Bug #9836 (Closed): Bad Implementation of Time.strptime
According to the documentation, `Time.strptime` "parses +date+ using `Date._strptime` and converts it to a Time object." However this conversion is extremely naive, using only certain fields return by `Date._strptime` and ignoring the re... silverhammermba (Max Anselm)
04:29 PM Bug #9835: IGNORE signal handler has possible race condition in Ruby 2.1.2
This script produces the same "Caught SignalException: SIGUSR1" message on Ubuntu Precise.
I couldn't get it to trigger on OSX
rb2k (Marc Seeger)
04:13 PM Bug #9835 (Closed): IGNORE signal handler has possible race condition in Ruby 2.1.2
I'm migrating an application from 1.8.7 to 2.1.1/2.1.2, so I'm not sure when this was introduced. Attached is a demo program with some notes about how the IGNORE option to Signal.trap seems to have a race condition whereby receiving tha... askreet (Kyle Smith)
03:47 PM Revision 5e023d68 (git): * 2014-05-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:47 PM Revision 9fd859b8 (git): make-snapshot: -digests option
* tool/make-snapshot (package): add -digests option to select
digest algorithms to be shown.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:47 PM Revision bebbbc39 (git): make-snapshot: -package option
* tool/make-snapshot (package): add -package option to select
packages to be made.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:47 PM Revision 26db9bb2 (git): make-snapshot: unused variables
* tool/make-snapshot (package): remove variables no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:27 PM Feature #9834: Float#{next_float,prev_float}
Thank you for an interesting implementation.
Heesob Park wrote:
> if (self==Float::NAN || y==Float::NAN)
This doesn't work. Float#nan? should be used.
> ...
This should be "r = y" to to follow C99's nextafter() beh...
akr (Akira Tanaka)
10:28 AM Feature #9834: Float#{next_float,prev_float}
Here is a pure ruby implementation of `Float#{next_float,prev_float}` (adopted from http://golang.org/src/pkg/math/nextafter.go)
~~~ruby
class Float
def dbl2num(dbl)
[dbl].pack('d').unpack('Q')[0]
end
def num2dbl(num)...
phasis68 (Heesob Park)
09:48 AM Feature #9834 (Closed): Float#{next_float,prev_float}
I'd like to add Float#next_float and Float#prev_float which
returns next representable floating-point number and
previous representable floating-point number.
```
p 3.0.next_float #=> 3.0000000000000004
p 3.0.prev_float #=> 2.9999...
akr (Akira Tanaka)
10:09 AM Revision f6786463 (git): make-snapshot: SHA512
* tool/make-snapshot (package): add SHA512.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:09 AM Revision 944ff17f (git): make-snapshot: support xz
* tool/make-snapshot (package): support xz. no longer runs with
1.8 or earlier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:05 AM Revision a03eeb00 (git): set svn:ignore property.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:01 AM Bug #9833 (Closed): OpenSSL::X509::Certificate#inspect がわかりにくくなっている
SSL/TLS の証明書の簡易的なチェックに OpenSSL::X509::Certificate#inspect を便利に使っていたのですが、最近の ruby だと subject などに内容が出なくなってわかりにくくなっているのですが、以前のように内容が出た方が良いと思うのですが、どうでしょうか。
```
% cat inspect_cert.rb
#!/usr/bin/env ruby
require 'openssl'
require 'socke...
znz (Kazuhiro NISHIYAMA)
07:38 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
(2014/05/13 16:29), Eric Wong wrote:
> Tanaka Akira <akr@fsij.org> wrote:
>> Anyone use doxygen?
>> If no one use it, we can drop doxygen support.
>> (It makes the CI faster.)
>
> I do not use it.

I don't use it too (i...
nobu (Nobuyoshi Nakada)
07:38 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
Tanaka Akira <akr@fsij.org> wrote:
> I found that doxygen produces many warnings in ccan/ directory.
> http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20140510T235500Z.diff.html.gz
>
> It seems the comments in ccan/ dire...
normalperson (Eric Wong)
07:08 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
2014-05-11 8:50 GMT+09:00 Eric Wong <normalperson@yhbt.net>:
> Eric Wong <normalperson@yhbt.net> wrote:
>> Any comment? My main concern is it's a large import of new code;
>> but it is also highly reusable. I'll commit in 2-4 weeks...
akr (Akira Tanaka)
04:09 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
nobu@ruby-lang.org wrote:
> "linux-gnu" in "target_os" is substituted by "linux", so your AS_CASE never match.
> You should check for libjemalloc availability instead, I think.

I used $target, not $target_os. An early version of m...
normalperson (Eric Wong)
03:22 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
"`linux-gnu`" in "`target_os`" is substituted by "`linux`", so your `AS_CASE` never match.
You should check for `libjemalloc` availability instead, I think.
~~~diff
diff --git a/configure.in b/configure.in
index cf317af..a9037d6 10...
nobu (Nobuyoshi Nakada)
02:58 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
Attached patch to use jemalloc by default on GNU/Linux iff
jemalloc is already installed. Maybe we can integrate/force
it later, but this is a first step (and some distros like
Debian already ship jemalloc).
normalperson (Eric Wong)

05/12/2014

03:15 PM Revision 30a0ef1c (git): * 2014-05-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:15 PM Revision 2b319c29 (git): * ChangeLog: fix a typo for r45930.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:57 PM Bug #9831 (Closed): C99-like atan2 check test failure under MinGW-w64
Applied in changeset r45930.
----------
configure.in: check atan2
* configure.in (rb_cv_atan2_inf_c99): check whether runtime atan2
handles Inf as C99. ruby-core:62536] [Bug #9831]
nobu (Nobuyoshi Nakada)
02:57 PM Revision f0fc13aa (git): configure.in: check atan2
* configure.in (rb_cv_atan2_inf_c99): check whether runtime atan2
handles Inf as C99. ruby-core:62536] [Bug #9831]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:05 PM Bug #9726: Incorrect Proc parsing
r45637 was backported into `ruby_2_1` branch at r45929. nagachika (Tomoyuki Chikanaga)
02:04 PM Revision d5cf6c11 (git): merge revision(s) r45637: [Backport #9726]
* parse.y (primary): flush cmdarg flags inside left-paren in a
command argument, to allow parenthesed do-block as an argument
without arguments parentheses. [ruby-core:61950] [Bug #9726]
git-svn-id: svn+ssh://ci.ru...
nagachika (Tomoyuki Chikanaga)
01:50 PM Bug #9759: [TracePoint API] return event missing when raising exception
r45758 and r45759 were backported into `ruby_2_1` branch at r45928. nagachika (Tomoyuki Chikanaga)
01:49 PM Revision 86f8f5d9 (git): merge revision(s) r45758,r45759: [Backport #9759]
* vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
it is bmethod frame.
* vm.c (vm_exec): invoke RUBY_EVENT_RETURN event if rollbacked frame
is VM_FRAME_FLAG_BMETHOD.
[Bug #9759]
...
nagachika (Tomoyuki Chikanaga)
01:19 PM Bug #9651: __dir__ returns nil in instance_eval/module_eval
r45360 and r45361 were backported to `ruby_2_1` branch at r45927. nagachika (Tomoyuki Chikanaga)
01:18 PM Revision 3cbfd634 (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...
nagachika (Tomoyuki Chikanaga)
12:33 PM Misc #9832: better concurrency in threads
cougar => puma ariveira (Alexandre Riveira)
12:31 PM Misc #9832 (Open): better concurrency in threads
My application runs on top of rainbows using workers with multi-threaded.
I realized that in ruby ​​running on linux (my kernel config is slackware, debian not work)
not equal to distribute the processing threads.
To test this I creat...
ariveira (Alexandre Riveira)
11:33 AM Revision b063dd01 (git): * configure.in: Invoke AC_REPLACE_FUNCS for each function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:57 AM Revision 8be5c76f (git): * gc.c: count young object correctly and show it in GC.stat
on RGENGC_AGE2_PROMOTION.
* gc.c (RVALUE_PROMOTE_YOUNG): decrement young object count on
YOUNG->OLD.
* gc.c (obj_free): decrement young object count when young object
freed.
* gc.c (gc_marks): should not clear young object count.
* g...
ko1 (Koichi Sasada)
10:33 AM Bug #8358: TestSprintf#test_float test failure
Luis Lavena wrote:
> If you don't object, going to apply Shirosaki's patch and request backport to 2.1.
Go ahead.
nobu (Nobuyoshi Nakada)
09:47 AM Feature #9826: Enumerable#slice_between
I updated the patch to simplify argument handling. akr (Akira Tanaka)
09:47 AM Feature #9071: Enumerable#slice_after
I updated the patch to simplify argument handling. akr (Akira Tanaka)
01:35 AM Revision 4f8c0b90 (git): signal.c: check the next page too
* signal.c (check_stack_overflow): check the next page too. SP in
ucontext is not decremented yet when `push` failed, so the fault
page can be the next.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45924 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)

05/11/2014

10:59 PM Bug #9739 (Assigned): TestException#test_machine_stackoverflow(_by_define_method) failures on x64-mingw32
Nobu,
Can you review, reject or approve so we can resolve these test failures?
Thank you.
luislavena (Luis Lavena)
10:35 PM Bug #9831 (Closed): C99-like atan2 check test failure under MinGW-w64
After introduction of Feature #9799 (r45805) I started to see this failure when running tests under mingw-w64:
~~~
TestMath#test_atan2 [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_math.rb:28]:
Exception raised:
<#<ArgumentError: co...
luislavena (Luis Lavena)
08:44 PM Bug #9829: Contradictions in docs for FileUtils::ln (and related functions)
Agreed, this is very confusing. Eregon (Benoit Daloze)
07:52 PM Bug #9829 (Assigned): Contradictions in docs for FileUtils::ln (and related functions)
zzak (zzak _)
06:59 PM Bug #9829 (Closed): Contradictions in docs for FileUtils::ln (and related functions)
In the FileUtils module, to add simplicity and avoid duplication of code, a sort of coding paradigm exists for actions that read a filesystem object at one path and write a filesystem object at another.
These are the functions mv, cp...
MikeVastola (Mike Vastola)
08:34 PM Feature #9830 (Assigned): Support for GOST private/public keys
Hello everyone.
We're required to use GOST encryption algorithms for signing requests, interacting with HTTPS services with client certificate authentication and so on.
OpenSSL 1.0.0 is bundled with GOST engine, and, if correctly c...
Envek (Andrey Novikov)
06:49 PM Bug #8358: TestSprintf#test_float test failure
An update.
Before this patch:
https://gist.github.com/luislavena/beb9bff73fdca800debc
With patch applied:
https://gist.github.com/luislavena/fbb28cac6c53e5bc6256
luislavena (Luis Lavena)
05:26 PM Bug #8358 (Assigned): TestSprintf#test_float test failure
Hello nobu,
Ping on this? this is still an issue on trunk and ruby_2_1 branch:
~~~
TestSprintf#test_float [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_sprintf.rb:198]:
[ruby-dev:42551].
<"0x1p+2"> expected but was
<"0x1p+1">.
...
luislavena (Luis Lavena)
05:48 PM Bug #9827 (Assigned): Segmentation fault when running `gem`
luislavena (Luis Lavena)
04:31 PM Revision 642e3ae9 (git): * 2014-05-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:31 PM Revision 543b402f (git): * ext/socket/ifaddr.c (IS_IFADDRS): Unused macro removed.
* ext/strscan/strscan.c (BUFSIZE): Ditto.
* ext/zlib/zlib.c (OBJ_IS_FREED): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:29 PM Revision dd5d029d (git): * compile.c (BUFSIZE): Unused macro removed.
* vm.c (BUFSIZE): Ditto.
* pack.c (INT64toNUM): Ditto.
(UINT64toNUM): Ditto.
(BYTEWIDTH): Ditto.
* time.c (lshift): Ditto.
(UINT64toNUM): Ditto.
(id_lshift): Unused variable removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
akr (Akira Tanaka)
12:24 PM Revision 49771dd3 (git): * pack.c (swaps): Unused macro removed.
(swapi): Ditto.
(swapl): Ditto.
(swapll): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:09 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
Eric Wong <normalperson@yhbt.net> wrote:
> Before: st_table_entry->rb_thread_t->st_table_entry->rb_thread_t ...

Sorry, bad picture for Before, this is more accurate:

st_table_entry -> st_table_entry -> st_table_entry
| ...
normalperson (Eric Wong)
10:58 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
ko1@atdot.net wrote:
> 1. How performance improved?

There is less pointer chasing for iteration:

Before: st_table_entry->rb_thread_t->st_table_entry->rb_thread_t ...
After: rb_thread->rb_thread ...

This is made possible by t...
normalperson (Eric Wong)
10:08 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
4. Should we use it on compile.c? ko1 (Koichi Sasada)
10:07 AM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
Sorry for late response.
Just curious (I'm not against of this change).
1. How performance improved?
2. Should we modify ccan/* files? Or should we sync with originals?
3. What mean the name "CCAN"?
ko1 (Koichi Sasada)
10:40 AM Revision c1268be4 (git): test_process.rb: duplicate assertions
* test/ruby/test_process.rb (test_status_{kill,quit}): remove
duplicate assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:55 AM Feature #8840: Yielder#state
I have another idea now.
How about combining Enumerator.new and Enumerator#lazy addition to closure?
```
class Enumerator::Lazy
def drop4(n)
Enumerator.new {|y|
remain = n
self.each {|v|
if remain ==...
akr (Akira Tanaka)
03:19 AM Revision 61cd4e9d (git): test_process.rb: WIFEXITED and so on are system dependent
* test/ruby/test_process.rb (test_status_kill): WIFEXITED and so
on are available only if signal is supported by the system.
[ruby-dev:48203] [Bug #9820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45918 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
01:02 AM Revision a3656d42 (git): signal.c: directly deliver non-handlable signals
* signal.c (rb_f_kill): directly deliver signals which cannot be
handled, i.e., SIGKILL and SIGSTOP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:33 AM Revision c6e9e411 (git): configure.in: check typeof
* configure.in (rb_cv_typeof): check typeof extension for ccan
headers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:25 AM Revision 7c68a312 (git): vm.c: suppress a warning
* vm.c (rb_vm_living_threads_foreach): suppress "uninitialized"
warning where "typeof" is unavailable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/10/2014

11:58 PM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
Eric Wong <normalperson@yhbt.net> wrote:
> Any comment? My main concern is it's a large import of new code;
> but it is also highly reusable. I'll commit in 2-4 weeks if no response.
> The 0002 patch can wait longer.

Committed a...
normalperson (Eric Wong)
11:49 PM Revision 7992b0ff (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:48 PM Revision f11db2a6 (git): vm*: doubly-linked list from ccan to manage vm->living_threads
A doubly-linked list for tracking living threads guarantees
constant-time insert/delete performance with no corner cases of a
hash table. I chose this ccan implementation of doubly-linked
lists over the BSD sys/queue.h implementation si...
Eric Wong
10:48 PM Bug #7395: Negative numbers can't be primes by definition
Endo-san

Your opinion seems right.

IMHO, I think Rdoc should be updated.
This method should evaluate the number is prime number or not.
It should not refer the number is composite number or not.

We may have to confirm...
ayumin (Ayumu AIZAWA)
12:20 AM Bug #7395 (Assigned): Negative numbers can't be primes by definition
Read the rdoc carefully:
> Returns true if +self+ is a prime number, false for a composite.
By definition, a composite number can be also a positive integer greater than 1.
http://mathworld.wolfram.com/CompositeNumber.html
Th...
mame (Yusuke Endoh)
06:56 PM Bug #9827 (Closed): Segmentation fault when running `gem`
I have been [told](https://github.com/rubygems/rubygems/issues/911#issuecomment-42749165) by the [owner](https://github.com/drbrain) of the [rubygems/rubygems](https://github.com/rubygems/rubygems) project to file my issue here.
I get...
rafalchmiel (Rafal Chmiel)
04:10 PM Revision 3771a370 (git): thread.c: always deliver signal immediately
* thread.c (ruby_kill): always deliver signal immediately, without
check for main thread. no longer called in other context.
[ruby-dev:48203] [Bug #9820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45912 b2dd03c8-39d4-4d8f-98...
nobu (Nobuyoshi Nakada)
04:10 PM Bug #9820 (Closed): miniruby -e 'Process.kill(:INT, $$)' hang under cron
Applied in changeset r45911.
----------
signal.c: directly enqueue
* signal.c (`rb_f_kill`): directly enqueue an ignored signal to self,
except for `SIGSEGV` and `SIGBUS`. [ruby-dev`:`48203] [Bug #9820]
nobu (Nobuyoshi Nakada)
04:10 PM Revision 77af38d0 (git): signal.c: directly enqueue
* signal.c (rb_f_kill): directly enqueue an ignored signal to self,
except for SIGSEGV and SIGBUS. [ruby-dev:48203] [Bug #9820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:04 PM Bug #9823: Segmentation fault using DL
That makes sense. After implementing what you've shown me above, I no longer encounter a segmentation fault in the example, nor in the code it was extracted from. Thank you very much for your help! chrahunt (Christopher Hunt)
02:46 PM Bug #9823: Segmentation fault using DL
According to the document http://ruby-doc.org/stdlib-1.9.3/libdoc/dl/rdoc/DL/CPtr.html#method-c-malloc ,
~~~
DL::CPtr.malloc(size, freefunc = nil) => dl cptr instance
Allocate size bytes of memory and associate it with an optional f...
phasis68 (Heesob Park)
02:04 PM Bug #9823: Segmentation fault using DL
Thanks for your help and clear explanation. Do you know why the segmentation fault was prevented by the various conditions stated above? chrahunt (Christopher Hunt)
01:49 PM Bug #9823: Segmentation fault using DL
This bug is not due to ruby but to your code.
You used the inappropriate method ref on a variable of DL::CPtr type in the `open_process_token` method.
The method `open_process_token`
~~~
def self.open_process_token
t...
phasis68 (Heesob Park)
04:32 AM Bug #9823: Segmentation fault using DL
Additionally, you may find the errors for 1.9.3 and 2.1.2 here: https://gist.github.com/chrahunt/5af5639f6410ee87919c. chrahunt (Christopher Hunt)
04:26 AM Bug #9823: Segmentation fault using DL
Sorry, please find the gist here with the required files: https://gist.github.com/chrahunt/89bd596fdb8485556c64. chrahunt (Christopher Hunt)
03:52 PM Revision 23fce754 (git): * 2014-05-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:52 PM Revision a5b9624f (git): thread_pthread.c: variable for errno
* thread_pthread.c (rb_thread_wakeup_timer_thread_fd): use a local
variable for errno.
* thread_pthread.c (consume_communication_pipe): ditto. add
EWOULDBLOCK case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45909 b2dd03c8-...
nobu (Nobuyoshi Nakada)
03:37 PM Bug #9824: mkmf.rb top_srcdir not printed in Makefile of ext/openssl
Ok, please help me to understand. If Visual C++ is supported, why doesn't $(top_srcdir) get set in the generated Makefile when compiling from source? And is there a way we can set it without resorting to hand editing? djberg96 (Daniel Berger)
03:23 PM Bug #9824: mkmf.rb top_srcdir not printed in Makefile of ext/openssl
Directs lib/mkmf.rb to sets some variables for header and library directories, e.g.: `$top_srcdir`.
And Visual C++ compilers have been supported already.
nobu (Nobuyoshi Nakada)
02:39 PM Bug #9824: mkmf.rb top_srcdir not printed in Makefile of ext/openssl
What does ext/extmk.rb do exactly? There's no documentation for it. Could it be modified to work with the VS compiler? djberg96 (Daniel Berger)
12:28 PM Bug #9824 (Rejected): mkmf.rb top_srcdir not printed in Makefile of ext/openssl
Currently openssl extension is tightly bound with the core due to thread handling, so build without `ext/extmk.rb` is not supported. nobu (Nobuyoshi Nakada)
11:17 AM Bug #9824 (Rejected): mkmf.rb top_srcdir not printed in Makefile of ext/openssl
Hi,
First of all, apologies in advance for the lack of technical knowledge about Ruby, I'm pretty new to it, but I think I have detected a bug in the build process of ext/openssl.
As a newbie, I was trying to build ruby 2.1.2-p95 o...
IgnacioRodrigo (Ignacio Rodrigo)
03:01 PM Revision 78358a72 (git): merge revision(s) r45901:
envutil.rb: successfully terminated process
* test/ruby/envutil.rb (FailDesc): allow successfully terminated
process without a signal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45908 b2dd03c8-39d4-4d8f-98f...
nagachika (Tomoyuki Chikanaga)
02:48 PM Revision 3385f6a0 (git): thread_pthread.c: timer_thread_pipe struct
* thread_pthread.c (timer_thread_pipe): aggregate timer thread
pipe stuff into a struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:47 PM Revision 779ce6b0 (git): thread_pthread.c: compare with pthread_equal
* thread_pthread.c (ubf_select): compare thread_id with
pthread_equal() but not directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:25 PM Revision 4b1eca7e (git): merge revision(s) r45891,r45893,r45895:
test_beginendblock.rb, test_signal.rb: run with default handler
* test/ruby/test_beginendblock.rb (test_propagate_signaled): run
with default handler.
* test/ruby/test_signal.rb (test_hup_me): ditto.
git-svn-id: svn+...
nagachika (Tomoyuki Chikanaga)
01:38 PM Bug #9825 (Closed): Ruby option -Ke and -KE doesn't work well on Mac OSX 10.9.2
Applied in changeset r45904.
----------
dir.c: match in UTF-8
* dir.c (push_glob): match in UTF-8 on Mac OS X.
[ruby-dev:48213] [Bug #9825]
nobu (Nobuyoshi Nakada)
11:39 AM Bug #9825 (Closed): Ruby option -Ke and -KE doesn't work well on Mac OSX 10.9.2
手元の環境でビルドした環境でテストしたころ、TestRubyOptions#test_kanji で EUC-JP が invalid byte sequence in EUC-JP と判定されて失敗します。
その他のエンコード(Windows-31J、UTF-8、ASCII-8BIT)は問題なく通るようです。
$ make test-all TESTS='-vn /test_kanji/ test/ruby/test_rubyoptions.rb'
CC ...
ayumin (Ayumu AIZAWA)
01:37 PM Revision 1f30b743 (git): dir.c: match in UTF-8
* dir.c (push_glob): match in UTF-8 on Mac OS X.
[ruby-dev:48213] [Bug #9825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:37 PM Bug #9806: URI#encode doesn't encode characters '[' and ']'. They should be encoded as %5B and %5D respectively.
I'm unfamiliar with URI spec, but I guess RFC 2732 is related.
http://www.ietf.org/rfc/rfc2732.txt
> This document incudes an update to the generic syntax for Uniform
> ...
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:15 PM Revision 6add0613 (git): test_io_console.rb: show failure details
* test/io/console/test_io_console.rb (test_noctty): use
`assert_ruby_status` to show failure details.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:15 PM Revision 765a0d53 (git): envutil.rb: rubybin: keyword
* test/ruby/envutil.rb (invoke_ruby): add rubybin: keyword option
to specify the command to run scripts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:15 PM Revision ac65855d (git): envutil.rb: successfully terminated process
* test/ruby/envutil.rb (FailDesc): allow successfully terminated
process without a signal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:57 AM Feature #9826 (Closed): Enumerable#slice_between
I'd like to add a new method, Enumerable#slice_between.
It is similar to Enumerable#slice_before but it can use
not only the element after the slice position
but also the element before the slice position.
```
enum.slice_between...
akr (Akira Tanaka)
11:35 AM Feature #9071: Enumerable#slice_after
I implemented `Enumerable#slice_after`.
I found two request for this feature:
This issue and
http://stackoverflow.com/questions/22622156/how-to-implement-slice-after-or-group-certain-elements-with-certain-subsequent
I wrote the d...
akr (Akira Tanaka)
04:41 AM Revision 55d4afc7 (git): process.c: use ruby_stop
* process.c (rb_exit): call ruby_stop() which calls ruby_cleanup(),
instead of calling ruby_finalize() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:32 AM Bug #9751 (Closed): Process.wait does not work correctly in a thread
Applied in changeset r45899.
----------
thread.c: stop if forked in a sub-thread
* thread.c (`thread_start_func_2`): stop if forked in a sub-thread,
the thread has become the main thread.
[ruby-core:62070] [Bug #9751]
nobu (Nobuyoshi Nakada)
02:58 AM Bug #9751: Process.wait does not work correctly in a thread
The following one-liner fixes the case where "exit" is called.
However, when "exit"/"exit!" is omitted entirely, it still hangs.
I am out of time for today...

~~~diff
--- a/thread.c
+++ b/thread.c
@@ -3799,6 +3799,7 @@ rb_thr...
normalperson (Eric Wong)
01:28 AM Bug #9751: Process.wait does not work correctly in a thread
sam.saffron@gmail.com wrote:
> ~~~ruby
> def test
> if pid = fork

\<snip\>
> ~~~ruby
> else
> sleep 3
> puts "exiting child"
> exit 0

A workaround is to use `exit!(0)` in the child.
Normal "`e...
normalperson (Eric Wong)
04:32 AM Revision 9883632d (git): thread.c: stop if forked in a sub-thread
* thread.c (thread_start_func_2): stop if forked in a sub-thread,
the thread has become the main thread.
[ruby-core:62070] [Bug #9751]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:32 AM Revision a46e21c8 (git): thread_pthread.c: variable for errno
* thread_pthread.c (timer_thread_sleep): use a local variable for
errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:00 AM Revision ae290361 (git): test_signal.rb: test iff SIGQUIT is supported
* test/ruby/test_signal.rb (test_trap_system_default): test only
if SIGQUIT is supported, which is platform dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:41 AM Feature #9508 (Assigned): Add method coverage and branch coverage metrics
Sam Rawlins wrote:
> I was largely inspired by the visualization and analysis of Istanbul [1], the standard Javascript coverage library. Here is a great example of a coverage report: http://gotwarlost.github.io/istanbul/public/coverage/...
mame (Yusuke Endoh)
12:33 AM Bug #9773 (Closed): broken link in man/ruby.1
Applied in changeset r45896.
----------
* man/ruby.1: remove deadlink. [ruby-core:62145][Bug #9773]
hsbt (Hiroshi SHIBATA)
12:33 AM Revision 03c39e11 (git): * man/ruby.1: remove deadlink. [ruby-core:62145][Bug #9773]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:32 AM Revision 2acad064 (git): test_thread.rb: run with default handler
* test/ruby/test_thread.rb (test_thread_timer_and_interrupt): run
with default handler.
* test/ruby/test_thread.rb (test_thread_{join,value}_in_trap):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45895 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)

05/09/2014

11:48 PM Revision 08928bb5 (git): * signal.c (trap): Return "SYSTEM_DEFAULT" if SIG_DFL is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:44 PM Bug #7395: Negative numbers can't be primes by definition
> ayumin
this issue seems incompatible changes. it should be add NEWS.
hsbt (Hiroshi SHIBATA)
11:36 PM Bug #9823 (Feedback): Segmentation fault using DL
Hello,
There is a require to mwe that is not defined. Please include all the code or provide a gist with multiple files that describe the problem.
luislavena (Luis Lavena)
11:34 PM Bug #9823 (Closed): Segmentation fault using DL
I receive a segmentation fault when calling OpenProcessToken from DL, demonstrated by running the attached 'runner.rb' file with the additional files in the same directory. This is a simplified representation, but perhaps not minimal, th... chrahunt (Christopher Hunt)
11:19 PM Feature #4788: resolv.rb refactoring
I'm happy to se this has been completed. I just thought I'd mention that I reimplemented the DNS resolver in RubyDNS using EventMachine as I couldn't wait for this bug fix. The new EventMachine resolver is asynchronous which makes it use... ioquatix (Samuel Williams)
10:02 PM Bug #9822 (Assigned): Ruby doesn't respect system OpenSSL configuration
zzak (zzak _)
09:24 PM Bug #9822 (Closed): Ruby doesn't respect system OpenSSL configuration
Hello.
I need to work with SSL (HTTPS) with GOST encryption, but ruby doesn't connect to the servers that requires GOST algorithms to be used for encryption.
The issue is in fact, that it is required to modify system OpenSSL config...
Envek (Andrey Novikov)
05:04 PM Feature #9508: Add method coverage and branch coverage metrics
Hi Yusuke, thanks for the comments! I want to first defend the Demand and Use Case. And thank you for the Review comments; I'll apply them ASAP.
## Demand in Ruby Core
I think that Ripper is inadequate for these new metrics for the...
srawlins (Sam Rawlins)
04:15 PM Revision 5d488225 (git): test_signal.rb: missing argv
* test/ruby/test_signal.rb (test_hup_me): add missing argv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:13 PM Revision 800c2d39 (git): * 2014-05-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:13 PM Revision a738b98f (git): test_beginendblock.rb, test_signal.rb: run with default handler
* test/ruby/test_beginendblock.rb (test_propagate_signaled): run
with default handler.
* test/ruby/test_signal.rb (test_hup_me): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:05 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
GVL があるので変なことはまず起こらない気がしますが、起こるとしたらどういう状況ですかね。 akr (Akira Tanaka)
03:02 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
`SIG_IGN`ではないときだけ、というところでrace conditionになったりしないですかね。 nobu (Nobuyoshi Nakada)
03:00 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
自分自身に送るときは、即座に届かないと困ることがあった気がします。
例外が発生するはずがその先まで実行されてしまうとか。
思うに、自分自身(だけ)に送るときは signal を使わないで、直接 signal handler を呼ぶなり呼ばないなりすればいいんじゃないかという気がするんですが、どうですかねぇ。
akr (Akira Tanaka)
02:35 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
元々シグナルがすぐ配送されるとは限らないわけで、とりあえずタイムアウトをつけてみるのはどうでしょうか。
~~~diff
diff --git i/thread.c w/thread.c
index dfa91a8..209aff1 100644
--- i/thread.c
+++ w/thread.c
@@ -5180,10 +5180,11 @@ ruby_kill(rb_pid_t pid, int sig)
* delivered ...
nobu (Nobuyoshi Nakada)
02:16 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
r39819で、自分自身にシグナルを送ったときにはすぐシグナルを処理するために受信するまで待つようになっていますが、`SIG_IGN`の場合は送られないのでそこでずっと待機してしまうということのようです。
シグナルの遅延が予測できない以上、`kill`する前にチェックするしかないですかねぇ。
nobu (Nobuyoshi Nakada)
01:06 PM Bug #9820: miniruby -e 'Process.kill(:INT, $$)' hang under cron
さらに調べた結果、どうも cron から動かしたプログラムでは SIGINT の signal handler が
SIG_IGN になっているようです。
以下のようにして、端末からでも再現できました。
以下を実行すると hang します。
```
./miniruby -e 'trap(:INT, "IGNORE"); Process.kill(:INT, $$)'
```
Ctrl-C で止められないのは少し面倒なので、SIGQUIT に変...
akr (Akira Tanaka)
08:06 AM Bug #9820 (Closed): miniruby -e 'Process.kill(:INT, $$)' hang under cron
最近、しばたさんが運用を始めた chkbuild で、
TestBeginEndBlock#test_propagate_signaled が hang しています。
http://chkbuild002.hsbt.org/chkbuild/ruby-trunk/log/20140509T060013Z.fail.html.gz
調べて再現コードを小さくしていった結果、
miniruby -e 'Process.kill(:INT, $$)'
...
akr (Akira Tanaka)
02:31 PM Revision ed37579c (git): thread_*.c: constify
* thread_{pthread,win32}.c (native_cond_timedwait): constify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:31 PM Revision b60fbca8 (git): signal.c: if to switch
* signal.c (ruby_signal): turn multiple `if` statements into a
`switch`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:57 PM Revision 058b5bce (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:27 PM Bug #9821 (Third Party's Issue): Segfault when using gruff/RMagick/Rails 3.2.17
Seems it occurs in RMagick.
nobu (Nobuyoshi Nakada)
11:26 AM Bug #9821 (Third Party's Issue): Segfault when using gruff/RMagick/Rails 3.2.17
Our Rails 3.2.17 project uses gruff, which uses RMagick. It worked fine with Ruby 1.9 (FreeBSD 8.3). Then we moved to another server with Ruby 2.1 (FreeBSD 10.0) and now the Ruby code that generates the image crashes.
Bug report as gi...
rfc2822 (R H)
06:12 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
メソッド名は分かりませんが、
a.foo(b)
という書き方は対称性を崩していて何となく気持ち悪いので、どうせなら
String.foo(a, b)
という書き方も見当していただけないでしょうか。あるいは、`<=>`と同様に、メソッドの前の`.`の要らないメソッドがあるといいんですけどね。
sawa (Tsuyoshi Sawada)
05:40 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
Yui NARUSE wrote:
> > (あと numericcmp は cc という同じ文字の並びの間で単語が分かれるというのが、
> ...
`numcmp`とか。
nobu (Nobuyoshi Nakada)
05:32 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
tadayoshi funaba wrote:
> 名前はともかく俺が欲しいのは filevercmp のほうかもしれない。
仕様が明確に決まっているのと、バージョン比較というわたしのユースケースには影響がないので、
それでもいい感はありますが、どうなんでしょうね。
Akira Tanaka wrote:
> ...
それぞれ後半が逆な気がしますが、MS的にはlogicalcmpらしいですね。
> ではどういう名前にするかというと、あまりいい名前...
naruse (Yui NARUSE)
02:48 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
2014-05-08 7:54 GMT-04:00 Tadayoshi Funaba <tadf@dotrb.org>:
> 名前はともかく俺が欲しいのは filevercmp のほうかもしれない。
>
> ~~~
> x #=> ["2.1.10", "2.1.2", "8 layers", "8 layers 2", "8 layers 2.nki", "8 layers.nki", "a16", "a17"]
> puts x.sort{|a...
kosaki (Motohiro KOSAKI)
02:28 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
Feature#5861 の時と違って、色々とバックグランドの話が提示されたので私は説得されました。

+1

> ~~~diff
> + def test_numericcmp
> + assert_equal(-1, "2.1.0".numericcmp("2.1.1"))
> + assert_equal(-1, "2.1.9".numericcmp("2.1.10"))
> + assert_equal( 0...
kosaki (Motohiro KOSAKI)
05:52 AM Revision 77811031 (git): extmk.rb: check if parent is build
* ext/extmk.rb (extmake): don't build nested libraries if parent
library isn't build.
* ext/{dl/callback,tk/tkutil}/extconf.rb: no longer need to check
if the parent is build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45887...
nobu (Nobuyoshi Nakada)
05:52 AM Revision ecb8b52f (git): extmk.rb: fix extstatic
* ext/extmk.rb: fix variable name for --extstatic option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:27 AM Bug #9818 (Closed): __builtin_setjmp and __builtin_longjmp caused a build failure on PPC Linux with gcc 4.4.0
Applied in changeset r45885.
----------
configure.in: check for `setjmp` type with `CCDLFLAGS`
* configure.in (`RUBY_SETJMP_TYPE`): check for `setjmp` type after
`CCDLFLAGS` is appended to `CFLAGS`, since `__builtin_setjmp` can...
nobu (Nobuyoshi Nakada)
04:38 AM Bug #9818: __builtin_setjmp and __builtin_longjmp caused a build failure on PPC Linux with gcc 4.4.0
You can use `--with-setjmp-type=_setjmp` `configure` option. nobu (Nobuyoshi Nakada)
05:27 AM Revision 9ee25c70 (git): configure.in: check for setjmp type with CCDLFLAGS
* configure.in (RUBY_SETJMP_TYPE): check for setjmp type after
CCDLFLAGS is appended to CFLAGS, since __builtin_setjmp can be
affected. [ruby-core:62469] [Bug #9818]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45885 b2dd03c8-...
nobu (Nobuyoshi Nakada)
04:35 AM Bug #9819 (Closed): changed documentation for enumerable methods find and detect
The docs right now under the enumerable method "find" contains only 2 examples using detect, and no examples with find. The usual pattern throughout the rest of the docs is that when two methods are aliases, such as detect and find, then... JumpHigh777 (Rachel Logie)
03:58 AM Revision 48a9d171 (git): * tool/release.sh: fix for neon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:14 AM Feature #6074 (Rejected): Allow alias arguments to have a comma
As Akinori stated, alias is special to be special.
In your case, forget alias and always use alias_method.
Matz.
matz (Yukihiro Matsumoto)
02:34 AM Feature #6074: Allow alias arguments to have a comma
Akinori MUSHA wrote:
> I believe the lack of comma is an important sign that alias is not really a method call in which directive arguments are not evaluated like with normal method calls.
Agreed, and this issue should be judged by M...
shugo (Shugo Maeda)
02:05 AM Feature #6074: Allow alias arguments to have a comma
I believe the lack of comma is an important sign that alias is not really a method call in which directive arguments are not evaluated like with normal method calls.
If you are allowed to, and should you put a comma in an alias statemen...
knu (Akinori MUSHA)
02:30 AM Bug #9800: Ship 2.1.2 with GC_HEAP_OLDOBJECT_LIMIT_FACTOR of 1.3
How about performance down of this change? hsbt (Hiroshi SHIBATA)
01:00 AM Bug #9800: Ship 2.1.2 with GC_HEAP_OLDOBJECT_LIMIT_FACTOR of 1.3
Sorry for late response.
I can agree this proposal because current default "2" also has no evidence to use.
I think more survey are welcome to set ideal default setting. 1.7? 1.5? 1.3?
However, already 2.1.2 released?
ko1 (Koichi Sasada)
 

Also available in: Atom