Project

General

Profile

Actions

Bug #13054

closed

MatchData segfaults if RMatch::regexp is nil

Bug #13054: MatchData segfaults if RMatch::regexp is nil

Added by rhenium (Kazuki Yamaguchi) almost 9 years ago. Updated almost 9 years ago.

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

Description

[Bug #10877] and [Bug #13042] didn't fix all of the issues.

The following four examples cause segfault for me:

"abc".sub("a", ""); $~.hash "abc".sub("a", ""); $~.names "abc".sub("a", ""); $~.named_captures "abc".sub("a", ""); m=$~; m.regexp; "abc".sub("a", ""); $~ == m 
Actions

Also available in: PDF Atom