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

profiler bug #2998

Closed
vicuna opened this issue Oct 16, 2001 · 2 comments
Closed

profiler bug #2998

vicuna opened this issue Oct 16, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 16, 2001

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

Bug description

Hello,

there seems to be a serious problem with the profiler. Just try to apply
it to some file, e.g. "ocamlcp -c foo.ml". This will lead to the following
error (all platforms; latest CVS-release):

I/O error: Bad file descriptor
Fatal error: uncaught exception Sys_error("Bad file descriptor")
Preprocessing error

Regards,
Markus

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@vicuna
Copy link
Author

vicuna commented Oct 18, 2001

Comment author: administrator

there seems to be a serious problem with the profiler. Just try to apply
it to some file, e.g. "ocamlcp -c foo.ml". This will lead to the following
error (all platforms; latest CVS-release):

I/O error: Bad file descriptor
Fatal error: uncaught exception Sys_error("Bad file descriptor")
Preprocessing error

That's right. It's a strange interaction between the pretty-printer
and normal use of standard output. It will be fixed in the next release.
In the meantime, you can fix it by removing line 156 of tools/ocamlprof.ml,
which reads "close_out !outchan".

-- Damien

@vicuna vicuna closed this as completed Oct 18, 2001
@vicuna
Copy link
Author

vicuna commented Oct 18, 2001

Comment author: administrator

On Thu, 18 Oct 2001, Damien Doligez wrote:

That's right. It's a strange interaction between the pretty-printer
and normal use of standard output. It will be fixed in the next
release. In the meantime, you can fix it by removing line 156 of
tools/ocamlprof.ml, which reads "close_out !outchan".

Thanks for the hint!

  • Markus

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@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