ports/71005: bug in libsem
Vivek Pandey
wevake at yahoo.com
Thu Aug 26 21:25:16 UTC 2004
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 at 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
More information about the freebsd-ports-bugs
mailing list