[#85349] [Ruby trunk Bug#14334] Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85) — pragtob@...
Issue #14334 has been updated by PragTob (Tobias Pfeiffer).
3 messages
2018/02/02
[#85358] Re: [ruby-cvs:69220] nobu:r62039 (trunk): compile.c: unnecessary freezing — Eric Wong <normalperson@...>
nobu@ruby-lang.org wrote:
5 messages
2018/02/03
[#85612] Why require autoconf 2.67+ — leam hall <leamhall@...>
Please pardon the intrusion; I am new to Ruby and like to pull the
6 messages
2018/02/17
[#85634] [Ruby trunk Bug#14494] [PATCH] tool/m4/ruby_replace_type.m4 use AC_CHECK_TYPES for HAVE_* macros — normalperson@...
Issue #14494 has been reported by normalperson (Eric Wong).
3 messages
2018/02/19
[#85674] [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — matz@...
Issue #13618 has been updated by matz (Yukihiro Matsumoto).
5 messages
2018/02/20
[#85686] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
— Eric Wong <normalperson@...>
2018/02/20
matz@ruby-lang.org wrote:
[#85704] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid
— Koichi Sasada <ko1@...>
2018/02/21
On 2018/02/20 18:06, Eric Wong wrote:
[ruby-core:85758] [Ruby trunk Bug#14459] Unexpected compile error in 2.5.0
From:
naruse@...
Date:
2018-02-22 21:26:10 UTC
List:
ruby-core #85758
Issue #14459 has been updated by naruse (Yui NARUSE).
Backport changed from 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE
ruby_2_5 r62527 merged revision(s) 62333.
----------------------------------------
Bug #14459: Unexpected compile error in 2.5.0
https://bugs.ruby-lang.org/issues/14459#change-70600
* Author: jnchito (Junichi Ito)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE
----------------------------------------
I created this script as test.rb.
~~~ ruby
h = { us: 'dollar', india: 'rupee' }
# 変数hのキーと値を**で展開させる
{ japan: 'yen', **h } #=> {:japan=>"yen", :us=>"dollar", :india=>"rupee"}
# **を付けない場合は構文エラーになる
# { japan: 'yen', h }
#=> SyntaxError: syntax error, unexpected '}', expecting =>
# { japan: 'yen', h }
# ^
# ----------------------------------------
h = { us: 'dollar', india: 'rupee' }
{ japan: 'yen' }.merge(h) #=> {:japan=>"yen", :us=>"dollar", :india=>"rupee"}
~~~
In Ruby 2.4.3 it runs without errors, but in Ruby 2.5.0 it fails with compile error (SyntaxError).
~~~
➜ Desktop rbenv shell 2.4.3
➜ Desktop ruby -v
ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-darwin17]
➜ Desktop ruby test.rb
➜ Desktop rbenv shell 2.5.0
➜ Desktop ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
➜ Desktop ruby test.rb
-- raw disasm--------
<L508596008>
trace: 1
0000 putobject :us ( 1)
0002 putstring "dollar" ( 1)
0004 putobject :india ( 1)
0006 putstring "rupee" ( 1)
0008 newhash 4 ( 1)
0010 setlocal_OP__WC__0 3 ( 1)
trace: 1
*0012 newhash 2 ( 3)
0014 getlocal_OP__WC__0 3 ( 3)
0016 pop ( 3)
trace: 1
0017 putobject :us ( 13)
0019 putstring "dollar" ( 13)
0021 putobject :india ( 13)
0023 putstring "rupee" ( 13)
0025 newhash 4 ( 13)
0027 setlocal_OP__WC__0 3 ( 13)
trace: 1
0029 putobject :japan ( 14)
0031 putstring "yen" ( 14)
0033 newhash 2 ( 14)
0035 getlocal_OP__WC__0 3 ( 14)
0037 opt_send_without_block <callinfo:merge, 1>, <call cache> ( 14)
0040 leave ( 14)
---------------------
test.rb:3: argument stack underflow (-1)
Traceback (most recent call last):
test.rb: compile error (SyntaxError)
~~~
I attached actual test.rb. I think it should run without errors in Ruby 2.5.0 too.
---Files--------------------------------
test.rb (504 Bytes)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>