Bug 1318475

Summary: sed dead loop on some utf8 text when LC_ALL is set to zh_CN.GB2312
Product: Red Hat Enterprise Linux 6 Reporter: Curu Wong <prinbra>
Component: sedAssignee: Petr Stodulka <pstodulk>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 11:50:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1355829    
Attachments:
Description Flags
a utf8 encoded file with Chinese text none

Description Curu Wong 2016-03-17 01:51:36 UTC
Created attachment 1137267 [details]
a utf8 encoded file with Chinese text

Description of problem:
sed dead loop
Version-Release number of selected component (if applicable):
sed-4.2.1-7.el6

How reproducible:
always

Steps to Reproduce:
command:
LC_ALL=zh_CN.GB2312 sed s/helloworld/HelloSed/ utf8.txt


Actual results:
dead loop, sed use 100% cpu

Expected results:

Additional info:

Comment 1 Curu Wong 2016-03-17 01:52:02 UTC
utf8.txt is attached.

Comment 3 Jan Kurik 2017-12-06 11:50:57 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/