ygrek a écrit :
On Sun, 27 Dec 2009 13:19:36 +0100
Guillaume Yziquel <[email protected]> wrote:

In fact, my trouble is that when things are compiled to native code, it works fine. However, things get screwed up when compiled to bytecode, resulting in a segfault.

Are pthreads compatible with OCaml bytecode?

I believe so. Could you post some code and instructions how to build for 
investigation?

I'm working on it. Will look at ocamlforge for this purpose.

I now think, however, that it's not a thread issue. MonetDB loads dynamically at startup some other libraries for its own low-level language, MAL (for MonetDB Assembly Language). I believe this kind of dynamic loading works fine in native code, but doesn't in bytecode.

I've got no issues in native code at all... Only with bytecode.

Haven't located the place in MonetDB where this dynamic loading happens, so it's just conjectures for now.

If someone knows how to use gdb on a bytecode executable to locate the segfault in MonetDB's .so file, I'd be quite happy to know.

All the best,

--
     Guillaume Yziquel
http://yziquel.homelinux.org/

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to