Bug 8236 - multi-thread errno is equal to 0(success)
Summary: multi-thread errno is equal to 0(success)
Status: NEW
Alias: None
Product: uClibc
Classification: Unclassified
Component: Networking (show other bugs)
Version: 0.9.33
Hardware: Other Linux
: P5 blocker
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-24 05:20 UTC by DavidShu
Modified: 2015-07-24 06:00 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
uclibc config file (6.14 KB, text/plain)
2015-07-24 05:28 UTC, DavidShu
Details
test case (1.05 KB, application/octet-stream)
2015-07-24 05:31 UTC, DavidShu
Details
mips-linux-gcc -v information (8.02 KB, text/plain)
2015-07-24 05:33 UTC, DavidShu
Details

Note You need to log in before you can comment on or make changes to this bug.
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