You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7367 Reporter: pmetras Status: resolved (set by @xavierleroy on 2017-02-16T08:11:09Z) Resolution: not a bug Priority: normal Severity: minor Platform: i386 OS: Minix3 OS Version: 3.4.0 Category: standard library Monitored by:@gasche
Bug description
For test testsuite/tests/lib-threads/pr5325.ml, the problem occurs with the call "Unix.shutdown s Unix.SHUTDOWN_SEND". I was unable to issue a shutdown command on Minix3 from OCaml. I've read the code multiple times and I don't understand why it does not work. Calling shutdown() from C code is working correctly, according to /usr/tests/minix-posix/test56 from Minix3 test suite.
The compilation command used by the test is "../byterun/ocamlrun ../ocamlc -g -nostdlib -I ../stdlib -w a -vmthread -I ../otherlibs/threads -I ../otherlibs/unix unix.cma threads.cma tests/lib-threads/pr5325.ml -o program"
It raises a Unix.Unix_error when run with "../byterun/ocamlrun -b ./program"
Fatal error: exception Unix.Unix_error(2, "shutdown", "")
Raised by primitive operation at unknown location (inlined)
Called from file "pr5325.ml", line 63, characters 2-31
If the call to Unix.shutdown is removed, the test succeeds, but that's not game.
The text was updated successfully, but these errors were encountered:
This seems to be a Minix3 bug in their implementation of shutdown(). OCaml's Unix.shutdown works fine under Linux, OS X, various BSDs, Cygwin, and Win32/Winsock, so it is quite unlikely the bug is on OCaml's side.
Please reopen this PR if you have evidence of the problem on any platform other than Minix.
Original bug ID: 7367
Reporter: pmetras
Status: resolved (set by @xavierleroy on 2017-02-16T08:11:09Z)
Resolution: not a bug
Priority: normal
Severity: minor
Platform: i386
OS: Minix3
OS Version: 3.4.0
Category: standard library
Monitored by: @gasche
Bug description
For test testsuite/tests/lib-threads/pr5325.ml, the problem occurs with the call "Unix.shutdown s Unix.SHUTDOWN_SEND". I was unable to issue a shutdown command on Minix3 from OCaml. I've read the code multiple times and I don't understand why it does not work. Calling shutdown() from C code is working correctly, according to /usr/tests/minix-posix/test56 from Minix3 test suite.
The compilation command used by the test is "../byterun/ocamlrun ../ocamlc -g -nostdlib -I ../stdlib -w a -vmthread -I ../otherlibs/threads -I ../otherlibs/unix unix.cma threads.cma tests/lib-threads/pr5325.ml -o program"
It raises a Unix.Unix_error when run with "../byterun/ocamlrun -b ./program"
Fatal error: exception Unix.Unix_error(2, "shutdown", "")
Raised by primitive operation at unknown location (inlined)
Called from file "pr5325.ml", line 63, characters 2-31
If the call to Unix.shutdown is removed, the test succeeds, but that's not game.
The text was updated successfully, but these errors were encountered: