Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 19:20:02 GMT
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: gnu/134604: Memory leak in gcclibs/libgomp
Message-ID:  <200905211920.n4LJK2sj068168@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/134604; it has been noted by GNATS.

From: Mikolaj Golub <to.my.trociny@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: gnu/134604: Memory leak in gcclibs/libgomp
Date: Thu, 21 May 2009 22:17:28 +0300

 --=-=-=
 
 This bug has been fixed in upstream for gcc 4.4/4.5.
 
 The developer has pointed out that correct place to call sem_destroy() is on
 returning from gomp_thread_start(). So the patch for libgomp from RELENG_7
 (gcc 4.2.1) would be even simpler then provided previously.
 
 -- 
 Mikolaj Golub
 
 
 --=-=-=
 Content-Disposition: inline; filename=team.c.patch.txt
 
 --- contrib/gcclibs/libgomp/team.c.orig	2009-05-16 17:32:57.000000000 +0300
 +++ contrib/gcclibs/libgomp/team.c	2009-05-21 22:04:24.000000000 +0300
 @@ -127,6 +127,7 @@ gomp_thread_start (void *xdata)
        while (local_fn);
      }
  
 +  gomp_sem_destroy (&thr->release);
    return NULL;
  }
  
 
 --=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905211920.n4LJK2sj068168>