Project

General

Profile

Actions

Bug #871

closed

Segfault when define_method is setting up a method that takes a block

Added by csirac2 (Paul Harvey) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
ruby -v:
Backport:
[ruby-core:20544]

Description

=begin
I'm getting back in to Ruby and decided to work with 1.9.

At http://www.infoq.com/news/2008/01/new-lambda-syntax I was looking at some changes since 1.8 regarding lambdas.

The example code there works fine on Ruby 1.8 but segfaults Debian's packaged version of Ruby 1.9 (1.9.0+20060609-1etch3), and also ruby-1.9.1-preview2 that I just compiled and tested (using --prefix=/usr/local).

I'm running Debian Etch on intel hardware.

I set the priority to High only because this bug produces a segfault, not because it actually impacts me in any important way.

See attached test code and shell session.

Thanks
=end


Files

test.rb (312 Bytes) test.rb Test code that works on Ruby 1.8, segfaults on 1.9.1-p2 csirac2 (Paul Harvey), 12/14/2008 03:41 PM
shell_session.txt (1.83 KB) shell_session.txt Shell session showing segfault and backtrace. csirac2 (Paul Harvey), 12/14/2008 03:41 PM
Actions #1

Updated by yugui (Yuki Sonoda) almost 16 years ago

  • Assignee set to ko1 (Koichi Sasada)
  • Target version set to 1.9.1 Release Candidate

=begin

=end

Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20748.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0