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

can't declare class when too many open files #8120

Closed
vicuna opened this issue Apr 25, 2003 · 0 comments
Closed

can't declare class when too many open files #8120

vicuna opened this issue Apr 25, 2003 · 0 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 25, 2003

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

Bug description

[This bug probably goes in the 'harmless oddities' section, but nonetheless]

I noticed in the toplevel that after having run out of file descriptors, I
couldn't declare a new class.

[henri@ffnet: ~/newwork/caml] ocaml bug.ml
I/O error: /usr/lib/ocaml/camlinternalOO.cmi: Too many open files

However, if i compile this snippet with ocamlc and run the binary, the class
declaration works fine.

bug.ml:

let _ =
begin
try
for i = 1 to 3000 do
ignore (open_in "/home/henri/work/150th/coordinates.txt")
done
with _ -> ();
end;

class t1 = object method id = 3 end;;

@vicuna vicuna closed this as completed May 5, 2003
@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