- From: Thomas Dreibholz <dreibh AT exp-math.uni-essen.de>
- To: "Marjan Bozinovski" <marjanb AT cpk.auc.dk>
- Cc: discussion AT sctp.de
- Subject: [SCTP-Discussion] FreeBSD memory leak problem solved!
- Date: Fri Jan 10 17:27:01 2003
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University of Essen, Institute for Experimental Mathematics
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I have detected the rspSelect()/ext_select() memory leak problem for FreeBSD.
It is not a problem of ext_select(), the FreeBSD pthread implementation is a
bit different. It allocates a memory block for pthread_mutexattr_t, which
Linux does not. This structure is not freed.
The error is in the Socket-API. Go to synchronizable.cc,
Synchronizable::Synchronizable() and replace
pthread_mutex_init(&Mutex,&mutexattr);
setName(name);
by
pthread_mutex_init(&Mutex,&mutexattr);
pthread_mutexattr_destroy(&mutexattr);
setName(name);
Now, the problem is gone.
Best regards
- --
=======================================================================
Dipl.-Inform. Thomas Dreibholz
University of Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
- -----------------------------------------------------------------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage:
http://www.exp-math.uni-essen.de/~dreibh
=======================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+HvNP32BbsHYPLWURAj+1AJ0YZZmoBWAWCShCA4s9t4mi8Q+cAQCgl0pJ
SY4Rs7hO+hVpoLFyguCwWzk=
=HvQl
-----END PGP SIGNATURE-----
- [SCTP-Discussion] FreeBSD memory leak problem solved!, Thomas Dreibholz, 01/10/2003
Archive powered by MHonArc 2.6.19+.