New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
threads and toplevels #2984
Comments
Comment author: administrator
I'll look into this. One question, though: is this bytecode threads
|
Comment author: administrator On Mon, 08 Oct 2001, Xavier Leroy wrote:
Ah, yes, I always keep leaving out the important bits: it's POSIX threads. Regards, -- |
Comment author: administrator Hello,
I looked into the problem and it seems to match a known problem with There is something strange with your example, though:
Here, one thread is created while "mytop" executes mydf.ml
With a stand-alone executable, no additional thread is created, hence This is rather mysterious to me, and to make things worse I can't
|
Comment author: administrator On Fri, 12 Oct 2001, Xavier Leroy wrote:
The problem is not critical to me, I just noticed it accidentially. So Regards, -- |
Comment author: administrator Apparently a LinuxThreads bug. |
Original bug ID: 560
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hello,
it seems that combinations of threads + the unix library + toplevels
can cause problems, e.g.:
ocamlmktop -thread -custom unix.cma threads.cma -o mytop
file: mydf.ml
let _ =
let ic = Unix.open_process_in "/bin/df" in
ignore (input_line ic)
This will block:
mytop mydf.ml
But when I build the toplevel without threads.cma:
ocamlmktop -thread -custom unix.cma -o mytop
then the program terminates. Things always work fine when I compile the
file to either byte- or native code with the same set of libraries.
I am using the most recent CVS-snapshot (07.10) of OCaml on a Linux-box.
Regards,
Markus
--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus
The text was updated successfully, but these errors were encountered: