-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-9.2.0
-
glibc-2.34-143.el9
-
None
-
Moderate
-
-
4
-
rhel-pt-c-libs
-
ssg_platform_tools
-
3
-
False
-
False
-
Yes
-
Red Hat Enterprise Linux
-
SST PT Libraries Sprint 11, SST PT Libraries Sprint 13, SST PT Libraries Sprint 14, SST PT Libraries Sprint 15
-
Bug Fix
-
-
Done
-
-
x86_64
-
None
What were you trying to do that didn't work?
Convert a file from ISO-8859-1 to UTF-8
Please provide the package NVR for which bug is seen:
glibc-common-2.34-60.el9.x86_64
How reproducible:
in house and by customer
Steps to reproduce
Test environment:
Release: Red Hat Enterprise Linux release 9.2 (Plow)
Kernel: 5.14.0-284.25.1.el9_2.x86_64
IP Address: 10.1.183.219
glibc-common: glibc-common-2.34-60.el9.x86_64
locale: en.US.ISO-8859-1
Below 32K:
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 31000 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
31000
48258
32K and above:
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32000 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32000
49800
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32001 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32001
50012
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32002 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32002
49938
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32003 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32003
Bus error (core dumped)
28672
Expected results
File is converted
Actual results
core dump
- causes
-
RHEL-71547 glibc: Fix transliteration regression in iconv tool
-
- Closed
-
-
RHEL-95381 glibc: return code of iconv tool after successful conversion with parameter -c is not 0
-
- Closed
-
- is cloned by
-
RHEL-71530 glibc: iconv tool does not support in-place conversion of files [rhel-10]
-
- Closed
-
- links to
-
RHBA-2024:139437 glibc bug fix and enhancement update