You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 3100 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Samuel Mimram
Version: 3.08.1
OS: linux
Submission from: babasse.csbnet.se (193.11.251.151)
Hello,
When a file is named using an existing module name the compilation leads to a
segfaulting executable:
% cat toto.ml
let a = Array.make 10 0.0 ;;
let a = Array.append a a ;;
% ocamlopt toto.ml -o toto
% ./toto
% cp toto.ml array.ml
% ocamlopt array.ml -o array
% ./array
zsh: segmentation fault ./array
It seems that is due to the fact that ocaml's array.cmi is used at
compilation-time but my array.cmi is used when linking. Of course if I try to
compile array.ml again I get:
% ocamlopt array.ml -o array
The files array.cmi and array.cmi make inconsistent assumptions
over interface Array
Maybe it should not be considered as a bug but at least some kind of warning
would be nice.
Thanks.
Regards,
Samuel.
The text was updated successfully, but these errors were encountered:
Original bug ID: 3100
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Samuel Mimram
Version: 3.08.1
OS: linux
Submission from: babasse.csbnet.se (193.11.251.151)
Hello,
When a file is named using an existing module name the compilation leads to a
segfaulting executable:
% cat toto.ml
let a = Array.make 10 0.0 ;;
let a = Array.append a a ;;
% ocamlopt toto.ml -o toto
% ./toto
% cp toto.ml array.ml
% ocamlopt array.ml -o array
% ./array
zsh: segmentation fault ./array
It seems that is due to the fact that ocaml's array.cmi is used at
compilation-time but my array.cmi is used when linking. Of course if I try to
compile array.ml again I get:
% ocamlopt array.ml -o array
The files array.cmi and array.cmi make inconsistent assumptions
over interface Array
Maybe it should not be considered as a bug but at least some kind of warning
would be nice.
Thanks.
Regards,
Samuel.
The text was updated successfully, but these errors were encountered: