Project

General

Profile

Activity

From 05/21/2016 to 05/27/2016

05/27/2016

06:58 PM Bug #11953: ThreadError in 2.3 on code that works on 2.2.4
Tom Mornini wrote:
> We'll try it under 2.2.4 and report back.
We actually tested against 2.2.5, and we're seei...
tmornini (Tom Mornini)
07:01 AM Bug #11953: ThreadError in 2.3 on code that works on 2.2.4
With 1.9..trunk, I got same behaviors with both examples, no error with Clayton's and `ThreadError` with James's.
nobu (Nobuyoshi Nakada)
06:39 PM Feature #11098: Thread-level allocation counting
I'd be happy to spin up a gem version of this and see what the difference is. I'll report back once I have some code ... jasonrclark (Jason Clark)
09:12 AM Feature #11098: Thread-level allocation counting
Thank you for your explanation.
After that we need to measure the gem version of this feature.
Can you write it? ...
ko1 (Koichi Sasada)
04:31 PM Bug #12433 (Closed): uncommon.mk:614: recipe for target 'yes-test-almost' failed - missing UnicodeData.txt
Trying to run `make check` from latest snapshot, the test suite fails:
```
/builddir/build/BUILD/ruby-2.4.0-r5518...
vo.x (Vit Ondruch)
01:13 PM Revision 88a5f937 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:43 AM Revision 294f6531 (git): process.c: [DOC] Process.abort [ci skip]
* process.c (rb_f_abort): [DOC] Process.abort is a singleton
method of Process, but not an instance method.
git-sv...
nobu (Nobuyoshi Nakada)
08:44 AM Feature #6647: Exceptions raised in threads should be logged
any conclusion?
Another idea:
(1) Thread#report_on_exception = true
Show exception and backlog immediately (al...
ko1 (Koichi Sasada)
08:38 AM Bug #12389 (Closed): Module#constants includes non-constants
Applied in changeset r55182.
----------
variable.c: hidden constants
* variable.c (rb_local_constants_i): exclude h...
nobu (Nobuyoshi Nakada)
08:38 AM Revision c57c719e (git): variable.c: hidden constants
* variable.c (rb_local_constants_i): exclude hidden constants.
[ruby-core:75575] [Bug #12389]
git-svn-id: svn+ssh:...
nobu (Nobuyoshi Nakada)
08:09 AM Bug #12431 (Closed): Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8
Applied in changeset r55181.
----------
transcode.c: scrub in the given encoding
* transcode.c (str_transcode0): sc...
nobu (Nobuyoshi Nakada)
08:09 AM Revision 4fad63da (git): transcode.c: scrub in the given encoding
* transcode.c (str_transcode0): scrub in the given encoding when
the source encoding is given, not in the encoding ...
nobu (Nobuyoshi Nakada)
07:13 AM Bug #12432 (Third Party's Issue): The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec()
Seems an issue with unicorn and rcdk gem caused by a system restriction.
I think you should `exec` or `spawn` somewh...
nobu (Nobuyoshi Nakada)
06:07 AM Revision be1ceb27 (git): fix non-static rb_scan_args
* include/ruby/ruby.h (rb_scan_args): remove nul padding which
caused syntax error if fmt is not a string literal.
...
nobu (Nobuyoshi Nakada)
05:44 AM Revision d92b58d5 (git): ruby.h: fix parameter name
* include/ruby/ruby.h (rb_scan_args): fix macro parameter name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55...
nobu (Nobuyoshi Nakada)

05/26/2016

09:46 PM Bug #12432 (Third Party's Issue): The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec()
Hi all,
I'm Running a server with ruby 2.1.5 with Rails 3.2.21 on Mac OS X El Capitan.
The server works until I t...
hadasl (Hadas Leonov)
09:17 PM Bug #11953: ThreadError in 2.3 on code that works on 2.2.4
James Gray wrote:
> The following code works fine on Ruby 2.2.4
> It raises this error in Ruby 2.3.0
> ThreadErr...
tmornini (Tom Mornini)
06:23 PM Bug #12431 (Closed): Strange behavior of String#encode('UTF-8', 'UTF-8', ...) when the encoding of the source string is not UTF-8
When the dst_encoding and src_encoding options of String#encode are the same, it appears to ignore the encoding given... pdg137 (Paul Grayson)
04:51 PM Revision 1623f4e7 (git): * symbol.c (is_identchar): use ISDIGIT instead of rb_enc_isalnum.
Though rb_enc_isalnum is encoding aware function, its argument here
is *m, which is a single byte. Therefore ISDIGI...
naruse (Yui NARUSE)
04:13 PM Feature #12375: Net::HTTP.post
Just a note, I sometimes happen to write Net::HTTPS.open naruse (Yui NARUSE)
05:42 AM Feature #12375: Net::HTTP.post
Shugo Maeda wrote:
> > > * The first argument must be a URI object, but it might be better to accept a String.
> > ...
shugo (Shugo Maeda)
03:39 PM Revision 3deb1c57 (git): * 2016-05-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:39 PM Revision 08fefd70 (git): ruby.h: fix for old clang
* include/ruby/ruby.h (rb_scan_args): add nul padding here to
apply to all references.
* include/ruby/ruby.h (rb_s...
nobu (Nobuyoshi Nakada)
11:48 AM Bug #12055: `NET::HTTPResponse` is not deflating responses with custom `Content-Range` header
? ggcampinho (Glauber Campinho)
06:59 AM Misc #12424 (Rejected): Inaccurate example in documentation
nobu (Nobuyoshi Nakada)
06:54 AM Bug #12422 (Assigned): CSV.Table.== fails to check object type
nobu (Nobuyoshi Nakada)
05:25 AM Bug #12428 (Closed): OpenSSL::PKey::RSA.public_encrypt crashes ruby when initiated without key size.
Applied in changeset r55175.
----------
openssl: avoid NULL dereference in {DH,DSA,RSA}_size()
* ext/openssl/ossl_p...
Anonymous
05:24 AM Revision a1d9afc2 (git): openssl: avoid NULL dereference in {DH,DSA,RSA}_size()
* ext/openssl/ossl_pkey_dh.c (ossl_dh_compute_key): Check that the DH
has 'p' (the prime) before calling DH_size()....
rhenium (Kazuki Yamaguchi)
05:16 AM Revision ef10b81c (git): ruby.h: suppress warnings
* include/ruby/ruby.h (rb_scan_args_count): add filler nul bytes
to suppress array-bounds warnings by old clang.
g...
nobu (Nobuyoshi Nakada)
05:13 AM Revision be44af04 (git): ruby.h: count and verify
* include/ruby/ruby.h (rb_scan_args_count): verify length with
counting variables together.
git-svn-id: svn+ssh://...
nobu (Nobuyoshi Nakada)
05:11 AM Revision 374513ce (git): revert r55171
Revert r55171, "ruby.h: fix clang warnings", it did fix
array-bounds warnings, but caused string-plus-int warnings
in...
nobu (Nobuyoshi Nakada)
04:49 AM Bug #9569: SecureRandom should try /dev/urandom first
Mike Pastore wrote:
> Yui NARUSE wrote:
> > Mike Pastore wrote:
> > > Yui NARUSE wrote:
> > > > Anyway I'm creati...
naruse (Yui NARUSE)
01:30 AM Revision 43079283 (git): ruby.h: fix clang warnings
* include/ruby/ruby.h (rb_scan_args0): use pointer dereference
forms instead of array forms, to get rid of warnings...
nobu (Nobuyoshi Nakada)
12:45 AM Revision 37cea814 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:45 AM Revision 46f6abd4 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:45 AM Revision c1fedc8d (git): * test/ruby/enc/test_case_comprehensive.rb: Add set of comprehensive
(across most Unicode characters; later across most character encodings)
tests for case mapping.
git-svn-id: svn+s...
duerst (Martin Dürst)

05/25/2016

09:14 PM Bug #12430 (Closed): Segfault in irb when improperly using coerce in combination with method_missing
Don't ask how or why I wrote this code, but suppose you have a class like this:
~~~
class BrokenNumber
def ini...
sandal (Gregory Brown)
08:01 PM Revision 61ddd3e0 (git): * 2016-05-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:01 PM Revision e4cab0fe (git): * class.c (rb_define_class): Fix documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
04:52 PM Bug #12429 (Closed): http.rb:933: [BUG] Segmentation fault at 0x00000000000000
/Users/ecleel/.rbenv/versions/2.3.0/lib/ruby/2.3.0/net/http.rb:933: [BUG] Segmentation fault at 0x00000000000000
rub...
ecleel (Abdualziz AlShetwi)
11:51 AM Revision e45cf75f (git): * re.c (unescape_nonascii): scan hex up to only 3 characters.
[Bug #12420] [Bug #12423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:32 AM Bug #12428 (Closed): OpenSSL::PKey::RSA.public_encrypt crashes ruby when initiated without key size.
Hi, I think I found a bug. OpenSSL::PKey::RSA initiated without keysize crashes when public_encrypt is called.
Below...
cjeon (CHEOLHO JEON)
10:07 AM Revision 46647ac8 (git): * enc/unicode.c: Handle DOTLESS_i by hand because it isn't involved in folding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
09:45 AM Bug #12423 (Closed): Regexp: Heap Buffer Overflow in regparse.c : next_state_value()
Applied in changeset r55163.
----------
* regparse.c (fetch_token_in_cc): raise error if given octal escaped
chara...
naruse (Yui NARUSE)
09:45 AM Bug #12420 (Closed): Regexp: Segfault due to Invalid Read in regparse.c : bbuf_free()
Applied in changeset r55163.
----------
* regparse.c (fetch_token_in_cc): raise error if given octal escaped
chara...
naruse (Yui NARUSE)
09:45 AM Revision 05c631ee (git): * regparse.c (fetch_token_in_cc): raise error if given octal escaped
character is too big. [Bug #12420] [Bug #12423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55163 b2dd03c8-39d...
naruse (Yui NARUSE)
08:50 AM Revision cf2792d5 (git): openssl: drop OpenSSL 0.9.6/0.9.7 support
* ext/openssl, test/openssl: Drop OpenSSL < 0.9.8 support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55162 b...
rhenium (Kazuki Yamaguchi)
08:46 AM Revision 0766b8af (git): openssl: remove unnecessary 'extern "C"' blocks from local headers
* ext/openssl/openssl_missing.h, ext/openssl/ossl.h: Remove
unnecessary 'extern "C"' blocks. We don't use C++ and t...
rhenium (Kazuki Yamaguchi)
08:46 AM Revision fc9d7c15 (git): openssl: remove check of OPENSSL_FIPS macro in extconf.rb
* ext/openssl/extconf.rb: Remove check of OPENSSL_FIPS macro. This is
unneeded because we can check the macro direc...
rhenium (Kazuki Yamaguchi)
08:30 AM Bug #12427 (Feedback): Defining methods with the same name to both Fixnum and Bignum classes could cause SEGV in C extensions since Feature #12005
https://.com/ruby/ruby/compare/trunk...nobu:bug/12427-integer-integration
This does:
> Concern 1 is t...
nobu (Nobuyoshi Nakada)
07:23 AM Bug #12427 (Closed): Defining methods with the same name to both Fixnum and Bignum classes could cause SEGV in C extensions since Feature #12005
My gem (msgpack.gem) includes C extension with following pseudo code.
This code is working well with released ruby v...
frsyuki (Sadayuki Furuhashi)
08:13 AM Revision 29123a37 (git): class.c: simplify
* class.c (rb_scan_args): merge code for n_trail.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55159 b2dd03c8-3...
nobu (Nobuyoshi Nakada)
08:11 AM Bug #12426 (Closed): Error when compiling win32ole.c on cygwin
Applied in changeset r55158.
----------
ruby.h: rb_scan_args_validate
* include/ruby/ruby.h (rb_scan_args_validate)...
nobu (Nobuyoshi Nakada)
08:11 AM Revision c7bc778d (git): ruby.h: rb_scan_args_validate
* include/ruby/ruby.h (rb_scan_args_validate): move failed
condition to the terminal. [ruby-core:75714] [Bug #1242...
nobu (Nobuyoshi Nakada)
06:13 AM Bug #9569: SecureRandom should try /dev/urandom first
Yui NARUSE wrote:
> Mike Pastore wrote:
> > Yui NARUSE wrote:
> > > Anyway I'm creating a securerandom.gem which u...
mwpastore (Mike Pastore)
05:12 AM Bug #9569: SecureRandom should try /dev/urandom first
Mike Pastore wrote:
> Yui NARUSE wrote:
> > Anyway I'm creating a securerandom.gem which uses arc4random_buf intern...
naruse (Yui NARUSE)
06:05 AM Revision 4c681730 (git): regcomp.c: fix debug conditionals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:05 AM Revision 44c938c9 (git): fake.rb: buildlibdir
* tool/fake.rb: set "buildlibdir" to the build directory, instead
of "builddir" which is filterd by MakeMakefile#co...
nobu (Nobuyoshi Nakada)
04:21 AM Bug #12418 (Closed): Regexp: Segfault due to Invalid Read in regerror.c : to_ascii()
Applied in changeset r55154.
----------
* regcomp.c (compile_length_tree): return error code immediately
if compil...
naruse (Yui NARUSE)
04:21 AM Revision 599f054f (git): * regcomp.c: remove condition for debug output because prelude
doesn't use regexp now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:21 AM Revision 8c2ddab5 (git): * regcomp.c (compile_length_tree): return error code immediately
if compile_length_tree raised error [Bug #12418]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55154 b2dd03c8-39...
naruse (Yui NARUSE)

05/24/2016

11:28 PM Bug #12426 (Closed): Error when compiling win32ole.c on cygwin
I get the following error when compiling ruby on cygwin:
```
compiling win32ole.c
In file included from win32ole...
duerst (Martin Dürst)
11:01 PM Revision ef6405f7 (git): * enc/unicode.c: Fix flag error for switch from titlecase to lowercase.
* test/ruby/enc/test_case_mapping.rb: Tests for above error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5515...
duerst (Martin Dürst)
10:23 PM Bug #9569: SecureRandom should try /dev/urandom first
Yui NARUSE wrote:
> Anyway I'm creating a securerandom.gem which uses arc4random_buf internally like libressl RAND_b...
mwpastore (Mike Pastore)
04:24 PM Bug #9569: SecureRandom should try /dev/urandom first
Shyouhei Urabe wrote:
> My private feeling is it's even worse than current situation to copy & paste arc4random sour...
naruse (Yui NARUSE)
07:46 AM Bug #9569: SecureRandom should try /dev/urandom first
Yui NARUSE wrote:
> Shyouhei Urabe wrote:
> > @naruse Do you think it's inadequate for Linux users to fall back to ...
shyouhei (Shyouhei Urabe)
06:43 AM Bug #9569: SecureRandom should try /dev/urandom first
Yui NARUSE wrote:
> getrandom has some limitations like its max output (33554431), and consumes entropy.
This pro...
delan (Delan Azabani)
05:19 AM Bug #9569: SecureRandom should try /dev/urandom first
Shyouhei Urabe wrote:
> @naruse Do you think it's inadequate for Linux users to fall back to getrandom(2)? If so, w...
naruse (Yui NARUSE)
08:52 PM Bug #12425 (Closed): encoding string to UTF-16 is causing a segfault
While trying to create a Yaml file in UTF-16 format for testing I found that with the attached script ruby dies with ... ericldelaney (Eric Delaney)
08:06 PM Misc #12424 (Rejected): Inaccurate example in documentation
in https://.com/ruby/ruby/blob/ffb34cce89c63d43e2ae6a5c3956489fd3c5c4c7/ext/date/date_core.c#L9478
* ...
ja (JoseAlberto Suarez)
06:02 PM Bug #12423 (Closed): Regexp: Heap Buffer Overflow in regparse.c : next_state_value()
A crafted regular expression will cause a heap buffer overflow leading to invalid 4 byte reads/writes on 32-bit Ubunt... grajagandev (David Moore)
04:30 PM Revision 85500b66 (git): openssl: add EC.generate
* ext/openssl/ossl_pkey_ec.c (ec_key_new_from_group): Create a new
EC_KEY on given EC group. Extracted from ossl_ec...
rhenium (Kazuki Yamaguchi)
04:27 PM Revision 8cbd74a3 (git): openssl: rename EC#generate_key to EC#generate_key!
* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_generate_key): Fix up RDoc.
(Init_ossl_ec): Rename EC#generate_key to EC#...
rhenium (Kazuki Yamaguchi)
04:17 PM Bug #12422 (Closed): CSV.Table.== fails to check object type
`CSV::Table`'s equality method presumes it is comparing another `CSV::Table`. It fails when the object to be compared... robotfelix (Felix Kenton)
03:29 PM Bug #12421 (Closed): Please backport r53816, r53817
Since there was request to fix this issue on RHEL7 [1], which ships Ruby 2.0.0 and the fix was applied just to trunk,... vo.x (Vit Ondruch)
03:23 PM Revision b3d3d52c (git): ruby.h: optimize rb_scan_args_set
* include/ruby/ruby.h (rb_scan_args_set): check the arity after
adjusting argc for an option hash, for optimization...
nobu (Nobuyoshi Nakada)
03:21 PM Revision 4e612fa6 (git): * 2016-05-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:21 PM Revision b1d28fef (git): configure.in: merge ruby_cflags to XCFLAGS
* configure.in (XCFLAGS): merge flags only for ruby itself from
ruby_cflags.
git-svn-id: svn+ssh://ci.ruby-lang.or...
nobu (Nobuyoshi Nakada)
02:00 PM Revision b2bc7f3c (git): Remove a space [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:42 PM Feature #3001: Ruby stdlib: Benchmark::Tms #memberwise drops labels
Ernest Prabhakar wrote:
> =begin
> http://ruby-doc.org/stdlib/libdoc/benchmark/rdoc/classes/Benchmark/Tms.html#M00...
cjeon (CHEOLHO JEON)
01:38 PM Bug #12420 (Closed): Regexp: Segfault due to Invalid Read in regparse.c : bbuf_free()
A crafted regular expression will cause an invalid 4 byte read on 32-bit Ubuntu 14.04. The regular expression fails t... grajagandev (David Moore)
01:09 PM Revision ce635262 (git): openssl: make Cipher#key= and #iv= reject too long values
* ext/openssl/ossl_cipher.c (ossl_cipher_set_key, ossl_cipher_set_iv):
Reject too long values as well as too short ...
rhenium (Kazuki Yamaguchi)
12:39 PM Revision cff5bd63 (git): openssl: avoid deprecated M_ASN1_* macros
* ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): Use
ASN1_OCTET_STRING_set() instead of M_ASN1_OCTET_STRING_s...
rhenium (Kazuki Yamaguchi)
09:52 AM Revision eb15df1f (git): ruby.h: rb_scan_args_verify
* include/ruby/ruby.h (rb_scan_args_verify): verify the format to
scan if no invalid chars and variable argument le...
nobu (Nobuyoshi Nakada)
08:26 AM Feature #12419 (Closed): Improve String#dump for Unicode output (from "\u{130}" to "\u0130")
Currently, `"İİİ".dump` produces `"\u{130}\u{130}\u{130}"`.
This is rather suboptimal, `"\u0130\u0130\u0130"` is s...
duerst (Martin Dürst)
08:18 AM Revision 6a787c68 (git): defines.h: fallback ERRORFUNC and WARNINGFUNC
* include/ruby/defines.h (ERRORFUNC, WARNINGFUNC): add fallback
definitions.
git-svn-id: svn+ssh://ci.ruby-lang.or...
nobu (Nobuyoshi Nakada)
08:11 AM Bug #9760: mkmf does not allow for linking against custom libraries when a system library is present
We have a system where
* Ruby 1.8.7-p374 is installed system wide from distribution packages
* There is a user se...
onur (Onur Küçük)
07:49 AM Bug #12409 (Closed): -fexcess-precision=standard is making it hard to compile my gem
Applied in changeset r55142.
----------
* configure.in (ruby_cflags): separate from optflags [Bug #12409]
-fexcess...
naruse (Yui NARUSE)
07:41 AM Bug #12409: -fexcess-precision=standard is making it hard to compile my gem
Don't change Backport field.
add description about backport field: https://bugs.ruby-lang.org/projects/ruby/wiki/H...
naruse (Yui NARUSE)
07:49 AM Revision 80db1d61 (git): * configure.in (ruby_cflags): separate from optflags [Bug #12409]
-fexcess-precision=standard and -fp-model precise are set to this now.
* configure.in (cflags): use ruby_cflags.
gi...
naruse (Yui NARUSE)
07:28 AM Revision e0a31f4f (git): fix missing argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:20 AM Revision 970b092e (git): fix __error__ and __warning__ attribute checks
* configure.in (ERRORFUNC, WARNINGFUNC): __error__ and __warning__
attributes take a parenthesized string literal.
...
nobu (Nobuyoshi Nakada)
05:54 AM Feature #12403: Optimise Regexp#match?
Sam Saffron wrote:
> Naruse, I see this was reverted? any way to get rb_scan_args inlined it would be beneficial eve...
naruse (Yui NARUSE)
03:44 AM Revision 4eb0e180 (git): * 2016-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:43 AM Revision 42db62c1 (git): * common.mk : sort lines, and add missing dependencies suggested
by tool/update-deps
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)

05/23/2016

03:44 PM Bug #12418 (Closed): Regexp: Segfault due to Invalid Read in regerror.c : to_ascii()
A crafted regular expression will cause an invalid 4 byte read on 32-bit Ubuntu 14.04. The regular expression has sev... grajagandev (David Moore)
01:26 PM Revision 7f087e2c (git): fix indent (tabify) [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:33 PM Revision 88cc25f9 (git): missing.h: isfinite
* include/ruby/missing.h (isfinite): move from numeric.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55136 b2...
nobu (Nobuyoshi Nakada)
12:10 PM Bug #9101 (Closed): Reference to unset variable
Applied in changeset r55135.
----------
openssl: Avoid reference to unset global variable in Init_openssl()
* ext/o...
Anonymous
12:10 PM Revision d45c09fb (git): openssl: Avoid reference to unset global variable in Init_openssl()
* ext/openssl/ossl.c (Init_openssl): Avoid reference to unset global
variable. ossl_raise() may be called before dO...
rhenium (Kazuki Yamaguchi)
11:40 AM Revision 582fa9cd (git): openssl: use StringValueCStr() where NUL-terminated string is expected
* ext/openssl/ossl_asn1.c, ext/openssl/ossl_bn.c,
ext/openssl/ossl_cipher.c, ext/openssl/ossl_digest.c
ext/openss...
rhenium (Kazuki Yamaguchi)
11:21 AM Bug #12417 (Closed): warning: "isfinite" redefined when compiling bigdecimal.c on cygwin
Applied in changeset r55133.
----------
* ext/bigdecimal/bigdecimal.c (isfinite): get rid of a warning on
cygwin. ...
usa (Usaku NAKAMURA)
11:08 AM Bug #12417 (Closed): warning: "isfinite" redefined when compiling bigdecimal.c on cygwin
When using `make up; make install-nodoc`, I get the following warning:
```
compiling bigdecimal.c
bigdecimal.c:3...
duerst (Martin Dürst)
11:21 AM Revision b9da060b (git): * ext/bigdecimal/bigdecimal.c (isfinite): get rid of a warning on
cygwin. [Bug #12417][ruby-core:75691]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55133 b2dd03c8-39d4-4d8f-98...
U.Nakamura
11:05 AM Bug #12415 (Rejected): Dir#pos reports invalid position after Dir#read
nobu (Nobuyoshi Nakada)
06:05 AM Bug #12415: Dir#pos reports invalid position after Dir#read
This is not a bug.
The return value of Dir#pos is just the return value of telldir().
The return values of telldir(...
phasis68 (Heesob Park)
03:03 AM Bug #12415 (Rejected): Dir#pos reports invalid position after Dir#read
irb(main):002:0> `ls`.split("\n")
=> ["bench", "berger_spec.gemspec", "lib", "Rakefile", "README", "SCORECAR...
djberg96 (Daniel Berger)
10:47 AM Bug #10053 (Closed): OpenSSL: incorrect return value check of EGD functions
Applied in changeset r55132.
----------
openssl: fix incorrect return value check of RAND_* functions
* ext/openssl...
Anonymous
10:47 AM Revision 9f0cf20f (git): openssl: fix incorrect return value check of RAND_* functions
* ext/openssl/ossl_rand.c (ossl_rand_egd, ossl_rand_egd_bytes):
RAND_egd{_bytes,}() return -1 on failure, not 0.
...
rhenium (Kazuki Yamaguchi)
10:45 AM Revision 2d9d6caa (git): revert error attributes
* include/ruby/ruby.h (rb_scan_args0): revert error attributes,
which may not be optimized away in readline extensi...
nobu (Nobuyoshi Nakada)
10:35 AM Revision 3355640a (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:32 AM Feature #12416: struct rb_id_table lacks mark function
On 05/23/2016 05:07 PM, Eric Wong wrote:
> Do you have plans to hold arbitrary VALUE objects?

Yes. I plan to pos...
shyouhei (Shyouhei Urabe)
08:08 AM Feature #12416: struct rb_id_table lacks mark function
[email protected] wrote:
> Bug #12416: struct rb_id_table lacks mark function
> https://bugs.ruby-lang.org/is...
normalperson (Eric Wong)
07:20 AM Feature #12416 (Open): struct rb_id_table lacks mark function
```
From 368b63af3b9d4205048f19058453cddda0cf242c Mon Sep 17 00:00:00 2001
From: "Urabe, Shyouhei" <shyouhei@ruby...
shyouhei (Shyouhei Urabe)
06:55 AM Revision 921ff302 (git): * ext/bigdecimal/bigdecimal.c (isfinite): isfinite does not always
exist. fixed build error on Windows itroduced at r55123.
I found that more complex definition of isfinite in numeri...
U.Nakamura
04:40 AM Revision 3d18ceab (git): tcltklib.c: elimitate dead code
* ext/tk/tcltklib.c (lib_do_one_event_core): elimitate dead code.
after Check_Type, FIX2INT which implies conversio...
nobu (Nobuyoshi Nakada)
04:31 AM Revision c285a4e3 (git): remove unnecessary volatiles
* ext/dbm/dbm.c (fdbm_initialize): used for rb_sys_fail_str.
* ext/sdbm/init.c (fsdbm_initialize): ditto.
* ext/tk/...
nobu (Nobuyoshi Nakada)
04:31 AM Revision 19f14322 (git): tkutil.c: GC guards
* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): add GC guards
instead of volatile after the uses.
git-svn-id: svn+...
nobu (Nobuyoshi Nakada)
04:19 AM Revision a6144809 (git): make compile error if possible
* include/ruby/ruby.h (rb_scan_args0): make compile error if the
format is wrong or does not match with the variabl...
nobu (Nobuyoshi Nakada)
03:47 AM Revision 14c43e2b (git): fatal error if variable argument length mismatch
* include/ruby/ruby.h (rb_scan_args0): raise fatal error if
variable argument length does not match, it is a bug in...
nobu (Nobuyoshi Nakada)
03:30 AM Bug #12414 (Closed): FloatDomainError in infinite Range#include? for certain BigDecimals
Applied in changeset r55123.
----------
bigdecimal.c: fix FloatDomainError
* ext/bigdecimal/bigdecimal.c (GetVpValu...
nobu (Nobuyoshi Nakada)
12:25 AM Bug #12414 (Closed): FloatDomainError in infinite Range#include? for certain BigDecimals
# What I did
~~~ruby
require 'bigdecimal'
r = 0.04...(Float::INFINITY)
n = BigDecimal.new('0.13E0')
r.include?...
RubyBugs (A Nonymous)
03:30 AM Revision 4a574f7a (git): bigdecimal.c: fix FloatDomainError
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): consider
non-finite float values not to raise FloatDomainError....
nobu (Nobuyoshi Nakada)
03:23 AM Revision cb2a9982 (git): * array.c (rb_ary_fill): suppress warnings: 'item' may be used
uninitialized in this function
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55122 b2dd03c8-39d4-4d8f-98ff-823fe...
naruse (Yui NARUSE)
12:33 AM Bug #12413: Dir#close does not raise IOError on already closed handle on OS X
Thanks for the doc update! djberg96 (Daniel Berger)
12:30 AM Bug #12413: Dir#close does not raise IOError on already closed handle on OS X
Ah, yep, sorry. I was on an older version on the VM's and didn't notice. Disregard. djberg96 (Daniel Berger)

05/22/2016

11:21 PM Bug #12413: Dir#close does not raise IOError on already closed handle on OS X
[email protected] wrote:
> Bug #12413: Dir#close does not raise IOError on already closed handle on OS X
> https:...
normalperson (Eric Wong)
11:09 PM Bug #12413 (Closed): Dir#close does not raise IOError on already closed handle on OS X
Applied in changeset r55120.
----------
dir.c (dir_close): update RDoc for 2.3 #close change
[ruby-core:75679] [Bug...
Anonymous
10:37 PM Bug #12413 (Closed): Dir#close does not raise IOError on already closed handle on OS X
The docs for Dir#close say "Closes the directory stream. Any further attempts to access dir will raise an IOError."
...
djberg96 (Daniel Berger)
11:09 PM Revision f00ec4fb (git): * 2016-05-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:09 PM Revision bee0756e (git): dir.c (dir_close): update RDoc for 2.3 #close change
[ruby-core:75679] [Bug #12413]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55120 b2dd03c8-39d4-4d8f-98ff-823fe...
Eric Wong
09:50 PM Feature #12403: Optimise Regexp#match?
Naruse, I see this was reverted? any way to get rb_scan_args inlined it would be beneficial everywhere.
Nobu, kee...
sam.saffron (Sam Saffron)
12:34 PM Bug #12412 (Rejected): Extend safe navigation operator
Although I don't say your idea is totally bad, it's not good to add it to Ruby for several reasons:
* it's not com...
matz (Yukihiro Matsumoto)
10:28 AM Bug #12412: Extend safe navigation operator
Another improvement to make it even more powerful.
Introduction of a new global variable that would return the obj...
dsferreira (Daniel Ferreira)
10:09 AM Bug #12412: Extend safe navigation operator
I was reading the safe navigation issue full discussion and didn't find a clear reason why we should not extend the b... dsferreira (Daniel Ferreira)
08:16 AM Bug #12412: Extend safe navigation operator
It's a rejected behavior in the former discussions. nobu (Nobuyoshi Nakada)
06:31 AM Bug #12412: Extend safe navigation operator
In my proposal
~~~ ruby
nil&.nil?
# => true
~~~
Which is different from the current behaviour. You're right...
dsferreira (Daniel Ferreira)
06:20 AM Bug #12412: Extend safe navigation operator
Matthew Kerwin wrote:
> Daniel Ferreira wrote:
> > I wonder if we couldn't extend the safe navigation operator to w...
dsferreira (Daniel Ferreira)
06:12 AM Bug #12412: Extend safe navigation operator
Daniel Ferreira wrote:
> I wonder if we couldn't extend the safe navigation operator to work with any object rather ...
phluid61 (Matthew Kerwin)
06:09 AM Bug #12412: Extend safe navigation operator
Relates to:
* https://bugs.ruby-lang.org/issues/11537
* https://bugs.ruby-lang.org/issues/12263
dsferreira (Daniel Ferreira)
05:45 AM Bug #12412 (Rejected): Extend safe navigation operator
I wonder if we couldn't extend the safe navigation operator to work with any object rather than just nil.
I tend t...
dsferreira (Daniel Ferreira)
11:03 AM Revision 771064fa (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:03 AM Revision 021e8ead (git): use finalizer trick instead of thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masatoshi SEKI
08:25 AM Revision 0bf2e5c7 (git): * test/ruby/enc/test_case_options.rb: adjust test class name
to match file name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
08:24 AM Revision de305716 (git): * rename test/ruby/enc/test_casing_options.rb to test_case_options.rb
for consistency
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
08:07 AM Bug #12411 (Closed): Warnings when compiling transcode.c on cygwin
Applied in changeset r55115.
----------
transcode.c: GC guards
* transcode.c (enc_arg, str_transcode_enc_args, econ...
nobu (Nobuyoshi Nakada)
03:44 AM Bug #12411 (Closed): Warnings when compiling transcode.c on cygwin
When compiling ruby trunk, the compilation of transcode produces the warnings below.
There's also a similar warning ...
duerst (Martin Dürst)
08:06 AM Revision 6ce18e3a (git): transcode.c: GC guards
* transcode.c (enc_arg, str_transcode_enc_args, econv_args):
remove volatile, and add GC guards in callers.
[ruby...
nobu (Nobuyoshi Nakada)
07:27 AM Bug #12408 (Closed): cannot load such file -- -test-/testutil when trying to run tests with test/runner.rb
Applied in changeset r55114.
----------
-test-/integer
* ext/-test-/integer/core_ext.c: move testutil/integer.c.
* ...
nobu (Nobuyoshi Nakada)
07:27 AM Revision 006634b4 (git): -test-/integer
* ext/-test-/integer/core_ext.c: move testutil/integer.c.
* test/lib/-test-/integer.rb: extract implementation detail...
nobu (Nobuyoshi Nakada)
05:59 AM Feature #12263: Feature request: &&. operator (shorthand for foo && foo.method)
By implementing https://bugs.ruby-lang.org/issues/12412
We would get the desired behaviour:
~~~ ruby
false&.cl...
dsferreira (Daniel Ferreira)
05:52 AM Feature #12263: Feature request: &&. operator (shorthand for foo && foo.method)
I opened a new feature request to extend the safe navigation operator. https://bugs.ruby-lang.org/issues/12412
I bel...
dsferreira (Daniel Ferreira)
05:57 AM Revision 78c5ca70 (git): * include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define a
new encoding primitive 'case_map' for case mapping
* enc/utf-8.c, utf_16be/le.c, utf_32be/le.c:
add onigenc_unicode...
duerst (Martin Dürst)
05:45 AM Revision 14b524b6 (git): regenc.h/c: Define new function onigenc_not_support_case_map
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
03:31 AM Revision cadbde58 (git): * include/ruby/ruby.h (rb_scan_args): use original rb_scan_args
when fmt is dynamic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:44 AM Revision 75307ce8 (git): * class.c (rb_scan_args): moved to bottom of the file to make the
effect of `#undef rb_scan_args` the minimum.
* include/ruby/ruby.h (rb_scan_args): overwrite only if GCC and
optim...
naruse (Yui NARUSE)
02:28 AM Revision b9fe5948 (git): move duplicate assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

05/21/2016

06:09 PM Revision 45e3b48b (git): just check Integer
* test/ruby/test_bignum.rb (test_pow): just assert to be an
Integer.
* test/ruby/test_integer_comb.rb (check_class...
nobu (Nobuyoshi Nakada)
06:06 PM Revision a7955b31 (git): hash method values
* test/ruby/test_{complex,range,rational,struct}.rb (test_hash):
hash values should be an Integer, not only a Fixnu...
nobu (Nobuyoshi Nakada)
05:47 PM Revision f73e6f5a (git): * 2016-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:47 PM Revision fd307c3b (git): * ext/zlib/zlib.c: remove hacky macro introduced at r30437.
* ext/zlib/zlib.c (gzfile_make_header): cast as long (instead of int).
* ext/zlib/zlib.c (gzfile_make_footer): ditto...
naruse (Yui NARUSE)
03:12 PM Feature #12410 (Rejected): Process.uid= validation and casting
OSX 10.11.4
Ruby 2.2.x and 2.3.x
It seems that Ruby added the ability to use a string for Process.uid, which is n...
djberg96 (Daniel Berger)
02:01 PM Revision 8becb1e4 (git): Revert r50102
This reverts "* include/ruby/ruby.h (rb_scan_args): don't use ALWAYS_INLINE with"
This rb_scan_args macro is GCCism.
...
naruse (Yui NARUSE)
01:47 PM Revision 3caa1776 (git): * include/ruby/ruby.h (rb_scan_args): don't use ALWAYS_INLINE with
`inline`. if gcc needs this duplication, do in ALWAYS_INLINE macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
U.Nakamura
01:40 PM Feature #12403: Optimise Regexp#match?
After r55102, rb_scan_args is almost statically resolved.
```
000000000051eae0 <rb_reg_match_m_p>:
* $& ...
naruse (Yui NARUSE)
01:24 PM Revision cc410660 (git): * include/ruby/ruby.h (rb_scan_args): use __VA_ARGS__ instead of
va_arg to allow compilers optimize more aggressive.
https://gustedt.wordpress.com/2011/07/10/avoid-writing-va_arg-f...
naruse (Yui NARUSE)
01:24 PM Revision ceea7ece (git): * configure.in (ALWAYS_INLINE): force compilers the function inlined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:08 AM Bug #11101: Forking is killing my memory when running GC
[email protected] wrote:
> Has anyone followed-up on this issue ever? I ran into this yesterday
> after deployin...
normalperson (Eric Wong)
12:56 AM Bug #11101: Forking is killing my memory when running GC
Has anyone followed-up on this issue ever? I ran into this yesterday after deploying 2.2 to an app server and noticin... olivierlacan (Olivier Lacan)
09:53 AM Bug #12409 (Closed): -fexcess-precision=standard is making it hard to compile my gem
I can no longer easily compile my C++ gem due to the -fexcess-precision=standard change
https://.com/discou...
sam.saffron (Sam Saffron)
09:15 AM Feature #7314: Convert Proc to Lambda doesn't work in MRI
Shyouhei Urabe wrote:
> Currently if a block starts with "lambda {", it behaves like a lambda. All others are proc....
shyouhei (Shyouhei Urabe)
07:25 AM Bug #12292 (Closed): Race between OpenSSL::SSL::SSLSocket#stop and #connect can cause a segmentation fault
Applied in changeset r55100.
----------
openssl: fix possible SEGV on race between SSLSocket#stop and #connect
* ex...
Anonymous
07:25 AM Revision 118ee2a7 (git): openssl: fix possible SEGV on race between SSLSocket#stop and #connect
* ext/openssl/ossl_ssl.c (ossl_ssl_stop): Don't free the SSL struct
here. Since some methods such as SSLSocket#conn...
rhenium (Kazuki Yamaguchi)
06:15 AM Bug #10581 (Rejected): OpenSSL::ASN1 fails to decode DKIM public keys
Because the Base64 encoded string is invalid as DER format. You have to decode Base64 first.
~~~
require "openssl...
rhenium (Kazuki Yamaguchi)
05:45 AM Revision 77d1e605 (git): openssl: fix SSL client example in documentation [ci skip]
* ext/openssl/ossl.c: [DOC] Fix SSL client example. The variable name
was wrong. by Andreas Tiefenthaler <at@...
rhenium (Kazuki Yamaguchi)
05:30 AM Bug #6567 (Closed): Let OpenSSL::PKey::EC follow the general PKey interface
Applied in changeset r55098.
----------
openssl: add OpenSSL::PKey::EC#private? and #public?
* ext/openssl/ossl_pke...
Anonymous
05:30 AM Revision 7c971e61 (git): openssl: add OpenSSL::PKey::EC#private? and #public?
* ext/openssl/ossl_pkey_ec.c: rename PKey::EC#private_key? and
#public_key? to #private? and #public? for consisten...
rhenium (Kazuki Yamaguchi)
04:52 AM Bug #12408: cannot load such file -- -test-/testutil when trying to run tests with test/runner.rb
BTW, do I have to use `make runnable` before every test, or after every `make install-nodoc` or when? duerst (Martin Dürst)
04:51 AM Bug #12408 (Open): cannot load such file -- -test-/testutil when trying to run tests with test/runner.rb
Nobuyoshi Nakada wrote:
> You have to run tests with the built ruby, not installed one.
> `make runnable` and use `...
duerst (Martin Dürst)
03:00 AM Bug #12408 (Closed): cannot load such file -- -test-/testutil when trying to run tests with test/runner.rb
You have to run tests with the built ruby, not installed one.
`make runnable` and use `./bin/ruby.exe`.
nobu (Nobuyoshi Nakada)
12:49 AM Bug #12408 (Closed): cannot load such file -- -test-/testutil when trying to run tests with test/runner.rb
When I try to run some individual tests with test/runner.rb, I get an error like this:
```
$ ruby test/runner.rb ...
duerst (Martin Dürst)
04:45 AM Feature #10473: Change Date#to_datetime to use local time
`Date#to_time` interprets date as the local time zone.
But `Date#to_datetime` interprets date as UTC.
I think thi...
yui-knk (Kaneko Yuichiro)
03:44 AM Revision 9239916f (git): openssl: remove impossible EOFError raise in OpenSSL::Buffering
* ext/openssl/lib/openssl/buffering.rb (read_nonblock, readpartial):
Remove impossible EOFError raise. by Zac...
rhenium (Kazuki Yamaguchi)
03:05 AM Feature #12374: SingletonClass
Nobuyoshi Nakada wrote:
> If a singleton class is a subclass of `SingletonClass`, no singleton classed inheriting ot...
sawa (Tsuyoshi Sawada)
03:03 AM Feature #12374: SingletonClass
If a singleton class is a subclass of `SingletonClass`, no singleton classed inheriting other classes cannot be made.... nobu (Nobuyoshi Nakada)
02:39 AM Feature #12374: SingletonClass
Nobuyoshi Nakada wrote:
> What is `SingletonClass`?
> A wrapper object?
No, it should be a subclass of `Class`. ...
sawa (Tsuyoshi Sawada)
02:18 AM Revision 4458026d (git): ipaddr: fix typo [ci skip]
* lib/ipaddr.rb: [DOC] fix documentation of IN6MASK to mention
IPv6. [Fix GH-1349]
git-svn-id: svn+ssh://ci.ruby-...
nobu (Nobuyoshi Nakada)
02:12 AM Revision b3901a20 (git): Restore documentation of ARGF
* io.c (Init_IO): [DOC] define dummy ARGF instead of ARGF.class to
re-enable the generation of ARGF documentation. ...
nobu (Nobuyoshi Nakada)
02:07 AM Revision d70a84d5 (git): methods.rdoc: closing tag
* doc/syntax/methods.rdoc (Method Names): add proper closing tag.
[Fix GH-1356]
git-svn-id: svn+ssh://ci.ruby-lang...
nobu (Nobuyoshi Nakada)
12:26 AM Revision 317a3e92 (git): configure.in: missing macro definition
* configure.in (RUBY_CHECK_SETJMP): fix missing macro definition
for the configured result. fix up r55021.
git-sv...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom