2011年3月22日 星期二

Bug in 0.9.31 with __errno_location in linuxthreads.old

Bug in 0.9.31 with __errno_location in linuxthreads.old
http://old.nabble.com/Bug-in-0.9.31-with-__errno_location-in-linuxthreads.old-td28525524.html

Following are the pass cases:
# ./test1
(press control-C to stop running)

# ./test2
thread: Failed to connect (-1 errno=101): Network is unreachable
main: Failed to connect (-1 errno=101): Network is unreachable


Following are the failed cases:

# ./test1
1026: (0/0) got 0 instead of 9
1026: (1/1) got 0 instead of 9
1026: (2/2) got 0 instead of 9
1026: (3/3) got 0 instead of 9
1026: (4/4) got 0 instead of 9
1026: (5/5) got 0 instead of 9
1026: (6/6) got 0 instead of 9
1026: (7/7) got 0 instead of 9
1026: (8/8) got 0 instead of 9
1026: (9/9) got 0 instead of 9


# ./test2
thread: Failed to connect (-1 errno=0): Network is unreachable
main: Failed to connect (-1 errno=101): Network is unreachable

沒有留言: