[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ltdl bugs
From: |
Peter O'Gorman |
Subject: |
Re: ltdl bugs |
Date: |
Sat, 02 Apr 2005 22:29:36 +0900 |
User-agent: |
Mozilla Thunderbird 1.0 (Macintosh/20041206) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter O'Gorman wrote:
| Jeff Squyres wrote:
| | I think that I have found 2 bugs in libltdl (1.5.14). These are
| | repeatable on Linux 2.4 machines:
| |
| | 1. If you lt_dlopen(NULL) and then lt_dlclose() the handle that was
| | returned, a memory leak ensues. This is easily reproducible by writing
| | a short program:
| |
| | -----
| | #include <ltdl.h>
| |
| | int main(int argc, char* argv[]) {
| | lt_dlhandle handle;
| |
| | lt_dlinit();
| | handle = lt_dlopen(NULL);
| | lt_dlclose(handle);
| | lt_dlexit();
| | return 0;
| | }
|
| | I haven't fully audited what is happening, but I think that this might
| | be the correct solution...?
|
| I am not sure that this is a bug, if you check the return code from
| lt_dlclose(), you will notice that it fails.
Hate to reply to myself, but I would consider that the memory not being
cleaned up by lt_dlexit() to be a bug. Darn, thought I'd get away with the
'not a bug' response.
Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iQCVAwUBQk6eQLiDAg3OZTLPAQK2YQQAiiGxPcrL94GMeggBKSJ6vBZWh3pOBoEx
Hg69UkL37YrseGEqsEWIF6bGz0azbrxMjWqIBAyuFD648pusndj5jJA+QpH2nSrQ
hOCPHehQPS3nDCDKiW4vaukGnSso3d4DekRPh+2k6AwuPhaq4pF2DqGii5oHGE5Y
5qxmVGthPFY=
=kW1t
-----END PGP SIGNATURE-----
- ltdl bugs, Jeff Squyres, 2005/04/01
- Re: ltdl bugs, Peter O'Gorman, 2005/04/02
- Re: ltdl bugs,
Peter O'Gorman <=
- Re: ltdl bugs, Jeff Squyres, 2005/04/02
- Re: ltdl bugs, Ralf Wildenhues, 2005/04/03
- Re: ltdl bugs, Ralf Wildenhues, 2005/04/03
- Re: ltdl bugs, Jeff Squyres, 2005/04/03
- Re: ltdl bugs, Jeff Squyres, 2005/04/03
- Re: ltdl bugs, Ralf Wildenhues, 2005/04/03
- Re: ltdl bugs, Ralf Wildenhues, 2005/04/03
- Re: ltdl bugs, Jeff Squyres, 2005/04/03
- Re: ltdl bugs, Ralf Wildenhues, 2005/04/03
- Re: ltdl bugs, Jeff Squyres, 2005/04/04