This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13763] bindresvport() function is multithread-unsafe


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]