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 1167842

Summary: Wrong type conversion makes dhm test hang on s390(x)
Product: [Fedora] Fedora Reporter: Michal Toman <mtoman>
Component: polarsslAssignee: Morten Stevens <mstevens>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dan, mads, mstevens, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: polarssl-1.2.12-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-12 04:06:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    
Attachments:
Description Flags
polarssl-fix-conversion.patch none

Description Michal Toman 2014-11-25 13:58:20 UTC
Created attachment 961228 [details]
polarssl-fix-conversion.patch

Description of problem:
The dhm test enters an endless loop when built on s390(x) because of wrong type conversion.

Version-Release number of selected component (if applicable):
polarssl-1.2.12-1.fc19
polarssl-1.2.12-1.fc20

How reproducible:
Always

Steps to Reproduce:
1. Try to build polarssl-1.2.12-1.fc20 on s390 or s390x

Actual results:
dhm test enters an endless loop

Expected results:
dhm test passes

Additional info:
This only affects F19 and F20. The problem is already fixed in upstream and polarssl-1.3.* (F21+). Attaching a patch.

Comment 1 Dan Horák 2014-11-25 14:21:36 UTC
upstream commits are
in development branch - https://github.com/polarssl/polarssl/commit/ef5087d150d5804e239878b17f357c9fee627883
in 1.2 branch - https://github.com/polarssl/polarssl/commit/0b0b522932ed70e93f18eca66dede570ea1a00a3
=> see the missing parenthesis around the "r >> biL" expression

Comment 2 Dan Horák 2014-11-25 20:39:15 UTC
reported as https://github.com/polarssl/polarssl/issues/143

Comment 3 Fedora Update System 2014-12-01 13:32:48 UTC
polarssl-1.2.12-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/polarssl-1.2.12-2.fc20

Comment 4 Fedora Update System 2014-12-01 13:33:18 UTC
polarssl-1.2.12-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/polarssl-1.2.12-2.fc19

Comment 5 Fedora Update System 2014-12-03 01:01:14 UTC
Package polarssl-1.2.12-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing polarssl-1.2.12-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-16094/polarssl-1.2.12-2.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-12-12 04:06:30 UTC
polarssl-1.2.12-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2014-12-12 04:21:14 UTC
polarssl-1.2.12-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.