Skip to content

[BUG] Some variables escaped: <v151362> #2106

@nojb

Description

@nojb

I am testing js_of_ocaml 6.2.0 and some of our code triggers (only when built in release mode) the following fatal error:

Some variables escaped (#1). Use [--debug js_assign] for more info.
/home/nojebar/mlfi/mlfi-ins/bin/js_of_ocaml: You found a bug. Please report it at https://github.com/ocsigen/js_of_ocaml/issues :
Error: File "js_of_ocaml/compiler/lib/js_assign.ml", line 503, characters 5-11: Assertion failed

The file being built looks like:

(executable
 (name foo)
 (libraries lib)
 (modes js))

where lib is a large-ish unwrapped library built with (library_flags -linkall). Unfortunately, I haven't been able to produce a small reproduction case so far. In case it is helpful, the output of --debug js_assign is attached

log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions