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

Out_of_memory-crash after close_out on socket-channel #2786

Closed
vicuna opened this issue Jun 19, 2004 · 1 comment
Closed

Out_of_memory-crash after close_out on socket-channel #2786

vicuna opened this issue Jun 19, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 19, 2004

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

Bug description

Hi,

after trying to communicate over a socket the exception

Sys_error("Connection reset by peer")

gets raised by my networking application. The exception is caught, and
the app executes a subsequent "close_out" on the out_channel associated
with the socket. The function never returns: the program silently dies.

The OCaml-debugger displays the following as last message:

Lost connection with process 11781Uncaught exception: Out of memory

Calling the external "close_out_channel" rather than "close_out",
i.e. closing the out_channel without flushing it first, does not cause
this problem. This may indicate a bug in the flush-function.

Regards,
Markus

--
Markus Mottl http://www.oefai.at/~markus markus@oefai.at

@vicuna
Copy link
Author

vicuna commented Jun 21, 2004

Comment author: administrator

See #2792

@vicuna vicuna closed this as completed Jun 21, 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