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
include & external #2943
Comments
Comment author: administrator
You're 100% percent correct, including the fact that it's the same bug Thanks for the bug report,
Index: csl/typing/typemod.ml *** 10,16 **** ! (* $Id: typemod.ml,v 1.43 2001/07/23 15:35:49 xleroy Exp $ *) (* Type-checking of the module language *) --- 10,16 ---- ! (* $Id: typemod.ml,v 1.45 2001/09/10 15:11:14 xleroy Exp $ *) (* Type-checking of the module language *) *** 263,273 **** (* Extract the list of "value" identifiers bound by a signature. let rec bound_value_identifiers = function (* Extract the list of "value" identifiers bound by a signature. let rec bound_value_identifiers = function *** 412,418 **** *** 432,438 **** |
Comment author: administrator Fixed 2001-09-10 by XL. |
Original bug ID: 506
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Winfried Dreckmann
Version: Ocaml 3.02
OS: Suse Linux 6.4 on PowerPC
Submission from: t4o902p30.telia.com (62.20.255.150)
This may be related to bug 505.
Including modules with external C functions gives segfaults or wrong results.
My smallest examples is as follows:
file test.ml
module M1 = struct
external test : int -> int = "test"
end
module M2 = struct
include M1
let foo = ref true
end
file test.c
include "/usr/local/lib/ocaml/caml/mlvalues.h"
value test(value x)
{
return x;
}
Creating a toplevel I get:
Test.M2.foo;;
Speicherzugriffsfehler
i. e. segmentation fault. With "let foo = 7" I get
Test.M2.foo;;
The same happens with standalone programs.
The text was updated successfully, but these errors were encountered: