Bug 1318475 - sed dead loop on some utf8 text when LC_ALL is set to zh_CN.GB2312
Summary: sed dead loop on some utf8 text when LC_ALL is set to zh_CN.GB2312
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sed
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Petr Stodulka
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1355829
TreeView+ depends on / blocked
 
Reported: 2016-03-17 01:51 UTC by Curu Wong
Modified: 2017-12-06 11:50 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-06 11:50:57 UTC
Target Upstream Version:


Attachments (Terms of Use)
a utf8 encoded file with Chinese text (73 bytes, text/plain)
2016-03-17 01:51 UTC, Curu Wong
no flags Details

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/


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