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

Workaround for bug with caml_sys_argv #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lthls
Copy link

@lthls lthls commented Aug 17, 2021

There's a hack in the compiler that miscompiles the caml_sys_argv primitive if it's declared as an external directly (it's supposed to be exposed through the "%sys_argv" builtin primitive, not directly).
I'm not sure exactly why it never was an issue before, but I believe that without this patch trying to call the caml_sys_argv primitive through the generated Prim module will cause a segmentation fault.

There's a hack in the compiler that miscompiles the `caml_sys_argv` primitive if it's declared as an external directly (it's supposed to be exposed through the `"%sys_argv"` builtin primitive, not directly).
I'm not sure exactly why it never was an issue before, but I believe that without this patch trying to call the `caml_sys_argv` primitive through the generated `Prim` module will cause a segmentation fault.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant