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

ocamlopt bug, Segmentation fault on a function pointer #3457

Closed
vicuna opened this issue Feb 4, 2005 · 1 comment
Closed

ocamlopt bug, Segmentation fault on a function pointer #3457

vicuna opened this issue Feb 4, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 4, 2005

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

Bug description

To the (o)caml team,

The following minimal program compiles with:
% ocamlopt test.mli
% ocamlopt -o test test.ml

but directly generates a segmentation fault when:
% ./test
is run

The debugger (gdb) complains about a 'broken stack frame'.

By the way; thanks for such a robust language...
the only other Segfaults I ever got where:

  • linked in Ansi-C code
  • unended recursion (but often this reports the better 'out of memory'
    error)

That is a very good track record :)

With kind regards,

Jurjen Stellingwerff


open Test
;;
let fn=test
;;
let test ()=
print_string "Hello world!\n"
;;
fn ()


val test: unit -> unit



@vicuna
Copy link
Author

vicuna commented Mar 10, 2005

Comment author: administrator

see also #3100, #3404
compiler confused by "self" reference within compilation unit

@vicuna vicuna closed this as completed Jul 31, 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