SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] FreeBSD memory leak problem solved!


Chronological Thread 
  • From: "Marjan Bozinovski" <marjanb AT cpk.auc.dk>
  • To: "Thomas Dreibholz" <dreibh AT exp-math.uni-essen.de>
  • Cc: <discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] FreeBSD memory leak problem solved!
  • Date: Fri Jan 10 19:02:00 2003
  • List-id: SCTP Discussions <discussion.sctp.de>

Thank you Thomas. Next week I will include the patch and let you know the
result.

regards,
Marjan

----- Original Message -----
From: "Thomas Dreibholz"
<dreibh AT exp-math.uni-essen.de>
To: "Marjan Bozinovski"
<marjanb AT cpk.auc.dk>
Cc:
<discussion AT sctp.de>
Sent: Friday, January 10, 2003 5:22 PM
Subject: [SCTP-Discussion] FreeBSD memory leak problem solved!


> -----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-----
>
> _______________________________________________
> discussion mailing list
> discussion AT sctp.de
> http://www.sctp.de/mailman/listinfo/discussion
>





Archive powered by MHonArc 2.6.19+.

Top of page