Project

General

Profile

Actions

Backport #2956

closed

segfault

Added by tmaeda (Tomoki MAEDA) about 14 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
[ruby-dev:40614]

Description

=begin
$ cat ~/tmp/ruby191bug.rb

-- coding: utf-8 --

[].each do |i|
{:i -> i}
result << elem
end

$ ruby1.9.1 -v ~/tmp/ruby191bug.rb
ruby 1.9.1p376 (2009-12-07 revision 26041) [i486-linux]
/home/tmaeda/tmp/ruby191bug.rb:3: syntax error, unexpected tLAMBDA, expecting tASSOC
{:i -> i}
^
/home/tmaeda/tmp/ruby191bug.rb:3: warning: shadowing outer local variable - i
ruby1.9.1: [BUG] Segmentation fault
ruby 1.9.1p376 (2009-12-07 revision 26041) [i486-linux]

-- control frame ----------
c:0002 p:-34302656 s:0004 b:0004 l:000003 d:000003 TOP
c:0001 p:0000 s:0002 b:0002 l:000f54 d:000f54 TOP

-- Ruby level backtrace information-----------------------------------------

-- C level backtrace information -------------------------------------------
0xb7e7a8d4 /usr/lib/libruby-1.9.1.so.1.9(rb_vm_bugreport+0x64) [0xb7e7a8d4]
0xb7d90169 /usr/lib/libruby-1.9.1.so.1.9 [0xb7d90169]
0xb7d901fa /usr/lib/libruby-1.9.1.so.1.9(rb_bug+0x3a) [0xb7d901fa]
0xb7e1d66d /usr/lib/libruby-1.9.1.so.1.9 [0xb7e1d66d]
0xb7ee540c [0xb7ee540c]
0xb7ddcc6c /usr/lib/libruby-1.9.1.so.1.9(ruby_yyparse+0x594c) [0xb7ddcc6c]
0xb7de72ac /usr/lib/libruby-1.9.1.so.1.9 [0xb7de72ac]
0xb7e7d9db /usr/lib/libruby-1.9.1.so.1.9(ruby_suppress_tracing+0x10b) [0xb7e7d9db]
0xb7dd22af /usr/lib/libruby-1.9.1.so.1.9(rb_parser_compile_file+0x8f) [0xb7dd22af]
0xb7e1baba /usr/lib/libruby-1.9.1.so.1.9 [0xb7e1baba]
0xb7d916d9 /usr/lib/libruby-1.9.1.so.1.9(rb_ensure+0x99) [0xb7d916d9]
0xb7e1c653 /usr/lib/libruby-1.9.1.so.1.9 [0xb7e1c653]
0xb7e647fd /usr/lib/libruby-1.9.1.so.1.9(rb_vm_call_cfunc+0xbd) [0xb7e647fd]
0xb7e1a421 /usr/lib/libruby-1.9.1.so.1.9(ruby_process_options+0xa1) [0xb7e1a421]
0xb7d931fd /usr/lib/libruby-1.9.1.so.1.9(ruby_options+0x8d) [0xb7d931fd]
0x80487ac ruby1.9.1(main+0x6c) [0x80487ac]
0xb7b98b55 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7b98b55]
0x80486a1 ruby1.9.1 [0x80486a1]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

アボートしました

{:i => i}と書くところを間違えて{:i -> i}したら落ちました。

環境:Intel Celeron D なマシンに入れたDebian squeeze(testing)にaptitude install ruby1.9.1で入れたRubyです。
=end


Related issues 1 (0 open1 closed)

Is duplicate of Backport191 - Backport #2563: Segmentation fault using module_evalClosedyugui (Yuki Sonoda)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0