Project

General

Profile

Actions

Bug #10877

closed

String#sub causes segfault

Added by tonytonyjan (Weihang Jian) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:68209]

Description

str = 'abc'
reg = /(?<foo>a)bc/
str =~ reg
$~['foo'].sub 'a', ''
$~['foo']
tmp.rb:5: [BUG] Segmentation fault at 0x00000000000020

Abort trap: 6

Files

bug-10877.log (3.92 KB) bug-10877.log nobu (Nobuyoshi Nakada), 02/21/2015 10:51 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0