Date: Thu, 26 Aug 2004 14:25:14 -0700 (PDT) From: Vivek Pandey <wevake@yahoo.com> To: linimon@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/71005: bug in libsem Message-ID: <20040826212514.26993.qmail@web52305.mail.yahoo.com> In-Reply-To: <200408262116.i7QLGK1n086445@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I am new to freebsd...donno where to classify. I downloaded this libsem(POSIX semaphoe implementation for FreeBSD) which has this bug as mentioned in the bug-report. The patch put on GNats is not the correct one...pasted the wrong code. the correct patch is attached below. thanx, Vivek Pandey --------xxxxxxxxxxxxxxxxxxxxxxxx------------------------ *** uthread_sem.c Thu Aug 26 17:24:48 2004 --- uthread_sem1.c Thu Aug 26 17:24:51 2004 *************** *** 113,122 **** retval = -1; goto RETURN; } pthread_mutex_unlock(&(*sem)->lock); pthread_mutex_destroy(&(*sem)->lock); ! pthread_cond_destroy(&(*sem)->gtzero); (*sem)->magic = 0; free(*sem); --- 113,124 ---- retval = -1; goto RETURN; } + pthread_cond_destroy(&(*sem)->gtzero); + (unsigned char)(*sem)->magic = (unsigned char)(~SEM_MAGIC); pthread_mutex_unlock(&(*sem)->lock); pthread_mutex_destroy(&(*sem)->lock); ! (*sem)->magic = 0; free(*sem); -----xxxxxxxxxxxxxxxxxxxxxx--------------------- Mark Linimon <linimon@FreeBSD.org> wrote: Synopsis: bug in libsem State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Thu Aug 26 21:16:03 GMT 2004 State-Changed-Why: Is this a ports PR, or a kern PR? http://www.freebsd.org/cgi/query-pr.cgi?pr=71005 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040826212514.26993.qmail>