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 1489858 - s390x: Argument of wrong type is passed to fcntl() (big-endian error)
Summary: s390x: Argument of wrong type is passed to fcntl() (big-endian error)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python
Version: 7.4
Hardware: s390x
OS: Linux
high
high
Target Milestone: rc
: 7.5
Assignee: Charalampos Stratakis
QA Contact: Mirek Długosz
URL:
Whiteboard:
Depends On:
Blocks: 1399177 1438583 1456513 1522983
TreeView+ depends on / blocked
 
Reported: 2017-09-08 13:50 UTC by Adrian Reber
Modified: 2018-04-11 08:32 UTC (History)
10 users (show)

Fixed In Version: python-2.7.5-61.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 15:00:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
IBM Linux Technology Center 158538 0 None None None 2017-09-11 11:55:21 UTC
Red Hat Product Errata RHBA-2018:0833 0 None None None 2018-04-10 15:00:55 UTC

Description Adrian Reber 2017-09-08 13:50:41 UTC
While backporting the necessary kernel patches to get CRIU running on s390x (https://bugzilla.redhat.com/show_bug.cgi?id=1466682) I detected a problem in RHEL's python which is already fixed upstream:

https://bugs.python.org/issue22821

It can be reproduced with:

#!/usr/bin/env python2
import fcntl
import tempfile
import struct
import errno

F_OFD_SETLK = 37

try:
	with tempfile.TemporaryFile() as fd:
		flock = struct.pack('hhllhh', fcntl.F_RDLCK, 0, 0, 0, 0, 0)
		fcntl.fcntl(fd.fileno(), F_OFD_SETLK, flock)
except IOError as e:
	if e.errno == errno.EINVAL:
		print "I/O error({0}): {1}".format(e.errno, e.strerror)
		print "OFD locks are not supported."
		exit(1)

exit(0)

On x86_64 I get an error (as expected) and on s390x I do not get the error, which leads to wrong results of the CRIU test suite. I am about to also test it on powerpc big-endian to see if it is reproducible on another big-endian platform.

Comment 2 Adrian Reber 2017-09-08 15:26:08 UTC
Not reproducible on powerpc big-endian, only on s390x.

Comment 12 errata-xmlrpc 2018-04-10 15:00:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0833

Comment 13 IBM Bug Proxy 2018-04-11 08:32:03 UTC
------- Comment From hannsj_uhl.com 2018-04-11 04:28 EDT-------
.


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