You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: