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

Comments

Projects
None yet
2 participants
@vicuna
Copy link

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Author

commented Mar 16, 2016

Comment author: @garrigue

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

@vicuna vicuna closed this Sep 24, 2017

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.