Date: Tue, 13 Jul 2004 23:04:27 GMT From: Joe Mistachkin <joe@mistachkin.com> To: freebsd-gnats-submit@FreeBSD.org Subject: threads/69020: pthreads library leaks _gc_mutex Message-ID: <200407132304.i6DN4RO2086389@www.freebsd.org> Resent-Message-ID: <200407132310.i6DNAIhC065296@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69020 >Category: threads >Synopsis: pthreads library leaks _gc_mutex >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 13 23:10:18 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Joe Mistachkin >Release: 4.10-STABLE >Organization: >Environment: >Description: The file "/usr/src/lib/libc_r/uthread/uthread_init.c" initializes a mutex named "_gc_mutex". This mutex is never freed via pthread_mutex_destroy (at least not anywhere I have found). I believe this is a bug. Since this mutex is process wide, I believe it could be freed relatively easily using an atexit handler or similar mechanism. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407132304.i6DN4RO2086389>