Bug 469477 - Libgcrypt is failing on F-10
Summary: Libgcrypt is failing on F-10
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libgcrypt
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 465002
TreeView+ depends on / blocked
 
Reported: 2008-11-01 09:30 UTC by Alexey Torkhov
Modified: 2008-11-03 19:32 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-11-03 19:32:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
4 simple test programs (778 bytes, application/x-gzip)
2008-11-01 09:30 UTC, Alexey Torkhov
no flags Details
4 simple test programs (776 bytes, application/octet-stream)
2008-11-03 09:14 UTC, Alexey Torkhov
no flags Details
fail.cpp (505 bytes, text/plain)
2008-11-03 09:18 UTC, Alexey Torkhov
no flags Details
fail2.cpp (471 bytes, text/plain)
2008-11-03 09:19 UTC, Alexey Torkhov
no flags Details
fail3.cpp (592 bytes, text/plain)
2008-11-03 09:20 UTC, Alexey Torkhov
no flags Details
good.cpp (487 bytes, text/plain)
2008-11-03 09:20 UTC, Alexey Torkhov
no flags Details
Makefile (179 bytes, text/plain)
2008-11-03 09:20 UTC, Alexey Torkhov
no flags Details

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.


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