Bug 1609513 - gridData.tests.test_ccp4.test_ccp4 test fails on big-endian arches
Summary: gridData.tests.test_ccp4.test_ccp4 test fails on big-endian arches
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-GridDataFormats
Version: rawhide
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker PPCTracker
TreeView+ depends on / blocked
 
Reported: 2018-07-28 20:39 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2022-06-07 02:19 UTC (History)
4 users (show)

Fixed In Version: python-GridDataFormats-1.0.1-1.fc37 python-GridDataFormats-1.0.1-1.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-29 21:22:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github MDAnalysis GridDataFormats issues 50 0 'None' closed gridData.tests.test_ccp4.test_ccp4 test fails on big-endian arches 2022-05-29 21:21:36 UTC

Description Dominik 'Rathann' Mierzejewski 2018-07-28 20:39:24 UTC
Description of problem:
When running under Fedora rawhide on a big-endian machine (ppc64, s390x), test_ccp4 fails.

Version-Release number of selected component (if applicable):
python-GridDataFormats-0.4.0-3.fc29

How reproducible:
Always.

Steps to Reproduce:
1. cd GridDataFormats-0.4.0
2. /usr/bin/python2 setup.py nosetests

Actual results:
running nosetests
running egg_info
writing requirements to GridDataFormats.egg-info/requires.txt
writing GridDataFormats.egg-info/PKG-INFO
writing top-level names to GridDataFormats.egg-info/top_level.txt
writing dependency_links to GridDataFormats.egg-info/dependency_links.txt
reading manifest file 'GridDataFormats.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
writing manifest file 'GridDataFormats.egg-info/SOURCES.txt'
/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key mode: Illegal value 33554432
  "Key %s: Illegal value %r" % (rec.key, header[rec.key]))
/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key mapc: Illegal value 16777216
  "Key %s: Illegal value %r" % (rec.key, header[rec.key]))
/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key mapr: Illegal value 33554432
  "Key %s: Illegal value %r" % (rec.key, header[rec.key]))
/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py:274: UserWarning: Key maps: Illegal value 50331648
  "Key %s: Illegal value %r" % (rec.key, header[rec.key]))
E............/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/OpenDX.py:339: UserWarning: array dtype.name = float128 can not be automatically converted to a DX array type. Use the 'type' keyword to manually specify the correct type.
  self.array.dtype.name))
.............S..
======================================================================
ERROR: gridData.tests.test_ccp4.test_ccp4
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/tests/test_ccp4.py", line 9, in test_ccp4
    g = Grid('gridData/tests/test.ccp4')
  File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/core.py", line 117, in __init__
    self.load(grid)
  File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/core.py", line 302, in load
    loader(filename)
  File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/core.py", line 314, in _load_cpp4
    ccp4.read(filename)
  File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py", line 204, in read
    h = self.header = self._read_header(ccp4)
  File "/builddir/build/BUILD/GridDataFormats-0.4.0/gridData/CCP4.py", line 295, in _read_header
    label = struct.unpack(flag, binlabel)[0]
error: unpack requires a string argument of length 1342177280
----------------------------------------------------------------------
Ran 29 tests in 0.558s
FAILED (SKIP=1, errors=1)

Expected results:
Test passes.

Comment 1 Jan Kurik 2018-08-14 08:40:16 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 2 Ben Cotton 2019-10-31 21:10:42 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Ben Cotton 2019-11-27 18:17:47 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Dominik 'Rathann' Mierzejewski 2019-11-27 18:34:49 UTC
Still an issue on s390x/rawhide.

Comment 5 Mamoru TASAKA 2021-12-28 08:31:09 UTC
I think the design of _detect_byteorder() method is wrong. I've put some comments on https://github.com/MDAnalysis/GridDataFormats/issues/50#issuecomment-1001935448

Comment 6 Fedora Update System 2022-05-29 22:21:38 UTC
FEDORA-2022-ca74faea91 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ca74faea91

Comment 7 Fedora Update System 2022-05-30 06:25:02 UTC
FEDORA-2022-ca74faea91 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-ca74faea91`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-ca74faea91

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-06-07 02:19:58 UTC
FEDORA-2022-ca74faea91 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


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