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@FreeBSD.org
          Reporter: ikosa...@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     r...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to