Project

General

Profile

Activity

From 11/19/2014 to 11/25/2014

11/25/2014

11:41 PM Bug #10543 (Closed): ruby -c and ripper inconsistency: /(?<n>a(b|\g<n>))/
以下のように、/(?<n>a(b|\g<n>))/ というだけのソースは
ruby -c では問題無しとなりますが、
Ripper.sexp では構文木でなく nil が返ってきてしまいます。
```
% cat z.rb...
akr (Akira Tanaka)
11:16 PM Misc #10541: Remove shorthand string interpolation syntax
This syntax is very confusing and while not common could possibly lead to confusing bugs. That blog post referenced a... schneems (Richard Schneeman)
09:28 PM Misc #10541: Remove shorthand string interpolation syntax
Eric, I think it is dangerous syntax because (to take the example from the link above) changing "foo-#@name-1" to "fo... danielmorrison (Daniel Morrison)
08:12 PM Misc #10541: Remove shorthand string interpolation syntax
I agree, I think this syntax exception is confusing, harder to read and most Ruby editors will insert {} after # so i... Eregon (Benoit Daloze)
06:48 PM Misc #10541: Remove shorthand string interpolation syntax
I use it frequently. It saves me keystrokes and screen space.
I think it is more readable and less noisy this way,...
normalperson (Eric Wong)
04:15 PM Misc #10541 (Assigned): Remove shorthand string interpolation syntax
I would like to see the shorthand string interpolation syntax, "foo#@bar" deprecated and then removed in 3.0.
My r...
danielmorrison (Daniel Morrison)
10:15 PM Bug #10542 (Closed): out-of-place build from repository builds enc/trans/*.c in the source directory and the build directory
repository から checkout した ruby を out-of-place で build すると、
enc/trans/big5.c などいくつかのファイルが
source directory と build d...
akr (Akira Tanaka)
12:02 PM Bug #10537: Repeated creation and garbage collection of WeakRef instances against a single object leaks memory
I can't reproduce the error, too.
What about this patch?
~~~diff
diff --git a/gc.c b/gc.c
index 9c0dbef..f4c4...
nobu (Nobuyoshi Nakada)
08:19 AM Bug #8543: new rb_iseq_load crash
Seems nice! Thank you!
(maybe we need fix rdoc)
ko1 (Koichi Sasada)
03:09 AM Bug #8543: new rb_iseq_load crash
Eric Wong wrote:
> Sorry, the inline patch was an extremely hacky work-in-progress,
> but I think rb_iseq_load_fix...
spatulasnout (B Kelly)
02:08 AM Bug #8543: new rb_iseq_load crash
Sorry, the inline patch was an extremely hacky work-in-progress,
but I think [email protected] should've been...
normalperson (Eric Wong)
07:58 AM Bug #10540: Yielded fibers do not execute ensure blocks
This issue is a known bug.
[Bug #595]: Fiber ignores ensure clause
(3 digits!)
Rubinius supports it.
----
...
ko1 (Koichi Sasada)
07:09 AM Bug #10533 (Closed): HTTP reconnection with SNI does not send correct hostname
Applied in changeset r48563.
----------
* lib/net/http.rb: Do not attempt SSL session resumption when the
session...
drbrain (Eric Hodel)
06:55 AM Bug #10533: HTTP reconnection with SNI does not send correct hostname
Via #ruby-core IRC:
~~~
22:53 nurse: ok > 10533
~~~
So I will commit it.
drbrain (Eric Hodel)
01:08 AM Bug #10539 (Rejected): Wrong pattern matching when string interpolation inside regexp is used
You need parentheses. nobu (Nobuyoshi Nakada)
01:03 AM Bug #10475: Array#flatten should not accept a nil argument
I agree that this is a documentation issue.
But afraid that the negative value is worth to mention.
nobu (Nobuyoshi Nakada)

11/24/2014

11:13 PM Bug #8543: new rb_iseq_load crash
Howdy,
Eric Wong wrote:
> That was only one of the breakages :)
> Things have bitrotted a lot over the years.
...
spatulasnout (B Kelly)
10:18 PM Bug #10537: Repeated creation and garbage collection of WeakRef instances against a single object leaks memory
Thanks for trying. I can not reproduce your broken object issue
with my patch on Linux (x86-64 and i686). "make c...
normalperson (Eric Wong)
09:04 PM Bug #10537: Repeated creation and garbage collection of WeakRef instances against a single object leaks memory
Getting this:
~~~
irb(main):008:0> a = Object.new
=> #<Object:0x007fe1b983a278>
irb(main):009:0> WeakRef.new a
...
javawizard (Alex Boyd)
09:08 AM Bug #10537: Repeated creation and garbage collection of WeakRef instances against a single object leaks memory
Thanks, the following patch should fix it. Your test runs much in less
than 20s and uses 10M on my older x86-64 mac...
normalperson (Eric Wong)
07:25 AM Bug #10537: Repeated creation and garbage collection of WeakRef instances against a single object leaks memory
Data point: tacking a `printf` onto the end of `define_final0` in `gc.c` reveals that a new finalizer is being added ... javawizard (Alex Boyd)
06:48 AM Bug #10537 (Closed): Repeated creation and garbage collection of WeakRef instances against a single object leaks memory
~~~ruby
require 'weakref'
a = Object.new
1_000_000.times do
WeakRef.new a
end
GC.start
~~~
The above resu...
javawizard (Alex Boyd)
09:08 PM Bug #10540: Yielded fibers do not execute ensure blocks
This seems unfortunate. I'm not sure if there's a good way to do
this automatically with current APIs because `Fibe...
normalperson (Eric Wong)
08:11 PM Bug #10540 (Closed): Yielded fibers do not execute ensure blocks
When a thread has paused fibers, if an exception occurs anywhere in the thread, `ensure` blocks in the paused fibers ... wycats (Yehuda Katz)
04:07 PM Bug #10539: Wrong pattern matching when string interpolation inside regexp is used
I think I found my error. Sorry
Please Close it.
Best regards,
Tammo
tammo (tammo tjarks)
04:02 PM Bug #10539 (Rejected): Wrong pattern matching when string interpolation inside regexp is used
Hello,
maybe it is my fault, but I stumble over the fact, that I get a match when I should not (have added a short e...
tammo (tammo tjarks)
01:54 PM Bug #10475: Array#flatten should not accept a nil argument
Jörg W Mittag wrote:
> IMO, the correct behavior would be to use `to_int`.
It *is* using `to_int`, except for `ni...
marcandre (Marc-Andre Lafortune)
10:52 AM Bug #10476: String.strip remove characters different than pure whitespace
It looks perfect. yld (Yves Le Douaron)
10:21 AM Feature #10489: Add inherit method for clearer and multiple inheritance
Bráulio Bhavamitra wrote:
> A new and more intuitive syntax:
>
> class B
> end
> class A
> i...
xiewenwei (xie wenwei)
09:32 AM Bug #10538: Error when trying to update gem rake
This error seems to happen whenever an update suggests to replace a ruby binary... no matter the answer (y/n). SAnDAnGE (Emanuel D)
09:22 AM Bug #10538 (Closed): Error when trying to update gem rake
when running "gem update rake" I get the following:
c:\>gem update rake
Updating installed gems
Updating rake
r...
SAnDAnGE (Emanuel D)

11/23/2014

09:13 AM Bug #10475: Array#flatten should not accept a nil argument
Dov Murik wrote:
> Currently `Array#flatten` accepts an explicit `nil` argument which has the same meaning as `-1` (...
jwmittag (Jörg W Mittag)
05:58 AM Bug #8543: new rb_iseq_load crash
Eric Wong <[email protected]> wrote:
> The following patch might be ready to commit to trunk:
>
> http://...
normalperson (Eric Wong)
01:02 AM Bug #10536 (Rejected): RubyDoc example for Enumerable#map incorrect
nobu (Nobuyoshi Nakada)

11/22/2014

10:23 PM Bug #10536: RubyDoc example for Enumerable#map incorrect
That's intentional, both methods are aliases (note that the documentation for #collect and #map is the same). stomar (Marcus Stollsteimer)
05:03 PM Bug #10536: RubyDoc example for Enumerable#map incorrect
```collect``` is shown in the example section instead of ```map```
This is fully the case for the 2.0 doc (http://...
eebbesen (Eric Ebbesen)
05:00 PM Bug #10536 (Rejected): RubyDoc example for Enumerable#map incorrect
`collect` is shown in the example section instead of `map`
This is fully the case for the 2.0 doc (http://ruby-doc...
eebbesen (Eric Ebbesen)
09:58 PM Bug #10535: Potential uninitialized reference pipe_open() in io.c
[email protected] wrote:
> IF !defined(HAVE_WORKING_FORK) and !defined(HAVE_SPAWNV), THEN argc
> and argv are de...
normalperson (Eric Wong)
02:46 PM Bug #10535 (Closed): Potential uninitialized reference pipe_open() in io.c
(From git commit f5063b7ea7e774519602f7a112d9acf536a1da33 of 22 November 2014.)
In **io.c** in the following funct...
asm (Andy Maloney)
09:27 AM Bug #10046: OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
You would need to have OpenSSL built with this patch:
http://pkgs.fedoraproject.org/cgit/openssl.git/tree/openssl-...
vo.x (Vit Ondruch)
02:11 AM Bug #10046 (Assigned): OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
I can't reproduce these test failures, but this patch looks ok to me zzak (zzak _)
08:59 AM Feature #10481: Add "if" and "unless" clauses to rescue statements
Awesome, thanks! I was having trouble building trunk on OS X, so (I believe) I based it off of 2.1.5. Quite a bit mor... javawizard (Alex Boyd)
08:48 AM Feature #10481 (Assigned): Add "if" and "unless" clauses to rescue statements
Your patch seems based on pretty old revision.
I made updated version: https://github.com/nobu/ruby/compare/Feature%...
nobu (Nobuyoshi Nakada)
08:28 AM Bug #8543: new rb_iseq_load crash
[email protected] wrote:
> But ultimately, the result of the manual bisect was:
>
> 66d247bcb50a29769ff940100223544c...
normalperson (Eric Wong)
01:08 AM Bug #8543: new rb_iseq_load crash
Eric Wong <[email protected]> wrote:
> Work-in-progress fix here, can you please test?
> http://80x24.org/spew...
normalperson (Eric Wong)
12:08 AM Bug #8543: new rb_iseq_load crash
Work-in-progress fix here, can you please test?
http://80x24.org/spew/m/[email protected]
Thanks.
normalperson (Eric Wong)
05:22 AM Bug #10533: HTTP reconnection with SNI does not send correct hostname
Ultimately I think this may be an OpenSSL bug.
Looking at the ClientHello message for the second connection (which...
drbrain (Eric Hodel)
04:49 AM Bug #10467: net/http reconnects without SNI
This looks to be a duplicate now of #10533, which has a patch dissolve (Ben Roberts)

11/21/2014

11:02 PM Bug #10533 (Assigned): HTTP reconnection with SNI does not send correct hostname
drbrain (Eric Hodel)
11:01 PM Bug #10533: HTTP reconnection with SNI does not send correct hostname
If session resumption is requested with an expired SSL session on an SNI server then the handshake goes wrong and the... drbrain (Eric Hodel)
03:41 AM Bug #10533 (Closed): HTTP reconnection with SNI does not send correct hostname
When reconnecting after connection timeout on an SNI connection the server name is not sent during reconnect which re... drbrain (Eric Hodel)
06:49 PM Bug #10526: [DOC] Revise documentation in object.c
Adding a patch based on the latest trunk, replacing the originally submitted one. stomar (Marcus Stollsteimer)
05:51 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Nobuyoshi Nakada wrote:
> With your patch, the condition is checked *after* matching against the exception classes, ...
javawizard (Alex Boyd)
05:23 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Intersting.
With your patch, the condition is checked *after* matching against the exception classes, not a part o...
nobu (Nobuyoshi Nakada)
05:34 PM Feature #10444: [PATCH 3/3] Vector#[] returns new vector if argument is range.
@Marc-Andre Lafortune
OK, it does make sense. Thank you for your time.
gogotanaka (Kazuki Tanaka)
02:19 PM Feature #10444 (Rejected): [PATCH 3/3] Vector#[] returns new vector if argument is range.
gogo tanaka wrote:
> But I think there is no reason `Vector[1,2,3][0..1]` returns not `Vector` but `Array`.
I agr...
marcandre (Marc-Andre Lafortune)
03:40 PM Feature #10523 (Rejected): Suggestion for new Array.delete_to method
I prefer Array#partition for its immutability.
Matz.
matz (Yukihiro Matsumoto)
03:37 PM Bug #10046: OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
Sorry, it fixes just one of the two issues :/ vo.x (Vit Ondruch)
03:16 PM Bug #10046: OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
This patch is fixing the issue for me. vo.x (Vit Ondruch)
02:32 PM Bug #10534: Enumerator methods other than "next" do not always respect "peek"
`next` and `peek` indeed live in their little world described as "external enumeration" in the documentation.
The ...
marcandre (Marc-Andre Lafortune)
11:38 AM Bug #10534 (Rejected): Enumerator methods other than "next" do not always respect "peek"
It seems like using "peek" and then calling other methods on the Enumerator consumes the value that was peeked at. Wh... jnicklas (Jonas Nicklas)

11/20/2014

08:28 PM Feature #10532: [PATCH] accept_nonblock supports "exception: false"
[email protected] wrote:
> I also intend to support this in the "openssl" extension as well as

accept_nonblo...
normalperson (Eric Wong)
07:48 PM Feature #10532 (Closed): [PATCH] accept_nonblock supports "exception: false"
This is analogous to functionality found in IO#read_nonblock and
IO#wait_nonblock. Raising exceptions for common fa...
normalperson (Eric Wong)
06:54 PM Feature #10444: [PATCH 3/3] Vector#[] returns new vector if argument is range.
@Marc-Andre Lafortune
Thank for reply.
OK, I got your point. Actually I'm not sure anyone want to do this.
B...
gogotanaka (Kazuki Tanaka)
06:52 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Robert Klemme wrote:
> Do you have an idea of the runtime performance impact? I mean, a type check (as done today) ...
javawizard (Alex Boyd)
03:09 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Alex Boyd wrote:
> I'd like to propose a syntax change: allow boolean "if" and "unless" clauses to follow a rescue s...
rklemme (Robert Klemme)
12:30 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
A second patch, to fix an uninitialized variable I noticed just after I'd uploaded the first. javawizard (Alex Boyd)
12:23 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
A patch.
I've only tested the Ripper bits cursorily, so I could very well have missed something - feedback in that...
javawizard (Alex Boyd)
06:47 PM Feature #10445: [PATCH 3/3] Extend Matrix#[]
@Marc-Andre Lafortune
Thank you for reply.

OK, the answer is when we expect `Matrix` to behave something like ...
gogotanaka (Kazuki Tanaka)
05:20 PM Feature #10528: Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
I forgot to mention other usual cases when lines should be implicitly continued: after a dot, after an operator symbo... alexeymuranov (Alexey Muranov)
11:14 AM Feature #10528 (Open): Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
Since the seemingly reasonable proposal #8956 has been rejected because it "diverged so far from the original", i wil... alexeymuranov (Alexey Muranov)
11:15 AM Feature #8956: Allow hash members delimited by \n inside of {}
I have proposed another version: #10528. alexeymuranov (Alexey Muranov)
08:19 AM Bug #10300: Encoding error in conversion from UTF-16LE to UTF-8 to CP850
Nobuyoshi Nakada wrote:
> Or from `FormatMessage`?
>
> Can you try with this patch?
>
> ~~~patch
> index 74cc...
ggrossetie (Guillaume GROSSETIE)

11/19/2014

09:31 PM Bug #10526 (Closed): [DOC] Revise documentation in object.c
* #inspect: be more specific about generated string, remove obsolete example
* #nil?: use code examples instead of d...
stomar (Marcus Stollsteimer)
09:28 PM Bug #10460: Segfault instead of stack level too deep
[email protected] wrote:
> Mutant will often generate "broken" code, that's how it works, so
> endless recursi...
normalperson (Eric Wong)
09:13 PM Bug #10460: Segfault instead of stack level too deep
That makes sense, I agree with your point. Having a nicer error message on broken code isn't a big deal.
There is ...
plexus (Arne Brasseur)
07:58 AM Bug #10460: Segfault instead of stack level too deep
[email protected] wrote:
> Was it rude to set this as "Priority: High"? A random segfault seems
> important bu...
normalperson (Eric Wong)
06:11 PM Bug #10437 (Closed): ruby -c and ripper inconsistency: /*/
Applied in changeset r48507.
----------
ChangeLog: add issue ref
* ChangeLog: r48504 fixed [ruby-dev:48714] [Bug #1...
nobu (Nobuyoshi Nakada)
05:57 PM Feature #10444 (Feedback): [PATCH 3/3] Vector#[] returns new vector if argument is range.
I feel the idea is similar to #10445 (although not as dubious)
I'm curious as to when one would want to do this an...
marcandre (Marc-Andre Lafortune)
05:54 PM Feature #10445 (Feedback): [PATCH 3/3] Extend Matrix#[]
I understand the idea, but I'm not convinced.
Currently, [] is a simple access to the elements of a matrix. This p...
marcandre (Marc-Andre Lafortune)
05:48 PM Feature #10451 (Closed): [PATCH 3/3] Implement Vector.independent? and Vector#independent?
Great patch, thanks! marcandre (Marc-Andre Lafortune)
05:34 PM Feature #10442 (Closed): Helper methods to Vector class
Thanks for the revised patch!
I've committed it almost as is (I changed the constant in the doc for Math::PI / 2) ...
marcandre (Marc-Andre Lafortune)
02:42 PM Bug #10525 (Rejected): SegFault with mysql2 gem
You use the extension for 2.0.0 from 2.1.
You have to install mysql2 for 2.1
nobu (Nobuyoshi Nakada)
04:02 AM Bug #10525 (Rejected): SegFault with mysql2 gem
I received this segfault when executing the command
`bundle exec rake db:migrate`
tadlambjr (Tad Lamb)
01:52 AM Bug #10524 (Closed): %I segfaults with --dump=parsetree
[ruby-core: 66343]では最適化のバグとして報告されていますが、
`--dump=parsetree` オプションを使うとSEGVするので、
r48484をバックポートしてください。
nobu (Nobuyoshi Nakada)
01:20 AM Bug #10509: [PATCH] vm_eval.c (rb_yield_splat): add missing GC guard
Backported r48417 into `ruby_2_0_0` at r48491. usa (Usaku NAKAMURA)
 

Also available in: Atom