Bug 877421 - gnutls: linking against GNUTLS activates multi-threaded algorithms
Summary: gnutls: linking against GNUTLS activates multi-threaded algorithms
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: gnutls
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-16 13:40 UTC by Florian Weimer
Modified: 2013-12-05 11:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-05 10:36:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2012-11-16 13:40:16 UTC
GNUTLS pulls in libpthread, thereby forcing malloc and libstdc++ reference counting (which affects std::string and std::(tr1::)shared_ptr) to use atomic operations.  For some loads, this has a measurable performance impact.

This is unnecessary because GNUTLS does not create threads on its own, and the mutex functions it needs are available in libc proper.

(I saw this with gnutls-2.12.17-1.fc17.)

Comment 1 Fedora End Of Life 2013-07-04 04:05:13 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Florian Weimer 2013-07-04 08:03:43 UTC
Still present in gnutls-3.1.11-1.fc19.x86_64 (same version as in rawhide).

Comment 3 Nikos Mavrogiannopoulos 2013-11-26 16:18:55 UTC
There are two issues here. One gnutls links to librt -mainly for clock_gettime() and librt links to pthreads. Since new glibc include clock_gettime, this is no longer needed, thus the issue can be fixed within gnutls.

The second issue is linking with p11-kit which also links with pthreads (for mutex_lock and this can also be avoided). I'll try to handle both the issues in rawhide.

Comment 4 Nikos Mavrogiannopoulos 2013-12-05 10:36:31 UTC
After some research it seems that this is unlikely to be fixed. GnuTLS is linked to p11-kit which uses the pthread library.

Comment 5 Florian Weimer 2013-12-05 10:40:44 UTC
(In reply to Nikos Mavrogiannopoulos from comment #4)
> After some research it seems that this is unlikely to be fixed. GnuTLS is
> linked to p11-kit which uses the pthread library.

There is bug 985495 for that.

Comment 6 Nikos Mavrogiannopoulos 2013-12-05 11:08:43 UTC
Let's postpone that issue then until a solution in p11-kit can be implemented.


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