Bug 868485

Summary: ZLIB_ERROR raised with AWS
Product: [Fedora] Fedora Reporter: Pavel Zhukov <pavel>
Component: zlib-adaAssignee: Björn Persson <bjorn>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: bjorn, pavel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-25 07:17:07 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: 810676    
Attachments:
Description Flags
remove external zlib-ada from aws
none
sample program
none
patch for zlib (revert?)
none
Correct patch
none
project file to build the test program none

Description Pavel Zhukov 2012-10-20 09:03:30 UTC
Description of problem:
zlib-error raised if AWS uses external zlib-ada instead bundled

Version-Release number of selected component (if applicable):
zlib-ada-1.4-0.3.20120830CVS.fc17.x86_64

How reproducible:
always

Steps to Reproduce:
1.build aws: https://github.com/landgraf/aws-fedora
2.build sample code:  http://vpaste.net/72ZYu
3.run sample program
  
Actual results:
raised ZLIB.ZLIB_ERROR


Expected results:
exit code 0

Additional info:
There is no error with aws compiled from https://github.com/landgraf/aws-fedora/tree/zlib

Comment 1 Pavel Zhukov 2012-10-20 09:05:01 UTC
Created attachment 630381 [details]
remove external zlib-ada from aws

Comment 2 Björn Persson 2012-10-20 12:03:26 UTC
(In reply to comment #0)
> 2.build sample code:  http://vpaste.net/72ZYu

That's not a sample program. It's a diff between two versions of AWS.Client. Did you link to the wrong file?

Comment 3 Pavel Zhukov 2012-10-20 18:45:19 UTC
Created attachment 630575 [details]
sample program

Comment 4 Pavel Zhukov 2012-10-20 18:46:04 UTC
You can check any program with AWS.Client.Get function and https://

Comment 5 Pavel Zhukov 2012-10-21 03:49:38 UTC
Created attachment 630726 [details]
patch for zlib (revert?)

This patch works for me.

Comment 6 Pavel Zhukov 2012-10-21 03:53:12 UTC
Created attachment 630741 [details]
Correct patch

Comment 7 Björn Persson 2012-10-21 19:15:51 UTC
Created attachment 630978 [details]
project file to build the test program

I can't reproduce this. I'm using zlib-1.2.5-7.fc17.x86_64, zlib-ada-1.4-0.3.20120830CVS.fc17.x86_64 and aws-2.11.0-8.fc17.x86_64. I'm attaching the project file I build your test program with. I've tried building the test program with both GPRbuild and Gnatmake, and I get exit code 0 every time I run it.

Can you provide more details? A stack trace of where the exception is raised maybe?

Comment 8 Pavel Zhukov 2012-10-25 07:17:07 UTC
It's magic. I've rebuilt and reinstalled aws and zlib-ada and cannot reproduce this bug.
I'll test with clean installation later.