Project

General

Profile

Actions

Bug #5921

closed

SEGV caused by Encoding.compatible? "abc", :abc

Added by brixen (Brian Shirai) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
Backport:
[ruby-core:42204]

Description

Calling Encoding.compatible? with a String and Symbol causes a SEGV.

Calling with two Symbols, a Symbol and Regexp, or a String and Regexp works fine.

sasha:source brian$ ruby -v -e 'p Encoding.compatible? "abc", :abc'
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
-e:1: [BUG] Segmentation fault

Full report: https://gist.github.com/1651681

Thanks,
Brian

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0