gnu/134604: Memory leak in gcclibs/libgomp
to.my.trociny at gmail.com
Thu May 21 19:20:03 UTC 2009
The following reply was made to PR gnu/134604; it has been noted by GNATS.
From: Mikolaj Golub <to.my.trociny at gmail.com>
To: bug-followup at FreeBSD.org
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.
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)
+ gomp_sem_destroy (&thr->release);
More information about the freebsd-bugs