Bug 8236

Summary: multi-thread errno is equal to 0(success)
Product: uClibc Reporter: DavidShu <fengge0832>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: blocker CC: fengge0832, uclibc-cvs
Priority: P5    
Version: 0.9.33   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:
Attachments: uclibc config file
test case
mips-linux-gcc -v information

Description DavidShu 2015-07-24 05:20:46 UTC
i have encountered an issue when develop socket application in openwrt using uclibc0.9.33 under MIPS architecture.using non-blocking connect,return value is -1, but errno is 0 in any case.I tried to use single proccess, errno is normal error number. I made a lot of testing with other system call,the result is the same.
Comment 1 DavidShu 2015-07-24 05:26:58 UTC
uclibc config file
Comment 2 DavidShu 2015-07-24 05:28:35 UTC
Created attachment 6111 [details]
uclibc config file
Comment 3 DavidShu 2015-07-24 05:31:58 UTC
Created attachment 6116 [details]
test case

compile command:
mips-linux-gcc -o test_errno test_errno.c -pthread

or

mips-linux-gcc -o test_errno test_errno.c -lpthread


or

mips-linux-gcc -D_REENTRANT -o test_errno test_errno.c -pthread

The result is the same.
Comment 4 DavidShu 2015-07-24 05:33:27 UTC
Created attachment 6121 [details]
mips-linux-gcc -v information