hi, folks ! ��� � ����� [EMAIL PROTECTED] ��� �� ������ ����� ����� ������: (��������, ��� � ���� ������� ���������� �� �� ��������� �������� ���� � ���� �� openbsd � � ��������� �� freebsd)
----- Forwarded message from diego el gordito <[EMAIL PROTECTED]> ----- Delivered-To: [EMAIL PROTECTED] Date: Fri, 24 Jan 2003 13:05:02 -0800 (PST) From: diego el gordito <[EMAIL PROTECTED]> Subject: pthreads bug - memory leak To: [EMAIL PROTECTED] X-Spam-Level: X-Loop: [EMAIL PROTECTED] Precedence: list Greetings list, this is the first e-mail I write in here. It seems to me that I've found a bug in the pthreads library which leads to a huge memory leak. I haven't bothered to look at the sources since it really doesn't seem too serious (for an attack). Tested in OpenBSD 3.1 and 3.2 GENERIC#0 also found in FreeBSD and I'm still missing other operating systems to test it on. The linux implementation didn't seem vulnerable. The bug shows up when calling pthread_cond_timedwait() from the main program thread (not a thread created with pthread_create()). I'm not 100% sure but there must be some other functions of the library which get executed through the same conditions and therefore leak memory. I've created a proof of concept code which just loops all the time calling pthread_cond_timedwait(). After running the code for half a minute use CTRL+Z to stop the program flow and check the amount of used memory by the process. Since I haven't had the time to read the policies of this mailing list I haven't attached neither the code nor the notes on my findings for keeping the peace among you all. You may find bug.c (proof of concept code) at http://www.ysm.com.ar/pthreads_bug.c Additional output Notes at http://www.ysm.com.ar/pthreads_notes I hope this helps since I need it fixed as soon as possible. Thank you all again, rad2k at mail dot ru. ---------------------- Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ----- End forwarded message ----- -- dsb; ===================================================================== If you would like to unsubscribe from this list send message to [EMAIL PROTECTED] with "unsubscribe oops" in message body. Archive is accessible on http://lists.paco.net/oops-rus/
