Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1088339 - python test failing on 64-bit big endians
Summary: python test failing on 64-bit big endians
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: lasso
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Simo Sorce
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker PPCTracker
TreeView+ depends on / blocked
 
Reported: 2014-04-16 13:18 UTC by Dan Horák
Modified: 2014-04-26 16:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-26 16:24:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
test log (4.59 KB, text/plain)
2014-04-16 13:18 UTC, Dan Horák
no flags Details
Fix generated code for parsing integers/longs/enums (1.50 KB, patch)
2014-04-17 22:22 UTC, Simo Sorce
no flags Details | Diff
Fix incorrect assumption about size of int vs size of pointer (2.99 KB, patch)
2014-04-18 20:50 UTC, Simo Sorce
no flags Details | Diff

Description Dan Horák 2014-04-16 13:18:40 UTC
Created attachment 886895 [details]
test log

The profiles_tests.py fails on 64-bit big endian arches (s390x, ppc64), 32-bit arches are OK, please see attached log for details

Version-Release number of selected component (if applicable):
lasso-2.4.0-0.fc20

Comment 1 Simo Sorce 2014-04-17 21:39:18 UTC
Thanks for the report, I will try to see if I can spot anything obvious.

Comment 2 Simo Sorce 2014-04-17 22:22:48 UTC
Created attachment 887349 [details]
Fix generated code for parsing integers/longs/enums

Hi Dan,
I think I've found the potential issue, it's in autogeneratd code that I think would easily fail if an enum is not the same size of an integer.

This would affect any architecture but is probably masked on little endian machines by luck.

Would you be able to check if this patch makes tests pas on big endian archs ?
I do not have access to any big endian machine ATM.

Comment 3 Dan Horák 2014-04-18 08:11:33 UTC
Thanks for looking, but I still get the same errors with the patch applied :-(

I've also sent you info about our developer machines in an email.

Comment 4 Simo Sorce 2014-04-18 20:50:32 UTC
Created attachment 887633 [details]
Fix incorrect assumption about size of int vs size of pointer

There was an additional bug lurking in the code that shows up in architecttures where sizeof(int) != sizeof(void *), like ppc64.

This patch is a small workaround, and make the tests pass, but it is probably not the final say wrt upstream.

Please try with both patches, my experiment on the machine you kindly allowed me to access says that now tests pass.

Comment 5 Simo Sorce 2014-04-26 16:24:04 UTC
I've pushed 2.4.0-2 into rawhide git and started a build.
This version contains 2 patches approved by upstream that should fix the problem.
I tested with make && make check on ppc64

Closing with the tag 'rawhide'.


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