Activity
From 05/20/2016 to 05/26/2016
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 try to look at the existing data files or upload new data files into the server - then I get a "connection reset" in the... -
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
> ...
We just saw this same error -- apparently out of nowhere -- on very stable code that utilizes Celluloid while under significant load.
We've never seen this erro... -
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 and instead operate on the actual encoding of the string. Examples:
~~~
"abcdÁ".force_encoding('ASCII').encode('UT... -
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 ISDIGIT is faster.
* symbol.c (is_special_global_name): ditto.
* symbol.c (rb_enc_symname_type): ditto.
git-svn-id: svn+ssh... -
04:13 PM Feature #12375: Net::HTTP.post
- Just a note, I sometimes happen to write Net::HTTPS.open
-
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.
> ...
After contemplation, I think Net::HTTP.post shouldn't accept the hostname, path,
and port parameters.
These parame... - 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
-
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_scan_args_verify): move length mismatch
check outside conditional operators.
Since old clang cannot optimize away stri... -
11:48 AM Bug #12055: `NET::HTTPResponse` is not deflating responses with custom `Content-Range` header
- ?
-
06:59 AM Misc #12424 (Rejected): Inaccurate example in documentation
-
06:54 AM Bug #12422 (Assigned): CSV.Table.== fails to check object type
-
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_pkey_dh.c (ossl_dh_compute_key): Check that the DH
has 'p' (the prime) before calling DH_size(). We can create a DH wit... -
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(). We can create a DH with
no parameter but DH_size() does not check and dereferences NULL.
[ruby-core:75720] [Bug #12... -
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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://ci.ruby-lang.org/ruby/trunk@55173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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
instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:49 AM Bug #9569: SecureRandom should try /dev/urandom first
- Mike Pastore wrote:
> Yui NARUSE wrote:
> ...
I know RbNaCl uses libsodium and it is explained above. -
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 by clang.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:45 AM Revision 37cea814 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 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
-
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+ssh://ci.ruby-lang.org/ruby/trunk@55168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 initialize(num)
@num = num
end
def method_missing(m, *a, &b)
@num.send(m, *a, &b)
end
def coerce(... - 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
-
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
-
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
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
-- Control frame information --------------------------------... -
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 -
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 script will crash ruby (it is attached as opensslcrash.rb)
require('openssl')
p = OpenSSL::PKey::RSA.new
p.public_... -
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
-
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
character is too big. [Bug #12420] [Bug #12423] -
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
character is too big. [Bug #12420] [Bug #12423] -
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-39d4-4d8f-98ff-823fe69b080e -
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 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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 these headers
are local to ext/openssl, so there is no need to enclose with it.
git-svn-id: svn+ssh://ci.ruby-lang.org... -
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 directly in source code,
just as we already do for OPENSSL_NO_* macros.
* ext/openssl/ossl.c: Replace occurrences of HAVE_... -
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://github.com/ruby/ruby/compare/trunk...nobu:bug/12427-integer-integration
This patch does:
> Concern 1 is that this issue seems a common problem with C extensions and hard to debug unless the author is aware of changes of Featu... -
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 versions. But it caused SEGV with ruby 2.4.0-dev trunk 55091.
```C
static VALUE Fixnum_to_msgpack(int argc, VALUE* ar... -
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-39d4-4d8f-98ff-823fe69b080e -
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): move failed
condition to the terminal. [ruby-core:75714] [Bug #12426] -
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 #12426]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:13 AM Bug #9569: SecureRandom should try /dev/urandom first
- Yui NARUSE wrote:
> Mike Pastore wrote:
> ...
What? No, it uses RbNaCl.random_bytes instead of OpenSSL's RAND_bytes. -
05:12 AM Bug #9569: SecureRandom should try /dev/urandom first
- Mike Pastore wrote:
> Yui NARUSE wrote:
> ...
You mean utility methods which are implemented in Random::Formatter on Ruby 2.4?
They are out of scope now, though I may merge the module from Ruby repo. -
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
-
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#configuration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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 compile_length_tree raised error [Bug #12418] -
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 -
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-39d4-4d8f-98ff-823fe69b080e
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.h:3:0,
from win32ole.c:18:
win32ole.c: In function ‘fole_initialize’:
../.././include/ruby/ruby.h:2... -
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@55153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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_bytes.
> ...
You might want to take a look at (shameless self-plug, sorry) https://github.com/mwpastore/securer_randomer... -
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 source code. I don't pretend everything requested in this thread is totally bad. I especially support the motivation to _w... -
07:46 AM Bug #9569: SecureRandom should try /dev/urandom first
- Yui NARUSE wrote:
> Shyouhei Urabe wrote:
> ...
According to getrandom(2) manpage, that 33554431-bytes limitation only applies to 32bit environments. Why not repeatedly call it again and again to fulfill the needs? Given 32bit, repet... -
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 probably won’t add much to the conversation, but getrandom(2) and /dev/random don’t “consume” entropy any more than /dev/ur... -
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, why?
getrandom has some limitations like its max output (33554431), and consumes entropy.
Anyway I'm creating a s... -
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 a segfault because of memory corruption/free issues on 2.3.0p0, 2.2.4p230, and 2.2.3p173. (Note it works on 2.0.0.p598)....
-
08:06 PM Misc #12424 (Rejected): Inaccurate example in documentation
- in https://github.com/ruby/ruby/blob/ffb34cce89c63d43e2ae6a5c3956489fd3c5c4c7/ext/date/date_core.c#L9478
* shakespeare = DateTime.iso8601('1616-04-23', Date::ENGLAND)
* #=> Tue, 23 Apr 1616 00:00:00 +0000
* ... -
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 Ubuntu 14.04. The regular expression fails to close a character class and has an octal zero as the first character in the cha...
-
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_key_initialize().
(ossl_ec_key_s_generate): Added. Create a new EC instance and
generate a random private and publi... -
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#generate_key!. Make the
old name an alias of #generate_key!. This change is for consistency
with other PKey types. ... -
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 doesn't support the `table` method.
This is more or less the same issue as reported and fixed in Bug #7528 (https://... -
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, I expect that all other supported Ruby versions suffer this issue as well as Ruby 2.0, therefore it would be nice to ha...
-
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 in simpler
cases.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 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
-
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.org/ruby/trunk@55148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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
-
01:42 PM Feature #3001: Ruby stdlib: Benchmark::Tms #memberwise drops labels
- Ernest Prabhakar wrote:
> =begin
> ...
any update on this? I think it should not drop labels... -
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 to close a character class and has an octal space as the first character in the character class.
~~~
grajagandev# ca... -
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 ones. Currently they
just truncate the input but this would hide bugs and lead to
unexpected encryption/decryption r... -
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_set(). Macros
prefixed by "M_" are discouraged to be used from outside OpenSSL
library[1].
(ossl_x509ext_get_value)... -
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 length matching,
at the compile time if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55144 b2dd03c8-39d4... -
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 shorter and easier to read.
The only time \u{} notation should be used is when more than four hex digits are needed. -
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.org/ruby/trunk@55143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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 setup with RVM to run Ruby 2.x running Redmine with Mysql
During Redmine bundle install, mysql2 gem is linking against ... -
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-precision=standard and -fp-model precise are set to this now.
* configure.in (cflags): use ruby_cflags. -
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/HowToBackport -
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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
-
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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 everywhere.
Reverted and reapplied at r55110. - 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
-
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
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 several errors – this bug occurs during the process of creating the OnigErrorInfo structure and appears to be an encoding i...
-
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
-
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 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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/openssl/ossl.c (Init_openssl): Avoid reference to unset global
variable. ossl_raise() may be called before dOSSL is set... -
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 dOSSL is set. Since
global variables default to 0 and the default value of dOSSL set in
Init_openssl() is also Qfalse,... -
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/openssl/ossl_engine.c, ext/openssl/ossl_ns_spki.c
ext/openssl/ossl_pkcs12.c, ext/openssl/ossl_pkcs7.c
ext/openssl/ossl_pke... -
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. [Bug #12417][ruby-core:75691] -
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:34:0: warning: "isfinite" redefined
# define isfinite(x) finite(x)
^
In file included from ../.././include/ruby/miss... - 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-98ff-823fe69b080e -
11:05 AM Bug #12415 (Rejected): Dir#pos reports invalid position after Dir#read
-
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() are implementation-defined.
According to http://man7.org/linux/man-pages/man3/telldir.3.html
```
In glibc up to... -
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", "SCORECARD", "test"]
irb(main):003:0> dir = Dir.new(Dir.pwd)
=> #<Dir:/home/dberger/Repositories/berger_spec>
... -
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/ossl_rand.c (ossl_rand_egd, ossl_rand_egd_bytes):
RAND_egd{_bytes,}() return -1 on failure, not 0.
Patch by cremno ... -
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.
Patch by cremno phobia <cremno@mail.ru>
[ruby-core:63795] [Bug #10053]
(ossl_pseudo_bytes): Similar, RAND_pseudo_byt... -
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 extension library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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
-
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 post a feature request with a patch, that has a
hunk to store an array into an rb_id_table.
>> +++ b/iseq.c
>> @@ -128... -
08:08 AM Feature #12416: struct rb_id_table lacks mark function
- shyouhei@ruby-lang.org wrote:
> Bug #12416: struct rb_id_table lacks mark function
> https://bugs.ruby-lang.org/issues/12416
> The struct rb_id_table can hold arbitrary VALUE values.
Can, but currently does not (AFAIK).
> Now... -
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-lang.org>
Date: Mon, 23 May 2016 16:03:04 +0900
Subject: [PATCH 1/1] [Bug] rb_id_table must come with mark function.
... - 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 numeric.c.
But it's unused because it inplicitly checks not defined _WIN32.
I don't know why the code do that.
IMO, the defini... -
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 conversion is not
useless. nil and fixnum cannot be tainted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55128 b2dd03c8... -
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/tcltklib.c (lib_do_one_event_core): no effect.
* ext/tk/tkutil/tkutil.c (tk_eval_cmd, tk_get_eval_string): no
effect ... -
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+ssh://ci.ruby-lang.org/ruby/trunk@55126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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 variable argument
length if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55125 b2dd03c8-39d4-4d8f-98ff-823fe6... -
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 the code
which uses rb_scan_args, not a runtime error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55124 b2dd0... -
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 (GetVpValueWithPrec): consider
non-finite float values not to raise FloatDomainError.
[ruby-core:75682] [Bug #12414] -
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?(n.to_f)
r.include?(n)
~~~
# What I expected
~~~
true
true
~~~
# What happens instead
~~~
true
FloatDomai... -
03:30 AM Revision 4a574f7a (git): bigdecimal.c: fix FloatDomainError
- * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): consider
non-finite float values not to raise FloatDomainError.
[ruby-core:75682] [Bug #12414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55123 b2dd03c8-39d4-4d8f-98ff-823fe... -
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-823fe69b080e -
12:33 AM Bug #12413: Dir#close does not raise IOError on already closed handle on OS X
- Thanks for the doc update!
-
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.
05/22/2016
-
11:21 PM Bug #12413: Dir#close does not raise IOError on already closed handle on OS X
- djberg96@gmail.com wrote:
> Bug #12413: Dir#close does not raise IOError on already closed handle on OS X
> https://bugs.ruby-lang.org/issues/12413
> * ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
> ------... -
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 #12413] -
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."
dir = Dir.new(Dir.pwd)
dir.close # nil
Here, I would expect another call to dir to raise an IOError, but i... - 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
- 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-823fe69b080e -
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, keep in mind your test is looking at 100% hit rate on global method cache, if match? is evicted due to global method cache ... -
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 compatible
* introducing a new global variable is a terrible idea for any reason
* it would be slower by using respond_to... -
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 object which didn't respond to the method breaking the safe navigation chain.
Although we need to think about concurrency ... -
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 behaviour.
Is it the fact that for the other languages it only applies to nil?
-
08:16 AM Bug #12412: Extend safe navigation operator
- It's a rejected behavior in the former discussions.
-
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.
Maybe we can add that constraint.
If `nil` return `nil` making it:
~~~ ruby
nil&.nil?
# => nil
nil&.class
#... -
06:20 AM Bug #12412: Extend safe navigation operator
- Matthew Kerwin wrote:
> Daniel Ferreira wrote:
> ...
You're right. That is a challenge. Is it a blocking issue or can we try to overcome that problem?
>
> ...
It is not quite the same but what is the issue?
-
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 than just nil.
Making it shorthand for `respond_to?` isn't an extension, it changes the operator. What would this do ... -
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 -
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 to still use this kind of code in some scenarios, specially when I work with objects with dynamic interfaces or arguments... - 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
- 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
-
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 -
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 -
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, econv_args):
remove volatile, and add GC guards in callers.
[ruby-core:75664] [Bug #12411] -
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 for dbm.c and a lot of them in some tkl files.
```
compiling transcode.c
In file included from ./include/ruby.h:33:... -
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-core:75664] [Bug #12411]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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.
* test/lib/-test-/integer.rb: extract implementation details from
test/unit/assertions.rb. [Bug #12408] -
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 details from
test/unit/assertions.rb. [Bug #12408]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55114 b2dd03c8-39d4-4... -
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&.class # => FalseClass
false&.inexisting # => nil
~~~
For me the situation:
~~~ ruby
false&.class
~~~
i... -
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 believe that with my proposal the aim of this feature request can also be achieved. -
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_case_map as case_map primitive
* enc/ascii.c, big5.c, cp949.c, emacs_mule.c, euc_jp/kr/tw.c, gb18030.c,
gbk.c, iso_88... -
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
-
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 -
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
optimized. Visual C++ 14 or later can compile it but make it
conservative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru... -
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
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): ditto.
* test/ruby/test_numeric.rb (test_coerce): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55108 b2... -
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 Fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 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
-
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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 nice. But, it has introduced inconsistency with regards to enforcement:
> Process.uid = 'bogus' # ArgumentError: c... -
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 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/trunk@55103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:40 PM Feature #12403: Optimise Regexp#match?
- After r55102, rb_scan_args is almost statically resolved.
```
000000000051eae0 <rb_reg_match_m_p>:
* $& #=> nil
*/
static VALUE
rb_reg_match_m_p(int argc, VALUE *argv, VALUE re)
{
51eae0: 4... -
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-functions/
rb_scan_args is now expected to be statically resolved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5... -
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
-
10:08 AM Bug #11101: Forking is killing my memory when running GC
- hi@olivierlacan.com wrote:
> Has anyone followed-up on this issue ever? I ran into this yesterday
> after deploying 2.2 to an app server and noticing twice slower
> response times than on 2.1.
Did you try the nakayoshi_fork gem as... -
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 noticing twice slower response times than on 2.1.
-
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://github.com/discourse/mini_racer
compiles fine under 2.3, fails under 2.4 with:
```
cc1plus: sorry, unimplemented: -fexcess-precisi... -
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.
I have to apology that I forgot about stabby lambdas here. They behave like lamndas too.
Anyways this doesn't ch... -
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
* ext/openssl/ossl_ssl.c (ossl_ssl_stop): Don't free the SSL struct
here. Since some methods such as SSLSocket#connect rel... -
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#connect releases GVL,
there is a chance of use after free if we free the SSL from another
thread. SSLSocket#stop was doc... -
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"
require "pp"
der = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDrEee0Ri4Juz+QfiWYui/E9UGSXau/2P8LjnTD8V4Unn+2FAZVGE3kL2... -
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. Patch by Andreas Tiefenthaler <at@an-ti.eu> (@pxlpnk).
[GH ruby/openssl#32]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55099 b2dd03c8-39d4-4d8f-... -
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_pkey_ec.c: rename PKey::EC#private_key? and
#public_key? to #private? and #public? for consistency with other
PKey type... -
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 consistency with other
PKey types. Old names remain as alias. [ruby-core:45541] [Bug #6567]
* test/openssl/test_pkey_ec.rb (t... -
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?
-
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.
> ...
Thanks, this works. But it used to work without `make runnable` and without `./bin/ruby` until a few days ago. Why does it suddenly have to b... -
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`. -
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 test/ruby/test_ifunless.rb
/usr/local/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load s... -
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 this incompatibility is a king of bug.
We have two ways to solve this incompatibility, to make both methods to interpret d... -
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. Patch by Zach Anker
<zanker@squareup.com>. [GH ruby/openssl#23]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55097 b2dd03c8... -
03:05 AM Feature #12374: SingletonClass
- Nobuyoshi Nakada wrote:
> If a singleton class is a subclass of `SingletonClass`, no singleton classed inheriting other classes cannot be made.
> ...
Sorry, my previous example was inappropriate. I fixed it. I want a singleton class to... -
03:03 AM Feature #12374: SingletonClass
- If a singleton class is a subclass of `SingletonClass`, no singleton classed inheriting other classes cannot be made.
I think it's a bad idea. -
02:39 AM Feature #12374: SingletonClass
- Nobuyoshi Nakada wrote:
> What is `SingletonClass`?
> ...
No, it should be a subclass of `Class`. It would perhaps need C-level modification. For any singleton class, I want `SingletonClass` to be its class.
Present:
~~~ruby
"".... -
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-lang.org/ruby/trunk@55096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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. [Fix GH-1358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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.org/ruby/trunk@55094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
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-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05/20/2016
-
05:36 PM Revision ac521b96 (git): merge revision(s) 55078:
- openssl: don't test default session lifetime value
OpenSSL's default session timeout for TLS v1.0 method is not 300 seconds
but 7200. The TLS v1.0 specification[1] mentions about it as just "An
upper limit of 24 ... -
04:43 PM Feature #12350: Introduce Array#find! that raises an error if element not found
- Documentation can be improved to use example of callable object don't you think?
I'm happy to create a PR with it. -
04:24 PM Feature #12360: More useful return values from bang methods
- The principle of least surprise puts my mind expecting as a result the updated array.
A method to get both sides of the equation would make sense for me.
Something like:
~~~ ruby
# Array#group
[1,2,3,4].group { |i| (-1)**i > 0 }... -
04:00 PM Feature #12374 (Feedback): SingletonClass
- What is `SingletonClass`?
A wrapper object?
```ruby
def (SingletonClass = Object.new).new(*args)
Class.new(*args) {include Singleton}
end
``` -
03:45 PM Feature #12374: SingletonClass
- Typo corrected
-
03:36 PM Bug #12398 (Closed): process.c compile broken for noMMU architectures on 2.3.x
- Applied in changeset r55091.
----------
fix build on no-fork-spawnv platforms
* process.c (rb_execarg_commandline): build command line string
from argument vector in rb_execarg.
[ruby-core:75611] [Bug #12398] -
12:28 AM Bug #12398: process.c compile broken for noMMU architectures on 2.3.x
- BTW, what do you mean by "MMU", "memory management unit"?
-
03:36 PM Revision aa107497 (git): fix build on no-fork-spawnv platforms
- * process.c (rb_execarg_commandline): build command line string
from argument vector in rb_execarg.
[ruby-core:75611] [Bug #12398]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:30 PM Revision cbde995b (git): io.c: conditionally used functions
- * io.c (pipe_atexit): only used on Windows
* io.c (rb_execarg_fixup_v): wrapper only used fork or spawnv is
available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:29 PM Revision 1246e483 (git): ossl.c: suppress warnings
- * ext/openssl/ossl.c (ossl_pem_passwd_cb): check integer
precision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:05 PM Revision ca8f4683 (git): * 2016-05-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:05 PM Revision f52ab6e4 (git): openssl: improve handling of password for encrypted PEM
- * ext/openssl/ossl.c (ossl_pem_passwd_value): Added. Convert the
argument to String with StringValue() and validate the length is in
4..PEM_BUFSIZE. PEM_BUFSIZE is a macro defined in OpenSSL headers.
(ossl_pem_passwd_cb): When read... -
03:04 PM Bug #12397: Since r54986, syntax error with Oracle Solaris Studio 12.x on Solaris 10
- r55084 にて、symbol.h 内の __builtin_constant_p についても、同様に措置しました。
(元々 r54986 の修正から漏れていた?)
-
12:29 PM Bug #12397 (Closed): Since r54986, syntax error with Oracle Solaris Studio 12.x on Solaris 10
- Applied in changeset r55082.
----------
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.... -
02:55 PM Bug #12406 (Closed): Since r55002, Bus Error on 64-bit SPARC on Solaris 10
- Applied in changeset r55086.
----------
capa should be even number on 64-bit SPARC for 8-byte word alignment
* id_table.c (list_id_table_init): When unaligned word access is
prohibited and sizeof(VALUE) is 8 (64-bit machines),
capa... -
01:29 PM Bug #12406 (Closed): Since r55002, Bus Error on 64-bit SPARC on Solaris 10
- r55002 以降、SPARC Solaris 10 の 64-bit コンパイル時に、以下の Bus Error が発生します。
コンパイラは、gcc, Oracle Solaris Studio 12.3, 12.4 いずれでも発生します。
(r55075の例)
~~~
gcc -g -O0 -m64 -L. -L/usr/local/64/lib -R/usr/local/64/lib -fstack-protector -f
stack-pro... -
02:55 PM Revision 02cafdf4 (git): capa should be even number on 64-bit SPARC for 8-byte word alignment
- * id_table.c (list_id_table_init): When unaligned word access is
prohibited and sizeof(VALUE) is 8 (64-bit machines),
capa should always be even number for 8-byte word alignment
of the values of a table. This code assumes that size... -
02:30 PM Bug #12407 (Rejected): 2 failures of TestMkmf::TestConvertible
- jessie の clang でビルドすると `TestMkmf::TestConvertible#test_typeof_builtin` と `TestMkmf::TestConvertible#test_typeof_typedef` で failure になります。
```
$ dpkg -l clang | grep ^ii
ii clang 1:3.5-25 amd64 C, C++ and Objecti... -
02:24 PM Revision a716a247 (git): thread_pthread.c: no fork, no gvl_atfork
- * thread_pthread.c (gvl_atfork): used in rb_thread_atfork_internal
only if HAVE_WORKING_FORK is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 PM Revision 8a775968 (git): Use HAVE_BUILTIN___BUILTIN_CONSTANT_P
- * symbol.h (rb_id2sym): Use HAVE_BUILTIN___BUILTIN_CONSTANT_P
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:21 PM Revision ffb34cce (git): fix typos [ci skip]
- * ext/date/date_core.c: [DOC] fix typos.
[fix GH-1360] patched by @soundasleep
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:47 PM Feature #12403: Optimise Regexp#match?
- https://github.com/ruby/ruby/compare/trunk...nobu:feature/12403-optimize-Regexp%23match_p
-----------------------------------------------------------
benchmark results:
Execution time (sec)
name |normal |op... -
12:43 AM Feature #12403 (Open): Optimise Regexp#match?
- At the moment `#match?` is dynamically dispatched and args are walked.
Instead
- Add 2 insns instructions for #match? with 1 param and #match? with 2 params
- Amend parser to route #match?("s") and #match?("s", 1) to insns versio... -
12:29 PM Revision 2b97ab88 (git): Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
- * include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is... -
12:17 PM Revision 27c13f82 (git): win32ole.c: share the content
- * ext/win32ole/win32ole.c (fole_missing): make substring or dup to
share the content if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:47 AM Revision 2eb1ec25 (git): win32ole.c: remove dead code
- * ext/win32ole/win32ole.c (fole_missing): remove dead code
meaningless since r51913. RSTRING_LEN does not exceed LONG_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:48 AM Revision b7733bf6 (git): exclude non-VALUE in memo from GC
- * internal.h (NEW_PARTIAL_MEMO_FOR): shrink buffer array not to
mark non-VALUE fields. fix check_rvalue_consistency abort with
RGENGC_CHECK_MODE=2.
* internal.h (NEW_CMP_OPT_MEMO): exclude struct cmp_opt_data from
the valid array ... -
10:11 AM Feature #12399: Restricted, safe version of `Kernel#eval`
- It should be done as a gem.
-
02:25 AM Feature #12399: Restricted, safe version of `Kernel#eval`
- I doubt if such thing could be more useful than JSON or YAML... Both are more widely adopted to non-ruby CLI users like system admins.
-
10:01 AM Feature #9999 (Feedback): Type Annotations (Static Type Checking)
- As matz says Ruby itself doesn't have a plan to include type annotations as its language syntax.
Therefore people who want to add type annotations must design them as outside of syntax, for example rdoc, comment, or something.
(I per... -
02:19 AM Feature #9999: Type Annotations (Static Type Checking)
- Yukihiro Matsumoto wrote:
> We are not going to add any kind of type annotation to Ruby.
> ...
There was a GSoC proposal accepted to add gradual typing to MRI, as written a while ago in the mailing list. It seems relevant to mention he... -
06:19 AM Bug #12404 (Feedback): Segmentation fault in ruby 2.3.0p0
- Maybe related to [Bug #11880]?
Try 2.3.1. -
02:54 AM Bug #12404 (Closed): Segmentation fault in ruby 2.3.0p0
- Content of genexcel.rb (Can run in Ruby 2.2 x64)
```ruby
#!/usr/bin/env ruby
# encoding: utf-8
require 'win32ole'
class Member
def full_path xls_name
File.expand_path(xls_name.encode('gb18030')).encode('utf-8').gsub('/... -
06:13 AM Bug #12405 (Closed): Queue doesn't work inside of trap
- when adding things to the queue inside that trap blocking pop never unblocks
```
q = Queue.new
Signal.trap 'INT' do
puts "got INT"
q << 'something'
end
Thread.new {
loop {
sleep 1
Process.kill :INT, $$
}
}... -
06:06 AM Bug #4388: open-uriで環境変数http_proxyを使うときに認証付きのProxyが使えません
- 実験してみたのですが、まずrubyの./configureの段階で、tool/downloader.rbがhttps接続を使うので、
open_httpのところのhttpsをはじく処理をコメントアウトしないと動きませんでした。
def OpenURI.open_http(buf, target, proxy, options) # :nodoc:
if proxy
proxy_uri, proxy_user, proxy_pass =... -
04:36 AM Revision c06a9908 (git): openssl: don't test default session lifetime value
- OpenSSL's default session timeout for TLS v1.0 method is not 300 seconds
but 7200. The TLS v1.0 specification[1] mentions about it as just "An
upper limit of 24 hours is suggested for session ID lifetimes,". And
according to OpenSSL 1.0.... -
04:13 AM Bug #12395 (Rejected): Class descendant_types ruby2.3.0, ruby 2.3.1
-
03:59 AM Bug #12395: Class descendant_types ruby2.3.0, ruby 2.3.1
- Please close.
-
03:59 AM Bug #12395: Class descendant_types ruby2.3.0, ruby 2.3.1
- Correct. Sorry about that.
-
02:38 AM Feature #11735: Porting String#squish and String#squish! from Ruby on Rails' Active Support
- Adam Doppelt wrote:
> Getting input from a user? squish
I guess you have never had a user from CJKV cultures.
> ...
This is a huge NO. It destroys JSON.
> Pulling data from a web crawl? squish
Also NO. It destroys <pre&... -
12:23 AM Feature #12306: Implement String #blank? #present? and improve #strip and family to handle unicode
- The instruction doesn't seem worth specializing, at least.