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

toplevel segmentation fault #8204

Closed
vicuna opened this issue Jul 12, 2003 · 2 comments
Closed

toplevel segmentation fault #8204

vicuna opened this issue Jul 12, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 12, 2003

Original bug ID: 1752
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Craig Falls
Version: 3.06
OS: Debian Sid
Submission from: 12-232-69-28.client.attbi.com (12.232.69.28)

The following code generates a segmentation fault in my ocaml toplevel:

module Blah =
struct
type t = int
let compare = Pervasives.compare
end;;
module Intset = Set.Make (Blah);;
let x = ref Intset.empty;;
x := Intset.add 1 !x;;

Attempting to compile the code using ocamlc gives the message:

Files set_test.cmo and /usr/lib/ocaml/3.06/stdlib.cma(Set)
make inconsistent assumptions over interface Set

I suspect this code is malformed in some way and/or my unstable linux
distribution are to blame.

@vicuna
Copy link
Author

vicuna commented Jul 12, 2003

Comment author: administrator

Full_Name: Craig Falls
Version: 3.06
OS: Debian Sid
Submission from: 12-232-69-28.client.attbi.com (12.232.69.28)

The following code generates a segmentation fault in my ocaml toplevel:

module Blah =
struct
type t = int
let compare = Pervasives.compare
end;;
module Intset = Set.Make (Blah);;
let x = ref Intset.empty;;
x := Intset.add 1 !x;;

Attempting to compile the code using ocamlc gives the message:

Files set_test.cmo and /usr/lib/ocaml/3.06/stdlib.cma(Set)
make inconsistent assumptions over interface Set

I suspect this code is malformed in some way and/or my unstable linux
distribution are to blame.

Thanks for your bug report and your interest for Caml.

This is typical of a situation where the Caml compiler and system had
not been properly updated: you are trying to link old compiled
libraries the code of which is now uncompatible with their new
interfaces in the new system.

So, first erase the old ocaml installation (which means removing the
Caml binaries and libraries directories, presumably the entire
directories /usr/local/lib/ocaml and /usr/local/bin/ocaml) and then
reinstall a fresh Caml distribution. This should normally solve your
problem. If it does not, please report it.

Best regards,

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/

@vicuna
Copy link
Author

vicuna commented Jul 16, 2003

Comment author: administrator

toplevel segfault fixed by XL before 3.07
the rest is not a bug

@vicuna vicuna closed this as completed Jul 16, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant