Bug 206302

Summary: tools/regression/sockets/listenclose fails with EINPROGRESS on gcc 4.9.4/5.3.0, but not clang 3.7.1/gcc 4.2.1
Product: Base System Reporter: Enji Cooper <ngie>
Component: testsAssignee: freebsd-testing (Nobody) <testing>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 10.2-STABLE   
Hardware: Any   
OS: Any   

Description Enji Cooper freebsd_committer 2016-01-16 02:45:40 UTC
The tools/regression/sockets/listenclose testcase fails with EINPROGRESS on gcc 4.9.4/5.3.0, but not clang 3.7.1 or gcc 4.2.1.

$ bash -c 'for cc in cc gcc gcc49 gcc5; do make -s clean; export CC=$cc; make -s; $cc --version; ./listenclose; done'
FreeBSD clang version 3.7.1 (tags/RELEASE_371/final 255217) 20151225
Target: x86_64-unknown-freebsd11.0
Thread model: posix
gcc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc49 (FreeBSD Ports Collection) 4.9.4 20151230 (prerelease)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

listenclose: connect() for connect socket: Operation now in progress
gcc5 (FreeBSD Ports Collection) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

listenclose: connect() for connect socket: Operation now in progress