Bug 469477

Summary: Libgcrypt is failing on F-10
Product: [Fedora] Fedora Reporter: Alexey Torkhov <atorkhov>
Component: libgcryptAssignee: Tomas Mraz <tmraz>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jorton, nalin, rdieter, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-03 19:32:58 UTC Type: ---
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: 465002    
Attachments:
Description Flags
4 simple test programs
none
4 simple test programs
none
fail.cpp
none
fail2.cpp
none
fail3.cpp
none
good.cpp
none
Makefile none

Description Alexey Torkhov 2008-11-01 09:30:05 UTC
Created attachment 322165 [details]
4 simple test programs

Description of problem:
Libgcrypt is failing in some programs with message
----
DBG: md_enable: algorithm 1 not available
Ohhhh jeeee: gcry_md_open failed for algo 1: Invalid digest algorithmAborted
----

I've composed 4 sample programs. 3 of them are failing.

Version-Release number of selected component (if applicable):
libgcrypt-1.4.3-2.fc10.x86_64
gcc-4.3.2-6.x86_64
glibc-2.8.90-14.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Untar attached file.
2. Run make.
  
Actual results:
3 of 4 tests failing

Expected results:
All is fine (like on F-9).

Additional info:
Tests were ran in mock rawhide chroot.

Comment 1 Tomas Mraz 2008-11-03 08:39:10 UTC
The attachment is broken (not a tarball). Can you please try again to attach the samples?

Comment 2 Alexey Torkhov 2008-11-03 09:14:56 UTC
Created attachment 322280 [details]
4 simple test programs

Comment 3 Alexey Torkhov 2008-11-03 09:17:41 UTC
Comment on attachment 322280 [details]
4 simple test programs

Seems bugzilla corrupts the file when downloading it.

Comment 4 Alexey Torkhov 2008-11-03 09:18:50 UTC
Created attachment 322281 [details]
fail.cpp

Comment 5 Alexey Torkhov 2008-11-03 09:19:32 UTC
Created attachment 322283 [details]
fail2.cpp

Comment 6 Alexey Torkhov 2008-11-03 09:20:17 UTC
Created attachment 322284 [details]
fail3.cpp

Comment 7 Alexey Torkhov 2008-11-03 09:20:26 UTC
Created attachment 322285 [details]
good.cpp

Comment 8 Alexey Torkhov 2008-11-03 09:20:38 UTC
Created attachment 322286 [details]
Makefile

Comment 9 Alexey Torkhov 2008-11-03 09:22:20 UTC
Uploaded individual files.

Comment 10 Tomas Mraz 2008-11-03 13:36:21 UTC
You must call at least call gcry_check_version(NULL); before calling any crypto functions from libgcrypt. Otherwise the library is not properly initialized.

Comment 11 Alexey Torkhov 2008-11-03 19:32:58 UTC
Oh, thanks a lot!
This seem to fix the problems.