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 507466 - Alignment Issue
Summary: Alignment Issue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mhash
Version: 11
Hardware: arm9
OS: Linux
low
high
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
 
Reported: 2009-06-22 21:17 UTC by Jitesh Shah
Modified: 2009-07-23 19:10 UTC (History)
2 users (show)

Fixed In Version: 0.9.9.9-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-23 19:04:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
alignment fix (495 bytes, patch)
2009-06-22 21:17 UTC, Jitesh Shah
no flags Details | Diff

Description Jitesh Shah 2009-06-22 21:17:55 UTC
Created attachment 349000 [details]
alignment fix

Description of problem:
In the implementation of tiger_final() in tiger.c, the array "temp" is defined as "mutils_word8". However, later it is used by typecasting it to ((mutils_word64*)temp). This unaligned access causes problems on ARM and as a result, TIGER's test fails.

Version-Release number of selected component (if applicable):
I have used mhash-0.9.9-7 version of mhash in the investigation.

How reproducible:
Try to build mhash on ARM on f11 root. 
A sample build can be found here: 
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=42736


Actual results:
TIGER test failed.


Expected results:
All tests should succeed. 


Additional info:
I have attached a patch which forces 64-bit alignment on "temp". mhash built successfully on ARM with this patch. Kindly review and let me know whether it is correct.

Comment 1 Fedora Update System 2009-07-22 22:44:40 UTC
mhash-0.9.9.9-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/mhash-0.9.9.9-1.fc10

Comment 2 Fedora Update System 2009-07-22 22:44:50 UTC
mhash-0.9.9.9-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/mhash-0.9.9.9-1.fc11

Comment 3 Fedora Update System 2009-07-23 19:04:47 UTC
mhash-0.9.9.9-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2009-07-23 19:10:36 UTC
mhash-0.9.9.9-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, 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.