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.
Bug 1313473 - dashes are unicode \x2d in systemd warning message in journal
Summary: dashes are unicode \x2d in systemd warning message in journal
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-01 16:28 UTC by mulhern
Modified: 2016-04-15 13:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-15 07:11:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mulhern 2016-03-01 16:28:20 UTC
Description of problem:

Some hyphens end up as unicode minus sign (\x2d) in systemd journal message:

Device dev-disk-by\x2did-wwn\x2d0xceb4b5944ee25001.device appeared twice with different sysfs paths...

Note that the hyphen as unicode minus appears in only one place, in between the 'by' and the next word, as "id", "path", "uuid".

Version-Release number of selected component (if applicable):

Installed Packages
Name        : systemd
Arch        : x86_64
Version     : 219
Release     : 19.el7
Size        : 21 M
Repo        : installed
From repo   : RHEL-7-RTT

How reproducible:

Consistently, also shown but not remarked on in https://bugzilla.redhat.com/show_bug.cgi?id=1296249.

Steps to Reproduce:
1. You need to generate the error message, probably by messing with multipath.

Actual results:

Unicode character substituted for ASCII dash in warning message.

Expected results:

I would expect all characters to be ASCII.

Additional info:

I think this was introduced recently. I've seen these messages fairly frequently, and I don't remember seeing the unicode character previously.

Comment 2 Lukáš Nykrýn 2016-04-15 07:11:55 UTC
This is the name of the device unit. It should not look differently.

Comment 3 mulhern 2016-04-15 13:46:46 UTC
There is a method unit-name-from_path() which mangles paths, substituting '-'s for '/'s and unicode -'s for '-'s.

Sometimes a path is just a path, sometimes it's considered a name. When it is considered a name it is escaped in this fashion.

So, these by-* paths can be escaped differently or not escaped or converted to names, as the case may be, e.g.:
MESSAGE=found 'b65:96' claiming '/run/udev/links/\x2fdisk\x2fby-id\x2fwwn-0xcc9d60494ee25001', where some '/'s are escaped with unicode '/'s
MESSAGE=LINK 'disk/by-id/ata-WDC_WD10EFRX-68PJCN0_WD-WCC4JLVFF3U9' /usr/lib/udev/rules.d/60-persistent-storage.rules:42, no escaping


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