Skip to content
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

Cannot marshal a mutex with native threads #2344

Closed
vicuna opened this issue Mar 14, 2004 · 1 comment
Closed

Cannot marshal a mutex with native threads #2344

vicuna opened this issue Mar 14, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 14, 2004

Original bug ID: 2344
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Roberto Di Cosmo
Version: 3.07 etc.
OS: Linux
Submission from: berny-5-81-56-44-163.fbx.proxad.net (81.56.44.163)

When trying to marshal a mutex, to send it over a channel to another process,
one gets

  - no error, everything works fine if using the -thread option
  - a marshalling error (abstract value) if using the -vmthread option

This happens with and without the Marshal.Closures flag, and in my test case, I
am marshaling between two identical programs.

This is clearly a bug, since the user-level behaviour of a program is not well
defined.

If I can try to influence the decision on how to fix it, I would really really
like to keep the -thread behaviour (no error) since this allows me to marshal
functions over a channel bewteen two identical binaries... functions that do
use mutexes.

To simplify reproducing the bug, you can download a short program from
http://www.dicosmo.org/ocaml/bug032004.tgz, untar it, and just type "make".

--Roberto

@vicuna
Copy link
Author

vicuna commented Apr 1, 2004

Comment author: administrator

Yes, but for good reasons. (What does marshalling a locked mutex means?)

@vicuna vicuna closed this as completed Apr 1, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant