Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Some third-party applications fail after updating pcre to pcre-8.32-17
with the following error message:
GLib-CRITICAL **: PCRE library is compiled without UTF8 support
Version-Release number of selected component (if applicable):
pcre-8.32-17
How reproducible:
Always, but needs 3rd-party app
Additional info:
Reverting to:
pcre-8.32-15.el7_2.1.i686 Mon Jul 30 12:03:57 2018
pcre-8.32-15.el7_2.1.x86_64 Mon Jul 30 12:03:53 2018
pcre-devel-8.32-15.el7_2.1.x86_64 Mon Jul 30 12:03:56 2018
fixes the issue.
pcre-8.32-17.el7 is built with UTF-8 support as can be seen with pcretest tool from pcre-tests packge:
$ rpm -q pcre
pcre-8.32-17.el7.x86_64
$ pcretest -C
PCRE version 8.32 2012-11-30
Compiled with
8-bit support
UTF-8 support
16-bit support
UTF-16 support
32-bit support
UTF-32 support
Unicode properties support
Just-in-time compiler support: x86 64bit (little endian + unaligned)
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
I believe your application checks for UTF-8 support in a wrong way that was affected by a recent Unicode Character Property fix (see bug #1400267).
Could you provide us details how your application checks for the UTF-8 support?
The error message comes from a glib2 library. I don't know what glib2 library you use but RHEL-7.6's glib2 does:
pcre_config (PCRE_CONFIG_UTF8, &supports_utf8);
if (!supports_utf8)
g_critical (_("PCRE library is compiled without UTF8 support"));
If I move the code into a standalone program:
$ cat pcreutf.c
#include <pcre.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
int supports_utf8;
if (pcre_config (PCRE_CONFIG_UTF8, &supports_utf8)) {
fprintf(stderr, "pcre_config() failed\n");
exit(EXIT_FAILURE);
}
printf("UTF-8 is supported: %s\n", supports_utf8 ? "yes" : "no");
exit(EXIT_SUCCESS);
}
and build it:
$ gcc $(pkg-config --cflags --libs libpcre) pcreutf.c
and run it:
$ ./a.out
UTF-8 is supported: yes
It confirms the UTF-8 support is enabled.
I worry some third-party PCRE or glib2 library sneaked into your system and causes you troubles.