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

threads + toplevel + assignment = segmentation fault #8000

Closed
vicuna opened this issue Jan 26, 2003 · 1 comment
Closed

threads + toplevel + assignment = segmentation fault #8000

vicuna opened this issue Jan 26, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 26, 2003

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

Bug description

Full_Name: Issac Trotts
Version: 3.06
OS: linux (Debian)
Submission from: 128.120.141.217 (128.120.141.217)

Here's a strange thing I ran into when trying to combine the
toplevel with another loop:

$ cat test10.ml

let x = ref 1;;

let a () = while true do () done ;;

let b () = Topmain.main();;

let _ =
let ta = Thread.create a () in
let tb = Thread.create b () in
Thread.join ta;
Thread.join tb;
;;

$ ocamlc -thread -custom unix.cma threads.cma toplevellib.cma test10.ml
-cclib -lthreads -cclib -lunix -cclib -lpthread -o test10
$ ./test10
Objective Caml version 3.06

Test10.x := 0;;

Segmentation fault

@vicuna
Copy link
Author

vicuna commented May 26, 2003

Comment author: administrator

Access to global module before it is initialized. Added check & error message.
XL, 2003-05-26.

@vicuna vicuna closed this as completed May 26, 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