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

Misc.Fatal_error (segmentation fault) #19

Open
yallop opened this issue Oct 20, 2022 · 1 comment
Open

Misc.Fatal_error (segmentation fault) #19

yallop opened this issue Oct 20, 2022 · 1 comment

Comments

@yallop
Copy link
Member

yallop commented Oct 20, 2022

a.ml:

(* empty *)

b.ml:

module ~D = A
macro m () = <<assert false>>

c.ml:

let f = $(B.m  ())

Bug:

$ ocamlc a.ml b.ml c.ml
Segmentation fault
>> Fatal error: Something went wrong when executing splice generation command: /home/jeremy/.opam/macros/bin/ocamlrun /tmp/camlstatic52bb4e /tmp/camlsplice08ed3d
Fatal error: exception Misc.Fatal_error
@yallop
Copy link
Member Author

yallop commented Feb 25, 2023

Simpler:

b.ml:

module M = struct end
macro m () = << 3 >>

c.ml:

let f = $(B.m ())

Bug:

ocamlc b.ml c.ml
Segmentation fault
>> Fatal error: Something went wrong when executing splice generation command: /home/jeremy/projects/modular-macros/install/bin/ocamlrun /tmp/camlstatic750f1c /tmp/camlsplice68d64b
Fatal error: exception Misc.Fatal_error

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