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

Segfault on AMD64 #3572

Closed
vicuna opened this issue Mar 31, 2005 · 1 comment
Closed

Segfault on AMD64 #3572

vicuna opened this issue Mar 31, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 31, 2005

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

Bug description

The following one-line program causes a segmentation fault on my AMD64 in
64-bit and the expected Stack_overflow in 32-bit:

List.map (fun i -> i) (Array.to_list (Array.init 262144 (fun i -> i)))

I assume a stack overflow in 64-bit is causing the segfault but am not sure.
Certainly, it appears to be deterministic and happens for >262107 elements.

Cheers,
Jon.

@vicuna
Copy link
Author

vicuna commented Apr 17, 2005

Comment author: administrator

Stack overflow detection on AMD64 not implemented in ocamlopt 3.08.3, but
implemented in ocamlopt devel (3.09). Works as expected in devel. XL,
2005-04-17

@vicuna vicuna closed this as completed Apr 17, 2005
@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