Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003966OCamlOCaml generalpublic2006-01-28 15:202012-09-25 20:10
Assigned Tofrisch 
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version3.08.3 
Target VersionFixed in Version 
Summary0003966: Crash will varying placement of Callback.register

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.


John Whitington
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
frisch (developer)
2012-07-29 17:56

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".

- Issue History
Date Modified Username Field Change
2006-01-28 15:20 anonymous New Issue
2006-03-29 16:29 doligez Status new => acknowledged
2012-07-11 16:45 doligez Target Version => 4.01.0+dev
2012-07-29 17:56 frisch Note Added: 0007829
2012-07-29 17:56 frisch Status acknowledged => resolved
2012-07-29 17:56 frisch Resolution open => unable to reproduce
2012-07-29 17:56 frisch Assigned To => frisch
2012-07-29 17:56 frisch Target Version 4.01.0+dev =>
2012-09-25 20:10 xleroy Status resolved => closed

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker