[Bug libc/13763] bindresvport() function is multithread-unsafe
penght at cn dot fujitsu.com
sourceware-bugzilla@sourceware.org
Wed May 9 06:59:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=13763
--- Comment #1 from Peng Haitao <penght at cn dot fujitsu.com> 2012-05-09 06:59:28 UTC ---
Created attachment 6403
--> http://sourceware.org/bugzilla/attachment.cgi?id=6403
The program can testify bindresvport() is multithread-unsafe
Steps to Reproduce:
# gcc -o bindresvport -lpthread bindresvport.c
# while true; do ./bindresvport 2>&1 | grep 1024; if [ $? -eq 0 ]; then break;
fi; done
port = 1024
The program output the bound port, valid value is 512 to 1023. if the bound
port is 1024, bindresvport() is multithread-unsafe.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list