Bug 443270 - segfault with certain utf8 string as regexp
Summary: segfault with certain utf8 string as regexp
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: perl
Version: 9
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-19 23:50 UTC by Ariel T. Glenn
Modified: 2008-06-26 14:03 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-26 14:03:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ariel T. Glenn 2008-04-19 23:50:52 UTC
Problem: The supplied code segfaults.  

Version-Release number of selected component (if applicable):
perl-5.8.8-28.fc7

How reproducible: run this program:

#!/usr/bin/perl                                                                
                                                                        
binmode(STDOUT, ":utf8");
binmode(STDIN, ":utf8");

use encoding(UTF8);

$title="test";
if ($title =~ /'élé'/) {
    print "it matches with title $title\n";
}
else {
    print "it does not match with title $title\n";
}
exit 0;

My locale, if it makes a difference: el_GR.UTF-8

Note that taking out the single quotes, or one of the accented e's, or putting 
other text in front of the string (but after the quote) makes it work fine.

Comment 1 Bug Zapper 2008-05-14 09:45:20 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Marcela Mašláňová 2008-06-09 14:14:33 UTC
Have you perl-5.8.8 and F-9?

It's working for me with perl-5.8.8 and perl-5.10.0. I tried different locales,
but no segfault.


Note You need to log in before you can comment on or make changes to this bug.