RT RT/krbdev.mit.edu: Ticket #7947 Load plugins with RTLD_NODELETE if possible Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
7947
Status
resolved
Worked
0 min
Priority
0/0
Queue
krb5
 

 Keyword Selections  
Component
Tags
Version_reported
Version_Fixed
  • 1.13
Target_Version
 

 Relationships  
Depends on:
Depended on by:
Parents:
Children:

Refers to:
  • 7135: (Nobody) gssapi mechanism glue dlcloses objects potentially after they are already unloaded [resolved]
Referred to by:
 
 Dates  
Created: Thu Jun 26 11:11:16 2014
Starts: Not set
Started: Thu Jun 26 11:11:16 2014
Last Contact: Not set
Due: Not set
Updated: Tue Aug 12 18:27:39 2014 by tlyu
 

 People  
Owner
 ghudson
Requestors
 ghudson@mit.edu
Cc
 
AdminCc
 
 

 More about Greg Hudson  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

History   Display mode: [Brief headers] [Full headers]
      Thu Jun 26 11:11:16 2014  ghudson - Ticket created    
     
From: ghudson@mit.edu
Subject: git commit


Load plugins with RTLD_NODELETE if possible

On platforms which support RTLD_NODELETE, use it to load plugin
modules.  While using this flag makes plugins stay in the process map
after libkrb5/libgssapi_krb5 are unloaded, it solves several problems:

1. It prevents plugin modules which link against OpenSSL (PKINIT and
k5tls) from repeatedly initializing instances of libssl or libcrypto,
leaking heap memory each time.  This is only an issue because we
cannot safely uninitialize OpenSSL.

2. It prevents finalization ordering issues from causing a process
crash when unloading libgssapi_krb5 (issue #7135).

3. It makes memory leak tracing with valgrind easier.

https://github.com/krb5/krb5/commit/0f46175d632ae03ab7d4cfba5e62534d31e128e0
Author: Greg Hudson <ghudson@mit.edu>
Commit: 0f46175d632ae03ab7d4cfba5e62534d31e128e0
Branch: master
 src/util/support/plugins.c |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)


Download (untitled) 952b
      Thu Jun 26 11:11:16 2014  ghudson - Requestor ghudson@mit.edu added    
      Thu Jun 26 11:11:16 2014  ghudson - Status changed from new to review    
      Thu Jun 26 11:32:26 2014  ghudson - Ticket 7947 RefersTo ticket 7135.    
      Tue Aug 12 18:27:39 2014  tlyu - Status changed from review to resolved    
      Tue Aug 12 18:27:39 2014  tlyu - Version_Fixed 1.13 added