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

profiling causes (11, "select, "") error #3860

Closed
vicuna opened this issue Nov 13, 2005 · 3 comments
Closed

profiling causes (11, "select, "") error #3860

vicuna opened this issue Nov 13, 2005 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 13, 2005

Original bug ID: 3860
Reporter: administrator
Status: closed (set by @damiendoligez on 2005-12-15T13:23:24Z)
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Joe Neeman
Version: 3.08.1
OS: Linux
Submission from: 203-173-0-46.dyn.iinet.net.au (203.173.0.46)

The following program exits with "Fatal error: exception Unix.Unix_error(11,
"select", "")" on both my AMD64 and x86 linux boxes when compiled with profiling
support in ocamlopt. If compiled without profiling, it exists cleanly.

for i = 1 to 1000 do
ignore (Unix.select [Unix.stdin] [] [] 0.0)
done

I compile this with "ocamlopt -p -o test unix.cmxa test.ml"

@vicuna
Copy link
Author

vicuna commented Nov 16, 2005

Comment author: administrator

Is this a Linux bug? Can't reproduce on BSD (Mac OS X). DD

@vicuna
Copy link
Author

vicuna commented Nov 20, 2005

Comment author: anonymous

11 = EAGAIN

Profiling generates interrupts (100/s I think), so system calls can be interrupted. Your program must be ready to handle that situation by trying again (standard Unix programming).

@vicuna
Copy link
Author

vicuna commented Dec 15, 2005

Comment author: @damiendoligez

Nothing we can do at the OCaml level. Fix your kernel, or change your program to handle the signal.

@vicuna vicuna closed this as completed Dec 15, 2005
@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