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

Documentation should warn about using Extract_exception before letting GC run in C code #5606

Closed
vicuna opened this issue May 3, 2012 · 1 comment

Comments

@vicuna
Copy link

vicuna commented May 3, 2012

Original bug ID: 5606
Reporter: alexey.rodriguez
Assigned to: meyer
Status: closed (set by @xavierleroy on 2013-08-31T10:49:16Z)
Resolution: fixed
Priority: normal
Severity: major
Platform: x86_64
OS: Ubuntu
OS Version: 11.10
Version: 3.12.1
Category: documentation
Monitored by: wagerlabs @hcarty

Bug description

The documentation does not warn strongly enough about using Extract_exception on exception results before calling a function that can trigger a GC.

For reference see the discussion on the mailing list:

https://sympa-roc.inria.fr/wws/arc/caml-list/2012-05/msg00003.html

The attached patch includes a warning and an example to this purpose.

File attachments

@vicuna
Copy link
Author

vicuna commented May 4, 2012

Comment author: meyer

Thanks, patch (with minor modifications) has been applied as r12431.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant