Bug#600408: ocaml: Building OCaml with LOCAL_CALLBACK_BYTECODE enabled

2010-10-19 Thread Sylvain Le Gall
[Ce message a aussi été publié sur gmane.test.] On 19-10-2010, Sylvain Le Gall gil...@debian.org wrote: Try to cc the bug as well as the mailing list (for the record). On 17-10-2010, Sylvain Le Gall gil...@debian.org wrote: On 16-10-2010, Guillaume Yziquel guillaume.yziq...@citycable.ch wrote:

Bug#600408: ocaml: Building OCaml with LOCAL_CALLBACK_BYTECODE enabled

2010-10-17 Thread Stéphane Glondu
Le 17/10/2010 00:53, Guillaume Yziquel a écrit : I register an OCaml array with caml_register_generational_global_root. The array contains functions. The C++ code takes an offset in this array and calls the function, typically with caml_callback3. [...] But it works fine in native code, so

Bug#600408: ocaml: Building OCaml with LOCAL_CALLBACK_BYTECODE enabled

2010-10-16 Thread Guillaume Yziquel
Package: ocaml Version: 3.12.0-1~38 Severity: normal I'm currently having issues with C++ callbacks to OCaml, and digging into the callbacks.c file, I discovered that OCaml in Debian is not built with the LOCAL_CALLBACK_BYTECODE macro enabled. It seems to me that the current situation might be

Bug#600408: ocaml: Building OCaml with LOCAL_CALLBACK_BYTECODE enabled

2010-10-16 Thread Stéphane Glondu
Le 16/10/2010 23:24, Guillaume Yziquel a écrit : Package: ocaml Version: 3.12.0-1~38 Severity: normal Does this apply to 3.10.2 as well? I'm currently having issues with C++ callbacks to OCaml, [...] Could you be more precise? [...] and digging into the callbacks.c file, I discovered

Bug#600408: ocaml: Building OCaml with LOCAL_CALLBACK_BYTECODE enabled

2010-10-16 Thread Guillaume Yziquel
Le Sunday 17 Oct 2010 à 00:10:41 (+0200), Stéphane Glondu a écrit : Le 16/10/2010 23:24, Guillaume Yziquel a écrit : Package: ocaml Version: 3.12.0-1~38 Severity: normal Does this apply to 3.10.2 as well? I guess so, but I haven't checked with 3.10.2. I'm currently having issues with

Bug#600408: ocaml: Building OCaml with LOCAL_CALLBACK_BYTECODE enabled

2010-10-16 Thread Guillaume Yziquel
Le Sunday 17 Oct 2010 à 00:53:29 (+0200), Guillaume Yziquel a écrit : I'm currently having issues with C++ callbacks to OCaml, [...] Could you be more precise? For the follow-up, an explanation of my segfault and why it happens (indirection mismatch, and probably weak API for callbacks