Version française
Home     About     Download     Resources     Contact us    
Browse thread
Wrapping C code using pthread.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Guillaume Yziquel <guillaume.yziquel@c...>
Subject: Re: [Caml-list] Wrapping C code using pthread.
ygrek a écrit :
> On Sun, 27 Dec 2009 13:19:36 +0100
> Guillaume Yziquel <guillaume.yziquel@citycable.ch> 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/