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

Assertion failure with recursive modules and externals #7182

Closed
vicuna opened this issue Mar 16, 2016 · 2 comments
Closed

Assertion failure with recursive modules and externals #7182

vicuna opened this issue Mar 16, 2016 · 2 comments
Assignees
Labels

Comments

@vicuna
Copy link

@vicuna vicuna commented Mar 16, 2016

Original bug ID: 7182
Reporter: @yallop
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2017-09-24T15:32:04Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @gasche

Bug description

$ cat bug.ml
module rec M :
sig external f : int -> int = "%identity" end =
struct external f : int -> int = "%identity" end
$ ocaml bug.ml
Exception: Assert_failure ("camlinternalMod.ml", 68, 6).

@vicuna
Copy link
Author

@vicuna vicuna commented Mar 16, 2016

Comment author: @mshinwell

Confirmed this still fails with current trunk, except at line 70. At that point the size of the object being filled is zero but the length of "comps" is 1.

Jacques, I think this is probably your area (bug in translmod.ml perhaps?)

@vicuna
Copy link
Author

@vicuna vicuna commented Mar 16, 2016

Comment author: @garrigue

Fixed in 4.03 and trunk, by commits 9009cc and ba82f8f

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

2 participants