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

Crash will varying placement of Callback.register #3966

Closed
vicuna opened this issue Jan 28, 2006 · 1 comment
Closed

Crash will varying placement of Callback.register #3966

vicuna opened this issue Jan 28, 2006 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 28, 2006

Original bug ID: 3966
Reporter: anonymous
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2012-09-25T18:10:24Z)
Resolution: unable to duplicate
Priority: normal
Severity: minor
Version: 3.08.3
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hullo.

I call caml_main immediately followed by callback from a program written in C++.

It works if the callback is registered prior to the last function evaluated in initialisation:

let register = Callback.register "Get canvas" canvas

let _ = (* rest of program initialisation *)

But if the Callback.register is in the final let _ ...

let _ = Callback.register "Get canvas" canvas

... it crashes with SIGILL. I can't see anything in the documentation warning about this placement of Callback.register.

I'm compiling on PowerPC.

Cheers,

John Whitington
jgw25@cam.ac.uk

@vicuna
Copy link
Author

vicuna commented Jul 29, 2012

Comment author: @alainfrisch

Maybe the "rest of program initialisation" calls into C++, which assumes "Get canvas" is already registered?

This is a very old ticket, with no reproduction case. I'm marking it as "resolved / unable to reproduce".

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

2 participants