[Bug 199557] Hang on sysconf(_SC_OPEN_MAX)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 20 10:55:16 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199557
Bug ID: 199557
Summary: Hang on sysconf(_SC_OPEN_MAX)
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: ikosarev at accesssoftek.com
Created attachment 155764
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=155764&action=edit
The test source.
The attached source unexpectedly hangs on sysconf(_SC_OPEN_MAX) when run under
FreeBSD localhost 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r280598: Wed Mar 25
15:54:11 UTC 2015 root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
amd64
in a VirtualBox session.
How to reproduce:
$ cat run.sh
clang test.cc -lpthread -lc++ || exit 1
while true; do
date
./a.out
done
$ ./run.sh
The problem usually expose itself after a dozen of iterations.
Actual output:
$ ./run.sh
Mon Apr 20 13:53:30 EEST 2015
before sysconf()
Expected output:
Mon Apr 20 13:53:30 EEST 2015
before sysconf()
after sysconf()
before sysconf()
after sysconf()
...
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list